diff --git a/code/modules/vore/eating/belly_obj_vr.dm b/code/modules/vore/eating/belly_obj_vr.dm index 9fbc17f410..21602a1c27 100644 --- a/code/modules/vore/eating/belly_obj_vr.dm +++ b/code/modules/vore/eating/belly_obj_vr.dm @@ -11,6 +11,7 @@ /obj/belly name = "belly" // Name of this location desc = "It's a belly! You're in it!" // Flavor text description of inside sight/sound/smells/feels. + var/message_mode = FALSE // If all options for messages are shown var/vore_sound = "Gulp" // Sound when ingesting someone var/vore_verb = "ingest" // Verb for eating with this in messages var/release_verb = "expels" // Verb for releasing something from a stomach @@ -252,6 +253,7 @@ "name", "desc", "absorbed_desc", + "message_mode", "vore_sound", "vore_verb", "release_verb", @@ -1702,6 +1704,7 @@ //// Non-object variables dupe.name = name dupe.desc = desc + dupe.message_mode = message_mode dupe.absorbed_desc = absorbed_desc dupe.vore_sound = vore_sound dupe.vore_verb = vore_verb diff --git a/code/modules/vore/eating/exportpanel_vr.dm b/code/modules/vore/eating/exportpanel_vr.dm index 97aec1653c..03df144bcc 100644 --- a/code/modules/vore/eating/exportpanel_vr.dm +++ b/code/modules/vore/eating/exportpanel_vr.dm @@ -51,6 +51,7 @@ addons.Add(flag_name) belly_data["addons"] = addons belly_data["item_mode"] = B.item_digest_mode + belly_data["message_mode"] = B.message_mode // Messages belly_data["struggle_messages_outside"] = list() diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm index 9adeadccdf..bb59b7c7ad 100644 --- a/code/modules/vore/eating/vorepanel_vr.dm +++ b/code/modules/vore/eating/vorepanel_vr.dm @@ -186,6 +186,7 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono", var/obj/belly/selected = host.vore_selected selected_list = list( "belly_name" = selected.name, + "message_mode" = selected.message_mode, "is_wet" = selected.is_wet, "wet_loop" = selected.wet_loop, "mode" = selected.digest_mode, @@ -949,6 +950,9 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono", host.vore_selected.name = new_name . = TRUE + if("b_message_mode") + host.vore_selected.message_mode = !host.vore_selected.message_mode + . = TRUE if("b_wetness") host.vore_selected.is_wet = !host.vore_selected.is_wet . = TRUE diff --git a/tgui/packages/tgui/interfaces/VorePanel.jsx b/tgui/packages/tgui/interfaces/VorePanel.jsx index 377b8e306c..6471013b1b 100644 --- a/tgui/packages/tgui/interfaces/VorePanel.jsx +++ b/tgui/packages/tgui/interfaces/VorePanel.jsx @@ -333,7 +333,16 @@ const VoreSelectedBellyDescriptions = (props) => { const { act } = useBackend(); const { belly } = props; - const { verb, release_verb, desc, absorbed_desc } = belly; + const { + verb, + release_verb, + desc, + absorbed_desc, + mode, + message_mode, + escapable, + interacts, + } = belly; return ( @@ -373,6 +382,19 @@ const VoreSelectedBellyDescriptions = (props) => { {release_verb} + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {message_mode || escapable ? ( + <> + + + {(message_mode || + !!interacts.transferlocation || + !!interacts.transferlocation_secondary) && ( + + )} + {(message_mode || + interacts.digestchance > 0 || + interacts.absorbchance > 0) && ( + + )} + + ) : ( + '' + )} + {(message_mode || + mode === 'Digest' || + mode === 'Selective' || + mode === 'Absorb' || + mode === 'Unabsorb') && ( + + )} + + + + + + ); +}; + +const VoreSelectedBellyDescriptionsEscape = (props) => { + const { act } = useBackend(); + + const { message_mode, interacts } = props; + + return ( + + + + {(message_mode || interacts.escapechance > 0) && ( + <> + + + + + )} + + + + + + + + {(message_mode || interacts.escapechance_absorbed > 0) && ( + <> + + + + + )} + + + + ); +}; + +const VoreSelectedBellyDescriptionsTransfer = (props) => { + const { act } = useBackend(); + + const { message_mode, interacts } = props; + + return ( + + {(message_mode || !!interacts.transferlocation) && ( + <> + + + + )} + {(message_mode || !!interacts.transferlocation_secondary) && ( + <> + + + + )} + + ); +}; + +const VoreSelectedBellyDescriptionsInteractionChance = (props) => { + const { act } = useBackend(); + + const { message_mode, interacts } = props; + + return ( + + {(message_mode || interacts.digestchance > 0) && ( + <> + + + + )} + {(message_mode || interacts.absorbchance > 0) && ( + <> + + + + )} + + ); +}; + +const VoreSelectedBellyDescriptionsBellymode = (props) => { + const { act } = useBackend(); + + const { message_mode, mode } = props; + + return ( + + {(message_mode || mode === 'Digest' || mode === 'Selective') && ( + <> + + + + )} + {(message_mode || mode === 'Absorb' || mode === 'Selective') && ( + <> + + + + )} + {(message_mode || mode === 'Unabsorb') && ( + <> + + + + )} + + ); +}; + +const VoreSelectedBellyDescriptionsIdle = (props) => { + const { act } = useBackend(); + + const { message_mode, mode } = props; + + return ( + + {(message_mode || mode === 'Hold' || mode === 'Selective') && ( + <> + + + + )} + {(message_mode || mode === 'Digest' || mode === 'Selective') && ( + + )} + {(message_mode || mode === 'Absorb' || mode === 'Selective') && ( + + )} + {(message_mode || mode === 'Unabsorb') && ( + + )} + {(message_mode || mode === 'Drain' || mode === 'Selective') && ( + + )} + {(message_mode || mode === 'Heal') && ( + + )} + {(message_mode || mode === 'Size Steal') && ( + + )} + {(message_mode || mode === 'Shrink') && ( + + )} + {(message_mode || mode === 'Grow') && ( + + )} + {(message_mode || mode === 'Encase In Egg') && ( + + )} + + ); +}; + const VoreSelectedBellyOptions = (props) => { const { act, data } = useBackend(); diff --git a/tgui/packages/tgui/interfaces/VorePanelExport.tsx b/tgui/packages/tgui/interfaces/VorePanelExport.tsx index adc7e0f144..edba067fe9 100644 --- a/tgui/packages/tgui/interfaces/VorePanelExport.tsx +++ b/tgui/packages/tgui/interfaces/VorePanelExport.tsx @@ -66,6 +66,7 @@ type Belly = { // General Information name: string; desc: string; + message_mode: BooleanLike; absorbed_desc: string; vore_verb: string; release_verb: string; @@ -181,6 +182,7 @@ const generateBellyString = (belly: Belly, index: number) => { // General Information name, desc, + message_mode, absorbed_desc, vore_verb, release_verb, @@ -324,6 +326,7 @@ const generateBellyString = (belly: Belly, index: number) => { result += '
'; result += '== Messages ==
'; + result +='Show All Interactive Messages: ' + (message_mode ? 'Yes' : 'No') + '
'; result += '
'; // Start Div messagesTabpanel result += '
'; result += '
'; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index ab5d0bc5ce..9a362cf9b5 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(i,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](i):i instanceof l}function s(i){"@swc/helpers - typeof";return i&&typeof Symbol!="undefined"&&i.constructor===Symbol?"symbol":typeof i}var t=n(61358),r=n(20686);function a(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,E=1;El}return!1}function y(i,l,E,T,L,$,ee){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=i,this.type=l,this.sanitizeURL=$,this.removeEmptyString=ee}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){O[i]=new y(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var l=i[0];O[l]=new y(l,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){O[i]=new y(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){O[i]=new y(i,2,!1,i,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(i){O[i]=new y(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){O[i]=new y(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){O[i]=new y(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){O[i]=new y(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){O[i]=new y(i,5,!1,i.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(i){return i[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(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){O[i]=new y(i,1,!1,i.toLowerCase(),null,!1,!1)}),O.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){O[i]=new y(i,1,!1,i.toLowerCase(),null,!0,!0)});function P(i,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2oe||L[ee]!==$[oe]){var fe="\n"+L[ee].replace(" at new "," at ");return i.displayName&&fe.includes("")&&(fe=fe.replace("",i.displayName)),fe}while(1<=ee&&0<=oe);break}}}finally{ce=!1,Error.prepareStackTrace=E}return(i=i?i.displayName||i.name:"")?te(i):""}function me(i){switch(i.tag){case 5:return te(i.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return i=ue(i.type,!1),i;case 11:return i=ue(i.type.render,!1),i;case 1:return i=ue(i.type,!0),i;default:return""}}function xe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case X:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case F:return(i.displayName||"Context")+".Consumer";case k:return(i._context.displayName||"Context")+".Provider";case W:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Q:return l=i.displayName||null,l!==null?l:xe(i.type)||"Memo";case Z:l=i._payload,i=i._init;try{return xe(i(l))}catch(E){}}return null}function ve(i){var l=i.type;switch(i.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 i=l.render,i=i.displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"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 ge(i){switch(typeof i=="undefined"?"undefined":s(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function we(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Qe(i){var l=we(i)?"checked":"value",E=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),T=""+i[l];if(!i.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,$=E.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return L.call(this)},set:function(oe){T=""+oe,$.call(this,oe)}}),Object.defineProperty(i,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(oe){T=""+oe},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Me(i){i._valueTracker||(i._valueTracker=Qe(i))}function Pe(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return i&&(T=we(i)?i.checked?"true":"false":i.value),i=T,i!==E?(l.setValue(i),!0):!1}function Le(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(l){return i.body}}function vn(i,l){var E=l.checked;return q({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:i._wrapperState.initialChecked})}function gn(i,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=ge(l.value!=null?l.value:E),i._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function un(i,l){l=l.checked,l!=null&&P(i,"checked",l,!1)}function ln(i,l){un(i,l);var E=ge(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&i.value===""||i.value!=E)&&(i.value=""+E):i.value!==""+E&&(i.value=""+E);else if(T==="submit"||T==="reset"){i.removeAttribute("value");return}l.hasOwnProperty("value")?_e(i,l.type,E):l.hasOwnProperty("defaultValue")&&_e(i,l.type,ge(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function He(i,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=""+i._wrapperState.initialValue,E||l===i.value||(i.value=l),i.defaultValue=l}E=i.name,E!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,E!==""&&(i.name=E)}function _e(i,l,E){(l!=="number"||Le(i.ownerDocument)!==i)&&(E==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+E&&(i.defaultValue=""+E))}var De=Array.isArray;function Ne(i,l,E,T){if(i=i.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=On.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}});function dn(i,l){if(l){var E=i.firstChild;if(E&&E===i.lastChild&&E.nodeType===3){E.nodeValue=l;return}}i.textContent=l}var Ve={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},Ce=["Webkit","ms","Moz","O"];Object.keys(Ve).forEach(function(i){Ce.forEach(function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),Ve[l]=Ve[i]})});function Ze(i,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ve.hasOwnProperty(i)&&Ve[i]?(""+l).trim():l+"px"}function pn(i,l){i=i.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Ze(E,l[E],T);E==="float"&&(E="cssFloat"),T?i.setProperty(E,L):i[E]=L}}var _n=q({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 $n(i,l){if(l){if(_n[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(a(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(a(61))}if(l.style!=null&&typeof l.style!="object")throw Error(a(62))}}function rt(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){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 Wn=null;function ht(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Lt=null,Yt=null,Qt=null;function gi(i){if(i=Wi(i)){if(typeof Lt!="function")throw Error(a(280));var l=i.stateNode;l&&(l=oi(l),Lt(i.stateNode,i.type,l))}}function ji(i){Yt?Qt?Qt.push(i):Qt=[i]:Yt=i}function yi(){if(Yt){var i=Yt,l=Qt;if(Qt=Yt=null,gi(i),l)for(i=0;i>>=0,i===0?32:31-($o(i)/Wo|0)|0}var ur=64,oa=4194304;function Ii(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function sa(i,l){var E=i.pendingLanes;if(E===0)return 0;var T=0,L=i.suspendedLanes,$=i.pingedLanes,ee=E&268435455;if(ee!==0){var oe=ee&~L;oe!==0?T=Ii(oe):($&=ee,$!==0&&(T=Ii($)))}else ee=E&~L,ee!==0?T=Ii(ee):$!==0&&(T=Ii($));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,$=l&-l,L>=$||L===16&&($&4194240)!==0))return l;if(T&4&&(T|=E&16),l=i.entangledLanes,l!==0)for(i=i.entanglements,l&=T;0E;E++)l.push(i);return l}function Oi(i,l,E){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,l=31-Dt(l),i[l]=E}function il(i,l){var E=i.pendingLanes&~l;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=l,i.mutableReadLanes&=l,i.entangledLanes&=l,l=i.entanglements;var T=i.eventTimes;for(i=i.expirationTimes;0=fr),cs=" ",vl=!1;function po(i,l){switch(i){case"keyup":return hl.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ml(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var hr=!1;function gc(i,l){switch(i){case"compositionend":return ml(l);case"keypress":return l.which!==32?null:(vl=!0,cs);case"textInput":return i=l.data,i===cs&&vl?null:i;default:return null}}function jc(i,l){if(hr)return i==="compositionend"||!xo&&po(i,l)?(i=Jo(),ha=Zt=jt=null,hr=!1,i):null;switch(i){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-i};i=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=Ea(E)}}function fs(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?fs(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function hs(){for(var i=window,l=Le();e(l,i.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)i=l.contentWindow;else break;l=Le(i.document)}return l}function vs(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function ms(i){var l=hs(),E=i.focusedElem,T=i.selectionRange;if(l!==E&&E&&E.ownerDocument&&fs(E.ownerDocument.documentElement,E)){if(T!==null&&vs(E)){if(l=T.start,i=T.end,i===void 0&&(i=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(i,E.value.length);else if(i=(l=E.ownerDocument||document)&&l.defaultView||window,i.getSelection){i=i.getSelection();var L=E.textContent.length,$=Math.min(T.start,L);T=T.end===void 0?$:Math.min(T.end,L),!i.extend&&$>T&&(L=T,T=$,$=L),L=Ia(E,$);var ee=Ia(E,T);L&&ee&&(i.rangeCount!==1||i.anchorNode!==L.node||i.anchorOffset!==L.offset||i.focusNode!==ee.node||i.focusOffset!==ee.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),i.removeAllRanges(),$>T?(i.addRange(l),i.extend(ee.node,ee.offset)):(l.setEnd(ee.node,ee.offset),i.addRange(l)))}}for(l=[],i=E;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Bi=null,Ki=null,Oa=null,xs=!1;function yl(i,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;xs||Bi==null||Bi!==Le(T)||(T=Bi,"selectionStart"in T&&vs(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}),Oa&&Ut(Oa,T)||(Oa=T,T=Ma(Ki,"onSelect"),0Kr||(i.current=wa[Kr],wa[Kr]=null,Kr--)}function An(i,l){Kr++,wa[Kr]=i.current,i.current=l}var xr={},Jn=mr(xr),qn=mr(!1),Lr=xr;function $t(i,l){var E=i.type.contextTypes;if(!E)return xr;var T=i.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},$;for($ in E)L[$]=l[$];return T&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=L),L}function st(i){return i=i.childContextTypes,i!=null}function Mo(){Kn(qn),Kn(Jn)}function So(i,l,E){if(Jn.current!==xr)throw Error(a(168));An(Jn,l),An(qn,E)}function Ba(i,l,E){var T=i.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(a(108,ve(i)||"Unknown",L));return q({},E,T)}function Ka(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xr,Lr=Jn.current,An(Jn,i),An(qn,qn.current),!0}function Os(i,l,E){var T=i.stateNode;if(!T)throw Error(a(169));E?(i=Ba(i,l,Lr),T.__reactInternalMemoizedMergedChildContext=i,Kn(qn),Kn(Jn),An(Jn,i)):Kn(qn),An(qn,E)}var wt=null,La=!1,ka=!1;function Ml(i){wt===null?wt=[i]:wt.push(i)}function Na(i){La=!0,Ml(i)}function tr(){if(!ka&&wt!==null){ka=!0;var i=0,l=Pn;try{var E=wt;for(Pn=1;i>=ee,L-=ee,pr=1<<32-Dt(l)+L|E<jn?(tt=xn,xn=null):tt=xn.sibling;var bn=Re(pe,xn,je[jn],ze);if(bn===null){xn===null&&(xn=tt);break}i&&xn&&bn.alternate===null&&l(pe,xn),he=$(bn,he,jn),mn===null?sn=bn:mn.sibling=bn,mn=bn,xn=tt}if(jn===je.length)return E(pe,xn),Rn&&rr(pe,jn),sn;if(xn===null){for(;jnjn?(tt=xn,xn=null):tt=xn.sibling;var pi=Re(pe,xn,bn.value,ze);if(pi===null){xn===null&&(xn=tt);break}i&&xn&&pi.alternate===null&&l(pe,xn),he=$(pi,he,jn),mn===null?sn=pi:mn.sibling=pi,mn=pi,xn=tt}if(bn.done)return E(pe,xn),Rn&&rr(pe,jn),sn;if(xn===null){for(;!bn.done;jn++,bn=je.next())bn=Ke(pe,bn.value,ze),bn!==null&&(he=$(bn,he,jn),mn===null?sn=bn:mn.sibling=bn,mn=bn);return Rn&&rr(pe,jn),sn}for(xn=T(pe,xn);!bn.done;jn++,bn=je.next())bn=Ye(xn,pe,jn,bn.value,ze),bn!==null&&(i&&bn.alternate!==null&&xn.delete(bn.key===null?jn:bn.key),he=$(bn,he,jn),mn===null?sn=bn:mn.sibling=bn,mn=bn);return i&&xn.forEach(function(md){return l(pe,md)}),Rn&&rr(pe,jn),sn}function Vn(pe,he,je,ze){if(typeof je=="object"&&je!==null&&je.type===R&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case M:e:{for(var sn=je.key,mn=he;mn!==null;){if(mn.key===sn){if(sn=je.type,sn===R){if(mn.tag===7){E(pe,mn.sibling),he=L(mn,je.props.children),he.return=pe,pe=he;break e}}else if(mn.elementType===sn||typeof sn=="object"&&sn!==null&&sn.$$typeof===Z&&Ee(sn)===mn.type){E(pe,mn.sibling),he=L(mn,je.props),he.ref=se(pe,mn,je),he.return=pe,pe=he;break e}E(pe,mn);break}else l(pe,mn);mn=mn.sibling}je.type===R?(he=Qi(je.props.children,pe.mode,ze,je.key),he.return=pe,pe=he):(ze=Fs(je.type,je.key,je.props,null,pe.mode,ze),ze.ref=se(pe,he,je),ze.return=pe,pe=ze)}return ee(pe);case A:e:{for(mn=je.key;he!==null;){if(he.key===mn)if(he.tag===4&&he.stateNode.containerInfo===je.containerInfo&&he.stateNode.implementation===je.implementation){E(pe,he.sibling),he=L(he,je.children||[]),he.return=pe,pe=he;break e}else{E(pe,he);break}else l(pe,he);he=he.sibling}he=lc(je,pe.mode,ze),he.return=pe,pe=he}return ee(pe);case Z:return mn=je._init,Vn(pe,he,mn(je._payload),ze)}if(De(je))return en(pe,he,je,ze);if(V(je))return tn(pe,he,je,ze);de(pe,je)}return typeof je=="string"&&je!==""||typeof je=="number"?(je=""+je,he!==null&&he.tag===6?(E(pe,he.sibling),he=L(he,je),he.return=pe,pe=he):(E(pe,he),he=sc(je,pe.mode,ze),he.return=pe,pe=he),ee(pe)):E(pe,he)}return Vn}var ye=be(!0),Se=be(!1),Ae=mr(null),ke=null,Ue=null,Ge=null;function fn(){Ge=Ue=ke=null}function Fe(i){var l=Ae.current;Kn(Ae),i._currentValue=l}function an(i,l,E){for(;i!==null;){var T=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,T!==null&&(T.childLanes|=l)):T!==null&&(T.childLanes&l)!==l&&(T.childLanes|=l),i===E)break;i=i.return}}function rn(i,l){ke=i,Ge=Ue=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&l&&(bt=!0),i.firstContext=null)}function nn(i){var l=i._currentValue;if(Ge!==i)if(i={context:i,memoizedValue:l,next:null},Ue===null){if(ke===null)throw Error(a(308));Ue=i,ke.dependencies={lanes:0,firstContext:i}}else Ue=Ue.next=i;return l}var cn=null;function yn(i){cn===null?cn=[i]:cn.push(i)}function hn(i,l,E,T){var L=l.interleaved;return L===null?(E.next=E,yn(l)):(E.next=L.next,L.next=E),l.interleaved=E,on(i,T)}function on(i,l){i.lanes|=l;var E=i.alternate;for(E!==null&&(E.lanes|=l),E=i,i=i.return;i!==null;)i.childLanes|=l,E=i.alternate,E!==null&&(E.childLanes|=l),E=i,i=i.return;return E.tag===3?E.stateNode:null}var qe=!1;function wn(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Un(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Mn(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function Sn(i,l,E){var T=i.updateQueue;if(T===null)return null;if(T=T.shared,In&2){var L=T.pending;return L===null?l.next=l:(l.next=L.next,L.next=l),T.pending=l,on(i,E)}return L=T.interleaved,L===null?(l.next=l,yn(T)):(l.next=L.next,L.next=l),T.interleaved=l,on(i,E)}function Xn(i,l,E){if(l=l.updateQueue,l!==null&&(l=l.shared,(E&4194240)!==0)){var T=l.lanes;T&=i.pendingLanes,E|=T,l.lanes=E,to(i,E)}}function Ur(i,l){var E=i.updateQueue,T=i.alternate;if(T!==null&&(T=T.updateQueue,E===T)){var L=null,$=null;if(E=E.firstBaseUpdate,E!==null){do{var ee={eventTime:E.eventTime,lane:E.lane,tag:E.tag,payload:E.payload,callback:E.callback,next:null};$===null?L=$=ee:$=$.next=ee,E=E.next}while(E!==null);$===null?L=$=l:$=$.next=l}else L=$=l;E={baseState:T.baseState,firstBaseUpdate:L,lastBaseUpdate:$,shared:T.shared,effects:T.effects},i.updateQueue=E;return}i=E.lastBaseUpdate,i===null?E.firstBaseUpdate=l:i.next=l,E.lastBaseUpdate=l}function Ot(i,l,E,T){var L=i.updateQueue;qe=!1;var $=L.firstBaseUpdate,ee=L.lastBaseUpdate,oe=L.shared.pending;if(oe!==null){L.shared.pending=null;var fe=oe,Ie=fe.next;fe.next=null,ee===null?$=Ie:ee.next=Ie,ee=fe;var Oe=i.alternate;Oe!==null&&(Oe=Oe.updateQueue,oe=Oe.lastBaseUpdate,oe!==ee&&(oe===null?Oe.firstBaseUpdate=Ie:oe.next=Ie,Oe.lastBaseUpdate=fe))}if($!==null){var Ke=L.baseState;ee=0,Oe=Ie=fe=null,oe=$;do{var Re=oe.lane,Ye=oe.eventTime;if((T&Re)===Re){Oe!==null&&(Oe=Oe.next={eventTime:Ye,lane:0,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null});e:{var en=i,tn=oe;switch(Re=l,Ye=E,tn.tag){case 1:if(en=tn.payload,typeof en=="function"){Ke=en.call(Ye,Ke,Re);break e}Ke=en;break e;case 3:en.flags=en.flags&-65537|128;case 0:if(en=tn.payload,Re=typeof en=="function"?en.call(Ye,Ke,Re):en,Re==null)break e;Ke=q({},Ke,Re);break e;case 2:qe=!0}}oe.callback!==null&&oe.lane!==0&&(i.flags|=64,Re=L.effects,Re===null?L.effects=[oe]:Re.push(oe))}else Ye={eventTime:Ye,lane:Re,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Oe===null?(Ie=Oe=Ye,fe=Ke):Oe=Oe.next=Ye,ee|=Re;if(oe=oe.next,oe===null){if(oe=L.shared.pending,oe===null)break;Re=oe,oe=Re.next,Re.next=null,L.lastBaseUpdate=Re,L.shared.pending=null}}while(!0);if(Oe===null&&(fe=Ke),L.baseState=fe,L.firstBaseUpdate=Ie,L.lastBaseUpdate=Oe,l=L.shared.interleaved,l!==null){L=l;do ee|=L.lane,L=L.next;while(L!==l)}else $===null&&(L.shared.lanes=0);Xi|=ee,i.lanes=ee,i.memoizedState=Ke}}function Fi(i,l,E){if(i=l.effects,l.effects=null,i!==null)for(l=0;lE?E:4,i(!0);var T=To.transition;To.transition={};try{i(!1),l()}finally{Pn=E,To.transition=T}}function Nc(){return Xt().memoizedState}function Nu(i,l,E){var T=vi(i);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Uc(i))zc(l,E);else if(E=hn(i,l,E,T),E!==null){var L=xt();lr(E,i,T,L),$c(E,l,T)}}function Uu(i,l,E){var T=vi(i),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Uc(i))zc(l,L);else{var $=i.alternate;if(i.lanes===0&&($===null||$.lanes===0)&&($=l.lastRenderedReducer,$!==null))try{var ee=l.lastRenderedState,oe=$(ee,E);if(L.hasEagerState=!0,L.eagerState=oe,Rt(oe,ee)){var fe=l.interleaved;fe===null?(L.next=L,yn(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(Ie){}finally{}E=hn(i,l,L,T),E!==null&&(L=xt(),lr(E,i,T,L),$c(E,l,T))}}function Uc(i){var l=i.alternate;return i===kn||l!==null&&l===kn}function zc(i,l){Er=Vt=!0;var E=i.pending;E===null?l.next=l:(l.next=E.next,E.next=l),i.pending=l}function $c(i,l,E){if(E&4194240){var T=l.lanes;T&=i.pendingLanes,E|=T,l.lanes=E,to(i,E)}}var Ds={readContext:nn,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},zu={readContext:nn,useCallback:function(l,E){return Bt().memoizedState=[l,E===void 0?null:E],l},useContext:nn,useEffect:Tc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Ms(4194308,4,wc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Ms(4194308,4,l,E)},useInsertionEffect:function(l,E){return Ms(4,2,l,E)},useMemo:function(l,E){var T=Bt();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=Bt();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=Nu.bind(null,kn,l),[L.memoizedState,l]},useRef:function(l){var E=Bt();return l={current:l},E.memoizedState=l},useState:Sc,useDebugValue:wl,useDeferredValue:function(l){return Bt().memoizedState=l},useTransition:function(){var l=Sc(!1),E=l[0];return l=ku.bind(null,l[1]),Bt().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=kn,$=Bt();if(Rn){if(T===void 0)throw Error(a(407));T=T()}else{if(T=E(),nt===null)throw Error(a(349));Cr&30||Oc(L,E,T)}$.memoizedState=T;var ee={value:T,getSnapshot:E};return $.queue=ee,Tc(Pc.bind(null,L,ee,l),[l]),L.flags|=2048,Ro(9,bc.bind(null,L,ee,T,E),void 0,null),T},useId:function(){var l=Bt(),E=nt.identifierPrefix;if(Rn){var T=gr,L=pr;T=(L&~(1<<32-Dt(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=ui++,0<\/script>",i=i.removeChild(i.firstChild)):typeof T.is=="string"?i=ee.createElement(E,{is:T.is}):(i=ee.createElement(E),E==="select"&&(ee=i,T.multiple?ee.multiple=!0:T.size&&(ee.size=T.size))):i=ee.createElementNS(i,E),i[zt]=l,i[wr]=T,lu(i,l,!1,!1),l.stateNode=i;e:{switch(ee=rt(E,T),E){case"dialog":Bn("cancel",i),Bn("close",i),L=T;break;case"iframe":case"object":case"embed":Bn("load",i),L=T;break;case"video":case"audio":for(L=0;LYa&&(l.flags|=128,T=!0,wo($,!1),l.lanes=4194304)}else{if(!T)if(i=ci(ee),i!==null){if(l.flags|=128,T=!0,E=i.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),wo($,!0),$.tail===null&&$.tailMode==="hidden"&&!ee.alternate&&!Rn)return dt(l),null}else 2*Ln()-$.renderingStartTime>Ya&&E!==1073741824&&(l.flags|=128,T=!0,wo($,!1),l.lanes=4194304);$.isBackwards?(ee.sibling=l.child,l.child=ee):(E=$.last,E!==null?E.sibling=ee:l.child=ee,$.last=ee)}return $.tail!==null?(l=$.tail,$.rendering=l,$.tail=l.sibling,$.renderingStartTime=Ln(),l.sibling=null,E=Nn.current,An(Nn,T?E&1|2:E&1),l):(dt(l),null);case 22:case 23:return ic(),T=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?Kt&1073741824&&(dt(l),l.subtreeFlags&6&&(l.flags|=8192)):dt(l),null;case 24:return null;case 25:return null}throw Error(a(156,l.tag))}function Yu(i,l){switch(Ps(l),l.tag){case 1:return st(l.type)&&Mo(),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return ir(),Kn(qn),Kn(Jn),za(),i=l.flags,i&65536&&!(i&128)?(l.flags=i&-65537|128,l):null;case 5:return Vi(l),null;case 13:if(Kn(Nn),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(a(340));ne()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return Kn(Nn),null;case 4:return ir(),null;case 10:return Fe(l.type._context),null;case 22:case 23:return ic(),null;case 24:return null;default:return null}}var ws=!1,ft=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Ga(i,l){var E=i.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){zn(i,l,T)}else E.current=null}function Xl(i,l,E){try{E()}catch(T){zn(i,l,T)}}var du=!1;function Zu(i,l){if(Oo=oo,i=hs(),vs(i)){if("selectionStart"in i)var E={start:i.selectionStart,end:i.selectionEnd};else e:{E=(E=i.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,$=T.focusNode;T=T.focusOffset;try{E.nodeType,$.nodeType}catch(ze){E=null;break e}var ee=0,oe=-1,fe=-1,Ie=0,Oe=0,Ke=i,Re=null;n:for(;;){for(var Ye;Ke!==E||L!==0&&Ke.nodeType!==3||(oe=ee+L),Ke!==$||T!==0&&Ke.nodeType!==3||(fe=ee+T),Ke.nodeType===3&&(ee+=Ke.nodeValue.length),(Ye=Ke.firstChild)!==null;)Re=Ke,Ke=Ye;for(;;){if(Ke===i)break n;if(Re===E&&++Ie===L&&(oe=ee),Re===$&&++Oe===T&&(fe=ee),(Ye=Ke.nextSibling)!==null)break;Ke=Re,Re=Ke.parentNode}Ke=Ye}E=oe===-1||fe===-1?null:{start:oe,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(bo={focusedElem:i,selectionRange:E},oo=!1,Je=l;Je!==null;)if(l=Je,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,Je=i;else for(;Je!==null;){l=Je;try{var en=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(en!==null){var tn=en.memoizedProps,Vn=en.memoizedState,pe=l.stateNode,he=pe.getSnapshotBeforeUpdate(l.elementType===l.type?tn:ar(l.type,tn),Vn);pe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var je=l.stateNode.containerInfo;je.nodeType===1?je.textContent="":je.nodeType===9&&je.documentElement&&je.removeChild(je.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(ze){zn(l,l.return,ze)}if(i=l.sibling,i!==null){i.return=l.return,Je=i;break}Je=l.return}return en=du,du=!1,en}function Bo(i,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&i)===i){var $=L.destroy;L.destroy=void 0,$!==void 0&&Xl(l,E,$)}L=L.next}while(L!==T)}}function Bs(i,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&i)===i){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Gl(i){var l=i.ref;if(l!==null){var E=i.stateNode;switch(i.tag){case 5:i=E;break;default:i=E}typeof l=="function"?l(i):l.current=i}}function fu(i){var l=i.alternate;l!==null&&(i.alternate=null,fu(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&(delete l[zt],delete l[wr],delete l[$i],delete l[_l],delete l[Is])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hu(i){return i.tag===5||i.tag===3||i.tag===4}function vu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hu(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hl(i,l,E){var T=i.tag;if(T===5||T===6)i=i.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(i,l):E.insertBefore(i,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(i,E)):(l=E,l.appendChild(i)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=Sa));else if(T!==4&&(i=i.child,i!==null))for(Hl(i,l,E),i=i.sibling;i!==null;)Hl(i,l,E),i=i.sibling}function Yl(i,l,E){var T=i.tag;if(T===5||T===6)i=i.stateNode,l?E.insertBefore(i,l):E.appendChild(i);else if(T!==4&&(i=i.child,i!==null))for(Yl(i,l,E),i=i.sibling;i!==null;)Yl(i,l,E),i=i.sibling}var it=null,or=!1;function di(i,l,E){for(E=E.child;E!==null;)mu(i,l,E),E=E.sibling}function mu(i,l,E){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(aa,E)}catch(oe){}switch(E.tag){case 5:ft||Ga(E,l);case 6:var T=it,L=or;it=null,di(i,l,E),it=T,or=L,it!==null&&(or?(i=it,E=E.stateNode,i.nodeType===8?i.parentNode.removeChild(E):i.removeChild(E)):it.removeChild(E.stateNode));break;case 18:it!==null&&(or?(i=it,E=E.stateNode,i.nodeType===8?_o(i.parentNode,E):i.nodeType===1&&_o(i,E),Mi(i)):_o(it,E.stateNode));break;case 4:T=it,L=or,it=E.stateNode.containerInfo,or=!0,di(i,l,E),it=T,or=L;break;case 0:case 11:case 14:case 15:if(!ft&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var $=L,ee=$.destroy;$=$.tag,ee!==void 0&&($&2||$&4)&&Xl(E,l,ee),L=L.next}while(L!==T)}di(i,l,E);break;case 1:if(!ft&&(Ga(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(oe){zn(E,l,oe)}di(i,l,E);break;case 21:di(i,l,E);break;case 22:E.mode&1?(ft=(T=ft)||E.memoizedState!==null,di(i,l,E),ft=T):di(i,l,E);break;default:di(i,l,E)}}function xu(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var E=i.stateNode;E===null&&(E=i.stateNode=new Qu),l.forEach(function(T){var L=od.bind(null,i,T);E.has(T)||(E.add(T),T.then(L,L))})}}function sr(i,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=ee),T&=~$}if(T=L,T=Ln()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*qu(T/1960))-T,10i?16:i,hi===null)var T=!1;else{if(i=hi,hi=null,Us=0,In&6)throw Error(a(331));var L=In;for(In|=4,Je=i.current;Je!==null;){var $=Je,ee=$.child;if(Je.flags&16){var oe=$.deletions;if(oe!==null){for(var fe=0;feLn()-Jl?Hi(i,0):Zl|=E),_t(i,l)}function Su(i,l){l===0&&(i.mode&1?(l=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):l=1);var E=xt();i=on(i,l),i!==null&&(Oi(i,l,E),_t(i,E))}function ad(i){var l=i.memoizedState,E=0;l!==null&&(E=l.retryLane),Su(i,E)}function od(i,l){var E=0;switch(i.tag){case 13:var T=i.stateNode,L=i.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=i.stateNode;break;default:throw Error(a(314))}T!==null&&T.delete(l),Su(i,E)}var Du;Du=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||qn.current)bt=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return bt=!1,Gu(l,E,T);bt=!!(l.flags&131072)}else bt=!1,Rn&&E.flags&1048576&&Sl(E,Ua,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Rs(l,E),l=E.pendingProps;var $=$t(E,Jn.current);rn(E,T),$=Fa(null,E,L,l,$,T);var ee=Va();return E.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,st(L)?(ee=!0,Ka(E)):ee=!1,E.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,wn(E),$.updater=Ts,E.stateNode=$,$._reactInternals=E,Kl(E,L,l,T),E=Ul(null,E,L,!0,ee,T)):(E.tag=0,Rn&&ee&&bs(E),mt(null,E,$,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Rs(l,E),l=E.pendingProps,$=L._init,L=$(L._payload),E.type=L,$=E.tag=ld(L),l=ar(L,l),$){case 0:E=Nl(null,E,L,l,T);break e;case 1:E=tu(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,ar(L.type,l),T);break e}throw Error(a(306,L,""))}return E;case 0:return L=E.type,$=E.pendingProps,$=E.elementType===L?$:ar(L,$),Nl(l,E,L,$,T);case 1:return L=E.type,$=E.pendingProps,$=E.elementType===L?$:ar(L,$),tu(l,E,L,$,T);case 3:e:{if(ru(E),l===null)throw Error(a(387));L=E.pendingProps,ee=E.memoizedState,$=ee.element,Un(l,E),Ot(E,L,null,T);var oe=E.memoizedState;if(L=oe.element,ee.isDehydrated)if(ee={element:L,isDehydrated:!1,cache:oe.cache,pendingSuspenseBoundaries:oe.pendingSuspenseBoundaries,transitions:oe.transitions},E.updateQueue.baseState=ee,E.memoizedState=ee,E.flags&256){$=Xa(Error(a(423)),E),E=iu(l,E,L,T,$);break e}else if(L!==$){$=Xa(Error(a(424)),E),E=iu(l,E,L,T,$);break e}else for(It=qt(E.stateNode.containerInfo.firstChild),Et=E,Rn=!0,Wt=null,T=Se(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(ne(),L===$){E=Wr(l,E,T);break e}mt(l,E,L,T)}E=E.child}return E;case 5:return yr(E),l===null&&U(E),L=E.type,$=E.pendingProps,ee=l!==null?l.memoizedProps:null,oe=$.children,Da(L,$)?oe=null:ee!==null&&Da(L,ee)&&(E.flags|=32),nu(l,E),mt(l,E,oe,T),E.child;case 6:return l===null&&U(E),null;case 13:return au(l,E,T);case 4:return $r(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=ye(E,null,L,T):mt(l,E,L,T),E.child;case 11:return L=E.type,$=E.pendingProps,$=E.elementType===L?$:ar(L,$),Zc(l,E,L,$,T);case 7:return mt(l,E,E.pendingProps,T),E.child;case 8:return mt(l,E,E.pendingProps.children,T),E.child;case 12:return mt(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,$=E.pendingProps,ee=E.memoizedProps,oe=$.value,An(Ae,L._currentValue),L._currentValue=oe,ee!==null)if(Rt(ee.value,oe)){if(ee.children===$.children&&!qn.current){E=Wr(l,E,T);break e}}else for(ee=E.child,ee!==null&&(ee.return=E);ee!==null;){var fe=ee.dependencies;if(fe!==null){oe=ee.child;for(var Ie=fe.firstContext;Ie!==null;){if(Ie.context===L){if(ee.tag===1){Ie=Mn(-1,T&-T),Ie.tag=2;var Oe=ee.updateQueue;if(Oe!==null){Oe=Oe.shared;var Ke=Oe.pending;Ke===null?Ie.next=Ie:(Ie.next=Ke.next,Ke.next=Ie),Oe.pending=Ie}}ee.lanes|=T,Ie=ee.alternate,Ie!==null&&(Ie.lanes|=T),an(ee.return,T,E),fe.lanes|=T;break}Ie=Ie.next}}else if(ee.tag===10)oe=ee.type===E.type?null:ee.child;else if(ee.tag===18){if(oe=ee.return,oe===null)throw Error(a(341));oe.lanes|=T,fe=oe.alternate,fe!==null&&(fe.lanes|=T),an(oe,T,E),oe=ee.sibling}else oe=ee.child;if(oe!==null)oe.return=ee;else for(oe=ee;oe!==null;){if(oe===E){oe=null;break}if(ee=oe.sibling,ee!==null){ee.return=oe.return,oe=ee;break}oe=oe.return}ee=oe}mt(l,E,$.children,T),E=E.child}return E;case 9:return $=E.type,L=E.pendingProps.children,rn(E,T),$=nn($),L=L($),E.flags|=1,mt(l,E,L,T),E.child;case 14:return L=E.type,$=ar(L,E.pendingProps),$=ar(L.type,$),Jc(l,E,L,$,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,$=E.pendingProps,$=E.elementType===L?$:ar(L,$),Rs(l,E),E.tag=1,st(L)?(l=!0,Ka(E)):l=!1,rn(E,T),Fc(E,L,$),Kl(E,L,$,T),Ul(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(a(156,E.tag))};function Tu(i,l){return ae(i,l)}function sd(i,l,E,T){this.tag=i,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 Ht(i,l,E,T){return new sd(i,l,E,T)}function oc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ld(i){if(typeof i=="function")return oc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===Q)return 14}return 2}function xi(i,l){var E=i.alternate;return E===null?(E=Ht(i.tag,l,i.key,i.mode),E.elementType=i.elementType,E.type=i.type,E.stateNode=i.stateNode,E.alternate=i,i.alternate=E):(E.pendingProps=l,E.type=i.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=i.flags&14680064,E.childLanes=i.childLanes,E.lanes=i.lanes,E.child=i.child,E.memoizedProps=i.memoizedProps,E.memoizedState=i.memoizedState,E.updateQueue=i.updateQueue,l=i.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=i.sibling,E.index=i.index,E.ref=i.ref,E}function Fs(i,l,E,T,L,$){var ee=2;if(T=i,typeof i=="function")oc(i)&&(ee=1);else if(typeof i=="string")ee=5;else e:switch(i){case R:return Qi(E.children,L,$,l);case K:ee=8,L|=8;break;case N:return i=Ht(12,E,l,L|2),i.elementType=N,i.lanes=$,i;case J:return i=Ht(13,E,l,L),i.elementType=J,i.lanes=$,i;case X:return i=Ht(19,E,l,L),i.elementType=X,i.lanes=$,i;case G:return Vs(E,L,$,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:ee=10;break e;case F:ee=9;break e;case W:ee=11;break e;case Q:ee=14;break e;case Z:ee=16,T=null;break e}throw Error(a(130,i==null?i:typeof i=="undefined"?"undefined":s(i),""))}return l=Ht(ee,E,l,L),l.elementType=i,l.type=T,l.lanes=$,l}function Qi(i,l,E,T){return i=Ht(7,i,T,l),i.lanes=E,i}function Vs(i,l,E,T){return i=Ht(22,i,T,l),i.elementType=G,i.lanes=E,i.stateNode={isHidden:!1},i}function sc(i,l,E){return i=Ht(6,i,null,l),i.lanes=E,i}function lc(i,l,E){return l=Ht(4,i.children!==null?i.children:[],i.key,l),l.lanes=E,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function cd(i,l,E,T,L){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function cc(i,l,E,T,L,$,ee,oe,fe){return i=new cd(i,l,E,oe,fe),l===1?(l=1,$===!0&&(l|=8)):l=0,$=Ht(3,null,null,l),i.current=$,$.stateNode=i,$.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},wn($),i}function ud(i,l,E){var T=3l}return!1}function y(i,l,E,T,L,z,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=i,this.type=l,this.sanitizeURL=z,this.removeEmptyString=q}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){O[i]=new y(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var l=i[0];O[l]=new y(l,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){O[i]=new y(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){O[i]=new y(i,2,!1,i,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(i){O[i]=new y(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){O[i]=new y(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){O[i]=new y(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){O[i]=new y(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){O[i]=new y(i,5,!1,i.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(i){return i[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(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var l=i.replace(b,I);O[l]=new y(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){O[i]=new y(i,1,!1,i.toLowerCase(),null,!1,!1)}),O.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){O[i]=new y(i,1,!1,i.toLowerCase(),null,!0,!0)});function P(i,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2oe||L[q]!==z[oe]){var fe="\n"+L[q].replace(" at new "," at ");return i.displayName&&fe.includes("")&&(fe=fe.replace("",i.displayName)),fe}while(1<=q&&0<=oe);break}}}finally{le=!1,Error.prepareStackTrace=E}return(i=i?i.displayName||i.name:"")?te(i):""}function me(i){switch(i.tag){case 5:return te(i.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return i=ce(i.type,!1),i;case 11:return i=ce(i.type.render,!1),i;case 1:return i=ce(i.type,!0),i;default:return""}}function xe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case A:return"Portal";case $:return"Profiler";case K:return"StrictMode";case ee:return"Suspense";case H:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Y:return(i.displayName||"Context")+".Consumer";case U:return(i._context.displayName||"Context")+".Provider";case Z:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return l=i.displayName||null,l!==null?l:xe(i.type)||"Memo";case F:l=i._payload,i=i._init;try{return xe(i(l))}catch(E){}}return null}function ve(i){var l=i.type;switch(i.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 i=l.render,i=i.displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"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 je(i){switch(typeof i=="undefined"?"undefined":s(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function we(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Qe(i){var l=we(i)?"checked":"value",E=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),T=""+i[l];if(!i.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,z=E.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return L.call(this)},set:function(oe){T=""+oe,z.call(this,oe)}}),Object.defineProperty(i,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(oe){T=""+oe},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function _e(i){i._valueTracker||(i._valueTracker=Qe(i))}function Pe(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return i&&(T=we(i)?i.checked?"true":"false":i.value),i=T,i!==E?(l.setValue(i),!0):!1}function Le(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(l){return i.body}}function un(i,l){var E=l.checked;return J({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:i._wrapperState.initialChecked})}function gn(i,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=je(l.value!=null?l.value:E),i._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function dn(i,l){l=l.checked,l!=null&&P(i,"checked",l,!1)}function ln(i,l){dn(i,l);var E=je(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&i.value===""||i.value!=E)&&(i.value=""+E):i.value!==""+E&&(i.value=""+E);else if(T==="submit"||T==="reset"){i.removeAttribute("value");return}l.hasOwnProperty("value")?ke(i,l.type,E):l.hasOwnProperty("defaultValue")&&ke(i,l.type,je(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function He(i,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=""+i._wrapperState.initialValue,E||l===i.value||(i.value=l),i.defaultValue=l}E=i.name,E!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,E!==""&&(i.name=E)}function ke(i,l,E){(l!=="number"||Le(i.ownerDocument)!==i)&&(E==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+E&&(i.defaultValue=""+E))}var Se=Array.isArray;function Ne(i,l,E,T){if(i=i.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=On.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}});function fn(i,l){if(l){var E=i.firstChild;if(E&&E===i.lastChild&&E.nodeType===3){E.nodeValue=l;return}}i.textContent=l}var Xe={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},Ce=["Webkit","ms","Moz","O"];Object.keys(Xe).forEach(function(i){Ce.forEach(function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),Xe[l]=Xe[i]})});function Ze(i,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Xe.hasOwnProperty(i)&&Xe[i]?(""+l).trim():l+"px"}function pn(i,l){i=i.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Ze(E,l[E],T);E==="float"&&(E="cssFloat"),T?i.setProperty(E,L):i[E]=L}}var _n=J({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 $n(i,l){if(l){if(_n[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(a(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(a(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(a(61))}if(l.style!=null&&typeof l.style!="object")throw Error(a(62))}}function rt(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){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 Wn=null;function ht(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Lt=null,Yt=null,Qt=null;function ji(i){if(i=Wi(i)){if(typeof Lt!="function")throw Error(a(280));var l=i.stateNode;l&&(l=si(l),Lt(i.stateNode,i.type,l))}}function yi(i){Yt?Qt?Qt.push(i):Qt=[i]:Yt=i}function Ci(){if(Yt){var i=Yt,l=Qt;if(Qt=Yt=null,ji(i),l)for(i=0;i>>=0,i===0?32:31-(Wo(i)/Fo|0)|0}var ur=64,sa=4194304;function Ii(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function la(i,l){var E=i.pendingLanes;if(E===0)return 0;var T=0,L=i.suspendedLanes,z=i.pingedLanes,q=E&268435455;if(q!==0){var oe=q&~L;oe!==0?T=Ii(oe):(z&=q,z!==0&&(T=Ii(z)))}else q=E&~L,q!==0?T=Ii(q):z!==0&&(T=Ii(z));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,z=l&-l,L>=z||L===16&&(z&4194240)!==0))return l;if(T&4&&(T|=E&16),l=i.entangledLanes,l!==0)for(i=i.entanglements,l&=T;0E;E++)l.push(i);return l}function Oi(i,l,E){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,l=31-Dt(l),i[l]=E}function il(i,l){var E=i.pendingLanes&~l;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=l,i.mutableReadLanes&=l,i.entangledLanes&=l,l=i.entanglements;var T=i.eventTimes;for(i=i.expirationTimes;0=fr),us=" ",ml=!1;function go(i,l){switch(i){case"keyup":return hl.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var hr=!1;function gc(i,l){switch(i){case"compositionend":return vl(l);case"keypress":return l.which!==32?null:(ml=!0,us);case"textInput":return i=l.data,i===us&&ml?null:i;default:return null}}function jc(i,l){if(hr)return i==="compositionend"||!po&&go(i,l)?(i=qo(),ma=Zt=jt=null,hr=!1,i):null;switch(i){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-i};i=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=Ia(E)}}function hs(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?hs(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function ms(){for(var i=window,l=Le();e(l,i.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)i=l.contentWindow;else break;l=Le(i.document)}return l}function vs(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function xs(i){var l=ms(),E=i.focusedElem,T=i.selectionRange;if(l!==E&&E&&E.ownerDocument&&hs(E.ownerDocument.documentElement,E)){if(T!==null&&vs(E)){if(l=T.start,i=T.end,i===void 0&&(i=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(i,E.value.length);else if(i=(l=E.ownerDocument||document)&&l.defaultView||window,i.getSelection){i=i.getSelection();var L=E.textContent.length,z=Math.min(T.start,L);T=T.end===void 0?z:Math.min(T.end,L),!i.extend&&z>T&&(L=T,T=z,z=L),L=Oa(E,z);var q=Oa(E,T);L&&q&&(i.rangeCount!==1||i.anchorNode!==L.node||i.anchorOffset!==L.offset||i.focusNode!==q.node||i.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),i.removeAllRanges(),z>T?(i.addRange(l),i.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),i.addRange(l)))}}for(l=[],i=E;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Bi=null,Ki=null,ba=null,ps=!1;function yl(i,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;ps||Bi==null||Bi!==Le(T)||(T=Bi,"selectionStart"in T&&vs(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}),ba&&Ut(ba,T)||(ba=T,T=Sa(Ki,"onSelect"),0Kr||(i.current=Ba[Kr],Ba[Kr]=null,Kr--)}function An(i,l){Kr++,Ba[Kr]=i.current,i.current=l}var xr={},Jn=vr(xr),qn=vr(!1),Lr=xr;function $t(i,l){var E=i.type.contextTypes;if(!E)return xr;var T=i.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},z;for(z in E)L[z]=l[z];return T&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=L),L}function st(i){return i=i.childContextTypes,i!=null}function So(){Kn(qn),Kn(Jn)}function Do(i,l,E){if(Jn.current!==xr)throw Error(a(168));An(Jn,l),An(qn,E)}function Ka(i,l,E){var T=i.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(a(108,ve(i)||"Unknown",L));return J({},E,T)}function La(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xr,Lr=Jn.current,An(Jn,i),An(qn,qn.current),!0}function bs(i,l,E){var T=i.stateNode;if(!T)throw Error(a(169));E?(i=Ka(i,l,Lr),T.__reactInternalMemoizedMergedChildContext=i,Kn(qn),Kn(Jn),An(Jn,i)):Kn(qn),An(qn,E)}var wt=null,ka=!1,Na=!1;function Ml(i){wt===null?wt=[i]:wt.push(i)}function Ua(i){ka=!0,Ml(i)}function tr(){if(!Na&&wt!==null){Na=!0;var i=0,l=Pn;try{var E=wt;for(Pn=1;i>=q,L-=q,pr=1<<32-Dt(l)+L|E<jn?(tt=xn,xn=null):tt=xn.sibling;var bn=Ae(pe,xn,ge[jn],$e);if(bn===null){xn===null&&(xn=tt);break}i&&xn&&bn.alternate===null&&l(pe,xn),he=z(bn,he,jn),vn===null?sn=bn:vn.sibling=bn,vn=bn,xn=tt}if(jn===ge.length)return E(pe,xn),Rn&&rr(pe,jn),sn;if(xn===null){for(;jnjn?(tt=xn,xn=null):tt=xn.sibling;var gi=Ae(pe,xn,bn.value,$e);if(gi===null){xn===null&&(xn=tt);break}i&&xn&&gi.alternate===null&&l(pe,xn),he=z(gi,he,jn),vn===null?sn=gi:vn.sibling=gi,vn=gi,xn=tt}if(bn.done)return E(pe,xn),Rn&&rr(pe,jn),sn;if(xn===null){for(;!bn.done;jn++,bn=ge.next())bn=Be(pe,bn.value,$e),bn!==null&&(he=z(bn,he,jn),vn===null?sn=bn:vn.sibling=bn,vn=bn);return Rn&&rr(pe,jn),sn}for(xn=T(pe,xn);!bn.done;jn++,bn=ge.next())bn=Ye(xn,pe,jn,bn.value,$e),bn!==null&&(i&&bn.alternate!==null&&xn.delete(bn.key===null?jn:bn.key),he=z(bn,he,jn),vn===null?sn=bn:vn.sibling=bn,vn=bn);return i&&xn.forEach(function(vd){return l(pe,vd)}),Rn&&rr(pe,jn),sn}function Vn(pe,he,ge,$e){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 M:e:{for(var sn=ge.key,vn=he;vn!==null;){if(vn.key===sn){if(sn=ge.type,sn===R){if(vn.tag===7){E(pe,vn.sibling),he=L(vn,ge.props.children),he.return=pe,pe=he;break e}}else if(vn.elementType===sn||typeof sn=="object"&&sn!==null&&sn.$$typeof===F&&Ee(sn)===vn.type){E(pe,vn.sibling),he=L(vn,ge.props),he.ref=se(pe,vn,ge),he.return=pe,pe=he;break e}E(pe,vn);break}else l(pe,vn);vn=vn.sibling}ge.type===R?(he=Qi(ge.props.children,pe.mode,$e,ge.key),he.return=pe,pe=he):($e=Vs(ge.type,ge.key,ge.props,null,pe.mode,$e),$e.ref=se(pe,he,ge),$e.return=pe,pe=$e)}return q(pe);case A:e:{for(vn=ge.key;he!==null;){if(he.key===vn)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=lc(ge,pe.mode,$e),he.return=pe,pe=he}return q(pe);case F:return vn=ge._init,Vn(pe,he,vn(ge._payload),$e)}if(Se(ge))return en(pe,he,ge,$e);if(V(ge))return tn(pe,he,ge,$e);de(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=sc(ge,pe.mode,$e),he.return=pe,pe=he),q(pe)):E(pe,he)}return Vn}var ye=be(!0),Me=be(!1),Te=vr(null),Ue=null,ze=null,Ge=null;function hn(){Ge=ze=Ue=null}function Ve(i){var l=Te.current;Kn(Te),i._currentValue=l}function an(i,l,E){for(;i!==null;){var T=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,T!==null&&(T.childLanes|=l)):T!==null&&(T.childLanes&l)!==l&&(T.childLanes|=l),i===E)break;i=i.return}}function rn(i,l){Ue=i,Ge=ze=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&l&&(bt=!0),i.firstContext=null)}function nn(i){var l=i._currentValue;if(Ge!==i)if(i={context:i,memoizedValue:l,next:null},ze===null){if(Ue===null)throw Error(a(308));ze=i,Ue.dependencies={lanes:0,firstContext:i}}else ze=ze.next=i;return l}var cn=null;function yn(i){cn===null?cn=[i]:cn.push(i)}function mn(i,l,E,T){var L=l.interleaved;return L===null?(E.next=E,yn(l)):(E.next=L.next,L.next=E),l.interleaved=E,on(i,T)}function on(i,l){i.lanes|=l;var E=i.alternate;for(E!==null&&(E.lanes|=l),E=i,i=i.return;i!==null;)i.childLanes|=l,E=i.alternate,E!==null&&(E.childLanes|=l),E=i,i=i.return;return E.tag===3?E.stateNode:null}var qe=!1;function wn(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Un(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Mn(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function Sn(i,l,E){var T=i.updateQueue;if(T===null)return null;if(T=T.shared,In&2){var L=T.pending;return L===null?l.next=l:(l.next=L.next,L.next=l),T.pending=l,on(i,E)}return L=T.interleaved,L===null?(l.next=l,yn(T)):(l.next=L.next,L.next=l),T.interleaved=l,on(i,E)}function Xn(i,l,E){if(l=l.updateQueue,l!==null&&(l=l.shared,(E&4194240)!==0)){var T=l.lanes;T&=i.pendingLanes,E|=T,l.lanes=E,ro(i,E)}}function Ur(i,l){var E=i.updateQueue,T=i.alternate;if(T!==null&&(T=T.updateQueue,E===T)){var L=null,z=null;if(E=E.firstBaseUpdate,E!==null){do{var q={eventTime:E.eventTime,lane:E.lane,tag:E.tag,payload:E.payload,callback:E.callback,next:null};z===null?L=z=q:z=z.next=q,E=E.next}while(E!==null);z===null?L=z=l:z=z.next=l}else L=z=l;E={baseState:T.baseState,firstBaseUpdate:L,lastBaseUpdate:z,shared:T.shared,effects:T.effects},i.updateQueue=E;return}i=E.lastBaseUpdate,i===null?E.firstBaseUpdate=l:i.next=l,E.lastBaseUpdate=l}function Ot(i,l,E,T){var L=i.updateQueue;qe=!1;var z=L.firstBaseUpdate,q=L.lastBaseUpdate,oe=L.shared.pending;if(oe!==null){L.shared.pending=null;var fe=oe,Ie=fe.next;fe.next=null,q===null?z=Ie:q.next=Ie,q=fe;var Oe=i.alternate;Oe!==null&&(Oe=Oe.updateQueue,oe=Oe.lastBaseUpdate,oe!==q&&(oe===null?Oe.firstBaseUpdate=Ie:oe.next=Ie,Oe.lastBaseUpdate=fe))}if(z!==null){var Be=L.baseState;q=0,Oe=Ie=fe=null,oe=z;do{var Ae=oe.lane,Ye=oe.eventTime;if((T&Ae)===Ae){Oe!==null&&(Oe=Oe.next={eventTime:Ye,lane:0,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null});e:{var en=i,tn=oe;switch(Ae=l,Ye=E,tn.tag){case 1:if(en=tn.payload,typeof en=="function"){Be=en.call(Ye,Be,Ae);break e}Be=en;break e;case 3:en.flags=en.flags&-65537|128;case 0:if(en=tn.payload,Ae=typeof en=="function"?en.call(Ye,Be,Ae):en,Ae==null)break e;Be=J({},Be,Ae);break e;case 2:qe=!0}}oe.callback!==null&&oe.lane!==0&&(i.flags|=64,Ae=L.effects,Ae===null?L.effects=[oe]:Ae.push(oe))}else Ye={eventTime:Ye,lane:Ae,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Oe===null?(Ie=Oe=Ye,fe=Be):Oe=Oe.next=Ye,q|=Ae;if(oe=oe.next,oe===null){if(oe=L.shared.pending,oe===null)break;Ae=oe,oe=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Oe===null&&(fe=Be),L.baseState=fe,L.firstBaseUpdate=Ie,L.lastBaseUpdate=Oe,l=L.shared.interleaved,l!==null){L=l;do q|=L.lane,L=L.next;while(L!==l)}else z===null&&(L.shared.lanes=0);Xi|=q,i.lanes=q,i.memoizedState=Be}}function Fi(i,l,E){if(i=l.effects,l.effects=null,i!==null)for(l=0;lE?E:4,i(!0);var T=Ao.transition;Ao.transition={};try{i(!1),l()}finally{Pn=E,Ao.transition=T}}function Nc(){return Xt().memoizedState}function Nu(i,l,E){var T=vi(i);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Uc(i))zc(l,E);else if(E=mn(i,l,E,T),E!==null){var L=xt();lr(E,i,T,L),$c(E,l,T)}}function Uu(i,l,E){var T=vi(i),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Uc(i))zc(l,L);else{var z=i.alternate;if(i.lanes===0&&(z===null||z.lanes===0)&&(z=l.lastRenderedReducer,z!==null))try{var q=l.lastRenderedState,oe=z(q,E);if(L.hasEagerState=!0,L.eagerState=oe,Rt(oe,q)){var fe=l.interleaved;fe===null?(L.next=L,yn(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(Ie){}finally{}E=mn(i,l,L,T),E!==null&&(L=xt(),lr(E,i,T,L),$c(E,l,T))}}function Uc(i){var l=i.alternate;return i===kn||l!==null&&l===kn}function zc(i,l){Er=Vt=!0;var E=i.pending;E===null?l.next=l:(l.next=E.next,E.next=l),i.pending=l}function $c(i,l,E){if(E&4194240){var T=l.lanes;T&=i.pendingLanes,E|=T,l.lanes=E,ro(i,E)}}var Ts={readContext:nn,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},zu={readContext:nn,useCallback:function(l,E){return Bt().memoizedState=[l,E===void 0?null:E],l},useContext:nn,useEffect:Tc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Ss(4194308,4,wc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Ss(4194308,4,l,E)},useInsertionEffect:function(l,E){return Ss(4,2,l,E)},useMemo:function(l,E){var T=Bt();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=Bt();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=Nu.bind(null,kn,l),[L.memoizedState,l]},useRef:function(l){var E=Bt();return l={current:l},E.memoizedState=l},useState:Sc,useDebugValue:wl,useDeferredValue:function(l){return Bt().memoizedState=l},useTransition:function(){var l=Sc(!1),E=l[0];return l=ku.bind(null,l[1]),Bt().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=kn,z=Bt();if(Rn){if(T===void 0)throw Error(a(407));T=T()}else{if(T=E(),nt===null)throw Error(a(349));Cr&30||Oc(L,E,T)}z.memoizedState=T;var q={value:T,getSnapshot:E};return z.queue=q,Tc(Pc.bind(null,L,q,l),[l]),L.flags|=2048,wo(9,bc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=Bt(),E=nt.identifierPrefix;if(Rn){var T=gr,L=pr;T=(L&~(1<<32-Dt(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=di++,0<\/script>",i=i.removeChild(i.firstChild)):typeof T.is=="string"?i=q.createElement(E,{is:T.is}):(i=q.createElement(E),E==="select"&&(q=i,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):i=q.createElementNS(i,E),i[zt]=l,i[wr]=T,lu(i,l,!1,!1),l.stateNode=i;e:{switch(q=rt(E,T),E){case"dialog":Bn("cancel",i),Bn("close",i),L=T;break;case"iframe":case"object":case"embed":Bn("load",i),L=T;break;case"video":case"audio":for(L=0;LQa&&(l.flags|=128,T=!0,Bo(z,!1),l.lanes=4194304)}else{if(!T)if(i=ui(q),i!==null){if(l.flags|=128,T=!0,E=i.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),Bo(z,!0),z.tail===null&&z.tailMode==="hidden"&&!q.alternate&&!Rn)return dt(l),null}else 2*Ln()-z.renderingStartTime>Qa&&E!==1073741824&&(l.flags|=128,T=!0,Bo(z,!1),l.lanes=4194304);z.isBackwards?(q.sibling=l.child,l.child=q):(E=z.last,E!==null?E.sibling=q:l.child=q,z.last=q)}return z.tail!==null?(l=z.tail,z.rendering=l,z.tail=l.sibling,z.renderingStartTime=Ln(),l.sibling=null,E=Nn.current,An(Nn,T?E&1|2:E&1),l):(dt(l),null);case 22:case 23:return ic(),T=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?Kt&1073741824&&(dt(l),l.subtreeFlags&6&&(l.flags|=8192)):dt(l),null;case 24:return null;case 25:return null}throw Error(a(156,l.tag))}function Yu(i,l){switch(_s(l),l.tag){case 1:return st(l.type)&&So(),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return ir(),Kn(qn),Kn(Jn),$a(),i=l.flags,i&65536&&!(i&128)?(l.flags=i&-65537|128,l):null;case 5:return Vi(l),null;case 13:if(Kn(Nn),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(a(340));re()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return Kn(Nn),null;case 4:return ir(),null;case 10:return Ve(l.type._context),null;case 22:case 23:return ic(),null;case 24:return null;default:return null}}var Bs=!1,ft=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Ha(i,l){var E=i.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){zn(i,l,T)}else E.current=null}function Xl(i,l,E){try{E()}catch(T){zn(i,l,T)}}var du=!1;function Zu(i,l){if(bo=so,i=ms(),vs(i)){if("selectionStart"in i)var E={start:i.selectionStart,end:i.selectionEnd};else e:{E=(E=i.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,z=T.focusNode;T=T.focusOffset;try{E.nodeType,z.nodeType}catch($e){E=null;break e}var q=0,oe=-1,fe=-1,Ie=0,Oe=0,Be=i,Ae=null;n:for(;;){for(var Ye;Be!==E||L!==0&&Be.nodeType!==3||(oe=q+L),Be!==z||T!==0&&Be.nodeType!==3||(fe=q+T),Be.nodeType===3&&(q+=Be.nodeValue.length),(Ye=Be.firstChild)!==null;)Ae=Be,Be=Ye;for(;;){if(Be===i)break n;if(Ae===E&&++Ie===L&&(oe=q),Ae===z&&++Oe===T&&(fe=q),(Ye=Be.nextSibling)!==null)break;Be=Ae,Ae=Be.parentNode}Be=Ye}E=oe===-1||fe===-1?null:{start:oe,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Po={focusedElem:i,selectionRange:E},so=!1,Je=l;Je!==null;)if(l=Je,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,Je=i;else for(;Je!==null;){l=Je;try{var en=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(en!==null){var tn=en.memoizedProps,Vn=en.memoizedState,pe=l.stateNode,he=pe.getSnapshotBeforeUpdate(l.elementType===l.type?tn:ar(l.type,tn),Vn);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(a(163))}}catch($e){zn(l,l.return,$e)}if(i=l.sibling,i!==null){i.return=l.return,Je=i;break}Je=l.return}return en=du,du=!1,en}function Ko(i,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&i)===i){var z=L.destroy;L.destroy=void 0,z!==void 0&&Xl(l,E,z)}L=L.next}while(L!==T)}}function Ks(i,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&i)===i){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Gl(i){var l=i.ref;if(l!==null){var E=i.stateNode;switch(i.tag){case 5:i=E;break;default:i=E}typeof l=="function"?l(i):l.current=i}}function fu(i){var l=i.alternate;l!==null&&(i.alternate=null,fu(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&(delete l[zt],delete l[wr],delete l[$i],delete l[_l],delete l[Os])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hu(i){return i.tag===5||i.tag===3||i.tag===4}function mu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hu(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hl(i,l,E){var T=i.tag;if(T===5||T===6)i=i.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(i,l):E.insertBefore(i,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(i,E)):(l=E,l.appendChild(i)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=Da));else if(T!==4&&(i=i.child,i!==null))for(Hl(i,l,E),i=i.sibling;i!==null;)Hl(i,l,E),i=i.sibling}function Yl(i,l,E){var T=i.tag;if(T===5||T===6)i=i.stateNode,l?E.insertBefore(i,l):E.appendChild(i);else if(T!==4&&(i=i.child,i!==null))for(Yl(i,l,E),i=i.sibling;i!==null;)Yl(i,l,E),i=i.sibling}var it=null,or=!1;function fi(i,l,E){for(E=E.child;E!==null;)vu(i,l,E),E=E.sibling}function vu(i,l,E){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(oa,E)}catch(oe){}switch(E.tag){case 5:ft||Ha(E,l);case 6:var T=it,L=or;it=null,fi(i,l,E),it=T,or=L,it!==null&&(or?(i=it,E=E.stateNode,i.nodeType===8?i.parentNode.removeChild(E):i.removeChild(E)):it.removeChild(E.stateNode));break;case 18:it!==null&&(or?(i=it,E=E.stateNode,i.nodeType===8?Mo(i.parentNode,E):i.nodeType===1&&Mo(i,E),Mi(i)):Mo(it,E.stateNode));break;case 4:T=it,L=or,it=E.stateNode.containerInfo,or=!0,fi(i,l,E),it=T,or=L;break;case 0:case 11:case 14:case 15:if(!ft&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var z=L,q=z.destroy;z=z.tag,q!==void 0&&(z&2||z&4)&&Xl(E,l,q),L=L.next}while(L!==T)}fi(i,l,E);break;case 1:if(!ft&&(Ha(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(oe){zn(E,l,oe)}fi(i,l,E);break;case 21:fi(i,l,E);break;case 22:E.mode&1?(ft=(T=ft)||E.memoizedState!==null,fi(i,l,E),ft=T):fi(i,l,E);break;default:fi(i,l,E)}}function xu(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var E=i.stateNode;E===null&&(E=i.stateNode=new Qu),l.forEach(function(T){var L=od.bind(null,i,T);E.has(T)||(E.add(T),T.then(L,L))})}}function sr(i,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~z}if(T=L,T=Ln()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*qu(T/1960))-T,10i?16:i,mi===null)var T=!1;else{if(i=mi,mi=null,zs=0,In&6)throw Error(a(331));var L=In;for(In|=4,Je=i.current;Je!==null;){var z=Je,q=z.child;if(Je.flags&16){var oe=z.deletions;if(oe!==null){for(var fe=0;feLn()-Jl?Hi(i,0):Zl|=E),_t(i,l)}function Su(i,l){l===0&&(i.mode&1?(l=sa,sa<<=1,!(sa&130023424)&&(sa=4194304)):l=1);var E=xt();i=on(i,l),i!==null&&(Oi(i,l,E),_t(i,E))}function ad(i){var l=i.memoizedState,E=0;l!==null&&(E=l.retryLane),Su(i,E)}function od(i,l){var E=0;switch(i.tag){case 13:var T=i.stateNode,L=i.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=i.stateNode;break;default:throw Error(a(314))}T!==null&&T.delete(l),Su(i,E)}var Du;Du=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||qn.current)bt=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return bt=!1,Gu(l,E,T);bt=!!(l.flags&131072)}else bt=!1,Rn&&E.flags&1048576&&Sl(E,za,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;ws(l,E),l=E.pendingProps;var z=$t(E,Jn.current);rn(E,T),z=Va(null,E,L,l,z,T);var q=Xa();return E.flags|=1,typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,st(L)?(q=!0,La(E)):q=!1,E.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,wn(E),z.updater=As,E.stateNode=z,z._reactInternals=E,Kl(E,L,l,T),E=Ul(null,E,L,!0,q,T)):(E.tag=0,Rn&&q&&Ps(E),vt(null,E,z,T),E=E.child),E;case 16:L=E.elementType;e:{switch(ws(l,E),l=E.pendingProps,z=L._init,L=z(L._payload),E.type=L,z=E.tag=ld(L),l=ar(L,l),z){case 0:E=Nl(null,E,L,l,T);break e;case 1:E=tu(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,ar(L.type,l),T);break e}throw Error(a(306,L,""))}return E;case 0:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:ar(L,z),Nl(l,E,L,z,T);case 1:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:ar(L,z),tu(l,E,L,z,T);case 3:e:{if(ru(E),l===null)throw Error(a(387));L=E.pendingProps,q=E.memoizedState,z=q.element,Un(l,E),Ot(E,L,null,T);var oe=E.memoizedState;if(L=oe.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:oe.cache,pendingSuspenseBoundaries:oe.pendingSuspenseBoundaries,transitions:oe.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){z=Ga(Error(a(423)),E),E=iu(l,E,L,T,z);break e}else if(L!==z){z=Ga(Error(a(424)),E),E=iu(l,E,L,T,z);break e}else for(It=qt(E.stateNode.containerInfo.firstChild),Et=E,Rn=!0,Wt=null,T=Me(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(re(),L===z){E=Wr(l,E,T);break e}vt(l,E,L,T)}E=E.child}return E;case 5:return yr(E),l===null&&k(E),L=E.type,z=E.pendingProps,q=l!==null?l.memoizedProps:null,oe=z.children,Ta(L,z)?oe=null:q!==null&&Ta(L,q)&&(E.flags|=32),nu(l,E),vt(l,E,oe,T),E.child;case 6:return l===null&&k(E),null;case 13:return au(l,E,T);case 4:return $r(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=ye(E,null,L,T):vt(l,E,L,T),E.child;case 11:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:ar(L,z),Zc(l,E,L,z,T);case 7:return vt(l,E,E.pendingProps,T),E.child;case 8:return vt(l,E,E.pendingProps.children,T),E.child;case 12:return vt(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,z=E.pendingProps,q=E.memoizedProps,oe=z.value,An(Te,L._currentValue),L._currentValue=oe,q!==null)if(Rt(q.value,oe)){if(q.children===z.children&&!qn.current){E=Wr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){oe=q.child;for(var Ie=fe.firstContext;Ie!==null;){if(Ie.context===L){if(q.tag===1){Ie=Mn(-1,T&-T),Ie.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Be=Oe.pending;Be===null?Ie.next=Ie:(Ie.next=Be.next,Be.next=Ie),Oe.pending=Ie}}q.lanes|=T,Ie=q.alternate,Ie!==null&&(Ie.lanes|=T),an(q.return,T,E),fe.lanes|=T;break}Ie=Ie.next}}else if(q.tag===10)oe=q.type===E.type?null:q.child;else if(q.tag===18){if(oe=q.return,oe===null)throw Error(a(341));oe.lanes|=T,fe=oe.alternate,fe!==null&&(fe.lanes|=T),an(oe,T,E),oe=q.sibling}else oe=q.child;if(oe!==null)oe.return=q;else for(oe=q;oe!==null;){if(oe===E){oe=null;break}if(q=oe.sibling,q!==null){q.return=oe.return,oe=q;break}oe=oe.return}q=oe}vt(l,E,z.children,T),E=E.child}return E;case 9:return z=E.type,L=E.pendingProps.children,rn(E,T),z=nn(z),L=L(z),E.flags|=1,vt(l,E,L,T),E.child;case 14:return L=E.type,z=ar(L,E.pendingProps),z=ar(L.type,z),Jc(l,E,L,z,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,z=E.pendingProps,z=E.elementType===L?z:ar(L,z),ws(l,E),E.tag=1,st(L)?(l=!0,La(E)):l=!1,rn(E,T),Fc(E,L,z),Kl(E,L,z,T),Ul(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(a(156,E.tag))};function Tu(i,l){return ta(i,l)}function sd(i,l,E,T){this.tag=i,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 Ht(i,l,E,T){return new sd(i,l,E,T)}function oc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ld(i){if(typeof i=="function")return oc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===Z)return 11;if(i===G)return 14}return 2}function pi(i,l){var E=i.alternate;return E===null?(E=Ht(i.tag,l,i.key,i.mode),E.elementType=i.elementType,E.type=i.type,E.stateNode=i.stateNode,E.alternate=i,i.alternate=E):(E.pendingProps=l,E.type=i.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=i.flags&14680064,E.childLanes=i.childLanes,E.lanes=i.lanes,E.child=i.child,E.memoizedProps=i.memoizedProps,E.memoizedState=i.memoizedState,E.updateQueue=i.updateQueue,l=i.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=i.sibling,E.index=i.index,E.ref=i.ref,E}function Vs(i,l,E,T,L,z){var q=2;if(T=i,typeof i=="function")oc(i)&&(q=1);else if(typeof i=="string")q=5;else e:switch(i){case R:return Qi(E.children,L,z,l);case K:q=8,L|=8;break;case $:return i=Ht(12,E,l,L|2),i.elementType=$,i.lanes=z,i;case ee:return i=Ht(13,E,l,L),i.elementType=ee,i.lanes=z,i;case H:return i=Ht(19,E,l,L),i.elementType=H,i.lanes=z,i;case W:return Xs(E,L,z,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case U:q=10;break e;case Y:q=9;break e;case Z:q=11;break e;case G:q=14;break e;case F:q=16,T=null;break e}throw Error(a(130,i==null?i:typeof i=="undefined"?"undefined":s(i),""))}return l=Ht(q,E,l,L),l.elementType=i,l.type=T,l.lanes=z,l}function Qi(i,l,E,T){return i=Ht(7,i,T,l),i.lanes=E,i}function Xs(i,l,E,T){return i=Ht(22,i,T,l),i.elementType=W,i.lanes=E,i.stateNode={isHidden:!1},i}function sc(i,l,E){return i=Ht(6,i,null,l),i.lanes=E,i}function lc(i,l,E){return l=Ht(4,i.children!==null?i.children:[],i.key,l),l.lanes=E,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function cd(i,l,E,T,L){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function cc(i,l,E,T,L,z,q,oe,fe){return i=new cd(i,l,E,oe,fe),l===1?(l=1,z===!0&&(l|=8)):l=0,z=Ht(3,null,null,l),i.current=z,z.stateNode=i,z.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},wn(z),i}function ud(i,l,E){var T=3=0;--q){var ie=this.tryEntries[q],te=ie.completion;if(ie.tryLoc==="root")return V("end");if(ie.tryLoc<=this.prev){var ce=r.call(ie,"catchLoc"),ue=r.call(ie,"finallyLoc");if(ce&&ue){if(this.prev=0;--V){var q=this.tryEntries[V];if(q.tryLoc<=this.prev&&r.call(q,"finallyLoc")&&this.prev=0;--H){var V=this.tryEntries[H];if(V.finallyLoc===G)return this.complete(V.completion,V.afterLoc),W(V),y}},catch:function(Z){for(var G=this.tryEntries.length-1;G>=0;--G){var H=this.tryEntries[G];if(H.tryLoc===Z){var V=H.completion;if(V.type==="throw"){var q=V.arg;W(H)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(G,H,V){return this.delegate={iterator:X(G),resultName:H,nextLoc:V},this.method==="next"&&(this.arg=o),y}},s}(_.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(_,j){"use strict";/** + */function n(V){"@swc/helpers - typeof";return V&&typeof Symbol!="undefined"&&V.constructor===Symbol?"symbol":typeof V}var e=Symbol.for("react.element"),s=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),u=Symbol.iterator;function h(V){return V===null||typeof V!="object"?null:(V=u&&V[u]||V["@@iterator"],typeof V=="function"?V:null)}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,p={};function C(V,J,ne){this.props=V,this.context=J,this.refs=p,this.updater=ne||c}C.prototype.isReactComponent={},C.prototype.setState=function(V,J){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,J,"setState")},C.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function y(){}y.prototype=C.prototype;function O(V,J,ne){this.props=V,this.context=J,this.refs=p,this.updater=ne||c}var b=O.prototype=new y;b.constructor=O,d(b,C.prototype),b.isPureReactComponent=!0;var I=Array.isArray,P=Object.prototype.hasOwnProperty,S={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function A(V,J,ne){var te,le={},ce=null,me=null;if(J!=null)for(te in J.ref!==void 0&&(me=J.ref),J.key!==void 0&&(ce=""+J.key),J)P.call(J,te)&&!M.hasOwnProperty(te)&&(le[te]=J[te]);var xe=arguments.length-2;if(xe===1)le.children=ne;else if(1=0;--J){var ne=this.tryEntries[J],te=ne.completion;if(ne.tryLoc==="root")return V("end");if(ne.tryLoc<=this.prev){var le=r.call(ne,"catchLoc"),ce=r.call(ne,"finallyLoc");if(le&&ce){if(this.prev=0;--V){var J=this.tryEntries[V];if(J.tryLoc<=this.prev&&r.call(J,"finallyLoc")&&this.prev=0;--X){var V=this.tryEntries[X];if(V.finallyLoc===W)return this.complete(V.completion,V.afterLoc),Z(V),y}},catch:function(F){for(var W=this.tryEntries.length-1;W>=0;--W){var X=this.tryEntries[W];if(X.tryLoc===F){var V=X.completion;if(V.type==="throw"){var J=V.arg;Z(X)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(W,X,V){return this.delegate={iterator:H(W),resultName:X,nextLoc:V},this.method==="next"&&(this.arg=o),y}},s}(_.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(_,j){"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 n(X,Q){var Z=X.length;X.push(Q);e:for(;0>>1,H=X[G];if(0>>1;Gt(ie,Z))tet(ce,ie)?(X[G]=ce,X[te]=Z,G=te):(X[G]=ie,X[q]=Z,G=q);else if(tet(ce,Z))X[G]=ce,X[te]=Z,G=te;else break e}}return Q}function t(X,Q){var Z=X.sortIndex-Q.sortIndex;return Z!==0?Z:X.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;j.unstable_now=function(){return r.now()}}else{var a=Date,o=a.now();j.unstable_now=function(){return a.now()-o}}var g=[],x=[],f=1,v=null,m=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 y(X){for(var Q=e(x);Q!==null;){if(Q.callback===null)s(x);else if(Q.startTime<=X)s(x),Q.sortIndex=Q.expirationTime,n(g,Q);else break;Q=e(x)}}function O(X){if(c=!1,y(X),!h)if(e(g)!==null)h=!0,W(b);else{var Q=e(x);Q!==null&&J(O,Q.startTime-X)}}function b(X,Q){h=!1,c&&(c=!1,p(S),S=-1),u=!0;var Z=m;try{for(y(Q),v=e(g);v!==null&&(!(v.expirationTime>Q)||X&&!R());){var G=v.callback;if(typeof G=="function"){v.callback=null,m=v.priorityLevel;var H=G(v.expirationTime<=Q);Q=j.unstable_now(),typeof H=="function"?v.callback=H:v===e(g)&&s(g),y(Q)}else s(g);v=e(g)}if(v!==null)var V=!0;else{var q=e(x);q!==null&&J(O,q.startTime-Q),V=!1}return V}finally{v=null,m=Z,u=!1}}var I=!1,P=null,S=-1,M=5,A=-1;function R(){return!(j.unstable_now()-AX||125G?(X.sortIndex=Z,n(x,X),e(g)===null&&X===e(x)&&(c?(p(S),S=-1):c=!0,J(O,Z-G))):(X.sortIndex=H,n(g,X),h||u||(h=!0,W(b))),X},j.unstable_shouldYield=R,j.unstable_wrapCallback=function(X){var Q=m;return function(){var Z=m;m=Q;try{return X.apply(this,arguments)}finally{m=Z}}}},20686:function(_,j,n){"use strict";_.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(_,j){return j=j||{},new Promise(function(n,e){var s=new XMLHttpRequest,t=[],r={},a=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 t},entries:function(){return t.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 o in s.open(j.method||"get",_,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||t.push(r[x]=x)}),n(a())},s.onerror=e,s.withCredentials=j.credentials=="include",j.headers)s.setRequestHeader(o,j.headers[o]);s.send(j.body||null)})})},7402:function(_,j,n){"use strict";n.d(j,{OY:function(){return C},TS:function(){return h},Tj:function(){return o},Ul:function(){return f},hS:function(){return c},pb:function(){return a}});/** + */function n(H,G){var F=H.length;H.push(G);e:for(;0>>1,X=H[W];if(0>>1;Wt(ne,F))tet(le,ne)?(H[W]=le,H[te]=F,W=te):(H[W]=ne,H[J]=F,W=J);else if(tet(le,F))H[W]=le,H[te]=F,W=te;else break e}}return G}function t(H,G){var F=H.sortIndex-G.sortIndex;return F!==0?F:H.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;j.unstable_now=function(){return r.now()}}else{var a=Date,o=a.now();j.unstable_now=function(){return a.now()-o}}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 y(H){for(var G=e(x);G!==null;){if(G.callback===null)s(x);else if(G.startTime<=H)s(x),G.sortIndex=G.expirationTime,n(g,G);else break;G=e(x)}}function O(H){if(c=!1,y(H),!h)if(e(g)!==null)h=!0,Z(b);else{var G=e(x);G!==null&&ee(O,G.startTime-H)}}function b(H,G){h=!1,c&&(c=!1,p(S),S=-1),u=!0;var F=v;try{for(y(G),m=e(g);m!==null&&(!(m.expirationTime>G)||H&&!R());){var W=m.callback;if(typeof W=="function"){m.callback=null,v=m.priorityLevel;var X=W(m.expirationTime<=G);G=j.unstable_now(),typeof X=="function"?m.callback=X:m===e(g)&&s(g),y(G)}else s(g);m=e(g)}if(m!==null)var V=!0;else{var J=e(x);J!==null&&ee(O,J.startTime-G),V=!1}return V}finally{m=null,v=F,u=!1}}var I=!1,P=null,S=-1,M=5,A=-1;function R(){return!(j.unstable_now()-AH||125W?(H.sortIndex=F,n(x,H),e(g)===null&&H===e(x)&&(c?(p(S),S=-1):c=!0,ee(O,F-W))):(H.sortIndex=X,n(g,H),h||u||(h=!0,Z(b))),H},j.unstable_shouldYield=R,j.unstable_wrapCallback=function(H){var G=v;return function(){var F=v;v=G;try{return H.apply(this,arguments)}finally{v=F}}}},20686:function(_,j,n){"use strict";_.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(_,j){return j=j||{},new Promise(function(n,e){var s=new XMLHttpRequest,t=[],r={},a=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 t},entries:function(){return t.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 o in s.open(j.method||"get",_,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||t.push(r[x]=x)}),n(a())},s.onerror=e,s.withCredentials=j.credentials=="include",j.headers)s.setRequestHeader(o,j.headers[o]);s.send(j.body||null)})})},7402:function(_,j,n){"use strict";n.d(j,{OY:function(){return C},TS:function(){return h},Tj:function(){return o},Ul:function(){return f},hS:function(){return c},pb:function(){return a}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(S,M){(M==null||M>S.length)&&(M=S.length);for(var A=0,R=new Array(M);A=S.length?{done:!0}:{done:!1,value:S[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 a=function(S){return function(M){if(M==null)return M;if(Array.isArray(M)){for(var A=[],R=0;RF)return 1}return 0},f=function(){for(var S=arguments.length,M=new Array(S),A=0;A>1,F=S(M[W]),FR?W:W+1},O=function(S){return function(M,A){var R=[].concat(M);return R.splice(y(S,M,A),0,A),R}},b=function(S,M){for(var A=[],R=[],K=M,N=r(S),k;!(k=N()).done;){var F=k.value;R.push(F),K--,K||(K=M,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(S){return typeof S=="object"&&S!==null},P=function(){for(var S=arguments.length,M=new Array(S),A=0;AS.length)&&(M=S.length);for(var A=0,R=new Array(M);A=S.length?{done:!0}:{done:!1,value:S[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 a=function(S){return function(M){if(M==null)return M;if(Array.isArray(M)){for(var A=[],R=0;RY)return 1}return 0},f=function(){for(var S=arguments.length,M=new Array(S),A=0;A>1,Y=S(M[Z]),YR?Z:Z+1},O=function(S){return function(M,A){var R=[].concat(M);return R.splice(y(S,M,A),0,A),R}},b=function(S,M){for(var A=[],R=[],K=M,$=r(S),U;!(U=$()).done;){var Y=U.value;R.push(Y),K--,K||(K=M,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(S){return typeof S=="object"&&S!==null},P=function(){for(var S=arguments.length,M=new Array(S),A=0;A1?o-1:0),x=1;x1?o-1:0),x=1;xg.length)&&(x=g.length);for(var f=0,v=new Array(x);f=g.length?{done:!0}:{done:!1,value:g[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=void 0,a=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,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,a=function(){for(var g=arguments.length,x=new Array(g),f=0;f1?u-1:0),c=1;c1?h-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},a=function(u){return u<0?0:u>1?1:u},o=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]},v=function(u,h){for(var c=t(Object.keys(h)),d;!(d=c()).done;){var p=d.value,C=h[p];if(f(u,C))return p}},m=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},12450:function(_,j,n){"use strict";n.d(j,{k:function(){return v}});/** + */function e(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 r=function(u,h,c){return uc?c:u},a=function(u){return u<0?0:u>1?1:u},o=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=t(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}},12450:function(_,j,n){"use strict";n.d(j,{k:function(){return m}});/** * 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,t=1e3/s,r=!!((e=window.performance)!=null&&e.now),a={},o={},g=function(m,u){},x=function(m,u){if(0)var h,c,d},f=function(m){var u=m/t;return m.toFixed(m<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},v={mark:g,measure:x}},65380:function(_,j,n){"use strict";n.d(j,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** + */var e,s=60,t=1e3/s,r=!!((e=window.performance)!=null&&e.now),a={},o={},g=function(v,u){},x=function(v,u){if(0)var h,c,d},f=function(v){var u=v/t;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},m={mark:g,measure:x}},65380:function(_,j,n){"use strict";n.d(j,{Ly:function(){return e},a_:function(){return t},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,v){(v==null||v>f.length)&&(v=f.length);for(var m=0,u=new Array(v);m=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 a=function(f,v){if(v)return v(a)(f);var m,u=[],h=function(){return m},c=function(p){u.push(p)},d=function(p){m=f(m,p);for(var C=0;C1?c-1:0),p=1;p1?P-1:0),M=1;M1?P-1:0),M=1;Mf.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 a=function(f,m){if(m)return m(a)(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?P-1:0),M=1;M1?P-1:0),M=1;M0&&M[M.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!M||k[1]>M[0]&&k[1]0&&M[M.length-1])&&(U[0]===6||U[0]===2)){R=0;continue}if(U[0]===3&&(!M||U[1]>M[0]&&U[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=t(c),C;!(C=p()).done;)for(var y=C.value,O=0;O",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 y=parseInt(C,10);return String.fromCharCode(y)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var y=parseInt(C,16);return String.fromCharCode(y)})},u=function(h){return Object.keys(h).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(h[c])}).join("&")}},32126:function(_,j,n){"use strict";n.d(j,{CO:function(){return o},Jk:function(){return u},Xd:function(){return v},Z4:function(){return g},tk:function(){return x}});var e=n(7402);/** + */function e(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 r=function(h){if(Array.isArray(h))return r(h.join(""));for(var c=h.split("\n"),d,p=t(c),C;!(C=p()).done;)for(var y=C.value,O=0;O",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 y=parseInt(C,10);return String.fromCharCode(y)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var y=parseInt(C,16);return String.fromCharCode(y)})},u=function(h){return Object.keys(h).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(h[c])}).join("&")}},32126:function(_,j,n){"use strict";n.d(j,{CO:function(){return o},Jk:function(){return u},Xd:function(){return m},Z4:function(){return g},tk:function(){return x}});var e=n(7402);/** * 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},t=function(c,d){return c-d},r=function(c,d){return c*d},a=function(c,d){return c/d},o=function(){for(var c=arguments.length,d=new Array(c),p=0;px.length)&&(f=x.length);for(var v=0,m=new Array(f);v=x.length?{done:!0}:{done:!1,value:x[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=[/v4shim/i],a={},o=function(x){return a[x]||x},g=function(x){return function(f){return function(v){var m=v.type,u=v.payload;if(m==="asset/stylesheet"){Byond.loadCss(u);return}if(m==="asset/mappings"){for(var h=function(){var p=d.value;if(r.some(function(O){return O.test(p)}))return"continue";var C=u[p],y=p.split(".").pop();a[p]=C,y==="css"&&Byond.loadCss(C),y==="js"&&Byond.loadJs(C)},c=t(Object.keys(u)),d;!(d=c()).done;)h();return}f(v)}}}},7081:function(_,j,n){"use strict";n.d(j,{H$:function(){return c},J3:function(){return h},JV:function(){return C},Oc:function(){return M},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=n(12450),s=n(74429),t=n(21547),r=n(37912),a=n(49945),o=n(92736),g=n(67278);/** + */function e(x,f){(f==null||f>x.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],a={},o=function(x){return a[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(O){return O.test(p)}))return"continue";var C=u[p],y=p.split(".").pop();a[p]=C,y==="css"&&Byond.loadCss(C),y==="js"&&Byond.loadJs(C)},c=t(Object.keys(u)),d;!(d=c()).done;)h();return}f(m)}}}},7081:function(_,j,n){"use strict";n.d(j,{H$:function(){return c},J3:function(){return h},JV:function(){return C},Oc:function(){return M},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=n(12450),s=n(74429),t=n(21547),r=n(37912),a=n(49945),o=n(92736),g=n(67278);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,202 +101,202 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x(k,F){(F==null||F>k.length)&&(F=k.length);for(var W=0,J=new Array(F);W=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,o.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"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(k,F){k===void 0&&(k=O);var W=F.type,J=F.payload;if(W==="backend/update"){var X=f({},k.config,J.config),Q=f({},k.data,J.static_data,J.data),Z=f({},k.shared);if(J.shared)for(var G=m(Object.keys(J.shared)),H;!(H=G()).done;){var V=H.value,q=J.shared[V];q===""?Z[V]=void 0:Z[V]=JSON.parse(q)}return f({},k,{config:X,data:Q,shared:Z,suspended:!1})}if(W==="backend/setSharedState"){var ie=J.key,te=J.nextState,ce;return f({},k,{shared:f({},k.shared,(ce={},ce[ie]=te,ce))})}if(W==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),W==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),W==="backend/suspendStart")return f({},k,{suspending:!0});if(W==="backend/suspendSuccess"){var ue=J.timestamp;return f({},k,{data:{},shared:{},config:f({},k.config,{title:"",status:1}),suspending:!1,suspended:ue})}return k},I=function(k){var F,W;return function(J){return function(X){var Q=S(k.getState()).suspended,Z=X.type,G=X.payload;if(Z==="update"){k.dispatch(d(G));return}if(Z==="suspend"){k.dispatch(y());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"&&!W){u.log("suspending ("+Byond.windowId+")");var H=function(){return Byond.sendMessage("suspend")};H(),W=setInterval(H,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(W),W=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,a.$)()})),Z==="backend/update"){var V,q,ie=(q=G.config)==null||(V=q.window)==null?void 0:V.fancy;F===void 0?F=ie:F!==ie&&(u.log("changing fancy mode to",ie),F=ie,Byond.winset(Byond.windowId,{titlebar:!ie,"can-resize":!ie}))}return Z==="backend/update"&&Q&&(u.log("backend/update",G),(0,g.P7)(),(0,t.MN)(),setImmediate(function(){e.k.mark("resume/start");var te=S(k.getState()).suspended;te||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(X)}}},P=function(k,F){F===void 0&&(F={});var W=typeof F=="object"&&F!==null&&!Array.isArray(F);if(!W){u.error("Payload for act() must be an object, got this:",F);return}Byond.sendMessage("act/"+k,F)},S=function(k){return k.backend||{}},M=function(){var k,F=h==null||(k=h.getState())==null?void 0:k.backend;return f({},F,{act:P})},A=function(k,F){var W,J=h==null||(W=h.getState())==null?void 0:W.backend,X,Q=(X=J==null?void 0:J.shared)!=null?X:{},Z=k in Q?Q[k]:F;return[Z,function(G){h.dispatch(p({key:k,nextState:typeof G=="function"?G(Z):G}))}]},R=function(k,F){var W,J=h==null||(W=h.getState())==null?void 0:W.backend,X,Q=(X=J==null?void 0:J.shared)!=null?X:{},Z=k in Q?Q[k]:F;return[Z,function(G){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof G=="function"?G(Z):G)||""})}]},K=function(){return h.dispatch},N=function(k){return k(h==null?void 0:h.getState())}},96781:function(_,j,n){"use strict";n.d(j,{Fl:function(){return I},WP:function(){return P},az:function(){return S},zA:function(){return v}});var e=n(65380),s=n(61358),t=n(79500),r=n(92736);/** + */function x(U,Y){(Y==null||Y>U.length)&&(Y=U.length);for(var Z=0,ee=new Array(Y);Z=U.length?{done:!0}:{done:!1,value:U[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 u=(0,o.h)("backend"),h,c=function(U){h=U},d=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(U,Y){U===void 0&&(U=O);var Z=Y.type,ee=Y.payload;if(Z==="backend/update"){var H=f({},U.config,ee.config),G=f({},U.data,ee.static_data,ee.data),F=f({},U.shared);if(ee.shared)for(var W=v(Object.keys(ee.shared)),X;!(X=W()).done;){var V=X.value,J=ee.shared[V];J===""?F[V]=void 0:F[V]=JSON.parse(J)}return f({},U,{config:H,data:G,shared:F,suspended:!1})}if(Z==="backend/setSharedState"){var ne=ee.key,te=ee.nextState,le;return f({},U,{shared:f({},U.shared,(le={},le[ne]=te,le))})}if(Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart")return f({},U,{suspending:!0});if(Z==="backend/suspendSuccess"){var ce=ee.timestamp;return f({},U,{data:{},shared:{},config:f({},U.config,{title:"",status:1}),suspending:!1,suspended:ce})}return U},I=function(U){var Y,Z;return function(ee){return function(H){var G=S(U.getState()).suspended,F=H.type,W=H.payload;if(F==="update"){U.dispatch(d(W));return}if(F==="suspend"){U.dispatch(y());return}if(F==="ping"){Byond.sendMessage("ping/reply");return}if(F==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),F==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart"&&!Z){u.log("suspending ("+Byond.windowId+")");var X=function(){return Byond.sendMessage("suspend")};X(),Z=setInterval(X,2e3)}if(F==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(Z),Z=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,a.$)()})),F==="backend/update"){var V,J,ne=(J=W.config)==null||(V=J.window)==null?void 0:V.fancy;Y===void 0?Y=ne:Y!==ne&&(u.log("changing fancy mode to",ne),Y=ne,Byond.winset(Byond.windowId,{titlebar:!ne,"can-resize":!ne}))}return F==="backend/update"&&G&&(u.log("backend/update",W),(0,g.P7)(),(0,t.MN)(),setImmediate(function(){e.k.mark("resume/start");var te=S(U.getState()).suspended;te||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),ee(H)}}},P=function(U,Y){Y===void 0&&(Y={});var Z=typeof Y=="object"&&Y!==null&&!Array.isArray(Y);if(!Z){u.error("Payload for act() must be an object, got this:",Y);return}Byond.sendMessage("act/"+U,Y)},S=function(U){return U.backend||{}},M=function(){var U,Y=h==null||(U=h.getState())==null?void 0:U.backend;return f({},Y,{act:P})},A=function(U,Y){var Z,ee=h==null||(Z=h.getState())==null?void 0:Z.backend,H,G=(H=ee==null?void 0:ee.shared)!=null?H:{},F=U in G?G[U]:Y;return[F,function(W){h.dispatch(p({key:U,nextState:typeof W=="function"?W(F):W}))}]},R=function(U,Y){var Z,ee=h==null||(Z=h.getState())==null?void 0:Z.backend,H,G=(H=ee==null?void 0:ee.shared)!=null?H:{},F=U in G?G[U]:Y;return[F,function(W){Byond.sendMessage({type:"setSharedState",key:U,value:JSON.stringify(typeof W=="function"?W(F):W)||""})}]},K=function(){return h.dispatch},$=function(U){return U(h==null?void 0:h.getState())}},96781:function(_,j,n){"use strict";n.d(j,{Fl:function(){return I},WP:function(){return P},az:function(){return S},zA:function(){return m}});var e=n(65380),s=n(61358),t=n(79500),r=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function a(M,A){(A==null||A>M.length)&&(A=M.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=M[N]);return R}function x(M,A){if(M){if(typeof M=="string")return a(M,A);var R=Object.prototype.toString.call(M).slice(8,-1);if(R==="Object"&&M.constructor&&(R=M.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return a(M,A)}}function f(M,A){var R=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(R)return(R=R.call(M)).next.bind(R);if(Array.isArray(M)||(R=x(M))||A&&M&&typeof M.length=="number"){R&&(M=R);var K=0;return function(){return K>=M.length?{done:!0}:{done:!1,value:M[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 v=function(M){if(typeof M=="string")return M.endsWith("px")?parseFloat(M)/12+"rem":M;if(typeof M=="number")return M+"rem"},m=function(M){if(typeof M=="string")return v(M);if(typeof M=="number")return v(M*.5)},u=function(M){return!h(M)},h=function(M){return typeof M=="string"&&t.NE.includes(M)},c=function(M){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[M]=R)}},d=function(M,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[M]=A(K))}},p=function(M,A){return function(R,K){K&&(R[M]=A)}},C=function(M,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;kM.length)&&(A=M.length);for(var R=0,K=new Array(A);R=0)&&(R[$]=M[$]);return R}function x(M,A){if(M){if(typeof M=="string")return a(M,A);var R=Object.prototype.toString.call(M).slice(8,-1);if(R==="Object"&&M.constructor&&(R=M.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return a(M,A)}}function f(M,A){var R=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(R)return(R=R.call(M)).next.bind(R);if(Array.isArray(M)||(R=x(M))||A&&M&&typeof M.length=="number"){R&&(M=R);var K=0;return function(){return K>=M.length?{done:!0}:{done:!1,value:M[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(M){if(typeof M=="string")return M.endsWith("px")?parseFloat(M)/12+"rem":M;if(typeof M=="number")return M+"rem"},v=function(M){if(typeof M=="string")return m(M);if(typeof M=="number")return m(M*.5)},u=function(M){return!h(M)},h=function(M){return typeof M=="string"&&t.NE.includes(M)},c=function(M){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[M]=R)}},d=function(M,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[M]=A(K))}},p=function(M,A){return function(R,K){K&&(R[M]=A)}},C=function(M,A,R){return function(K,$){if(typeof $=="number"||typeof $=="string")for(var U=0;U=0)&&(m[h]=f[h]);return m}var o=function(f){var v=f.className,m=f.collapsing,u=f.children,h=a(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",m&&"Table--collapsing",v,(0,t.WP)(h)])},(0,t.Fl)(h),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(f){var v=f.className,m=f.header,u=a(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",m&&"Table__row--header",v,(0,t.WP)(f)])},(0,t.Fl)(u)))},x=function(f){var v=f.className,m=f.collapsing,u=f.header,h=a(f,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",m&&"Table__cell--collapsing",u&&"Table__cell--header",v,(0,t.WP)(f)])},(0,t.Fl)(h)))};o.Row=g,o.Cell=x},16754:function(_,j,n){"use strict";n.d(j,{zv:function(){return v},y5:function(){return m},Z8:function(){return p},Y0:function(){return I},az:function(){return y.az},$n:function(){return Qn},D1:function(){return va},t1:function(){return ma},Nt:function(){return sl},BK:function(){return ll},Rr:function(){return rs},cG:function(){return is},Hx:function(){return ga},ms:function(){return cs},so:function(){return yt},In:function(){return R},pd:function(){return gs},N6:function(){return Il},Wx:function(){return js},Ki:function(){return Rr},aF:function(){return Oo},tx:function(){return Po},IC:function(){return zt},Q7:function(){return Is},ND:function(){return ls},z2:function(){return Rt},SM:function(){return Lr},wn:function(){return Os},Ap:function(){return ka},BJ:function(){return Ia},XI:function(){return Ri.XI},tU:function(){return kr},fs:function(){return Nr},m_:function(){return ot}});var e=n(20462),s=n(4089),t=n(61358);/** + */function r(){return r=Object.assign||function(f){for(var m=1;m=0)&&(v[h]=f[h]);return v}var o=function(f){var m=f.className,v=f.collapsing,u=f.children,h=a(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",m,(0,t.WP)(h)])},(0,t.Fl)(h),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(f){var m=f.className,v=f.header,u=a(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",m,(0,t.WP)(f)])},(0,t.Fl)(u)))},x=function(f){var m=f.className,v=f.collapsing,u=f.header,h=a(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,t.WP)(f)])},(0,t.Fl)(h)))};o.Row=g,o.Cell=x},16754:function(_,j,n){"use strict";n.d(j,{zv:function(){return m},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return y.az},$n:function(){return Qn},D1:function(){return va},t1:function(){return xa},Nt:function(){return sl},BK:function(){return ll},Rr:function(){return is},cG:function(){return as},Hx:function(){return ja},ms:function(){return us},so:function(){return yt},In:function(){return R},pd:function(){return js},N6:function(){return Il},Wx:function(){return ys},Ki:function(){return Rr},aF:function(){return bo},tx:function(){return _o},IC:function(){return zt},Q7:function(){return Os},ND:function(){return cs},z2:function(){return Rt},SM:function(){return Lr},wn:function(){return bs},Ap:function(){return Na},BJ:function(){return Oa},XI:function(){return Ri.XI},tU:function(){return kr},fs:function(){return Nr},m_:function(){return ot}});var e=n(20462),s=n(4089),t=n(61358);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&a(D,w)}function a(D,w){return a=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},a(D,w)}var o=function(D){return typeof D=="number"&&Number.isFinite(D)&&!Number.isNaN(D)},g=1e3/60,x=.8333,f=.001,v=function(D){"use strict";r(w,D);function w(z){var B;B=D.call(this,z)||this,B.ref=(0,t.createRef)(),B.currentValue=0;var Y=z.initial,ne=z.value;return Y!==void 0&&o(Y)?B.currentValue=Y:o(ne)&&(B.currentValue=ne),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,Y=this.props.value;o(Y)?this.currentValue=B*x+Y*(1-x):this.stopTicking(),Math.abs(Y-this.currentValue)=0)&&(U[B]=D[B]);return U}function I(D){var w=D.className,U=b(D,["className"]);return(0,e.jsx)(y.az,O({className:(0,C.Ly)(["BlockQuote",w])},U))}var P=n(87239);/** + */function O(){return O=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function I(D){var w=D.className,k=b(D,["className"]);return(0,e.jsx)(y.az,O({className:(0,C.Ly)(["BlockQuote",w])},k))}var P=n(87239);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function S(){return S=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var A=/-o$/,R=function(D){var w=D.name,U=D.size,z=D.spin,B=D.className,Y=D.rotation,ne=M(D,["name","size","spin","className","rotation"]),re=ne.style||{};U&&(re.fontSize=U*100+"%"),Y&&(re.transform="rotate("+Y+"deg)"),ne.style=re;var le=(0,y.Fl)(ne),se="";if(w.startsWith("tg-"))se=w;else{var de=A.test(w),Ee=w.replace(A,""),be=!Ee.startsWith("fa-");se=de?"far ":"fas ",be&&(se+="fa-"),se+=Ee,z&&(se+=" fa-spin")}return(0,e.jsx)("i",S({className:(0,C.Ly)(["Icon",se,B,(0,y.WP)(ne)])},le))},K=function(D){var w=D.className,U=D.children,z=M(D,["className","children"]);return(0,e.jsx)("span",S({className:(0,C.Ly)(["IconStack",w,(0,y.WP)(z)])},(0,y.Fl)(z),{children:U}))};R.Stack=K;function N(D){if(D==null)return window;if(D.toString()!=="[object Window]"){var w=D.ownerDocument;return w&&w.defaultView||window}return D}function k(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function F(D){var w=N(D).Element;return k(D,w)||k(D,Element)}function W(D){var w=N(D).HTMLElement;return k(D,w)||k(D,HTMLElement)}function J(D){if(typeof ShadowRoot=="undefined")return!1;var w=N(D).ShadowRoot;return k(D,w)||k(D,ShadowRoot)}var X=Math.max,Q=Math.min,Z=Math.round;function G(){var D=navigator.userAgentData;return D!=null&&D.brands&&Array.isArray(D.brands)?D.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(G())}function V(D,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var z=D.getBoundingClientRect(),B=1,Y=1;w&&W(D)&&(B=D.offsetWidth>0&&Z(z.width)/D.offsetWidth||1,Y=D.offsetHeight>0&&Z(z.height)/D.offsetHeight||1);var ne=F(D)?N(D):window,re=ne.visualViewport,le=!H()&&U,se=(z.left+(le&&re?re.offsetLeft:0))/B,de=(z.top+(le&&re?re.offsetTop:0))/Y,Ee=z.width/B,be=z.height/Y;return{width:Ee,height:be,top:de,right:se+Ee,bottom:de+be,left:se,x:se,y:de}}function q(D){var w=N(D),U=w.pageXOffset,z=w.pageYOffset;return{scrollLeft:U,scrollTop:z}}function ie(D){return{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}}function te(D){return D===N(D)||!W(D)?q(D):ie(D)}function ce(D){return D?(D.nodeName||"").toLowerCase():null}function ue(D){return((F(D)?D.ownerDocument:D.document)||window.document).documentElement}function me(D){return V(ue(D)).left+q(D).scrollLeft}function xe(D){return N(D).getComputedStyle(D)}function ve(D){var w=xe(D),U=w.overflow,z=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+z)}function ge(D){var w=D.getBoundingClientRect(),U=Z(w.width)/D.offsetWidth||1,z=Z(w.height)/D.offsetHeight||1;return U!==1||z!==1}function we(D,w,U){U===void 0&&(U=!1);var z=W(w),B=W(w)&&ge(w),Y=ue(w),ne=V(D,B,U),re={scrollLeft:0,scrollTop:0},le={x:0,y:0};return(z||!z&&!U)&&((ce(w)!=="body"||ve(Y))&&(re=te(w)),W(w)?(le=V(w,!0),le.x+=w.clientLeft,le.y+=w.clientTop):Y&&(le.x=me(Y))),{x:ne.left+re.scrollLeft-le.x,y:ne.top+re.scrollTop-le.y,width:ne.width,height:ne.height}}function Qe(D){var w=V(D),U=D.offsetWidth,z=D.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-z)<=1&&(z=w.height),{x:D.offsetLeft,y:D.offsetTop,width:U,height:z}}function Me(D){return ce(D)==="html"?D:D.assignedSlot||D.parentNode||(J(D)?D.host:null)||ue(D)}function Pe(D){return["html","body","#document"].indexOf(ce(D))>=0?D.ownerDocument.body:W(D)&&ve(D)?D:Pe(Me(D))}function Le(D,w){var U;w===void 0&&(w=[]);var z=Pe(D),B=z===((U=D.ownerDocument)==null?void 0:U.body),Y=N(z),ne=B?[Y].concat(Y.visualViewport||[],ve(z)?z:[]):z,re=w.concat(ne);return B?re:re.concat(Le(Me(ne)))}function vn(D){return["table","td","th"].indexOf(ce(D))>=0}function gn(D){return!W(D)||xe(D).position==="fixed"?null:D.offsetParent}function un(D){var w=/firefox/i.test(G()),U=/Trident/i.test(G());if(U&&W(D)){var z=xe(D);if(z.position==="fixed")return null}var B=Me(D);for(J(B)&&(B=B.host);W(B)&&["html","body"].indexOf(ce(B))<0;){var Y=xe(B);if(Y.transform!=="none"||Y.perspective!=="none"||Y.contain==="paint"||["transform","perspective"].indexOf(Y.willChange)!==-1||w&&Y.willChange==="filter"||w&&Y.filter&&Y.filter!=="none")return B;B=B.parentNode}return null}function ln(D){for(var w=N(D),U=gn(D);U&&vn(U)&&xe(U).position==="static";)U=gn(U);return U&&(ce(U)==="html"||ce(U)==="body"&&xe(U).position==="static")?w:U||un(D)||w}var He="top",_e="bottom",De="right",Ne="left",Te="auto",We=[He,_e,De,Ne],$e="start",Xe="end",Cn="clippingParents",Dn="viewport",On="popper",Tn="reference",dn=We.reduce(function(D,w){return D.concat([w+"-"+$e,w+"-"+Xe])},[]),Ve=[].concat(We,[Te]).reduce(function(D,w){return D.concat([w,w+"-"+$e,w+"-"+Xe])},[]),Ce="beforeRead",Ze="read",pn="afterRead",_n="beforeMain",$n="main",rt="afterMain",Wn="beforeWrite",ht="write",Lt="afterWrite",Yt=[Ce,Ze,pn,_n,$n,rt,Wn,ht,Lt];function Qt(D){var w=new Map,U=new Set,z=[];D.forEach(function(Y){w.set(Y.name,Y)});function B(Y){U.add(Y.name);var ne=[].concat(Y.requires||[],Y.requiresIfExists||[]);ne.forEach(function(re){if(!U.has(re)){var le=w.get(re);le&&B(le)}}),z.push(Y)}return D.forEach(function(Y){U.has(Y.name)||B(Y)}),z}function gi(D){var w=Qt(D);return Yt.reduce(function(U,z){return U.concat(w.filter(function(B){return B.phase===z}))},[])}function ji(D){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(D())})})),w}}function yi(D){var w=D.reduce(function(U,z){var B=U[z.name];return U[z.name]=B?Object.assign({},B,z,{options:Object.assign({},B.options,z.options),data:Object.assign({},B.data,z.data)}):z,U},{});return Object.keys(w).map(function(U){return w[U]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var D=arguments.length,w=new Array(D),U=0;U=0?"x":"y"}function br(D){var w=D.reference,U=D.element,z=D.placement,B=z?pt(z):null,Y=z?gt(z):null,ne=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,le;switch(B){case He:le={x:ne,y:w.y-U.height};break;case _e:le={x:ne,y:w.y+w.height};break;case De:le={x:w.x+w.width,y:re};break;case Ne:le={x:w.x-U.width,y:re};break;default:le={x:w.x,y:w.y}}var se=B?cr(B):null;if(se!=null){var de=se==="y"?"height":"width";switch(Y){case $e:le[se]=le[se]-(w[de]/2-U[de]/2);break;case Xe:le[se]=le[se]+(w[de]/2-U[de]/2);break;default:}}return le}function Ei(D){var w=D.state,U=D.name;w.modifiersData[U]=br({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var Za={name:"popperOffsets",enabled:!0,phase:"read",fn:Ei,data:{}},Ja={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qa(D,w){var U=D.x,z=D.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z(z*B)/B||0}}function kt(D){var w,U=D.popper,z=D.popperRect,B=D.placement,Y=D.variation,ne=D.offsets,re=D.position,le=D.gpuAcceleration,se=D.adaptive,de=D.roundOffsets,Ee=D.isFixed,be=ne.x,ye=be===void 0?0:be,Se=ne.y,Ae=Se===void 0?0:Se,ke=typeof de=="function"?de({x:ye,y:Ae}):{x:ye,y:Ae};ye=ke.x,Ae=ke.y;var Ue=ne.hasOwnProperty("x"),Ge=ne.hasOwnProperty("y"),fn=Ne,Fe=He,an=window;if(se){var rn=ln(U),nn="clientHeight",cn="clientWidth";if(rn===N(U)&&(rn=ue(U),xe(rn).position!=="static"&&re==="absolute"&&(nn="scrollHeight",cn="scrollWidth")),rn=rn,B===He||(B===Ne||B===De)&&Y===Xe){Fe=_e;var yn=Ee&&rn===an&&an.visualViewport?an.visualViewport.height:rn[nn];Ae-=yn-z.height,Ae*=le?1:-1}if(B===Ne||(B===He||B===_e)&&Y===Xe){fn=De;var hn=Ee&&rn===an&&an.visualViewport?an.visualViewport.width:rn[cn];ye-=hn-z.width,ye*=le?1:-1}}var on=Object.assign({position:re},se&&Ja),qe=de===!0?qa({x:ye,y:Ae},N(U)):{x:ye,y:Ae};if(ye=qe.x,Ae=qe.y,le){var wn;return Object.assign({},on,(wn={},wn[Fe]=Ge?"0":"",wn[fn]=Ue?"0":"",wn.transform=(an.devicePixelRatio||1)<=1?"translate("+ye+"px, "+Ae+"px)":"translate3d("+ye+"px, "+Ae+"px, 0)",wn))}return Object.assign({},on,(w={},w[Fe]=Ge?Ae+"px":"",w[fn]=Ue?ye+"px":"",w.transform="",w))}function Ji(D){var w=D.state,U=D.options,z=U.gpuAcceleration,B=z===void 0?!0:z,Y=U.adaptive,ne=Y===void 0?!0:Y,re=U.roundOffsets,le=re===void 0?!0:re,se={placement:pt(w.placement),variation:gt(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,kt(Object.assign({},se,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:ne,roundOffsets:le})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,kt(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 qi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ji,data:{}};function eo(D){var w=D.state;Object.keys(w.elements).forEach(function(U){var z=w.styles[U]||{},B=w.attributes[U]||{},Y=w.elements[U];!W(Y)||!ce(Y)||(Object.assign(Y.style,z),Object.keys(B).forEach(function(ne){var re=B[ne];re===!1?Y.removeAttribute(ne):Y.setAttribute(ne,re===!0?"":re)}))})}function ea(D){var w=D.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(z){var B=w.elements[z],Y=w.attributes[z]||{},ne=Object.keys(w.styles.hasOwnProperty(z)?w.styles[z]:U[z]),re=ne.reduce(function(le,se){return le[se]="",le},{});!W(B)||!ce(B)||(Object.assign(B.style,re),Object.keys(Y).forEach(function(le){B.removeAttribute(le)}))})}}var na={name:"applyStyles",enabled:!0,phase:"write",fn:eo,effect:ea,requires:["computeStyles"]};function ae(D,w,U){var z=pt(D),B=[Ne,He].indexOf(z)>=0?-1:1,Y=typeof U=="function"?U(Object.assign({},w,{placement:D})):U,ne=Y[0],re=Y[1];return ne=ne||0,re=(re||0)*B,[Ne,De].indexOf(z)>=0?{x:re,y:ne}:{x:ne,y:re}}function Be(D){var w=D.state,U=D.options,z=D.name,B=U.offset,Y=B===void 0?[0,0]:B,ne=Ve.reduce(function(de,Ee){return de[Ee]=ae(Ee,w.rects,Y),de},{}),re=ne[w.placement],le=re.x,se=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=le,w.modifiersData.popperOffsets.y+=se),w.modifiersData[z]=ne}var Js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Be},qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(D){return D.replace(/left|right|bottom|top/g,function(w){return qs[w]})}var el={start:"end",end:"start"};function ta(D){return D.replace(/start|end/g,function(w){return el[w]})}function Uo(D,w){var U=N(D),z=ue(D),B=U.visualViewport,Y=z.clientWidth,ne=z.clientHeight,re=0,le=0;if(B){Y=B.width,ne=B.height;var se=H();(se||!se&&w==="fixed")&&(re=B.offsetLeft,le=B.offsetTop)}return{width:Y,height:ne,x:re+me(D),y:le}}function ra(D){var w,U=ue(D),z=q(D),B=(w=D.ownerDocument)==null?void 0:w.body,Y=X(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),ne=X(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-z.scrollLeft+me(D),le=-z.scrollTop;return xe(B||U).direction==="rtl"&&(re+=X(U.clientWidth,B?B.clientWidth:0)-Y),{width:Y,height:ne,x:re,y:le}}function zo(D,w){var U=w.getRootNode&&w.getRootNode();if(D.contains(w))return!0;if(U&&J(U)){var z=w;do{if(z&&D.isSameNode(z))return!0;z=z.parentNode||z.host}while(z)}return!1}function ia(D){return Object.assign({},D,{left:D.x,top:D.y,right:D.x+D.width,bottom:D.y+D.height})}function aa(D,w){var U=V(D,!1,w==="fixed");return U.top=U.top+D.clientTop,U.left=U.left+D.clientLeft,U.bottom=U.top+D.clientHeight,U.right=U.left+D.clientWidth,U.width=D.clientWidth,U.height=D.clientHeight,U.x=U.left,U.y=U.top,U}function St(D,w,U){return w===Dn?ia(Uo(D,U)):F(w)?aa(w,U):ia(ra(ue(D)))}function nl(D){var w=Le(Me(D)),U=["absolute","fixed"].indexOf(xe(D).position)>=0,z=U&&W(D)?ln(D):D;return F(z)?w.filter(function(B){return F(B)&&zo(B,z)&&ce(B)!=="body"}):[]}function Dt(D,w,U,z){var B=w==="clippingParents"?nl(D):[].concat(w),Y=[].concat(B,[U]),ne=Y[0],re=Y.reduce(function(le,se){var de=St(D,se,z);return le.top=X(de.top,le.top),le.right=Q(de.right,le.right),le.bottom=Q(de.bottom,le.bottom),le.left=X(de.left,le.left),le},St(D,ne,z));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function $o(){return{top:0,right:0,bottom:0,left:0}}function Wo(D){return Object.assign({},$o(),D)}function Fo(D,w){return w.reduce(function(U,z){return U[z]=D,U},{})}function ur(D,w){w===void 0&&(w={});var U=w,z=U.placement,B=z===void 0?D.placement:z,Y=U.strategy,ne=Y===void 0?D.strategy:Y,re=U.boundary,le=re===void 0?Cn:re,se=U.rootBoundary,de=se===void 0?Dn:se,Ee=U.elementContext,be=Ee===void 0?On:Ee,ye=U.altBoundary,Se=ye===void 0?!1:ye,Ae=U.padding,ke=Ae===void 0?0:Ae,Ue=Wo(typeof ke!="number"?ke:Fo(ke,We)),Ge=be===On?Tn:On,fn=D.rects.popper,Fe=D.elements[Se?Ge:be],an=Dt(F(Fe)?Fe:Fe.contextElement||ue(D.elements.popper),le,de,ne),rn=V(D.elements.reference),nn=br({reference:rn,element:fn,strategy:"absolute",placement:B}),cn=ia(Object.assign({},fn,nn)),yn=be===On?cn:rn,hn={top:an.top-yn.top+Ue.top,bottom:yn.bottom-an.bottom+Ue.bottom,left:an.left-yn.left+Ue.left,right:yn.right-an.right+Ue.right},on=D.modifiersData.offset;if(be===On&&on){var qe=on[B];Object.keys(hn).forEach(function(wn){var Un=[De,_e].indexOf(wn)>=0?1:-1,Mn=[He,_e].indexOf(wn)>=0?"y":"x";hn[wn]+=qe[Mn]*Un})}return hn}function oa(D,w){w===void 0&&(w={});var U=w,z=U.placement,B=U.boundary,Y=U.rootBoundary,ne=U.padding,re=U.flipVariations,le=U.allowedAutoPlacements,se=le===void 0?Ve:le,de=gt(z),Ee=de?re?dn:dn.filter(function(Se){return gt(Se)===de}):We,be=Ee.filter(function(Se){return se.indexOf(Se)>=0});be.length===0&&(be=Ee);var ye=be.reduce(function(Se,Ae){return Se[Ae]=ur(D,{placement:Ae,boundary:B,rootBoundary:Y,padding:ne})[pt(Ae)],Se},{});return Object.keys(ye).sort(function(Se,Ae){return ye[Se]-ye[Ae]})}function Ii(D){if(pt(D)===Te)return[];var w=Ln(D);return[ta(D),w,ta(w)]}function sa(D){var w=D.state,U=D.options,z=D.name;if(!w.modifiersData[z]._skip){for(var B=U.mainAxis,Y=B===void 0?!0:B,ne=U.altAxis,re=ne===void 0?!0:ne,le=U.fallbackPlacements,se=U.padding,de=U.boundary,Ee=U.rootBoundary,be=U.altBoundary,ye=U.flipVariations,Se=ye===void 0?!0:ye,Ae=U.allowedAutoPlacements,ke=w.options.placement,Ue=pt(ke),Ge=Ue===ke,fn=le||(Ge||!Se?[Ln(ke)]:Ii(ke)),Fe=[ke].concat(fn).reduce(function(Ft,ut){return Ft.concat(pt(ut)===Te?oa(w,{placement:ut,boundary:de,rootBoundary:Ee,padding:se,flipVariations:Se,allowedAutoPlacements:Ae}):ut)},[]),an=w.rects.reference,rn=w.rects.popper,nn=new Map,cn=!0,yn=Fe[0],hn=0;hn=0,Mn=Un?"width":"height",Sn=ur(w,{placement:on,boundary:de,rootBoundary:Ee,altBoundary:be,padding:se}),Xn=Un?wn?De:Ne:wn?_e:He;an[Mn]>rn[Mn]&&(Xn=Ln(Xn));var Ur=Ln(Xn),Ot=[];if(Y&&Ot.push(Sn[qe]<=0),re&&Ot.push(Sn[Xn]<=0,Sn[Ur]<=0),Ot.every(function(Ft){return Ft})){yn=on,cn=!1;break}nn.set(on,Ot)}if(cn)for(var Fi=Se?3:1,zr=function(ut){var $r=Fe.find(function(ir){var yr=nn.get(ir);if(yr)return yr.slice(0,ut).every(function(Vi){return Vi})});if($r)return yn=$r,"break"},ct=Fi;ct>0;ct--){var jr=zr(ct);if(jr==="break")break}w.placement!==yn&&(w.modifiersData[z]._skip=!0,w.placement=yn,w.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:sa,requiresIfExists:["offset"],data:{_skip:!1}};function rl(D){return D==="x"?"y":"x"}function Pr(D,w,U){return X(D,Q(w,U))}function Vo(D,w,U){var z=Pr(D,w,U);return z>U?U:z}function no(D){var w=D.state,U=D.options,z=D.name,B=U.mainAxis,Y=B===void 0?!0:B,ne=U.altAxis,re=ne===void 0?!1:ne,le=U.boundary,se=U.rootBoundary,de=U.altBoundary,Ee=U.padding,be=U.tether,ye=be===void 0?!0:be,Se=U.tetherOffset,Ae=Se===void 0?0:Se,ke=ur(w,{boundary:le,rootBoundary:se,padding:Ee,altBoundary:de}),Ue=pt(w.placement),Ge=gt(w.placement),fn=!Ge,Fe=cr(Ue),an=rl(Fe),rn=w.modifiersData.popperOffsets,nn=w.rects.reference,cn=w.rects.popper,yn=typeof Ae=="function"?Ae(Object.assign({},w.rects,{placement:w.placement})):Ae,hn=typeof yn=="number"?{mainAxis:yn,altAxis:yn}:Object.assign({mainAxis:0,altAxis:0},yn),on=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,qe={x:0,y:0};if(rn){if(Y){var wn,Un=Fe==="y"?He:Ne,Mn=Fe==="y"?_e:De,Sn=Fe==="y"?"height":"width",Xn=rn[Fe],Ur=Xn+ke[Un],Ot=Xn-ke[Mn],Fi=ye?-cn[Sn]/2:0,zr=Ge===$e?nn[Sn]:cn[Sn],ct=Ge===$e?-cn[Sn]:-nn[Sn],jr=w.elements.arrow,Ft=ye&&jr?Qe(jr):{width:0,height:0},ut=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:$o(),$r=ut[Un],ir=ut[Mn],yr=Pr(0,nn[Sn],Ft[Sn]),Vi=fn?nn[Sn]/2-Fi-yr-$r-hn.mainAxis:zr-yr-$r-hn.mainAxis,Nn=fn?-nn[Sn]/2+Fi+yr+ir+hn.mainAxis:ct+yr+ir+hn.mainAxis,ci=w.elements.arrow&&ln(w.elements.arrow),Do=ci?Fe==="y"?ci.clientTop||0:ci.clientLeft||0:0,za=(wn=on==null?void 0:on[Fe])!=null?wn:0,$a=Xn+Vi-za-Do,To=Xn+Nn-za,Cr=Pr(ye?Q(Ur,$a):Ur,Xn,ye?X(Ot,To):Ot);rn[Fe]=Cr,qe[Fe]=Cr-Xn}if(re){var kn,Fn=Fe==="x"?He:Ne,Gn=Fe==="x"?_e:De,Vt=rn[an],Er=an==="y"?"height":"width",ui=Vt+ke[Fn],_s=Vt-ke[Gn],Hn=[He,Ne].indexOf(Ue)!==-1,Wa=(kn=on==null?void 0:on[an])!=null?kn:0,Fa=Hn?ui:Vt-nn[Er]-cn[Er]-Wa+hn.altAxis,Va=Hn?Vt+nn[Er]+cn[Er]-Wa-hn.altAxis:_s,Bt=ye&&Hn?Vo(Fa,Vt,Va):Pr(ye?Fa:ui,Vt,ye?Va:_s);rn[an]=Bt,qe[an]=Bt-Vt}w.modifiersData[z]=qe}}var Oi={name:"preventOverflow",enabled:!0,phase:"main",fn:no,requiresIfExists:["offset"]},il=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Wo(typeof w!="number"?w:Fo(w,We))};function to(D){var w,U=D.state,z=D.name,B=D.options,Y=U.elements.arrow,ne=U.modifiersData.popperOffsets,re=pt(U.placement),le=cr(re),se=[Ne,De].indexOf(re)>=0,de=se?"height":"width";if(!(!Y||!ne)){var Ee=il(B.padding,U),be=Qe(Y),ye=le==="y"?He:Ne,Se=le==="y"?_e:De,Ae=U.rects.reference[de]+U.rects.reference[le]-ne[le]-U.rects.popper[de],ke=ne[le]-U.rects.reference[le],Ue=ln(Y),Ge=Ue?le==="y"?Ue.clientHeight||0:Ue.clientWidth||0:0,fn=Ae/2-ke/2,Fe=Ee[ye],an=Ge-be[de]-Ee[Se],rn=Ge/2-be[de]/2+fn,nn=Pr(Fe,rn,an),cn=le;U.modifiersData[z]=(w={},w[cn]=nn,w.centerOffset=nn-rn,w)}}function Pn(D){var w=D.state,U=D.options,z=U.element,B=z===void 0?"[data-popper-arrow]":z;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||zo(w.elements.popper,B)&&(w.elements.arrow=B))}var Xo={name:"arrow",enabled:!0,phase:"main",fn:to,effect:Pn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ro(D,w,U){return U===void 0&&(U={x:0,y:0}),{top:D.top-w.height-U.y,right:D.right-w.width+U.x,bottom:D.bottom-w.height+U.y,left:D.left-w.width-U.x}}function la(D){return[He,De,_e,Ne].some(function(w){return D[w]>=0})}function Go(D){var w=D.state,U=D.name,z=w.rects.reference,B=w.rects.popper,Y=w.modifiersData.preventOverflow,ne=ur(w,{elementContext:"reference"}),re=ur(w,{altBoundary:!0}),le=ro(ne,z),se=ro(re,B,Y),de=la(le),Ee=la(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 Ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Go},Yo=[Or,Za,qi,na,Js,tl,Oi,Xo,Ho],ca=Gr({defaultModifiers:Yo}),Hr=n(32394);function Tt(){return Tt=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var A=/-o$/,R=function(D){var w=D.name,k=D.size,N=D.spin,B=D.className,Q=D.rotation,re=M(D,["name","size","spin","className","rotation"]),ie=re.style||{};k&&(ie.fontSize=k*100+"%"),Q&&(ie.transform="rotate("+Q+"deg)"),re.style=ie;var ue=(0,y.Fl)(re),se="";if(w.startsWith("tg-"))se=w;else{var de=A.test(w),Ee=w.replace(A,""),be=!Ee.startsWith("fa-");se=de?"far ":"fas ",be&&(se+="fa-"),se+=Ee,N&&(se+=" fa-spin")}return(0,e.jsx)("i",S({className:(0,C.Ly)(["Icon",se,B,(0,y.WP)(re)])},ue))},K=function(D){var w=D.className,k=D.children,N=M(D,["className","children"]);return(0,e.jsx)("span",S({className:(0,C.Ly)(["IconStack",w,(0,y.WP)(N)])},(0,y.Fl)(N),{children:k}))};R.Stack=K;function $(D){if(D==null)return window;if(D.toString()!=="[object Window]"){var w=D.ownerDocument;return w&&w.defaultView||window}return D}function U(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function Y(D){var w=$(D).Element;return U(D,w)||U(D,Element)}function Z(D){var w=$(D).HTMLElement;return U(D,w)||U(D,HTMLElement)}function ee(D){if(typeof ShadowRoot=="undefined")return!1;var w=$(D).ShadowRoot;return U(D,w)||U(D,ShadowRoot)}var H=Math.max,G=Math.min,F=Math.round;function W(){var D=navigator.userAgentData;return D!=null&&D.brands&&Array.isArray(D.brands)?D.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function X(){return!/^((?!chrome|android).)*safari/i.test(W())}function V(D,w,k){w===void 0&&(w=!1),k===void 0&&(k=!1);var N=D.getBoundingClientRect(),B=1,Q=1;w&&Z(D)&&(B=D.offsetWidth>0&&F(N.width)/D.offsetWidth||1,Q=D.offsetHeight>0&&F(N.height)/D.offsetHeight||1);var re=Y(D)?$(D):window,ie=re.visualViewport,ue=!X()&&k,se=(N.left+(ue&&ie?ie.offsetLeft:0))/B,de=(N.top+(ue&&ie?ie.offsetTop:0))/Q,Ee=N.width/B,be=N.height/Q;return{width:Ee,height:be,top:de,right:se+Ee,bottom:de+be,left:se,x:se,y:de}}function J(D){var w=$(D),k=w.pageXOffset,N=w.pageYOffset;return{scrollLeft:k,scrollTop:N}}function ne(D){return{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}}function te(D){return D===$(D)||!Z(D)?J(D):ne(D)}function le(D){return D?(D.nodeName||"").toLowerCase():null}function ce(D){return((Y(D)?D.ownerDocument:D.document)||window.document).documentElement}function me(D){return V(ce(D)).left+J(D).scrollLeft}function xe(D){return $(D).getComputedStyle(D)}function ve(D){var w=xe(D),k=w.overflow,N=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(k+B+N)}function je(D){var w=D.getBoundingClientRect(),k=F(w.width)/D.offsetWidth||1,N=F(w.height)/D.offsetHeight||1;return k!==1||N!==1}function we(D,w,k){k===void 0&&(k=!1);var N=Z(w),B=Z(w)&&je(w),Q=ce(w),re=V(D,B,k),ie={scrollLeft:0,scrollTop:0},ue={x:0,y:0};return(N||!N&&!k)&&((le(w)!=="body"||ve(Q))&&(ie=te(w)),Z(w)?(ue=V(w,!0),ue.x+=w.clientLeft,ue.y+=w.clientTop):Q&&(ue.x=me(Q))),{x:re.left+ie.scrollLeft-ue.x,y:re.top+ie.scrollTop-ue.y,width:re.width,height:re.height}}function Qe(D){var w=V(D),k=D.offsetWidth,N=D.offsetHeight;return Math.abs(w.width-k)<=1&&(k=w.width),Math.abs(w.height-N)<=1&&(N=w.height),{x:D.offsetLeft,y:D.offsetTop,width:k,height:N}}function _e(D){return le(D)==="html"?D:D.assignedSlot||D.parentNode||(ee(D)?D.host:null)||ce(D)}function Pe(D){return["html","body","#document"].indexOf(le(D))>=0?D.ownerDocument.body:Z(D)&&ve(D)?D:Pe(_e(D))}function Le(D,w){var k;w===void 0&&(w=[]);var N=Pe(D),B=N===((k=D.ownerDocument)==null?void 0:k.body),Q=$(N),re=B?[Q].concat(Q.visualViewport||[],ve(N)?N:[]):N,ie=w.concat(re);return B?ie:ie.concat(Le(_e(re)))}function un(D){return["table","td","th"].indexOf(le(D))>=0}function gn(D){return!Z(D)||xe(D).position==="fixed"?null:D.offsetParent}function dn(D){var w=/firefox/i.test(W()),k=/Trident/i.test(W());if(k&&Z(D)){var N=xe(D);if(N.position==="fixed")return null}var B=_e(D);for(ee(B)&&(B=B.host);Z(B)&&["html","body"].indexOf(le(B))<0;){var Q=xe(B);if(Q.transform!=="none"||Q.perspective!=="none"||Q.contain==="paint"||["transform","perspective"].indexOf(Q.willChange)!==-1||w&&Q.willChange==="filter"||w&&Q.filter&&Q.filter!=="none")return B;B=B.parentNode}return null}function ln(D){for(var w=$(D),k=gn(D);k&&un(k)&&xe(k).position==="static";)k=gn(k);return k&&(le(k)==="html"||le(k)==="body"&&xe(k).position==="static")?w:k||dn(D)||w}var He="top",ke="bottom",Se="right",Ne="left",De="auto",Fe=[He,ke,Se,Ne],We="start",Re="end",Cn="clippingParents",Dn="viewport",On="popper",Tn="reference",fn=Fe.reduce(function(D,w){return D.concat([w+"-"+We,w+"-"+Re])},[]),Xe=[].concat(Fe,[De]).reduce(function(D,w){return D.concat([w,w+"-"+We,w+"-"+Re])},[]),Ce="beforeRead",Ze="read",pn="afterRead",_n="beforeMain",$n="main",rt="afterMain",Wn="beforeWrite",ht="write",Lt="afterWrite",Yt=[Ce,Ze,pn,_n,$n,rt,Wn,ht,Lt];function Qt(D){var w=new Map,k=new Set,N=[];D.forEach(function(Q){w.set(Q.name,Q)});function B(Q){k.add(Q.name);var re=[].concat(Q.requires||[],Q.requiresIfExists||[]);re.forEach(function(ie){if(!k.has(ie)){var ue=w.get(ie);ue&&B(ue)}}),N.push(Q)}return D.forEach(function(Q){k.has(Q.name)||B(Q)}),N}function ji(D){var w=Qt(D);return Yt.reduce(function(k,N){return k.concat(w.filter(function(B){return B.phase===N}))},[])}function yi(D){var w;return function(){return w||(w=new Promise(function(k){Promise.resolve().then(function(){w=void 0,k(D())})})),w}}function Ci(D){var w=D.reduce(function(k,N){var B=k[N.name];return k[N.name]=B?Object.assign({},B,N,{options:Object.assign({},B.options,N.options),data:Object.assign({},B.data,N.data)}):N,k},{});return Object.keys(w).map(function(k){return w[k]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var D=arguments.length,w=new Array(D),k=0;k=0?"x":"y"}function br(D){var w=D.reference,k=D.element,N=D.placement,B=N?pt(N):null,Q=N?gt(N):null,re=w.x+w.width/2-k.width/2,ie=w.y+w.height/2-k.height/2,ue;switch(B){case He:ue={x:re,y:w.y-k.height};break;case ke:ue={x:re,y:w.y+w.height};break;case Se:ue={x:w.x+w.width,y:ie};break;case Ne:ue={x:w.x-k.width,y:ie};break;default:ue={x:w.x,y:w.y}}var se=B?cr(B):null;if(se!=null){var de=se==="y"?"height":"width";switch(Q){case We:ue[se]=ue[se]-(w[de]/2-k[de]/2);break;case Re:ue[se]=ue[se]+(w[de]/2-k[de]/2);break;default:}}return ue}function Ei(D){var w=D.state,k=D.name;w.modifiersData[k]=br({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var Ja={name:"popperOffsets",enabled:!0,phase:"read",fn:Ei,data:{}},qa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eo(D,w){var k=D.x,N=D.y,B=w.devicePixelRatio||1;return{x:F(k*B)/B||0,y:F(N*B)/B||0}}function kt(D){var w,k=D.popper,N=D.popperRect,B=D.placement,Q=D.variation,re=D.offsets,ie=D.position,ue=D.gpuAcceleration,se=D.adaptive,de=D.roundOffsets,Ee=D.isFixed,be=re.x,ye=be===void 0?0:be,Me=re.y,Te=Me===void 0?0:Me,Ue=typeof de=="function"?de({x:ye,y:Te}):{x:ye,y:Te};ye=Ue.x,Te=Ue.y;var ze=re.hasOwnProperty("x"),Ge=re.hasOwnProperty("y"),hn=Ne,Ve=He,an=window;if(se){var rn=ln(k),nn="clientHeight",cn="clientWidth";if(rn===$(k)&&(rn=ce(k),xe(rn).position!=="static"&&ie==="absolute"&&(nn="scrollHeight",cn="scrollWidth")),rn=rn,B===He||(B===Ne||B===Se)&&Q===Re){Ve=ke;var yn=Ee&&rn===an&&an.visualViewport?an.visualViewport.height:rn[nn];Te-=yn-N.height,Te*=ue?1:-1}if(B===Ne||(B===He||B===ke)&&Q===Re){hn=Se;var mn=Ee&&rn===an&&an.visualViewport?an.visualViewport.width:rn[cn];ye-=mn-N.width,ye*=ue?1:-1}}var on=Object.assign({position:ie},se&&qa),qe=de===!0?eo({x:ye,y:Te},$(k)):{x:ye,y:Te};if(ye=qe.x,Te=qe.y,ue){var wn;return Object.assign({},on,(wn={},wn[Ve]=Ge?"0":"",wn[hn]=ze?"0":"",wn.transform=(an.devicePixelRatio||1)<=1?"translate("+ye+"px, "+Te+"px)":"translate3d("+ye+"px, "+Te+"px, 0)",wn))}return Object.assign({},on,(w={},w[Ve]=Ge?Te+"px":"",w[hn]=ze?ye+"px":"",w.transform="",w))}function Ji(D){var w=D.state,k=D.options,N=k.gpuAcceleration,B=N===void 0?!0:N,Q=k.adaptive,re=Q===void 0?!0:Q,ie=k.roundOffsets,ue=ie===void 0?!0:ie,se={placement:pt(w.placement),variation:gt(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,kt(Object.assign({},se,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:re,roundOffsets:ue})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,kt(Object.assign({},se,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ue})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var qi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ji,data:{}};function no(D){var w=D.state;Object.keys(w.elements).forEach(function(k){var N=w.styles[k]||{},B=w.attributes[k]||{},Q=w.elements[k];!Z(Q)||!le(Q)||(Object.assign(Q.style,N),Object.keys(B).forEach(function(re){var ie=B[re];ie===!1?Q.removeAttribute(re):Q.setAttribute(re,ie===!0?"":ie)}))})}function ea(D){var w=D.state,k={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,k.popper),w.styles=k,w.elements.arrow&&Object.assign(w.elements.arrow.style,k.arrow),function(){Object.keys(w.elements).forEach(function(N){var B=w.elements[N],Q=w.attributes[N]||{},re=Object.keys(w.styles.hasOwnProperty(N)?w.styles[N]:k[N]),ie=re.reduce(function(ue,se){return ue[se]="",ue},{});!Z(B)||!le(B)||(Object.assign(B.style,ie),Object.keys(Q).forEach(function(ue){B.removeAttribute(ue)}))})}}var na={name:"applyStyles",enabled:!0,phase:"write",fn:no,effect:ea,requires:["computeStyles"]};function ta(D,w,k){var N=pt(D),B=[Ne,He].indexOf(N)>=0?-1:1,Q=typeof k=="function"?k(Object.assign({},w,{placement:D})):k,re=Q[0],ie=Q[1];return re=re||0,ie=(ie||0)*B,[Ne,Se].indexOf(N)>=0?{x:ie,y:re}:{x:re,y:ie}}function ae(D){var w=D.state,k=D.options,N=D.name,B=k.offset,Q=B===void 0?[0,0]:B,re=Xe.reduce(function(de,Ee){return de[Ee]=ta(Ee,w.rects,Q),de},{}),ie=re[w.placement],ue=ie.x,se=ie.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=ue,w.modifiersData.popperOffsets.y+=se),w.modifiersData[N]=re}var Ke={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ae},qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(D){return D.replace(/left|right|bottom|top/g,function(w){return qs[w]})}var el={start:"end",end:"start"};function ra(D){return D.replace(/start|end/g,function(w){return el[w]})}function zo(D,w){var k=$(D),N=ce(D),B=k.visualViewport,Q=N.clientWidth,re=N.clientHeight,ie=0,ue=0;if(B){Q=B.width,re=B.height;var se=X();(se||!se&&w==="fixed")&&(ie=B.offsetLeft,ue=B.offsetTop)}return{width:Q,height:re,x:ie+me(D),y:ue}}function ia(D){var w,k=ce(D),N=J(D),B=(w=D.ownerDocument)==null?void 0:w.body,Q=H(k.scrollWidth,k.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),re=H(k.scrollHeight,k.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),ie=-N.scrollLeft+me(D),ue=-N.scrollTop;return xe(B||k).direction==="rtl"&&(ie+=H(k.clientWidth,B?B.clientWidth:0)-Q),{width:Q,height:re,x:ie,y:ue}}function $o(D,w){var k=w.getRootNode&&w.getRootNode();if(D.contains(w))return!0;if(k&&ee(k)){var N=w;do{if(N&&D.isSameNode(N))return!0;N=N.parentNode||N.host}while(N)}return!1}function aa(D){return Object.assign({},D,{left:D.x,top:D.y,right:D.x+D.width,bottom:D.y+D.height})}function oa(D,w){var k=V(D,!1,w==="fixed");return k.top=k.top+D.clientTop,k.left=k.left+D.clientLeft,k.bottom=k.top+D.clientHeight,k.right=k.left+D.clientWidth,k.width=D.clientWidth,k.height=D.clientHeight,k.x=k.left,k.y=k.top,k}function St(D,w,k){return w===Dn?aa(zo(D,k)):Y(w)?oa(w,k):aa(ia(ce(D)))}function nl(D){var w=Le(_e(D)),k=["absolute","fixed"].indexOf(xe(D).position)>=0,N=k&&Z(D)?ln(D):D;return Y(N)?w.filter(function(B){return Y(B)&&$o(B,N)&&le(B)!=="body"}):[]}function Dt(D,w,k,N){var B=w==="clippingParents"?nl(D):[].concat(w),Q=[].concat(B,[k]),re=Q[0],ie=Q.reduce(function(ue,se){var de=St(D,se,N);return ue.top=H(de.top,ue.top),ue.right=G(de.right,ue.right),ue.bottom=G(de.bottom,ue.bottom),ue.left=H(de.left,ue.left),ue},St(D,re,N));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}function Wo(){return{top:0,right:0,bottom:0,left:0}}function Fo(D){return Object.assign({},Wo(),D)}function Vo(D,w){return w.reduce(function(k,N){return k[N]=D,k},{})}function ur(D,w){w===void 0&&(w={});var k=w,N=k.placement,B=N===void 0?D.placement:N,Q=k.strategy,re=Q===void 0?D.strategy:Q,ie=k.boundary,ue=ie===void 0?Cn:ie,se=k.rootBoundary,de=se===void 0?Dn:se,Ee=k.elementContext,be=Ee===void 0?On:Ee,ye=k.altBoundary,Me=ye===void 0?!1:ye,Te=k.padding,Ue=Te===void 0?0:Te,ze=Fo(typeof Ue!="number"?Ue:Vo(Ue,Fe)),Ge=be===On?Tn:On,hn=D.rects.popper,Ve=D.elements[Me?Ge:be],an=Dt(Y(Ve)?Ve:Ve.contextElement||ce(D.elements.popper),ue,de,re),rn=V(D.elements.reference),nn=br({reference:rn,element:hn,strategy:"absolute",placement:B}),cn=aa(Object.assign({},hn,nn)),yn=be===On?cn:rn,mn={top:an.top-yn.top+ze.top,bottom:yn.bottom-an.bottom+ze.bottom,left:an.left-yn.left+ze.left,right:yn.right-an.right+ze.right},on=D.modifiersData.offset;if(be===On&&on){var qe=on[B];Object.keys(mn).forEach(function(wn){var Un=[Se,ke].indexOf(wn)>=0?1:-1,Mn=[He,ke].indexOf(wn)>=0?"y":"x";mn[wn]+=qe[Mn]*Un})}return mn}function sa(D,w){w===void 0&&(w={});var k=w,N=k.placement,B=k.boundary,Q=k.rootBoundary,re=k.padding,ie=k.flipVariations,ue=k.allowedAutoPlacements,se=ue===void 0?Xe:ue,de=gt(N),Ee=de?ie?fn:fn.filter(function(Me){return gt(Me)===de}):Fe,be=Ee.filter(function(Me){return se.indexOf(Me)>=0});be.length===0&&(be=Ee);var ye=be.reduce(function(Me,Te){return Me[Te]=ur(D,{placement:Te,boundary:B,rootBoundary:Q,padding:re})[pt(Te)],Me},{});return Object.keys(ye).sort(function(Me,Te){return ye[Me]-ye[Te]})}function Ii(D){if(pt(D)===De)return[];var w=Ln(D);return[ra(D),w,ra(w)]}function la(D){var w=D.state,k=D.options,N=D.name;if(!w.modifiersData[N]._skip){for(var B=k.mainAxis,Q=B===void 0?!0:B,re=k.altAxis,ie=re===void 0?!0:re,ue=k.fallbackPlacements,se=k.padding,de=k.boundary,Ee=k.rootBoundary,be=k.altBoundary,ye=k.flipVariations,Me=ye===void 0?!0:ye,Te=k.allowedAutoPlacements,Ue=w.options.placement,ze=pt(Ue),Ge=ze===Ue,hn=ue||(Ge||!Me?[Ln(Ue)]:Ii(Ue)),Ve=[Ue].concat(hn).reduce(function(Ft,ut){return Ft.concat(pt(ut)===De?sa(w,{placement:ut,boundary:de,rootBoundary:Ee,padding:se,flipVariations:Me,allowedAutoPlacements:Te}):ut)},[]),an=w.rects.reference,rn=w.rects.popper,nn=new Map,cn=!0,yn=Ve[0],mn=0;mn=0,Mn=Un?"width":"height",Sn=ur(w,{placement:on,boundary:de,rootBoundary:Ee,altBoundary:be,padding:se}),Xn=Un?wn?Se:Ne:wn?ke:He;an[Mn]>rn[Mn]&&(Xn=Ln(Xn));var Ur=Ln(Xn),Ot=[];if(Q&&Ot.push(Sn[qe]<=0),ie&&Ot.push(Sn[Xn]<=0,Sn[Ur]<=0),Ot.every(function(Ft){return Ft})){yn=on,cn=!1;break}nn.set(on,Ot)}if(cn)for(var Fi=Me?3:1,zr=function(ut){var $r=Ve.find(function(ir){var yr=nn.get(ir);if(yr)return yr.slice(0,ut).every(function(Vi){return Vi})});if($r)return yn=$r,"break"},ct=Fi;ct>0;ct--){var jr=zr(ct);if(jr==="break")break}w.placement!==yn&&(w.modifiersData[N]._skip=!0,w.placement=yn,w.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:la,requiresIfExists:["offset"],data:{_skip:!1}};function rl(D){return D==="x"?"y":"x"}function Pr(D,w,k){return H(D,G(w,k))}function Xo(D,w,k){var N=Pr(D,w,k);return N>k?k:N}function to(D){var w=D.state,k=D.options,N=D.name,B=k.mainAxis,Q=B===void 0?!0:B,re=k.altAxis,ie=re===void 0?!1:re,ue=k.boundary,se=k.rootBoundary,de=k.altBoundary,Ee=k.padding,be=k.tether,ye=be===void 0?!0:be,Me=k.tetherOffset,Te=Me===void 0?0:Me,Ue=ur(w,{boundary:ue,rootBoundary:se,padding:Ee,altBoundary:de}),ze=pt(w.placement),Ge=gt(w.placement),hn=!Ge,Ve=cr(ze),an=rl(Ve),rn=w.modifiersData.popperOffsets,nn=w.rects.reference,cn=w.rects.popper,yn=typeof Te=="function"?Te(Object.assign({},w.rects,{placement:w.placement})):Te,mn=typeof yn=="number"?{mainAxis:yn,altAxis:yn}:Object.assign({mainAxis:0,altAxis:0},yn),on=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,qe={x:0,y:0};if(rn){if(Q){var wn,Un=Ve==="y"?He:Ne,Mn=Ve==="y"?ke:Se,Sn=Ve==="y"?"height":"width",Xn=rn[Ve],Ur=Xn+Ue[Un],Ot=Xn-Ue[Mn],Fi=ye?-cn[Sn]/2:0,zr=Ge===We?nn[Sn]:cn[Sn],ct=Ge===We?-cn[Sn]:-nn[Sn],jr=w.elements.arrow,Ft=ye&&jr?Qe(jr):{width:0,height:0},ut=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Wo(),$r=ut[Un],ir=ut[Mn],yr=Pr(0,nn[Sn],Ft[Sn]),Vi=hn?nn[Sn]/2-Fi-yr-$r-mn.mainAxis:zr-yr-$r-mn.mainAxis,Nn=hn?-nn[Sn]/2+Fi+yr+ir+mn.mainAxis:ct+yr+ir+mn.mainAxis,ui=w.elements.arrow&&ln(w.elements.arrow),To=ui?Ve==="y"?ui.clientTop||0:ui.clientLeft||0:0,$a=(wn=on==null?void 0:on[Ve])!=null?wn:0,Wa=Xn+Vi-$a-To,Ao=Xn+Nn-$a,Cr=Pr(ye?G(Ur,Wa):Ur,Xn,ye?H(Ot,Ao):Ot);rn[Ve]=Cr,qe[Ve]=Cr-Xn}if(ie){var kn,Fn=Ve==="x"?He:Ne,Gn=Ve==="x"?ke:Se,Vt=rn[an],Er=an==="y"?"height":"width",di=Vt+Ue[Fn],Ms=Vt-Ue[Gn],Hn=[He,Ne].indexOf(ze)!==-1,Fa=(kn=on==null?void 0:on[an])!=null?kn:0,Va=Hn?di:Vt-nn[Er]-cn[Er]-Fa+mn.altAxis,Xa=Hn?Vt+nn[Er]+cn[Er]-Fa-mn.altAxis:Ms,Bt=ye&&Hn?Xo(Va,Vt,Xa):Pr(ye?Va:di,Vt,ye?Xa:Ms);rn[an]=Bt,qe[an]=Bt-Vt}w.modifiersData[N]=qe}}var Oi={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]},il=function(w,k){return w=typeof w=="function"?w(Object.assign({},k.rects,{placement:k.placement})):w,Fo(typeof w!="number"?w:Vo(w,Fe))};function ro(D){var w,k=D.state,N=D.name,B=D.options,Q=k.elements.arrow,re=k.modifiersData.popperOffsets,ie=pt(k.placement),ue=cr(ie),se=[Ne,Se].indexOf(ie)>=0,de=se?"height":"width";if(!(!Q||!re)){var Ee=il(B.padding,k),be=Qe(Q),ye=ue==="y"?He:Ne,Me=ue==="y"?ke:Se,Te=k.rects.reference[de]+k.rects.reference[ue]-re[ue]-k.rects.popper[de],Ue=re[ue]-k.rects.reference[ue],ze=ln(Q),Ge=ze?ue==="y"?ze.clientHeight||0:ze.clientWidth||0:0,hn=Te/2-Ue/2,Ve=Ee[ye],an=Ge-be[de]-Ee[Me],rn=Ge/2-be[de]/2+hn,nn=Pr(Ve,rn,an),cn=ue;k.modifiersData[N]=(w={},w[cn]=nn,w.centerOffset=nn-rn,w)}}function Pn(D){var w=D.state,k=D.options,N=k.element,B=N===void 0?"[data-popper-arrow]":N;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||$o(w.elements.popper,B)&&(w.elements.arrow=B))}var Go={name:"arrow",enabled:!0,phase:"main",fn:ro,effect:Pn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function io(D,w,k){return k===void 0&&(k={x:0,y:0}),{top:D.top-w.height-k.y,right:D.right-w.width+k.x,bottom:D.bottom-w.height+k.y,left:D.left-w.width-k.x}}function ca(D){return[He,Se,ke,Ne].some(function(w){return D[w]>=0})}function Ho(D){var w=D.state,k=D.name,N=w.rects.reference,B=w.rects.popper,Q=w.modifiersData.preventOverflow,re=ur(w,{elementContext:"reference"}),ie=ur(w,{altBoundary:!0}),ue=io(re,N),se=io(ie,B,Q),de=ca(ue),Ee=ca(se);w.modifiersData[k]={referenceClippingOffsets:ue,popperEscapeOffsets:se,isReferenceHidden:de,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":de,"data-popper-escaped":Ee})}var Yo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ho},Qo=[Or,Ja,qi,na,Ke,tl,Oi,Go,Yo],ua=Gr({defaultModifiers:Qo}),Yr=n(32394);function Tt(){return Tt=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function ao(D,w){var U,z,B,Y,ne={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return Y={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function re(se){return function(de){return le([se,de])}}function le(se){if(U)throw new TypeError("Generator is already executing.");for(;ne;)try{if(U=1,z&&(B=se[0]&2?z.return:se[0]?z.throw||((B=z.return)&&B.call(z),0):z.next)&&!(B=B.call(z,se[1])).done)return B;switch(z=0,B&&(se=[se[0]&2,B.value]),se[0]){case 0:case 1:B=se;break;case 4:return ne.label++,{value:se[1],done:!1};case 5:ne.label++,z=se[1],se=[0];continue;case 7:se=ne.ops.pop(),ne.trys.pop();continue;default:if(B=ne.trys,!(B=B.length>0&&B[B.length-1])&&(se[0]===6||se[0]===2)){ne=0;continue}if(se[0]===3&&(!B||se[1]>B[0]&&se[1]=0)&&(k[B]=D[B]);return k}function oo(D,w){var k,N,B,Q,re={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return Q={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ie(se){return function(de){return ue([se,de])}}function ue(se){if(k)throw new TypeError("Generator is already executing.");for(;re;)try{if(k=1,N&&(B=se[0]&2?N.return:se[0]?N.throw||((B=N.return)&&B.call(N),0):N.next)&&!(B=B.call(N,se[1])).done)return B;switch(N=0,B&&(se=[se[0]&2,B.value]),se[0]){case 0:case 1:B=se;break;case 4:return re.label++,{value:se[1],done:!1};case 5:re.label++,N=se[1],se=[0];continue;case 7:se=re.ops.pop(),re.trys.pop();continue;default:if(B=re.trys,!(B=B.length>0&&B[B.length-1])&&(se[0]===6||se[0]===2)){re=0;continue}if(se[0]===3&&(!B||se[1]>B[0]&&se[1]=w?(D.apply(null,ne),U=le):z=setTimeout(function(){return B.apply(void 0,[].concat(ne))},w-(le-(U!=null?U:0)))}},vc=function(D){return new Promise(function(w){return setTimeout(w,D)})},ua=n(92736);/** + */var Zr=function(D,w,k){k===void 0&&(k=!1);var N;return function(){for(var B=arguments.length,Q=new Array(B),re=0;re=w?(D.apply(null,re),k=ue):N=setTimeout(function(){return B.apply(void 0,[].concat(re))},w-(ue-(k!=null?k:0)))}},mc=function(D){return new Promise(function(w){return setTimeout(w,D)})},da=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Zr(){return Zr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function fa(D,w){return fa=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},fa(D,w)}var jt=(0,ua.h)("ByondUi"),Zt=[],ha=function(D){var w=Zt.length;Zt.push(null);var U=D||"byondui_"+w;return jt.log("allocated '"+U+"'"),{render:function(z){jt.log("rendering '"+U+"'"),Zt[w]=U,Byond.winset(U,z)},unmount:function(){jt.log("unmounting '"+U+"'"),Zt[w]=null,Byond.winset(U,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var D=0;D=0)&&(k[B]=D[B]);return k}function ha(D,w){return ha=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},ha(D,w)}var jt=(0,da.h)("ByondUi"),Zt=[],ma=function(D){var w=Zt.length;Zt.push(null);var k=D||"byondui_"+w;return jt.log("allocated '"+k+"'"),{render:function(N){jt.log("rendering '"+k+"'"),Zt[w]=k,Byond.winset(k,N)},unmount:function(){jt.log("unmounting '"+k+"'"),Zt[w]=null,Byond.winset(k,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var D=0;D=0)&&(U[B]=D[B]);return U}function Mr(D,w){return Mr=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},Mr(D,w)}var es=void 0,lo=function(D,w,U,z){if(D.length===0)return[];var B=(0,_r.OY)(Math.min).apply(es,[].concat(D)),Y=(0,_r.OY)(Math.max).apply(es,[].concat(D));U!==void 0&&(B[0]=U[0],Y[0]=U[1]),z!==void 0&&(B[1]=z[0],Y[1]=z[1]);var ne=(0,_r.Tj)(function(re){return(0,_r.OY)(function(le,se,de,Ee){return(le-se)/(de-se)*Ee})(re,B,Y,w)})(D);return ne},co=function(D){for(var w="",U=0;U0){var Ge=Ue[0],fn=Ue[Ue.length-1];Ue.push([ke[0]+Se,fn[1]]),Ue.push([ke[0]+Se,-Se]),Ue.push([-Se,-Se]),Ue.push([-Se,Ge[1]])}var Fe=co(Ue),an=Zn({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(y.az,Zn({position:"relative"},Ae,{children:(0,e.jsx)(y.az,Zn({},an,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+ke[0]+" "+ke[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+ke[1]+")",fill:de,stroke:be,strokeWidth:Se,points:Fe})})}))}))},w}(t.Component),ma={Line:Di};/** + */function es(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Zn(){return Zn=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function Mr(D,w){return Mr=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Mr(D,w)}var ns=void 0,co=function(D,w,k,N){if(D.length===0)return[];var B=(0,_r.OY)(Math.min).apply(ns,[].concat(D)),Q=(0,_r.OY)(Math.max).apply(ns,[].concat(D));k!==void 0&&(B[0]=k[0],Q[0]=k[1]),N!==void 0&&(B[1]=N[0],Q[1]=N[1]);var re=(0,_r.Tj)(function(ie){return(0,_r.OY)(function(ue,se,de,Ee){return(ue-se)/(de-se)*Ee})(ie,B,Q,w)})(D);return re},uo=function(D){for(var w="",k=0;k0){var Ge=ze[0],hn=ze[ze.length-1];ze.push([Ue[0]+Me,hn[1]]),ze.push([Ue[0]+Me,-Me]),ze.push([-Me,-Me]),ze.push([-Me,Ge[1]])}var Ve=uo(ze),an=Zn({},Te,{className:"",ref:this.ref});return(0,e.jsx)(y.az,Zn({position:"relative"},Te,{children:(0,e.jsx)(y.az,Zn({},an,{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:be,strokeWidth:Me,points:Ve})})}))}))},w}(t.Component),xa={Line:Di};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function xa(){return xa=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function sl(D){var w=D.children,U=D.color,z=D.title,B=D.buttons,Y=ol(D,["children","color","title","buttons"]),ne=(0,t.useState)(D.open),re=ne[0],le=ne[1];return(0,e.jsxs)(y.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Qn,xa({fluid:!0,color:U,icon:re?"chevron-down":"chevron-right",onClick:function(){return le(!re)}},Y,{children:z}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),re&&(0,e.jsx)(y.az,{mt:1,children:w})]})}/** + */function pa(){return pa=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function sl(D){var w=D.children,k=D.color,N=D.title,B=D.buttons,Q=ol(D,["children","color","title","buttons"]),re=(0,t.useState)(D.open),ie=re[0],ue=re[1];return(0,e.jsxs)(y.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Qn,pa({fluid:!0,color:k,icon:ie?"chevron-down":"chevron-right",onClick:function(){return ue(!ie)}},Q,{children:N}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),ie&&(0,e.jsx)(y.az,{mt:1,children:w})]})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function uo(){return uo=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function ll(D){var w=D.content,U=D.children,z=D.className,B=fo(D,["content","children","className"]);return B.color=w?null:"default",B.backgroundColor=D.color||"default",(0,e.jsx)("div",uo({className:(0,C.Ly)(["ColorBox",z,(0,y.WP)(B)])},(0,y.Fl)(B),{children:w||"."}))}/** + */function fo(){return fo=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function ll(D){var w=D.content,k=D.children,N=D.className,B=ho(D,["content","children","className"]);return B.color=w?null:"default",B.backgroundColor=D.color||"default",(0,e.jsx)("div",fo({className:(0,C.Ly)(["ColorBox",N,(0,y.WP)(B)])},(0,y.Fl)(B),{children:w||"."}))}/** * @file * @copyright 2022 raffclar * @license MIT - */var ns=function(D){var w=D.title,U=D.onClose,z=D.children,B=D.width,Y=D.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(y.az,{className:"Dialog__content",width:B||"370px",height:Y,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:w}),(0,e.jsx)(y.az,{mr:2,children:(0,e.jsx)(Qn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:U})})]}),z]})})},pa=function(D){var w=D.onClick,U=D.children;return(0,e.jsx)(Qn,{onClick:w,className:"Dialog__button",verticalAlignContent:"middle",children:U})};ns.Button=pa;var mc=function(D){var w=D.documentName,U=D.onSave,z=D.onDiscard,B=D.onClose;return _jsxs(ns,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",w,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(pa,{onClick:U,children:"Save"}),_jsx(pa,{onClick:z,children:"Don't Save"}),_jsx(pa,{onClick:B,children:"Cancel"})]})]})};/** + */var ts=function(D){var w=D.title,k=D.onClose,N=D.children,B=D.width,Q=D.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(y.az,{className:"Dialog__content",width:B||"370px",height:Q,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:w}),(0,e.jsx)(y.az,{mr:2,children:(0,e.jsx)(Qn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:k})})]}),N]})})},ga=function(D){var w=D.onClick,k=D.children;return(0,e.jsx)(Qn,{onClick:w,className:"Dialog__button",verticalAlignContent:"middle",children:k})};ts.Button=ga;var vc=function(D){var w=D.documentName,k=D.onSave,N=D.onDiscard,B=D.onClose;return _jsxs(ts,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",w,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(ga,{onClick:k,children:"Save"}),_jsx(ga,{onClick:N,children:"Don't Save"}),_jsx(ga,{onClick:B,children:"Cancel"})]})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ho(){return ho=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function rs(D){var w=D.className,U=D.children,z=ts(D,["className","children"]);return(0,e.jsx)(y.az,ho({className:(0,C.Ly)(["Dimmer",w])},z,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:U})}))}/** + */function mo(){return mo=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function is(D){var w=D.className,k=D.children,N=rs(D,["className","children"]);return(0,e.jsx)(y.az,mo({className:(0,C.Ly)(["Dimmer",w])},N,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:k})}))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function is(D){var w=D.hidden,U=D.vertical;return(0,e.jsx)("div",{className:(0,C.Ly)(["Divider",w&&"Divider--hidden",U?"Divider--vertical":"Divider--horizontal"])})}/** + */function as(D){var w=D.hidden,k=D.vertical;return(0,e.jsx)("div",{className:(0,C.Ly)(["Divider",w&&"Divider--hidden",k?"Divider--vertical":"Divider--horizontal"])})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function vo(){return vo=Object.assign||function(D){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},Y))},B.handleDragStart=function(Y){var ne=B.props,re=ne.value,le=ne.dragMatrix,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=Y.target,B.setState({dragging:!1,origin:mo(Y,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,be=de.value,ye=B.props.onDrag;Ee&&ye&&ye(Y,be)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(Y){var ne=B.props,re=ne.minValue,le=ne.maxValue,se=ne.step,de=ne.stepPixelSize,Ee=ne.dragMatrix;B.setState(function(be){var ye=vo({},be),Se=mo(Y,Ee)-ye.origin;if(be.dragging){var Ae=Number.isFinite(re)?re%se:0;ye.internalValue=(0,s.qE)(ye.internalValue+Se*se/de,re-se,le+se),ye.value=(0,s.qE)(ye.internalValue-ye.internalValue%se+Ae,re,le),ye.origin=mo(Y,Ee)}else Math.abs(Se)>4&&(ye.dragging=!0);return ye})},B.handleDragEnd=function(Y){var ne=B.props,re=ne.onChange,le=ne.onDrag,se=B.state,de=se.dragging,Ee=se.value,be=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(Y,Ee),le&&le(Y,Ee);else if(B.inputRef){var ye=B.inputRef.current;ye.value=be;try{ye.focus(),ye.select()}catch(Se){}}},B}var U=w.prototype;return U.render=function(){var B=this,Y=this.state,ne=Y.dragging,re=Y.editing,le=Y.value,se=Y.suppressingFlicker,de=this.props,Ee=de.animated,be=de.value,ye=de.unit,Se=de.minValue,Ae=de.maxValue,ke=de.unclamped,Ue=de.format,Ge=de.onChange,fn=de.onDrag,Fe=de.children,an=de.height,rn=de.lineHeight,nn=de.fontSize,cn=be;(ne||se)&&(cn=le);var yn=(0,e.jsxs)(e.Fragment,{children:[Ee&&!ne&&!se?(0,e.jsx)(v,{value:cn,format:Ue}):Ue?Ue(cn):cn,ye?" "+ye:""]}),hn=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:an,lineHeight:rn,fontsize:nn},onBlur:function(on){if(re){var qe;if(ke?qe=parseFloat(on.target.value):qe=(0,s.qE)(parseFloat(on.target.value),Se,Ae),Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),Ge&&Ge(on,qe),fn&&fn(on,qe)}},onKeyDown:function(on){if(on.keyCode===13){var qe;if(ke?qe=parseFloat(on.target.value):qe=(0,s.qE)(parseFloat(on.target.value),Se,Ae),Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),Ge&&Ge(on,qe),fn&&fn(on,qe);return}if(on.keyCode===27){B.setState({editing:!1});return}}});return Fe({dragging:ne,editing:re,value:be,displayValue:cn,displayElement:yn,inputElement:hn,handleDragStart:this.handleDragStart})},w}(t.Component);ga.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var as=n(20878),dl=n.n(as),xc=function(w){return Array.isArray(w)?w[0]:w},fl=function(w){if(typeof w=="function"){for(var U=arguments.length,z=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})},Q))},B.handleDragStart=function(Q){var re=B.props,ie=re.value,ue=re.dragMatrix,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=Q.target,B.setState({dragging:!1,origin:xo(Q,ue),value:ie,internalValue:ie}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var de=B.state,Ee=de.dragging,be=de.value,ye=B.props.onDrag;Ee&&ye&&ye(Q,be)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(Q){var re=B.props,ie=re.minValue,ue=re.maxValue,se=re.step,de=re.stepPixelSize,Ee=re.dragMatrix;B.setState(function(be){var ye=vo({},be),Me=xo(Q,Ee)-ye.origin;if(be.dragging){var Te=Number.isFinite(ie)?ie%se:0;ye.internalValue=(0,s.qE)(ye.internalValue+Me*se/de,ie-se,ue+se),ye.value=(0,s.qE)(ye.internalValue-ye.internalValue%se+Te,ie,ue),ye.origin=xo(Q,Ee)}else Math.abs(Me)>4&&(ye.dragging=!0);return ye})},B.handleDragEnd=function(Q){var re=B.props,ie=re.onChange,ue=re.onDrag,se=B.state,de=se.dragging,Ee=se.value,be=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(),ie&&ie(Q,Ee),ue&&ue(Q,Ee);else if(B.inputRef){var ye=B.inputRef.current;ye.value=be;try{ye.focus(),ye.select()}catch(Me){}}},B}var k=w.prototype;return k.render=function(){var B=this,Q=this.state,re=Q.dragging,ie=Q.editing,ue=Q.value,se=Q.suppressingFlicker,de=this.props,Ee=de.animated,be=de.value,ye=de.unit,Me=de.minValue,Te=de.maxValue,Ue=de.unclamped,ze=de.format,Ge=de.onChange,hn=de.onDrag,Ve=de.children,an=de.height,rn=de.lineHeight,nn=de.fontSize,cn=be;(re||se)&&(cn=ue);var yn=(0,e.jsxs)(e.Fragment,{children:[Ee&&!re&&!se?(0,e.jsx)(m,{value:cn,format:ze}):ze?ze(cn):cn,ye?" "+ye:""]}),mn=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:an,lineHeight:rn,fontsize:nn},onBlur:function(on){if(ie){var qe;if(Ue?qe=parseFloat(on.target.value):qe=(0,s.qE)(parseFloat(on.target.value),Me,Te),Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),Ge&&Ge(on,qe),hn&&hn(on,qe)}},onKeyDown:function(on){if(on.keyCode===13){var qe;if(Ue?qe=parseFloat(on.target.value):qe=(0,s.qE)(parseFloat(on.target.value),Me,Te),Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),Ge&&Ge(on,qe),hn&&hn(on,qe);return}if(on.keyCode===27){B.setState({editing:!1});return}}});return Ve({dragging:re,editing:ie,value:be,displayValue:cn,displayElement:yn,inputElement:mn,handleDragStart:this.handleDragStart})},w}(t.Component);ja.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var os=n(20878),dl=n.n(os),xc=function(w){return Array.isArray(w)?w[0]:w},fl=function(w){if(typeof w=="function"){for(var k=arguments.length,N=new Array(k>1?k-1:0),B=1;B=0)&&(U[B]=D[B]);return U}var go=function(D){return(0,C.Ly)(["Flex",D.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&D.direction==="column"&&"Flex--iefix--column",(0,y.WP)(D)])},qr=function(D){var w=D.className,U=D.direction,z=D.wrap,B=D.align,Y=D.justify,ne=D.inline,re=Ai(D,["className","direction","wrap","align","justify","inline"]);return(0,y.Fl)(vr({style:vr({},re.style,{flexDirection:U,flexWrap:z===!0?"wrap":z,alignItems:B,justifyContent:Y})},re))},yt=function(D){var w=D.className,U=Ai(D,["className"]);return(0,e.jsx)("div",vr({className:(0,C.Ly)([w,go(U)])},qr(U)))},jo=function(D){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,y.WP)(D)])},ei=function(D){var w=D.className,U=D.style,z=D.grow,B=D.order,Y=D.shrink,ne=D.basis,re=D.align,le=Ai(D,["className","style","grow","order","shrink","basis","align"]),se,de=(se=ne!=null?ne:D.width)!=null?se:z!==void 0?0:void 0;return(0,y.Fl)(vr({style:vr({},U,{flexGrow:z!==void 0&&Number(z),flexShrink:Y!==void 0&&Number(Y),flexBasis:(0,y.zA)(de),order:B,alignSelf:re})},le))},xl=function(D){var w=D.className,U=Ai(D,["className"]);return(0,e.jsx)("div",vr({className:(0,C.Ly)([w,jo(D)])},ei(U)))};yt.Item=xl;var Ri=n(19996);/** + */function mr(){return mr=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var jo=function(D){return(0,C.Ly)(["Flex",D.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&D.direction==="column"&&"Flex--iefix--column",(0,y.WP)(D)])},ei=function(D){var w=D.className,k=D.direction,N=D.wrap,B=D.align,Q=D.justify,re=D.inline,ie=Ai(D,["className","direction","wrap","align","justify","inline"]);return(0,y.Fl)(mr({style:mr({},ie.style,{flexDirection:k,flexWrap:N===!0?"wrap":N,alignItems:B,justifyContent:Q})},ie))},yt=function(D){var w=D.className,k=Ai(D,["className"]);return(0,e.jsx)("div",mr({className:(0,C.Ly)([w,jo(k)])},ei(k)))},yo=function(D){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,y.WP)(D)])},ni=function(D){var w=D.className,k=D.style,N=D.grow,B=D.order,Q=D.shrink,re=D.basis,ie=D.align,ue=Ai(D,["className","style","grow","order","shrink","basis","align"]),se,de=(se=re!=null?re:D.width)!=null?se:N!==void 0?0:void 0;return(0,y.Fl)(mr({style:mr({},k,{flexGrow:N!==void 0&&Number(N),flexShrink:Q!==void 0&&Number(Q),flexBasis:(0,y.zA)(de),order:B,alignSelf:ie})},ue))},xl=function(D){var w=D.className,k=Ai(D,["className"]);return(0,e.jsx)("div",mr({className:(0,C.Ly)([w,yo(D)])},ni(k)))};yt.Item=xl;var Ri=n(19996);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Sr(){return Sr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var us=function(D){var w=D.children,U=ya(D,["children"]);return(0,e.jsx)(Ri.XI,Sr({},U,{children:(0,e.jsx)(Ri.XI.Row,{children:w})}))},ds=function(D){var w=D.size,U=w===void 0?1:w,z=D.style,B=ya(D,["size","style"]);return(0,e.jsx)(Ri.XI.Cell,Sr({style:Sr({width:U+"%"},z)},B))};us.Column=ds;function wi(){return wi=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var yc=function(D){var w=D.className,U=D.fixBlur,z=U===void 0?!0:U,B=D.objectFit,Y=B===void 0?"fill":B,ne=D.src,re=D.tooltip,le=pl(D,["className","fixBlur","objectFit","src","tooltip"]),se=computeBoxProps(le);se.style=wi({},se.style,{"-ms-interpolation-mode":z?"nearest-neighbor":"auto",objectFit:Y});var de=_jsx("img",wi({className:w,src:ne},se));return re&&(de=_jsx(Tooltip,{content:re,children:de})),de},gl=n(79500);/** + */function Sr(){return Sr=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var ds=function(D){var w=D.children,k=Ca(D,["children"]);return(0,e.jsx)(Ri.XI,Sr({},k,{children:(0,e.jsx)(Ri.XI.Row,{children:w})}))},fs=function(D){var w=D.size,k=w===void 0?1:w,N=D.style,B=Ca(D,["size","style"]);return(0,e.jsx)(Ri.XI.Cell,Sr({style:Sr({width:k+"%"},N)},B))};ds.Column=fs;function wi(){return wi=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var yc=function(D){var w=D.className,k=D.fixBlur,N=k===void 0?!0:k,B=D.objectFit,Q=B===void 0?"fill":B,re=D.src,ie=D.tooltip,ue=pl(D,["className","fixBlur","objectFit","src","tooltip"]),se=computeBoxProps(ue);se.style=wi({},se.style,{"-ms-interpolation-mode":N?"nearest-neighbor":"auto",objectFit:Q});var de=_jsx("img",wi({className:w,src:re},se));return ie&&(de=_jsx(Tooltip,{content:ie,children:de})),de},gl=n(79500);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ca(){return Ca=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Rt=function(D){var w=D.className,U=D.value,z=D.minValue,B=z===void 0?0:z,Y=D.maxValue,ne=Y===void 0?1:Y,re=D.color,le=D.ranges,se=le===void 0?{}:le,de=D.children,Ee=jl(D,["className","value","minValue","maxValue","color","ranges","children"]),be=(0,s.hs)(U,B,ne),ye=de!==void 0,Se=re||(0,s.TG)(U,se)||"default",Ae=(0,y.Fl)(Ee),ke=["ProgressBar",w,(0,y.WP)(Ee)],Ue={width:(0,s.J$)(be)*100+"%"};return gl.NE.includes(Se)||Se==="default"?ke.push("ProgressBar--color--"+Se):(Ae.style=Ca({},Ae.style,{borderColor:Se}),Ue.backgroundColor=Se),(0,e.jsxs)("div",Ca({className:(0,C.Ly)(ke)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ue}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ye?de:(0,s.Mg)(be*100)+"%"})]}))};/** + */function Ea(){return Ea=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var Rt=function(D){var w=D.className,k=D.value,N=D.minValue,B=N===void 0?0:N,Q=D.maxValue,re=Q===void 0?1:Q,ie=D.color,ue=D.ranges,se=ue===void 0?{}:ue,de=D.children,Ee=jl(D,["className","value","minValue","maxValue","color","ranges","children"]),be=(0,s.hs)(k,B,re),ye=de!==void 0,Me=ie||(0,s.TG)(k,se)||"default",Te=(0,y.Fl)(Ee),Ue=["ProgressBar",w,(0,y.WP)(Ee)],ze={width:(0,s.J$)(be)*100+"%"};return gl.NE.includes(Me)||Me==="default"?Ue.push("ProgressBar--color--"+Me):(Te.style=Ea({},Te.style,{borderColor:Me}),ze.backgroundColor=Me),(0,e.jsxs)("div",Ea({className:(0,C.Ly)(Ue)},Te,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:ze}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ye?de:(0,s.Mg)(be*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function Ut(){return Ut=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Ia=function(D){var w=D.className,U=D.vertical,z=D.fill,B=D.zebra,Y=Ea(D,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack",z&&"Stack--fill",U?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",w,go(D)])},qr(Ut({direction:U?"column":"row"},Y))))},fs=function(D){var w=D.className,U=D.innerRef,z=Ea(D,["className","innerRef"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack__item",w,jo(z)]),ref:U},ei(z)))};Ia.Item=fs;var hs=function(D){var w=D.className,U=D.hidden,z=Ea(D,["className","hidden"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack__item","Stack__divider",U&&"Stack__divider--hidden",w,jo(z)])},ei(z)))};Ia.Divider=hs;function vs(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function ms(){return ms=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function Ki(D,w){return Ki=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},Ki(D,w)}var Oa=.5,xs=1.5,yl=.1,yo=null,Ct=n(6544);/** + */function Ut(){return Ut=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var Oa=function(D){var w=D.className,k=D.vertical,N=D.fill,B=D.zebra,Q=Ia(D,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack",N&&"Stack--fill",k?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",w,jo(D)])},ei(Ut({direction:k?"column":"row"},Q))))},hs=function(D){var w=D.className,k=D.innerRef,N=Ia(D,["className","innerRef"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack__item",w,yo(N)]),ref:k},ni(N)))};Oa.Item=hs;var ms=function(D){var w=D.className,k=D.hidden,N=Ia(D,["className","hidden"]);return(0,e.jsx)("div",Ut({className:(0,C.Ly)(["Stack__item","Stack__divider",k&&"Stack__divider--hidden",w,yo(N)])},ni(N)))};Oa.Divider=ms;function vs(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function xs(){return xs=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function Ki(D,w){return Ki=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Ki(D,w)}var ba=.5,ps=1.5,yl=.1,Co=null,Ct=n(6544);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Li(){return Li=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function ba(D,w){return ba=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},ba(D,w)}var Dr=function(D){return typeof D!="number"&&typeof D!="string"?"":String(D)},gs=function(D){"use strict";ps(w,D);function w(z){var B;return B=D.call(this,z)||this,B.inputRef=(0,t.createRef)(),B.state={editing:!1},B.handleInput=function(Y){var ne=B.state.editing,re=B.props.onInput;ne||B.setEditing(!0),re&&re(Y,Y.target.value)},B.handleFocus=function(Y){var ne=B.state.editing;ne||B.setEditing(!0)},B.handleBlur=function(Y){var ne=B.state.editing,re=B.props.onChange;ne&&(B.setEditing(!1),re&&re(Y,Y.target.value))},B.handleKeyDown=function(Y){var ne=B.props,re=ne.onInput,le=ne.onChange,se=ne.onEnter;if(Y.keyCode===Ct.Ri){B.setEditing(!1),le&&le(Y,Y.target.value),re&&re(Y,Y.target.value),se&&se(Y,Y.target.value),B.props.selfClear?Y.target.value="":Y.target.blur();return}if(Y.keyCode===Ct.s6){if(B.props.onEscape){B.props.onEscape(Y);return}B.setEditing(!1),Y.target.value=Dr(B.props.value),Y.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,Y=this.props.value,ne=this.inputRef.current;ne&&(ne.value=Dr(Y)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){ne.focus(),B.props.autoSelect&&ne.select()},1)},U.componentDidUpdate=function(B,Y){var ne=this.state.editing,re=B.value,le=this.props.value,se=this.inputRef.current;se&&!ne&&re!==le&&(se.value=Dr(le))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,Y=B.selfClear,ne=B.onInput,re=B.onChange,le=B.onEnter,se=B.value,de=B.maxLength,Ee=B.placeholder,be=ki(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),ye=be.className,Se=be.fluid,Ae=be.monospace,ke=ki(be,["className","fluid","monospace"]);return(0,e.jsxs)(y.az,Li({className:(0,C.Ly)(["Input",Se&&"Input--fluid",Ae&&"Input--monospace",ye])},ke,{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}(t.Component),Cl=n(52130);function El(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&Pa(D,w)}function Pa(D,w){return Pa=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},Pa(D,w)}var Tr=null;/** + */function Li(){return Li=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function Pa(D,w){return Pa=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Pa(D,w)}var Dr=function(D){return typeof D!="number"&&typeof D!="string"?"":String(D)},js=function(D){"use strict";gs(w,D);function w(N){var B;return B=D.call(this,N)||this,B.inputRef=(0,t.createRef)(),B.state={editing:!1},B.handleInput=function(Q){var re=B.state.editing,ie=B.props.onInput;re||B.setEditing(!0),ie&&ie(Q,Q.target.value)},B.handleFocus=function(Q){var re=B.state.editing;re||B.setEditing(!0)},B.handleBlur=function(Q){var re=B.state.editing,ie=B.props.onChange;re&&(B.setEditing(!1),ie&&ie(Q,Q.target.value))},B.handleKeyDown=function(Q){var re=B.props,ie=re.onInput,ue=re.onChange,se=re.onEnter;if(Q.keyCode===Ct.Ri){B.setEditing(!1),ue&&ue(Q,Q.target.value),ie&&ie(Q,Q.target.value),se&&se(Q,Q.target.value),B.props.selfClear?Q.target.value="":Q.target.blur();return}if(Q.keyCode===Ct.s6){if(B.props.onEscape){B.props.onEscape(Q);return}B.setEditing(!1),Q.target.value=Dr(B.props.value),Q.target.blur();return}},B}var k=w.prototype;return k.componentDidMount=function(){var B=this,Q=this.props.value,re=this.inputRef.current;re&&(re.value=Dr(Q)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){re.focus(),B.props.autoSelect&&re.select()},1)},k.componentDidUpdate=function(B,Q){var re=this.state.editing,ie=B.value,ue=this.props.value,se=this.inputRef.current;se&&!re&&ie!==ue&&(se.value=Dr(ue))},k.setEditing=function(B){this.setState({editing:B})},k.render=function(){var B=this.props,Q=B.selfClear,re=B.onInput,ie=B.onChange,ue=B.onEnter,se=B.value,de=B.maxLength,Ee=B.placeholder,be=ki(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),ye=be.className,Me=be.fluid,Te=be.monospace,Ue=ki(be,["className","fluid","monospace"]);return(0,e.jsxs)(y.az,Li({className:(0,C.Ly)(["Input",Me&&"Input--fluid",Te&&"Input--monospace",ye])},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}(t.Component),Cl=n(52130);function El(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&_a(D,w)}function _a(D,w){return _a=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},_a(D,w)}var Tr=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ar(){return Ar=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Il=function(D){var w=D.animated,U=D.format,z=D.maxValue,B=D.minValue,Y=D.unclamped,ne=D.onChange,re=D.onDrag,le=D.step,se=D.stepPixelSize,de=D.suppressFlicker,Ee=D.unit,be=D.value,ye=D.className,Se=D.style,Ae=D.fillValue,ke=D.color,Ue=D.ranges,Ge=Ue===void 0?{}:Ue,fn=D.size,Fe=fn===void 0?1:fn,an=D.bipolar,rn=D.children,nn=Co(D,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(ga,{dragMatrix:[0,-1],animated:w,format:U,maxValue:z,minValue:B,unclamped:Y,onChange:ne,onDrag:re,step:le,stepPixelSize:se,suppressFlicker:de,unit:Ee,value:be,children:function(cn){var yn=cn.dragging,hn=cn.editing,on=cn.value,qe=cn.displayValue,wn=cn.displayElement,Un=cn.inputElement,Mn=cn.handleDragStart,Sn=(0,s.hs)(Ae!=null?Ae:qe,B,z),Xn=(0,s.hs)(qe,B,z),Ur=ke||(0,s.TG)(Ae!=null?Ae:on,Ge)||"default",Ot=Math.min((Xn-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.Ly)(["Knob","Knob--color--"+Ur,an&&"Knob--bipolar",ye,(0,y.WP)(nn)])},(0,y.Fl)(Ar({style:Ar({fontSize:Fe+"em"},Se)},nn)),{onMouseDown:Mn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Ot+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),yn&&(0,e.jsx)("div",{className:"Knob__popupValue",children:wn}),(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(((an?2.75:2)-Sn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Un]}))}})};/** + */function Ar(){return Ar=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var Il=function(D){var w=D.animated,k=D.format,N=D.maxValue,B=D.minValue,Q=D.unclamped,re=D.onChange,ie=D.onDrag,ue=D.step,se=D.stepPixelSize,de=D.suppressFlicker,Ee=D.unit,be=D.value,ye=D.className,Me=D.style,Te=D.fillValue,Ue=D.color,ze=D.ranges,Ge=ze===void 0?{}:ze,hn=D.size,Ve=hn===void 0?1:hn,an=D.bipolar,rn=D.children,nn=Eo(D,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(ja,{dragMatrix:[0,-1],animated:w,format:k,maxValue:N,minValue:B,unclamped:Q,onChange:re,onDrag:ie,step:ue,stepPixelSize:se,suppressFlicker:de,unit:Ee,value:be,children:function(cn){var yn=cn.dragging,mn=cn.editing,on=cn.value,qe=cn.displayValue,wn=cn.displayElement,Un=cn.inputElement,Mn=cn.handleDragStart,Sn=(0,s.hs)(Te!=null?Te:qe,B,N),Xn=(0,s.hs)(qe,B,N),Ur=Ue||(0,s.TG)(Te!=null?Te:on,Ge)||"default",Ot=Math.min((Xn-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.Ly)(["Knob","Knob--color--"+Ur,an&&"Knob--bipolar",ye,(0,y.WP)(nn)])},(0,y.Fl)(Ar({style:Ar({fontSize:Ve+"em"},Me)},nn)),{onMouseDown:Mn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Ot+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),yn&&(0,e.jsx)("div",{className:"Knob__popupValue",children:wn}),(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(((an?2.75:2)-Sn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Un]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function _a(){return _a=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function js(D){var w=D.children,U=D.wrap,z=ni(D,["children","wrap"]);return(0,e.jsx)(yt,_a({mx:-.5,wrap:U,align:"stretch",justify:"space-between"},z,{children:w}))}function ys(D){var w=D.label,U=D.children,z=D.mx,B=z===void 0?1:z,Y=ni(D,["label","children","mx"]);return(0,e.jsx)(yt.Item,{mx:B,children:(0,e.jsxs)(yt,_a({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},Y,{children:[(0,e.jsx)(yt.Item,{}),(0,e.jsx)(yt.Item,{children:U}),(0,e.jsx)(yt.Item,{color:"label",children:w})]}))})}js.Item=ys;/** + */function Ma(){return Ma=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function ys(D){var w=D.children,k=D.wrap,N=ti(D,["children","wrap"]);return(0,e.jsx)(yt,Ma({mx:-.5,wrap:k,align:"stretch",justify:"space-between"},N,{children:w}))}function Cs(D){var w=D.label,k=D.children,N=D.mx,B=N===void 0?1:N,Q=ti(D,["label","children","mx"]);return(0,e.jsx)(yt.Item,{mx:B,children:(0,e.jsxs)(yt,Ma({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},Q,{children:[(0,e.jsx)(yt.Item,{}),(0,e.jsx)(yt.Item,{children:k}),(0,e.jsx)(yt.Item,{color:"label",children:w})]}))})}ys.Item=Cs;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var Rr=function(D){var w=D.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Bn=function(D){var w=D.className,U=D.label,z=D.labelColor,B=z===void 0?"label":z,Y=D.labelWrap,ne=D.color,re=D.textAlign,le=D.buttons,se=D.content,de=D.children,Ee=D.verticalAlign,be=Ee===void 0?"baseline":Ee,ye=D.tooltip,Se;U&&(Se=U,typeof U=="string"&&(Se+=":")),ye!==void 0&&(Se=(0,e.jsx)(ot,{content:ye,children:(0,e.jsx)(y.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Se})}));var Ae=(0,e.jsx)(y.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!Y&&"LabeledList__label--nowrap"]),verticalAlign:be,children:Se});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Ae,(0,e.jsxs)(y.az,{as:"td",color:ne,textAlign:re,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:le?void 0:2,verticalAlign:be,children:[se,de]}),le&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:le})]})},Eo=function(D){var w=D.size?(0,y.zA)(Math.max(0,D.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)(is,{})})})};Rr.Item=Bn,Rr.Divider=Eo;/** + */var Rr=function(D){var w=D.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Bn=function(D){var w=D.className,k=D.label,N=D.labelColor,B=N===void 0?"label":N,Q=D.labelWrap,re=D.color,ie=D.textAlign,ue=D.buttons,se=D.content,de=D.children,Ee=D.verticalAlign,be=Ee===void 0?"baseline":Ee,ye=D.tooltip,Me;k&&(Me=k,typeof k=="string"&&(Me+=":")),ye!==void 0&&(Me=(0,e.jsx)(ot,{content:ye,children:(0,e.jsx)(y.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var Te=(0,e.jsx)(y.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!Q&&"LabeledList__label--nowrap"]),verticalAlign:be,children:Me});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Te,(0,e.jsxs)(y.az,{as:"td",color:re,textAlign:ie,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ue?void 0:2,verticalAlign:be,children:[se,de]}),ue&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ue})]})},Io=function(D){var w=D.size?(0,y.zA)(Math.max(0,D.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)(as,{})})})};Rr.Item=Bn,Rr.Divider=Io;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT - */function ti(){return ti=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function Ni(D,w){return Ni=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},Ni(D,w)}var Ui=function(D){"use strict";ri(w,D);function w(z){var B;return B=D.call(this,z)||this,B.handleClick=function(Y){if(!B.props.menuRef.current){ua.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(Y.target)?ua.v.log("Menu.handleClick(): Inside"):(ua.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,Y=B.width,ne=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:Y},children:ne})},w}(t.Component),Ma=function(D){"use strict";ri(w,D);function w(z){var B;return B=D.call(this,z)||this,B.menuRef=(0,t.createRef)(),B}var U=w.prototype;return U.render=function(){var B=this.props,Y=B.open,ne=B.openWidth,re=B.children,le=B.disabled,se=B.display,de=B.onMouseOver,Ee=B.onClick,be=B.onOutsideClick,ye=Io(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Se=ye.className,Ae=Io(ye,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(y.az,ti({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Se])},Ae,{onClick:le?function(){return null}:Ee,onMouseOver:de,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:se})})),Y&&(0,e.jsx)(Ui,{width:ne,menuRef:this.menuRef,onOutsideClick:be,children:re})]})},w}(t.Component),Jt=function(D){var w=D.entry,U=D.children,z=D.openWidth,B=D.display,Y=D.setOpenMenuBar,ne=D.openMenuBar,re=D.setOpenOnHover,le=D.openOnHover,se=D.disabled,de=D.className;return(0,e.jsx)(Ma,{openWidth:z,display:B,disabled:se,open:ne===w,className:de,onClick:function(){var Ee=ne===w?null:w;Y(Ee),re(!le)},onOutsideClick:function(){Y(null),re(!1)},onMouseOver:function(){le&&Y(w)},children:U})},Cs=function(D){var w=D.value,U=D.displayText,z=D.onClick,B=D.checked;return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return z(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),U]})};Jt.MenuItemToggle=Cs;var Ol=function(D){var w=D.value,U=D.displayText,z=D.onClick;return(0,e.jsx)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return z(w)},children:U})};Jt.MenuItem=Ol;var bl=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Jt.Separator=bl;var Es=function(D){var w=D.children;return(0,e.jsx)(y.az,{className:"MenuBar",children:w})};Es.Dropdown=Jt;/** + */function ri(){return ri=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function Ni(D,w){return Ni=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Ni(D,w)}var Ui=function(D){"use strict";ii(w,D);function w(N){var B;return B=D.call(this,N)||this,B.handleClick=function(Q){if(!B.props.menuRef.current){da.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(Q.target)?da.v.log("Menu.handleClick(): Inside"):(da.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var k=w.prototype;return k.componentWillMount=function(){window.addEventListener("click",this.handleClick)},k.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},k.render=function(){var B=this.props,Q=B.width,re=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:Q},children:re})},w}(t.Component),Sa=function(D){"use strict";ii(w,D);function w(N){var B;return B=D.call(this,N)||this,B.menuRef=(0,t.createRef)(),B}var k=w.prototype;return k.render=function(){var B=this.props,Q=B.open,re=B.openWidth,ie=B.children,ue=B.disabled,se=B.display,de=B.onMouseOver,Ee=B.onClick,be=B.onOutsideClick,ye=Oo(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ye.className,Te=Oo(ye,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(y.az,ri({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},Te,{onClick:ue?function(){return null}:Ee,onMouseOver:de,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:se})})),Q&&(0,e.jsx)(Ui,{width:re,menuRef:this.menuRef,onOutsideClick:be,children:ie})]})},w}(t.Component),Jt=function(D){var w=D.entry,k=D.children,N=D.openWidth,B=D.display,Q=D.setOpenMenuBar,re=D.openMenuBar,ie=D.setOpenOnHover,ue=D.openOnHover,se=D.disabled,de=D.className;return(0,e.jsx)(Sa,{openWidth:N,display:B,disabled:se,open:re===w,className:de,onClick:function(){var Ee=re===w?null:w;Q(Ee),ie(!ue)},onOutsideClick:function(){Q(null),ie(!1)},onMouseOver:function(){ue&&Q(w)},children:k})},Es=function(D){var w=D.value,k=D.displayText,N=D.onClick,B=D.checked;return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return N(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),k]})};Jt.MenuItemToggle=Es;var Ol=function(D){var w=D.value,k=D.displayText,N=D.onClick;return(0,e.jsx)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return N(w)},children:k})};Jt.MenuItem=Ol;var bl=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Jt.Separator=bl;var Is=function(D){var w=D.children;return(0,e.jsx)(y.az,{className:"MenuBar",children:w})};Is.Dropdown=Jt;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ii(){return ii=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Oo=function(D){var w=D.className,U=D.children,z=D.onEnter,B=Sa(D,["className","children","onEnter"]),Y;return z&&(Y=function(ne){var re=ne.which||ne.keyCode;re===13&&z(ne)}),(0,e.jsx)(rs,{onKeyDown:Y,children:(0,e.jsx)("div",ii({className:(0,C.Ly)(["Modal",w,(0,y.WP)(B)])},(0,y.Fl)(B),{children:U}))})},bo=n(31200),Da=n(7081);function zi(){return zi=Object.assign||function(D){for(var w=1;w500&&(be=500);var ye=se.offsetY-256*Ee;return ye<-200&&(ye=-200),ye>200&&(ye=200),se.offsetX=be,se.offsetY=ye,z.onZoom&&z.onZoom(se.zoom),se})},B}var U=w.prototype;return U.render=function(){var B=(0,Da.Oc)().config,Y=this.state,ne=Y.dragging,re=Y.offsetX,le=Y.offsetY,se=Y.zoom,de=se===void 0?1:se,Ee=this.props.children,be=(0,bo.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ye=this.props.zoomScale*de+"px",Se={width:ye,height:ye,"margin-top":le+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+be+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(y.az,{className:"NanoMap__container",children:[(0,e.jsx)(y.az,{style:Se,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.az,{children:Ee})}),(0,e.jsx)(qt,{zoom:de,onZoom:this.handleZoom})]})},w}(t.Component),_o=function(D){var w=D.x,U=D.y,z=D.zoom,B=z===void 0?1:z,Y=D.icon,ne=D.tooltip,re=D.color,le=D.onClick,se=function(be){Aa(be),le&&le(be)},de=w*2*B-B-3,Ee=U*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:de+"px",onMouseDown:se,children:[(0,e.jsx)(R,{name:Y,color:re,fontSize:"6px"}),(0,e.jsx)(ot,{content:ne})]})})};Po.Marker=_o;var qt=function(D){var w=(0,Da.Oc)(),U=w.act,z=w.config,B=w.data;return(0,e.jsx)(y.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Rr,{children:[(0,e.jsx)(Rr.Item,{label:"Zoom",children:(0,e.jsx)(ka,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(Y){return Y+"x"},value:D.zoom,onDrag:function(Y,ne){return D.onZoom(Y,ne)}})}),(0,e.jsx)(Rr.Item,{label:"Z-Level",children:B.map_levels.sort(function(Y,ne){return Number(Y)-Number(ne)}).map(function(Y){return(0,e.jsx)(Qn,{selected:~~Y===~~z.mapZLevel,onClick:function(){U("setZLevel",{mapZLevel:Y})},children:Y},Y)})})]})})};Po.Zoomer=qt;/** + */function ai(){return ai=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var bo=function(D){var w=D.className,k=D.children,N=D.onEnter,B=Da(D,["className","children","onEnter"]),Q;return N&&(Q=function(re){var ie=re.which||re.keyCode;ie===13&&N(re)}),(0,e.jsx)(is,{onKeyDown:Q,children:(0,e.jsx)("div",ai({className:(0,C.Ly)(["Modal",w,(0,y.WP)(B)])},(0,y.Fl)(B),{children:k}))})},Po=n(31200),Ta=n(7081);function zi(){return zi=Object.assign||function(D){for(var w=1;w500&&(be=500);var ye=se.offsetY-256*Ee;return ye<-200&&(ye=-200),ye>200&&(ye=200),se.offsetX=be,se.offsetY=ye,N.onZoom&&N.onZoom(se.zoom),se})},B}var k=w.prototype;return k.render=function(){var B=(0,Ta.Oc)().config,Q=this.state,re=Q.dragging,ie=Q.offsetX,ue=Q.offsetY,se=Q.zoom,de=se===void 0?1:se,Ee=this.props.children,be=(0,Po.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ye=this.props.zoomScale*de+"px",Me={width:ye,height:ye,"margin-top":ue+"px","margin-left":ie+"px",overflow:"hidden",position:"relative","background-image":"url("+be+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:re?"move":"auto"};return(0,e.jsxs)(y.az,{className:"NanoMap__container",children:[(0,e.jsx)(y.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.az,{children:Ee})}),(0,e.jsx)(qt,{zoom:de,onZoom:this.handleZoom})]})},w}(t.Component),Mo=function(D){var w=D.x,k=D.y,N=D.zoom,B=N===void 0?1:N,Q=D.icon,re=D.tooltip,ie=D.color,ue=D.onClick,se=function(be){Ra(be),ue&&ue(be)},de=w*2*B-B-3,Ee=k*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:de+"px",onMouseDown:se,children:[(0,e.jsx)(R,{name:Q,color:ie,fontSize:"6px"}),(0,e.jsx)(ot,{content:re})]})})};_o.Marker=Mo;var qt=function(D){var w=(0,Ta.Oc)(),k=w.act,N=w.config,B=w.data;return(0,e.jsx)(y.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Rr,{children:[(0,e.jsx)(Rr.Item,{label:"Zoom",children:(0,e.jsx)(Na,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(Q){return Q+"x"},value:D.zoom,onDrag:function(Q,re){return D.onZoom(Q,re)}})}),(0,e.jsx)(Rr.Item,{label:"Z-Level",children:B.map_levels.sort(function(Q,re){return Number(Q)-Number(re)}).map(function(Q){return(0,e.jsx)(Qn,{selected:~~Q===~~N.mapZLevel,onClick:function(){k("setZLevel",{mapZLevel:Q})},children:Q},Q)})})]})})};_o.Zoomer=qt;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ra(){return Ra=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function zt(D){var w=D.className,U=D.color,z=D.info,B=D.success,Y=D.danger,ne=ai(D,["className","color","info","success","danger"]);return(0,e.jsx)(y.az,Ra({className:(0,C.Ly)(["NoticeBox",U&&"NoticeBox--color--"+U,z&&"NoticeBox--type--info",B&&"NoticeBox--type--success",Y&&"NoticeBox--type--danger",w])},ne))}/** + */function wa(){return wa=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function zt(D){var w=D.className,k=D.color,N=D.info,B=D.success,Q=D.danger,re=oi(D,["className","color","info","success","danger"]);return(0,e.jsx)(y.az,wa({className:(0,C.Ly)(["NoticeBox",k&&"NoticeBox--color--"+k,N&&"NoticeBox--type--info",B&&"NoticeBox--type--success",Q&&"NoticeBox--type--danger",w])},re))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function wr(){return wr=Object.assign||function(D){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ne))},B.handleDragStart=function(ne){var re=B.props.value,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=ne.target,B.setState({dragging:!1,origin:ne.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,be=B.props.onDrag;de&&be&&be(ne,Ee)},B.props.updateRate||_l),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(ne){var re=B.props,le=re.minValue,se=re.maxValue,de=re.step,Ee=re.stepPixelSize;B.setState(function(be){var ye=wr({},be),Se=ye.origin-ne.screenY;if(be.dragging){var Ae=Number.isFinite(le)?le%de:0;ye.internalValue=(0,s.qE)(ye.internalValue+Se*de/Ee,le-de,se+de),ye.value=(0,s.qE)(ye.internalValue-ye.internalValue%de+Ae,le,se),ye.origin=ne.screenY}else Math.abs(Se)>4&&(ye.dragging=!0);return ye})},B.handleDragEnd=function(ne){var re=B.props,le=re.onChange,se=re.onDrag,de=B.state,Ee=de.dragging,be=de.value,ye=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(ne,be),se&&se(ne,be);else if(B.inputRef){var Se=B.inputRef.current;Se.value=ye;try{Se.focus(),Se.select()}catch(Ae){}}},B}var U=w.prototype;return U.render=function(){var B=this,Y=this.state,ne=Y.dragging,re=Y.editing,le=Y.value,se=Y.suppressingFlicker,de=this.props,Ee=de.className,be=de.fluid,ye=de.animated,Se=de.value,Ae=de.unit,ke=de.minValue,Ue=de.maxValue,Ge=de.height,fn=de.width,Fe=de.lineHeight,an=de.fontSize,rn=de.format,nn=de.onChange,cn=de.onDrag,yn=Se;(ne||se)&&(yn=le);var hn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ye&&!ne&&!se?(0,e.jsx)(v,{value:yn,format:rn}):rn?rn(yn):yn,Ae?" "+Ae:""]});return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["NumberInput",be&&"NumberInput--fluid",Ee]),minWidth:fn,minHeight:Ge,lineHeight:Fe,fontSize:an,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((yn-ke)/(Ue-ke)*100,0,100)+"%"}})}),hn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Ge,lineHeight:Fe,fontSize:an},onBlur:function(on){if(re){var qe=(0,s.qE)(parseFloat(on.target.value),ke,Ue);if(Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),nn&&nn(on,qe),cn&&cn(on,qe)}},onKeyDown:function(on){if(on.keyCode===13){var qe=(0,s.qE)(parseFloat(on.target.value),ke,Ue);if(Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),nn&&nn(on,qe),cn&&cn(on,qe);return}if(on.keyCode===27){B.setState({editing:!1});return}}})]})},w}(t.Component);Is.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function nr(){return nr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function oi(D,w){return oi=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},oi(D,w)}var wa=0,Kr=1e4,mr=function(D,w,U,z){var B=w||wa,Y=U||U===0?U:Kr,ne=z?D.replace(/[^\-\d.]/g,""):D.replace(/[^\-\d]/g,"");return z&&(ne=xr(ne,B),ne=Jn(".",ne)),w<0?(ne=An(ne),ne=Jn("-",ne)):ne=ne.replaceAll("-",""),B<=1&&Y>=0?Kn(ne,B,Y,z):ne},Kn=function(D,w,U,z){var B=z?parseFloat(D):parseInt(D,10);if(!isNaN(B)&&(D.slice(-1)!=="."||B0?(D=D.replace("-",""),w="-".concat(D)):U===0&&D.indexOf("-",U+1)>0&&(w=D.replaceAll("-","")),w},xr=function(D,w){var U=D,z=Math.sign(w)*Math.floor(Math.abs(w));return D.indexOf(".")===0?U=String(z).concat(D):D.indexOf("-")===0&&D.indexOf(".")===1&&(U=z+".".concat(D.slice(2))),U},Jn=function(D,w){var U=w.indexOf(D),z=w.length,B=w;if(U!==-1&&U0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},re))},B.handleDragStart=function(re){var ie=B.props.value,ue=B.state.editing;ue||(document.body.style["pointer-events"]="none",B.ref=re.target,B.setState({dragging:!1,origin:re.screenY,value:ie,internalValue:ie}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var se=B.state,de=se.dragging,Ee=se.value,be=B.props.onDrag;de&&be&&be(re,Ee)},B.props.updateRate||_l),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(re){var ie=B.props,ue=ie.minValue,se=ie.maxValue,de=ie.step,Ee=ie.stepPixelSize;B.setState(function(be){var ye=wr({},be),Me=ye.origin-re.screenY;if(be.dragging){var Te=Number.isFinite(ue)?ue%de:0;ye.internalValue=(0,s.qE)(ye.internalValue+Me*de/Ee,ue-de,se+de),ye.value=(0,s.qE)(ye.internalValue-ye.internalValue%de+Te,ue,se),ye.origin=re.screenY}else Math.abs(Me)>4&&(ye.dragging=!0);return ye})},B.handleDragEnd=function(re){var ie=B.props,ue=ie.onChange,se=ie.onDrag,de=B.state,Ee=de.dragging,be=de.value,ye=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(),ue&&ue(re,be),se&&se(re,be);else if(B.inputRef){var Me=B.inputRef.current;Me.value=ye;try{Me.focus(),Me.select()}catch(Te){}}},B}var k=w.prototype;return k.render=function(){var B=this,Q=this.state,re=Q.dragging,ie=Q.editing,ue=Q.value,se=Q.suppressingFlicker,de=this.props,Ee=de.className,be=de.fluid,ye=de.animated,Me=de.value,Te=de.unit,Ue=de.minValue,ze=de.maxValue,Ge=de.height,hn=de.width,Ve=de.lineHeight,an=de.fontSize,rn=de.format,nn=de.onChange,cn=de.onDrag,yn=Me;(re||se)&&(yn=ue);var mn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ye&&!re&&!se?(0,e.jsx)(m,{value:yn,format:rn}):rn?rn(yn):yn,Te?" "+Te:""]});return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["NumberInput",be&&"NumberInput--fluid",Ee]),minWidth:hn,minHeight:Ge,lineHeight:Ve,fontSize:an,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((yn-Ue)/(ze-Ue)*100,0,100)+"%"}})}),mn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ie?void 0:"none",height:Ge,lineHeight:Ve,fontSize:an},onBlur:function(on){if(ie){var qe=(0,s.qE)(parseFloat(on.target.value),Ue,ze);if(Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),nn&&nn(on,qe),cn&&cn(on,qe)}},onKeyDown:function(on){if(on.keyCode===13){var qe=(0,s.qE)(parseFloat(on.target.value),Ue,ze);if(Number.isNaN(qe)){B.setState({editing:!1});return}B.setState({editing:!1,value:qe}),B.suppressFlicker(),nn&&nn(on,qe),cn&&cn(on,qe);return}if(on.keyCode===27){B.setState({editing:!1});return}}})]})},w}(t.Component);Os.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function nr(){return nr=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function si(D,w){return si=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},si(D,w)}var Ba=0,Kr=1e4,vr=function(D,w,k,N){var B=w||Ba,Q=k||k===0?k:Kr,re=N?D.replace(/[^\-\d.]/g,""):D.replace(/[^\-\d]/g,"");return N&&(re=xr(re,B),re=Jn(".",re)),w<0?(re=An(re),re=Jn("-",re)):re=re.replaceAll("-",""),B<=1&&Q>=0?Kn(re,B,Q,N):re},Kn=function(D,w,k,N){var B=N?parseFloat(D):parseInt(D,10);if(!isNaN(B)&&(D.slice(-1)!=="."||B0?(D=D.replace("-",""),w="-".concat(D)):k===0&&D.indexOf("-",k+1)>0&&(w=D.replaceAll("-","")),w},xr=function(D,w){var k=D,N=Math.sign(w)*Math.floor(Math.abs(w));return D.indexOf(".")===0?k=String(N).concat(D):D.indexOf("-")===0&&D.indexOf(".")===1&&(k=N+".".concat(D.slice(2))),k},Jn=function(D,w){var k=w.indexOf(D),N=w.length,B=w;if(k!==-1&&k=0)&&(U[B]=D[B]);return U}var Mo=function(D){var w=D.value,U=D.minValue,z=U===void 0?1:U,B=D.maxValue,Y=B===void 0?1:B,ne=D.ranges,re=D.alertAfter,le=D.alertBefore,se=D.format,de=D.size,Ee=de===void 0?1:de,be=D.className,ye=D.style,Se=st(D,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(w,z,Y),ke=clamp01(Ae),Ue=ne?{}:{primary:[0,1]};ne&&Object.keys(ne).forEach(function(Fe){var an=ne[Fe];Ue[Fe]=[scale(an[0],z,Y),scale(an[1],z,Y)]});var Ge=function(){if(re&&le&&rew)return!0}else if(rew)return!0;return!1},fn=Ge()&&keyOfMatchingRange(ke,Ue);return _jsxs(Box,{inline:!0,children:[_jsx("div",$t({className:classes(["RoundGauge",be,computeBoxClassName(Se)])},computeBoxProps($t({style:$t({fontSize:Ee+"em"},ye)},Se)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(re||le)&&_jsx("g",{className:classes(["RoundGauge__alert",fn?"active RoundGauge__alert--"+fn:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Ue).map(function(Fe,an){var rn=Ue[Fe];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Fe,style:{strokeDashoffset:Math.max((2-(rn[1]-rn[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*rn[0])+" 50 50)",cx:"50",cy:"50",r:"45"},an)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(ke*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:w,format:se,size:Ee})]})},So=n(37912);/** + */function $t(){return $t=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var So=function(D){var w=D.value,k=D.minValue,N=k===void 0?1:k,B=D.maxValue,Q=B===void 0?1:B,re=D.ranges,ie=D.alertAfter,ue=D.alertBefore,se=D.format,de=D.size,Ee=de===void 0?1:de,be=D.className,ye=D.style,Me=st(D,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Te=scale(w,N,Q),Ue=clamp01(Te),ze=re?{}:{primary:[0,1]};re&&Object.keys(re).forEach(function(Ve){var an=re[Ve];ze[Ve]=[scale(an[0],N,Q),scale(an[1],N,Q)]});var Ge=function(){if(ie&&ue&&iew)return!0}else if(iew)return!0;return!1},hn=Ge()&&keyOfMatchingRange(Ue,ze);return _jsxs(Box,{inline:!0,children:[_jsx("div",$t({className:classes(["RoundGauge",be,computeBoxClassName(Me)])},computeBoxProps($t({style:$t({fontSize:Ee+"em"},ye)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ie||ue)&&_jsx("g",{className:classes(["RoundGauge__alert",hn?"active RoundGauge__alert--"+hn:""]),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(ze).map(function(Ve,an){var rn=ze[Ve];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Ve,style:{strokeDashoffset:Math.max((2-(rn[1]-rn[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*rn[0])+" 50 50)",cx:"50",cy:"50",r:"45"},an)})}),_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})]})},Do=n(37912);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ba(){return Ba=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Os=function(D){var w=D.buttons,U=D.children,z=D.className,B=D.fill,Y=D.fitted,ne=D.onScroll,re=D.scrollable,le=D.scrollableHorizontal,se=D.title,de=D.container_id,Ee=D.flexGrow,be=D.noTopPadding,ye=D.stretchContents,Se=Ka(D,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,t.useRef)(null),ke=(0,C.b5)(se)||(0,C.b5)(w);return(0,t.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!re&&!le)){var Ue=Ae.current;return(0,So.tk)(Ue),function(){Ue&&(0,So.WK)(Ue)}}},[]),(0,e.jsxs)("div",Ba({id:de||"",className:(0,C.Ly)(["Section",B&&"Section--fill",Y&&"Section--fitted",re&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",z,(0,y.WP)(Se)])},(0,y.Fl)(Se),{children:[ke&&(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",!!ye&&"Section__content--stretchContents",!!be&&"Section__content--noTopPadding"]),onScroll:ne,ref:Ae,children:U})})]}))};/** + */function Ka(){return Ka=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var bs=function(D){var w=D.buttons,k=D.children,N=D.className,B=D.fill,Q=D.fitted,re=D.onScroll,ie=D.scrollable,ue=D.scrollableHorizontal,se=D.title,de=D.container_id,Ee=D.flexGrow,be=D.noTopPadding,ye=D.stretchContents,Me=La(D,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Te=(0,t.useRef)(null),Ue=(0,C.b5)(se)||(0,C.b5)(w);return(0,t.useEffect)(function(){if(Te!=null&&Te.current&&!(!ie&&!ue)){var ze=Te.current;return(0,Do.tk)(ze),function(){ze&&(0,Do.WK)(ze)}}},[]),(0,e.jsxs)("div",Ka({id:de||"",className:(0,C.Ly)(["Section",B&&"Section--fill",Q&&"Section--fitted",ie&&"Section--scrollable",ue&&"Section--scrollableHorizontal",Ee&&"Section--flex",N,(0,y.WP)(Me)])},(0,y.Fl)(Me),{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",!!ye&&"Section__content--stretchContents",!!be&&"Section__content--noTopPadding"]),onScroll:re,ref:Te,children:k})})]}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function wt(){return wt=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var ka=function(D){var w=D.animated,U=D.format,z=D.maxValue,B=D.minValue,Y=D.onChange,ne=D.onDrag,re=D.step,le=D.stepPixelSize,se=D.suppressFlicker,de=D.unit,Ee=D.value,be=D.className,ye=D.fillValue,Se=D.color,Ae=D.ranges,ke=Ae===void 0?{}:Ae,Ue=D.children,Ge=La(D,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),fn=Ue!==void 0;return(0,e.jsx)(ga,{dragMatrix:[1,0],animated:w,format:U,maxValue:z,minValue:B,onChange:Y,onDrag:ne,step:re,stepPixelSize:le,suppressFlicker:se,unit:de,value:Ee,children:function(Fe){var an=Fe.dragging,rn=Fe.editing,nn=Fe.value,cn=Fe.displayValue,yn=Fe.displayElement,hn=Fe.inputElement,on=Fe.handleDragStart,qe=ye!=null,wn=(0,s.hs)(nn,B,z),Un=(0,s.hs)(ye!=null?ye:cn,B,z),Mn=(0,s.hs)(cn,B,z),Sn=Se||(0,s.TG)(ye!=null?ye:nn,ke)||"default";return(0,e.jsxs)("div",wt({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Sn,be,(0,y.WP)(Ge)])},(0,y.Fl)(Ge),{onMouseDown:on,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",qe&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Un)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Un,Mn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(Mn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),an&&(0,e.jsx)("div",{className:"Slider__popupValue",children:yn})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:fn?Ue:yn}),hn]}))}})},Ml=function(D){return _jsxs(Box,{style:D.style,children:[_jsxs(Box,{className:"Section__title",style:D.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:D.textStyle,children:D.title}),_jsx("div",{className:"Section__buttons",children:D.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:D.children})})]})};/** + */function wt(){return wt=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var Na=function(D){var w=D.animated,k=D.format,N=D.maxValue,B=D.minValue,Q=D.onChange,re=D.onDrag,ie=D.step,ue=D.stepPixelSize,se=D.suppressFlicker,de=D.unit,Ee=D.value,be=D.className,ye=D.fillValue,Me=D.color,Te=D.ranges,Ue=Te===void 0?{}:Te,ze=D.children,Ge=ka(D,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),hn=ze!==void 0;return(0,e.jsx)(ja,{dragMatrix:[1,0],animated:w,format:k,maxValue:N,minValue:B,onChange:Q,onDrag:re,step:ie,stepPixelSize:ue,suppressFlicker:se,unit:de,value:Ee,children:function(Ve){var an=Ve.dragging,rn=Ve.editing,nn=Ve.value,cn=Ve.displayValue,yn=Ve.displayElement,mn=Ve.inputElement,on=Ve.handleDragStart,qe=ye!=null,wn=(0,s.hs)(nn,B,N),Un=(0,s.hs)(ye!=null?ye:cn,B,N),Mn=(0,s.hs)(cn,B,N),Sn=Me||(0,s.TG)(ye!=null?ye:nn,Ue)||"default";return(0,e.jsxs)("div",wt({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Sn,be,(0,y.WP)(Ge)])},(0,y.Fl)(Ge),{onMouseDown:on,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",qe&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Un)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Un,Mn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(Mn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),an&&(0,e.jsx)("div",{className:"Slider__popupValue",children:yn})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:hn?ze:yn}),mn]}))}})},Ml=function(D){return _jsxs(Box,{style:D.style,children:[_jsxs(Box,{className:"Section__title",style:D.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:D.textStyle,children:D.title}),_jsx("div",{className:"Section__buttons",children:D.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:D.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Na(){return Na=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var kr=function(D){var w=D.className,U=D.vertical,z=D.fill,B=D.fluid,Y=D.children,ne=tr(D,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Na({className:(0,C.Ly)(["Tabs",U?"Tabs--vertical":"Tabs--horizontal",z&&"Tabs--fill",B&&"Tabs--fluid",w,(0,y.WP)(ne)])},(0,y.Fl)(ne),{children:Y}))},si=function(D){var w=D.className,U=D.selected,z=D.color,B=D.icon,Y=D.leftSlot,ne=D.rightSlot,re=D.children,le=D.onClick,se=tr(D,["className","selected","color","icon","leftSlot","rightSlot","children","onClick"]),de=function(Ee){le&&(le(Ee),Ee.target.blur())};return(0,e.jsxs)("div",Na({className:(0,C.Ly)(["Tab","Tabs__Tab","Tab--color--"+z,U&&"Tab--selected",w,(0,y.WP)(se)]),onClick:de},(0,y.Fl)(se),{children:[(0,C.b5)(Y)&&(0,e.jsx)("div",{className:"Tab__left",children:Y})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(R,{name:B})}),(0,e.jsx)("div",{className:"Tab__text",children:re}),(0,C.b5)(ne)&&(0,e.jsx)("div",{className:"Tab__right",children:ne})]}))};kr.Tab=si;/** + */function Ua(){return Ua=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}var kr=function(D){var w=D.className,k=D.vertical,N=D.fill,B=D.fluid,Q=D.children,re=tr(D,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Ua({className:(0,C.Ly)(["Tabs",k?"Tabs--vertical":"Tabs--horizontal",N&&"Tabs--fill",B&&"Tabs--fluid",w,(0,y.WP)(re)])},(0,y.Fl)(re),{children:Q}))},li=function(D){var w=D.className,k=D.selected,N=D.color,B=D.icon,Q=D.leftSlot,re=D.rightSlot,ie=D.children,ue=D.onClick,se=tr(D,["className","selected","color","icon","leftSlot","rightSlot","children","onClick"]),de=function(Ee){ue&&(ue(Ee),Ee.target.blur())};return(0,e.jsxs)("div",Ua({className:(0,C.Ly)(["Tab","Tabs__Tab","Tab--color--"+N,k&&"Tab--selected",w,(0,y.WP)(se)]),onClick:de},(0,y.Fl)(se),{children:[(0,C.b5)(Q)&&(0,e.jsx)("div",{className:"Tab__left",children:Q})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(R,{name:B})}),(0,e.jsx)("div",{className:"Tab__text",children:ie}),(0,C.b5)(re)&&(0,e.jsx)("div",{className:"Tab__right",children:re})]}))};kr.Tab=li;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT - */function li(){return li=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function lt(D,w){return lt=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},lt(D,w)}var Nr=function(D){"use strict";Ua(w,D);function w(z){var B;B=D.call(this,z)||this,B.textareaRef=z.innerRef||(0,t.createRef)(),B.state={editing:!1,scrolledAmount:0};var Y=z.dontUseTabForIndent,ne=Y===void 0?!1:Y;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,be=se.onEnter,ye=se.onKey;if(re.keyCode===Ct.Ri){B.setEditing(!1),de&&de(re,re.target.value),Ee&&Ee(re,re.target.value),be&&be(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===Ct.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Dr(B.props.value),re.target.blur());return}if(le||B.setEditing(!0),ye&&ye(re,re.target.value),!ne){var Se=re.keyCode||re.which;if(Se===Ct.aW){re.preventDefault();var Ae=re.target,ke=Ae.value,Ue=Ae.selectionStart,Ge=Ae.selectionEnd;re.target.value=ke.substring(0,Ue)+" "+ke.substring(Ge),re.target.selectionEnd=Ue+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,Y=this.props.value,ne=this.textareaRef.current;ne&&(ne.value=Dr(Y)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){ne.focus(),B.props.autoSelect&&ne.select()},1)},U.componentDidUpdate=function(B,Y){var ne=B.value,re=this.props.value,le=this.textareaRef.current;le&&typeof re=="string"&&ne!==re&&(le.value=Dr(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,Y=B.onChange,ne=B.onKeyDown,re=B.onKeyPress,le=B.onInput,se=B.onFocus,de=B.onBlur,Ee=B.onEnter,be=B.value,ye=B.maxLength,Se=B.placeholder,Ae=B.scrollbar,ke=B.noborder,Ue=B.displayedValue,Ge=vt(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),fn=Ge.className,Fe=Ge.fluid,an=Ge.nowrap,rn=vt(Ge,["className","fluid","nowrap"]),nn=this.state.scrolledAmount;return(0,e.jsxs)(y.az,li({className:(0,C.Ly)(["TextArea",Fe&&"TextArea--fluid",ke&&"TextArea--noborder",fn])},rn,{children:[!!Ue&&(0,e.jsx)(y.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(-"+nn+"px)"},children:Ue})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Ae&&"TextArea__textarea--scrollable",an&&"TextArea__nowrap"]),placeholder:Se,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:ye,style:{color:Ue?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(t.Component),pr=n(41242);function gr(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&rr(D,w)}function rr(D,w){return rr=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},rr(D,w)}var Sl=function(D){return typeof D=="number"&&Number.isFinite(D)&&!Number.isNaN(D)},bs=null;function Ps(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Et(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&Rn(D,w)}function It(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function Rn(D,w){return Rn=Object.setPrototypeOf||function(z,B){return z.__proto__=B,z},Rn(D,w)}var Wt=null,Dl=function(D){var w=D.children,U=useRef(null),z=useState(1),B=z[0],Y=z[1],ne=useState(0),re=ne[0],le=ne[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,be=Math.ceil(de.offsetHeight/B);if(Ee>0){var ye=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/be)));Y(ye),le((w.length-ye)*be)}}},[U,B,Y,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 ci(){return ci=Object.assign||function(D){for(var w=1;w=0)&&(k[B]=D[B]);return k}function lt(D,w){return lt=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},lt(D,w)}var Nr=function(D){"use strict";za(w,D);function w(N){var B;B=D.call(this,N)||this,B.textareaRef=N.innerRef||(0,t.createRef)(),B.state={editing:!1,scrolledAmount:0};var Q=N.dontUseTabForIndent,re=Q===void 0?!1:Q;return B.handleOnInput=function(ie){var ue=B.state.editing,se=B.props.onInput;ue||B.setEditing(!0),se&&se(ie,ie.target.value)},B.handleOnChange=function(ie){var ue=B.state.editing,se=B.props.onChange;ue&&B.setEditing(!1),se&&se(ie,ie.target.value)},B.handleKeyPress=function(ie){var ue=B.state.editing,se=B.props.onKeyPress;ue||B.setEditing(!0),se&&se(ie,ie.target.value)},B.handleKeyDown=function(ie){var ue=B.state.editing,se=B.props,de=se.onChange,Ee=se.onInput,be=se.onEnter,ye=se.onKey;if(ie.keyCode===Ct.Ri){B.setEditing(!1),de&&de(ie,ie.target.value),Ee&&Ee(ie,ie.target.value),be&&be(ie,ie.target.value),B.props.selfClear&&(ie.target.value="",ie.target.blur());return}if(ie.keyCode===Ct.s6){B.props.onEscape&&B.props.onEscape(ie),B.setEditing(!1),B.props.selfClear?ie.target.value="":(ie.target.value=Dr(B.props.value),ie.target.blur());return}if(ue||B.setEditing(!0),ye&&ye(ie,ie.target.value),!re){var Me=ie.keyCode||ie.which;if(Me===Ct.aW){ie.preventDefault();var Te=ie.target,Ue=Te.value,ze=Te.selectionStart,Ge=Te.selectionEnd;ie.target.value=Ue.substring(0,ze)+" "+Ue.substring(Ge),ie.target.selectionEnd=ze+1,Ee&&Ee(ie,ie.target.value)}}},B.handleFocus=function(ie){var ue=B.state.editing;ue||B.setEditing(!0)},B.handleBlur=function(ie){var ue=B.state.editing,se=B.props.onChange;ue&&(B.setEditing(!1),se&&se(ie,ie.target.value))},B.handleScroll=function(ie){var ue=B.props.displayedValue,se=B.textareaRef.current;ue&&se&&B.setState({scrolledAmount:se.scrollTop})},B}var k=w.prototype;return k.componentDidMount=function(){var B=this,Q=this.props.value,re=this.textareaRef.current;re&&(re.value=Dr(Q)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){re.focus(),B.props.autoSelect&&re.select()},1)},k.componentDidUpdate=function(B,Q){var re=B.value,ie=this.props.value,ue=this.textareaRef.current;ue&&typeof ie=="string"&&re!==ie&&(ue.value=Dr(ie))},k.setEditing=function(B){this.setState({editing:B})},k.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},k.render=function(){var B=this.props,Q=B.onChange,re=B.onKeyDown,ie=B.onKeyPress,ue=B.onInput,se=B.onFocus,de=B.onBlur,Ee=B.onEnter,be=B.value,ye=B.maxLength,Me=B.placeholder,Te=B.scrollbar,Ue=B.noborder,ze=B.displayedValue,Ge=mt(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),hn=Ge.className,Ve=Ge.fluid,an=Ge.nowrap,rn=mt(Ge,["className","fluid","nowrap"]),nn=this.state.scrolledAmount;return(0,e.jsxs)(y.az,ci({className:(0,C.Ly)(["TextArea",Ve&&"TextArea--fluid",Ue&&"TextArea--noborder",hn])},rn,{children:[!!ze&&(0,e.jsx)(y.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(-"+nn+"px)"},children:ze})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Te&&"TextArea__textarea--scrollable",an&&"TextArea__nowrap"]),placeholder:Me,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:ye,style:{color:ze?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(t.Component),pr=n(41242);function gr(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&rr(D,w)}function rr(D,w){return rr=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},rr(D,w)}var Sl=function(D){return typeof D=="number"&&Number.isFinite(D)&&!Number.isNaN(D)},Ps=null;function _s(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Et(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&Rn(D,w)}function It(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function Rn(D,w){return Rn=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Rn(D,w)}var Wt=null,Dl=function(D){var w=D.children,k=useRef(null),N=useState(1),B=N[0],Q=N[1],re=useState(0),ie=re[0],ue=re[1],se=useCallback(function(){var de=k.current;if(!(!w||!Array.isArray(w)||!de||B>=w.length)){var Ee=document.body.offsetHeight-de.getBoundingClientRect().bottom,be=Math.ceil(de.offsetHeight/B);if(Ee>0){var ye=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/be)));Q(ye),ue((w.length-ye)*be)}}},[k,B,Q,ue]);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:k,children:Array.isArray(w)?w.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+ie+"px"}})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},79500:function(_,j,n){"use strict";n.d(j,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return m},bz:function(){return t},lm:function(){return o},wM:function(){return v}});/** + */},79500:function(_,j,n){"use strict";n.d(j,{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 t},lm:function(){return o},wM:function(){return m}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,s=2,t=1,r=0,a=null,o={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"}],v=function(h,c){if(!h)return c||"None";for(var d=h.toLowerCase(),p=h.replace(/(^\w{1})|(\s+\w{1})/g,function(y){return y.toUpperCase()}),C=0;C0&&te[te.length-1])&&(ve[0]===6||ve[0]===2)){ue=0;continue}if(ve[0]===3&&(!te||ve[1]>te[0]&&ve[1]xe&&(te[ue]=xe-V[ue],ce=!0)}return[ce,te]},W=function(H){var V;g.log("drag start"),m=!0,d=(0,s.Z4)([H.screenX,H.screenY],b()),(V=H.target)==null||V.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",J),X(H)},J=function(H){g.log("drag end"),X(H),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",J),m=!1,K()},X=function(H){m&&(H.preventDefault(),P((0,s.Z4)([H.screenX,H.screenY],d)))},Q=function(H,V){return function(q){var ie;p=[H,V],g.log("resize start",p),u=!0,d=(0,s.Z4)([q.screenX,q.screenY],b()),C=I(),(ie=q.target)==null||ie.focus(),document.addEventListener("mousemove",G),document.addEventListener("mouseup",Z),G(q)}},Z=function(H){g.log("resize end",y),G(H),document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",Z),u=!1,K()},G=function(H){if(u){H.preventDefault();var V=(0,s.Z4)([H.screenX,H.screenY],b()),q=(0,s.Z4)(V,d);y=(0,s.CO)(C,(0,s.tk)(p,q),[1,1]),y[0]=Math.max(y[0],150*f),y[1]=Math.max(y[1],50*f),S(y)}}},37912:function(_,j,n){"use strict";n.d(j,{Nh:function(){return t},WK:function(){return C},tk:function(){return p},y4:function(){return a}});var e=n(3088),s=n(6544);/** + */function r(X,V,J,ne,te,le,ce){try{var me=X[le](ce),xe=me.value}catch(ve){J(ve);return}me.done?V(xe):Promise.resolve(xe).then(ne,te)}function a(X){return function(){var V=this,J=arguments;return new Promise(function(ne,te){var le=X.apply(V,J);function ce(xe){r(le,ne,te,ce,me,"next",xe)}function me(xe){r(le,ne,te,ce,me,"throw",xe)}ce(void 0)})}}function o(X,V){var J,ne,te,le,ce={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]};return le={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function me(ve){return function(je){return xe([ve,je])}}function xe(ve){if(J)throw new TypeError("Generator is already executing.");for(;ce;)try{if(J=1,ne&&(te=ve[0]&2?ne.return:ve[0]?ne.throw||((te=ne.return)&&te.call(ne),0):ne.next)&&!(te=te.call(ne,ve[1])).done)return te;switch(ne=0,te&&(ve=[ve[0]&2,te.value]),ve[0]){case 0:case 1:te=ve;break;case 4:return ce.label++,{value:ve[1],done:!1};case 5:ce.label++,ne=ve[1],ve=[0];continue;case 7:ve=ce.ops.pop(),ce.trys.pop();continue;default:if(te=ce.trys,!(te=te.length>0&&te[te.length-1])&&(ve[0]===6||ve[0]===2)){ce=0;continue}if(ve[0]===3&&(!te||ve[1]>te[0]&&ve[1]xe&&(te[ce]=xe-V[ce],le=!0)}return[le,te]},Z=function(X){var V;g.log("drag start"),v=!0,d=(0,s.Z4)([X.screenX,X.screenY],b()),(V=X.target)==null||V.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",ee),H(X)},ee=function(X){g.log("drag end"),H(X),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",ee),v=!1,K()},H=function(X){v&&(X.preventDefault(),P((0,s.Z4)([X.screenX,X.screenY],d)))},G=function(X,V){return function(J){var ne;p=[X,V],g.log("resize start",p),u=!0,d=(0,s.Z4)([J.screenX,J.screenY],b()),C=I(),(ne=J.target)==null||ne.focus(),document.addEventListener("mousemove",W),document.addEventListener("mouseup",F),W(J)}},F=function(X){g.log("resize end",y),W(X),document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",F),u=!1,K()},W=function(X){if(u){X.preventDefault();var V=(0,s.Z4)([X.screenX,X.screenY],b()),J=(0,s.Z4)(V,d);y=(0,s.CO)(C,(0,s.tk)(p,J),[1,1]),y[0]=Math.max(y[0],150*f),y[1]=Math.max(y[1],50*f),S(y)}}},37912:function(_,j,n){"use strict";n.d(j,{Nh:function(){return t},WK:function(){return C},tk:function(){return p},y4:function(){return a}});var e=n(3088),s=n(6544);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=new e.b,r=!1,a=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},o,g=!0,x=function(I,P){if(r){g=!0;return}if(o&&(clearTimeout(o),o=null),P){o=setTimeout(function(){return x(I)});return}g!==I&&(g=I,t.emit(I?"window-focus":"window-blur"),t.emit("window-focus-change",I))},f=null,v=function(I){var P=String(I.tagName).toLowerCase();return P==="input"||P==="textarea"},m=function(I){u(),f=I,f.addEventListener("blur",u)},u=function(){f&&(f.removeEventListener("blur",u),f=null)},h=null,c=null,d=[],p=function(I){d.push(I)},C=function(I){var P=d.indexOf(I);P>=0&&d.splice(P,1)},y=function(I){if(!(f||!g))for(var P=document.body;I&&I!==P;){if(d.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var P=I.target;P!==c&&d.length<2&&(c=P,y(P))}),window.addEventListener("click",function(I){var P=I.target;P!==c&&(c=P,y(P))}),window.addEventListener("focusin",function(I){c=null,h=I.target,x(!0),v(I.target)&&m(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 O={},b=function(){"use strict";function I(S,M,A){this.event=S,this.type=M,this.code=S.keyCode,this.ctrl=S.ctrlKey,this.shift=S.shiftKey,this.alt=S.altKey,this.repeat=!!A}var P=I.prototype;return P.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},P.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},P.isDown=function(){return this.type==="keydown"},P.isUp=function(){return this.type==="keyup"},P.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(!v(I.target)){var P=I.keyCode,S=new b(I,"keydown",O[P]);t.emit("keydown",S),t.emit("key",S),O[P]=!0}}),document.addEventListener("keyup",function(I){if(!v(I.target)){var P=I.keyCode,S=new b(I,"keyup");t.emit("keyup",S),t.emit("key",S),O[P]=!1}})},49945:function(_,j,n){"use strict";n.d(j,{$:function(){return e}});/** + */var t=new e.b,r=!1,a=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},o,g=!0,x=function(I,P){if(r){g=!0;return}if(o&&(clearTimeout(o),o=null),P){o=setTimeout(function(){return x(I)});return}g!==I&&(g=I,t.emit(I?"window-focus":"window-blur"),t.emit("window-focus-change",I))},f=null,m=function(I){var P=String(I.tagName).toLowerCase();return P==="input"||P==="textarea"},v=function(I){u(),f=I,f.addEventListener("blur",u)},u=function(){f&&(f.removeEventListener("blur",u),f=null)},h=null,c=null,d=[],p=function(I){d.push(I)},C=function(I){var P=d.indexOf(I);P>=0&&d.splice(P,1)},y=function(I){if(!(f||!g))for(var P=document.body;I&&I!==P;){if(d.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var P=I.target;P!==c&&d.length<2&&(c=P,y(P))}),window.addEventListener("click",function(I){var P=I.target;P!==c&&(c=P,y(P))}),window.addEventListener("focusin",function(I){c=null,h=I.target,x(!0),m(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 O={},b=function(){"use strict";function I(S,M,A){this.event=S,this.type=M,this.code=S.keyCode,this.ctrl=S.ctrlKey,this.shift=S.shiftKey,this.alt=S.altKey,this.repeat=!!A}var P=I.prototype;return P.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},P.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},P.isDown=function(){return this.type==="keydown"},P.isUp=function(){return this.type==="keyup"},P.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(!m(I.target)){var P=I.keyCode,S=new b(I,"keydown",O[P]);t.emit("keydown",S),t.emit("key",S),O[P]=!0}}),document.addEventListener("keyup",function(I){if(!m(I.target)){var P=I.keyCode,S=new b(I,"keyup");t.emit("keyup",S),t.emit("key",S),O[P]=!1}})},49945:function(_,j,n){"use strict";n.d(j,{$: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})}},41242:function(_,j,n){"use strict";n.d(j,{QL:function(){return t},d5:function(){return r},fU:function(){return f},qQ:function(){return v},up:function(){return a}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(_,j,n){"use strict";n.d(j,{QL:function(){return t},d5:function(){return r},fU:function(){return f},qQ:function(){return m},up:function(){return a}});/** * @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(" "),t=function(m,u,h){if(u===void 0&&(u=-s),h===void 0&&(h=""),!isFinite(m))return m.toString();var c=Math.floor(Math.log10(Math.abs(m))),d=Math.max(u*3,c),p=Math.floor(d/3),C=e[Math.min(p+s,e.length-1)],y=m/Math.pow(1e3,p),O=y.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+h).trim()},r=function(m,u){return u===void 0&&(u=0),t(m,u,"W")},a=function(m,u){if(u===void 0&&(u=0),!Number.isFinite(m))return String(m);var h=Number(m.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},o=function(m){var u=20*Math.log10(m),h=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+h+c+" dB"},g=null,x=function(m,u,h){if(u===void 0&&(u=0),h===void 0&&(h=""),!isFinite(m))return"NaN";var c=Math.floor(Math.log10(m)),d=Math.max(u*3,c),p=Math.floor(d/3),C=g[p],y=m/Math.pow(1e3,p),O=Math.max(0,2-d%3),b=y.toFixed(O);return(b+" "+C+" "+h).trim()},f=function(m,u){u===void 0&&(u="default");var h=Math.floor(m/10),c=Math.floor(h/3600),d=Math.floor(h%3600/60),p=h%60;if(u==="short"){var C=c>0?""+c+"h":"",y=d>0?""+d+"m":"",O=p>0?""+p+"s":"";return""+C+y+O}var b=String(c).padStart(2,"0"),I=String(d).padStart(2,"0"),P=String(p).padStart(2,"0");return b+":"+I+":"+P},v=function(m){if(!Number.isFinite(m))return m;var u=m.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},52130:function(_,j,n){"use strict";n.d(j,{Bm:function(){return C}});var e=n(6544),s=n(37912),t=n(92736);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),t=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)],y=v/Math.pow(1e3,p),O=y.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+h).trim()},r=function(v,u){return u===void 0&&(u=0),t(v,u,"W")},a=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},o=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],y=v/Math.pow(1e3,p),O=Math.max(0,2-d%3),b=y.toFixed(O);return(b+" "+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":"",y=d>0?""+d+"m":"",O=p>0?""+p+"s":"";return""+C+y+O}var b=String(c).padStart(2,"0"),I=String(d).padStart(2,"0"),P=String(p).padStart(2,"0");return b+":"+I+":"+P},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(".")}},52130:function(_,j,n){"use strict";n.d(j,{Bm:function(){return C}});var e=n(6544),s=n(37912),t=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(O,b){(b==null||b>O.length)&&(b=O.length);for(var I=0,P=new Array(b);I=O.length?{done:!0}:{done:!1,value:O[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 g=(0,t.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],v={},m=[],u=function(O){if(O===16)return"Shift";if(O===17)return"Ctrl";if(O===18)return"Alt";if(O===33)return"Northeast";if(O===34)return"Southeast";if(O===35)return"Southwest";if(O===36)return"Northwest";if(O===37)return"West";if(O===38)return"North";if(O===39)return"East";if(O===40)return"South";if(O===45)return"Insert";if(O===46)return"Delete";if(O>=48&&O<=57||O>=65&&O<=90)return String.fromCharCode(O);if(O>=96&&O<=105)return"Numpad"+(O-96);if(O>=112&&O<=123)return"F"+(O-111);if(O===188)return",";if(O===189)return"-";if(O===190)return"."},h=function(O){var b=String(O);if(b==="Ctrl+F5"||b==="Ctrl+R"){location.reload();return}if(b!=="Ctrl+F"&&!(O.event.defaultPrevented||O.isModifierKey()||f.includes(O.code))){var I=u(O.code);if(I){var P=x[I];if(P)return g.debug("macro",P),Byond.command(P);if(O.isDown()&&!v[I]){v[I]=!0;var S='TguiKeyDown "'+I+'"';return g.debug(S),Byond.command(S)}if(O.isUp()&&v[I]){v[I]=!1;var M='TguiKeyUp "'+I+'"';return g.debug(M),Byond.command(M)}}}},c=function(O){f.push(O)},d=function(O){var b=f.indexOf(O);b>=0&&f.splice(b,1)},p=function(){for(var O=o(Object.keys(v)),b;!(b=O()).done;){var I=b.value;v[I]&&(v[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(O){for(var b={},I=o(Object.keys(O)),P;!(P=I()).done;){var S=P.value,M=S.split("."),A=M[1],R=M[2];A&&R&&(b[A]||(b[A]={}),b[A][R]=O[S])}for(var K=/\\"/g,N=function(Q){return Q.substring(1,Q.length-1).replace(K,'"')},k=o(Object.keys(b)),F;!(F=k()).done;){var W=F.value,J=b[W],X=N(J.name);x[X]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(O){for(var b=o(m),I;!(I=b()).done;){var P=I.value;P(O)}h(O)})},y=function(O){m.push(O);var b=!1;return function(){b||(b=!0,m.splice(m.indexOf(O),1))}}},43498:function(_,j,n){"use strict";n.r(j),n.d(j,{AICard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.has_ai,m=f.integrity,u=f.backup_capacitor,h=f.flushing,c=f.has_laws,d=f.laws,p=f.wireless,C=f.radio;if(v===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var y=null;m>=75?y="green":m>=25?y="yellow":y="red";var O=null;return u>=75&&(O="green"),u>=25?O="yellow":O="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:y,value:m/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:O,value:u/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!c&&(0,e.jsx)(t.az,{children:d.map(function(b,I){return(0,e.jsx)(t.az,{display:"inline-block",children:b},I)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:p?"check":"times",color:p?"green":"red",onClick:function(){return x("wireless")},children:p?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:C?"check":"times",color:C?"green":"red",onClick:function(){return x("radio")},children:C?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||m===0,confirmColor:"red",onClick:function(){return x("wipe")},children:"Shutdown"})})]})})]})})}},10342:function(_,j,n){"use strict";n.r(j),n.d(j,{APC:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=n(27805),g=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=(0,e.jsx)(v,{});return p.gridCheck?C=(0,e.jsx)(m,{}):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"}},v=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.locked&&!p.siliconUser,y=p.normallyLocked,O=x[p.externalPower]||x[0],b=x[p.chargingStatus]||x[0],I=p.powerChannels||[],P=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:O.color,buttons:(0,e.jsx)(t.$n,{icon:p.isOperating?"power-off":"times",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return d("breaker")},children:p.isOperating?"On":"Off"}),children:["[ ",O.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:P})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.jsx)(t.$n,{icon:p.chargeMode?"sync":"times",selected:p.chargeMode,disabled:C,onClick:function(){return d("charge")},children:p.chargeMode?"Auto":"Off"}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[I.map(function(S){var M=S.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:S.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:S.status>=2?"good":"bad",children:S.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!C&&(S.status===1||S.status===3),disabled:C,onClick:function(){return d("channel",M.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!C&&S.status===2,disabled:C,onClick:function(){return d("channel",M.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!C&&S.status===0,disabled:C,onClick:function(){return d("channel",M.off)},children:"Off"})]}),children:[S.powerLoad," W"]},S.title)}),(0,e.jsx)(t.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)(t.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return d("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:p.coverLocked?"lock":"unlock",selected:p.coverLocked,disabled:C,onClick:function(){return d("cover")},children:p.coverLocked?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===2,onClick:function(){return d("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===1,onClick:function(){return d("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.nightshiftSetting===3,onClick:function(){return d("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:p.emergencyLights,onClick:function(){return d("emergency_lighting")},children:p.emergencyLights?"Enabled":"Disabled"})})]})})]})},m=function(h){return(0,e.jsxs)(a.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(h){var c=(0,s.Oc)(),d=c.data,p=c.act,C=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return p("reboot")},children:"Restart Now"});return d.locked&&!d.siliconUser&&(C=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",d.failTime," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:C})]})}},51594:function(_,j,n){"use strict";n.r(j),n.d(j,{AccountsTerminal:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(v){var m=(0,s.Oc)(),u=m.act,h=m.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)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,onClick:function(){return u("insert_card")},children:d})})]})}),p>0&&(0,e.jsx)(o,{})]})})},o=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.creating_new_account,d=h.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!c&&!d,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(t.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(v){var m=(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)(t.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:h,fluid:!0,onInput:function(y,O){return c(O)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:p,fluid:!0,onInput:function(y,O){return C(O)}})})]}),(0,e.jsx)(t.$n,{disabled:!h||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return m("finalise_create_account",{holder_name:h,starting_funds:p})},children:"Create"})]})},x=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.access_level,d=h.station_account_number,p=h.account_number,C=h.owner_name,y=h.money,O=h.suspended,b=h.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:O,onClick:function(){return u("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[y,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:O?"bad":"good",children:O?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:p===d,onClick:function(){return u("revoke_payroll")},children:"Revoke"})})})}),c>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return u("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return u("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),b.map(function(I,P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(t.XI.Cell,{children:I.target_name}),(0,e.jsx)(t.XI.Cell,{children:I.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:I.source_terminal})]},P)})]})})]})},f=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(t.Ki,{children:c.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.owner_name+d.suspended,color:d.suspended?"bad":null,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return u("view_account_detail",{account_index:d.account_index})},children:"#"+d.account_number})},d.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(_,j,n){"use strict";n.r(j),n.d(j,{AdminShuttleController:function(){return o},ShuttleList:function(){return g}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(){return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(f){var v=(0,t.Oc)(),m=v.act,u=v.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,onClick:function(){return m("adminobserve",{ref:d.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return m("classicmove",{ref:d.ref})},children:"Fly"})}),(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,{onClick:function(){return m("adminobserve",{ref:d.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("overmap_control",{ref:d.ref})},children:"Control"})}),(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"}}},15301:function(_,j,n){"use strict";n.r(j),n.d(j,{AdminTicketPanel:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.id,u=v.title,h=v.name,c=v.state,d=v.opened_at,p=v.closed_at,C=v.opened_at_date,y=v.closed_at_date,O=v.actions,b=v.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Ticket #"+m,buttons:(0,e.jsxs)(t.az,{nowrap:!0,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return f("retitle")},children:"Rename Ticket"}),(0,e.jsx)(t.$n,{onClick:function(){return f("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Admin Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(t.Ki.Item,{label:"State",children:a[c]}),a[c]===a.open?(0,e.jsxs)(t.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(t.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(t.$n,{onClick:function(){return f("reopen")},children:"Reopen"})]}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(t.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},P)})})]})})})})}},14415:function(_,j,n){"use strict";n.r(j),n.d(j,{AgentCard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.entries,m=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)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:v.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsx)(t.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:m,onClick:function(){return x("electronic_warfare")},children:m?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},21167:function(_,j,n){"use strict";n.r(j),n.d(j,{AiAirlock:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=a[v.power.main]||a[0],u=a[v.power.backup]||a[0],h=a[v.shock]||a[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:m.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!v.power.main,onClick:function(){return f("disrupt-main")},children:"Disrupt"}),children:[v.power.main?"Online":"Offline"," ",(!v.wires.main_1||!v.wires.main_2)&&"[Wires have been cut!]"||v.power.main_timeleft>0&&"["+v.power.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!v.power.backup,onClick:function(){return f("disrupt-backup")},children:"Disrupt"}),children:[v.power.backup?"Online":"Offline"," ",(!v.wires.backup_1||!v.wires.backup_2)&&"[Wires have been cut!]"||v.power.backup_timeleft>0&&"["+v.power.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:h.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(v.wires.shock&&v.shock===0),onClick:function(){return f("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!v.wires.shock,onClick:function(){return f("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!v.wires.shock,onClick:function(){return f("shock-perm")},children:"Permanent"})]}),children:[v.shock===2?"Safe":"Electrified"," ",!v.wires.shock&&"[Wires have been cut!]"||v.shock_timeleft>0&&"["+v.shock_timeleft+"s]"||v.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.id_scanner?"power-off":"times",selected:v.id_scanner,disabled:!v.wires.id_scanner,onClick:function(){return f("idscan-toggle")},children:v.id_scanner?"Enabled":"Disabled"}),children:!v.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.locked?"lock":"unlock",selected:v.locked,disabled:!v.wires.bolts,onClick:function(){return f("bolt-toggle")},children:v.locked?"Lowered":"Raised"}),children:!v.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.lights?"power-off":"times",selected:v.lights,disabled:!v.wires.lights,onClick:function(){return f("light-toggle")},children:v.lights?"Enabled":"Disabled"}),children:!v.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.safe?"power-off":"times",selected:v.safe,disabled:!v.wires.safe,onClick:function(){return f("safe-toggle")},children:v.safe?"Enabled":"Disabled"}),children:!v.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.speed?"power-off":"times",selected:v.speed,disabled:!v.wires.timing,onClick:function(){return f("speed-toggle")},children:v.speed?"Enabled":"Disabled"}),children:!v.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v.opened?"sign-out-alt":"sign-in-alt",selected:v.opened,disabled:v.locked||v.welded,onClick:function(){return f("open-close")},children:v.opened?"Open":"Closed"}),children:!!(v.locked||v.welded)&&(0,e.jsxs)("span",{children:["[Door is ",v.locked?"bolted":"",v.locked&&v.welded?" and ":"",v.welded?"welded":"","!]"]})})]})})]})})}},97704:function(_,j,n){"use strict";n.r(j),n.d(j,{AiRestorer:function(){return a},AiRestorerContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.AI_present,u=v.error,h=v.name,c=v.laws,d=v.isDead,p=v.restoring,C=v.health,y=v.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(t.IC,{textAlign:"center",children:u}),!!y&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return f("PRG_eject")},children:m?h:"----------"}),!!m&&(0,e.jsxs)(t.wn,{title:y?"System Status":h,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:d?"bad":"good",children:d?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:p,mt:1,onClick:function(){return f("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",level:2,children:c.map(function(O){return(0,e.jsx)(t.az,{className:"candystripe",children:O},O)})})]})]})}},5604:function(_,j,n){"use strict";n.r(j),n.d(j,{AiSupermatter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=function(f){var v=(0,s.Oc)().data,m=v.integrity_percentage,u=v.ambient_temp,h=v.ambient_pressure,c=v.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)(a.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(f){var v=(0,s.Oc)().data,m=v.integrity_percentage,u=v.ambient_temp,h=v.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:m,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},13373:function(_,j,n){"use strict";n.r(j),n.d(j,{AirAlarm:function(){return v}});var e=n(20462),s=n(4089),t=n(61358),r=n(7081),a=n(16754),o=n(79500),g=n(2738),x=n(3680),f=n(27805),v=function(b){var I=function(F){K(F)},P=(0,r.Oc)(),S=P.act,M=P.data,A=(0,t.useState)(""),R=A[0],K=A[1],N=M.locked&&!M.siliconUser&&!M.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)(m,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:I})]})})},m=function(b){var I=(0,r.Oc)().data,P=(I.environment_data||[]).filter(function(A){return A.value>=.01}),S={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},M=S[I.danger_level]||S[0];return(0,e.jsx)(a.wn,{title:"Air Status",children:(0,e.jsxs)(a.Ki,{children:[P.length>0&&(0,e.jsxs)(e.Fragment,{children:[P.map(function(A){var R=S[A.danger_level]||S[0];return(0,e.jsxs)(a.Ki.Item,{label:(0,o.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(a.Ki.Item,{label:"Local status",color:M.color,children:M.localStatusText}),(0,e.jsx)(a.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(a.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(a.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.target_temperature,A=S.rcon;return(0,e.jsx)(a.wn,{title:"Comfort Settings",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(a.$n,{selected:A===1,onClick:function(){return P("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(a.$n,{selected:A===2,onClick:function(){return P("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(a.$n,{selected:A===3,onClick:function(){return P("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(a.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(a.$n,{onClick:function(){return P("temperature")},children:M})})]})})},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 y}},thresholds:{title:"Alarm Thresholds",component:function(){return O}}},c=function(b){var I=h[b.screen]||h.home,P=I.component();return(0,e.jsx)(a.wn,{title:I.title,buttons:b.screen&&(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return b.onScreen()},children:"Back"}),children:(0,e.jsx)(P,{onScreen:b.onScreen})})},d=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.mode,A=S.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",onClick:function(){return P(A?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:M===3?"exclamation-triangle":"exclamation",color:M===3&&"danger",onClick:function(){return P("mode",{mode:M===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(a.az,{mt:2}),(0,e.jsx)(a.$n,{icon:"sign-out-alt",onClick:function(){return b.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"filter",onClick:function(){return b.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"cog",onClick:function(){return b.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(a.az,{mt:1}),(0,e.jsx)(a.$n,{icon:"chart-bar",onClick:function(){return b.onScreen("thresholds")},children:"Alarm Thresholds"})]})},p=function(b){var I=(0,r.Oc)().data,P=I.vents;return!P||P.length===0?"Nothing to show":P.map(function(S){return(0,e.jsx)(x.Vent,{vent:S},S.id_tag)})},C=function(b){var I=(0,r.Oc)().data,P=I.scrubbers;return!P||P.length===0?"Nothing to show":P.map(function(S){return(0,e.jsx)(x.Scrubber,{scrubber:S},S.id_tag)})},y=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.modes;return!M||M.length===0?"Nothing to show":M.map(function(A){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(a.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",onClick:function(){return P("mode",{mode:A.mode})},children:A.name}),(0,e.jsx)(a.az,{mt:1})]},A.mode)})},O=function(b){var I=(0,r.Oc)(),P=I.act,S=I.data,M=S.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:M.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,o.b_)(A.name),children:(0,o.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(a.$n,{onClick:function(){return P("threshold",{env:R.env,var:R.val})},children:(0,s.Mg)(R.selected,2)})},R.val)})]},A.name)})})]})}},51225:function(_,j,n){"use strict";n.r(j),n.d(j,{AlertModal:function(){return v}});var e=n(20462),s=n(61358),t=n(6544),r=n(7081),a=n(16754),o=n(2738),g=n(44149),x=-1,f=1,v=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.autofocus,y=p.buttons,O=y===void 0?[]:y,b=p.large_buttons,I=p.message,P=I===void 0?"":I,S=p.timeout,M=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(P.length>30?Math.ceil(P.length/4):0)+(P.length&&b?5:0),k=325+(O.length>2?55:0),F=function(W){R===0&&W===x?K(O.length-1):R===O.length-1&&W===f?K(0):K(R+W)};return(0,e.jsxs)(o.p8,{height:N,title:M,width:k,children:[!!S&&(0,e.jsx)(g.Loader,{value:S}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(W){var J=window.event?W.which:W.keyCode;J===t.iy||J===t.Ri?d("choose",{choice:O[R]}):J===t.s6?d("cancel"):J===t.iU?(W.preventDefault(),F(x)):(J===t.aW||J===t.zh)&&(W.preventDefault(),F(f))},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(a.az,{color:"label",overflow:"hidden",children:P})}),(0,e.jsxs)(a.BJ.Item,{children:[!!C&&(0,e.jsx)(a.y5,{}),(0,e.jsx)(m,{selected:R})]})]})})})]})},m=function(h){var c=(0,r.Oc)().data,d=c.buttons,p=d===void 0?[]:d,C=c.large_buttons,y=c.swapped_buttons,O=h.selected;return(0,e.jsx)(a.so,{align:"center",direction:y?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(b,I){return C&&p.length<3?(0,e.jsx)(a.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I):(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I)})})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,y=h.button,O=h.selected,b=y.length>7?y.length:7;return(0,e.jsx)(a.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return d("choose",{choice:y})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:O,textAlign:"center",width:!C&&b,children:C?y.toUpperCase():y})}},16944:function(_,j,n){"use strict";n.r(j),n.d(j,{AlgaeFarm:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.usePower,u=v.materials,h=v.last_flow_rate,c=v.last_power_draw,d=v.inputDir,p=v.outputDir,C=v.input,y=v.output,O=v.errorText;return(0,e.jsx)(a.p8,{width:500,height:300,children:(0,e.jsxs)(a.p8.Content,{children:[O&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:m===2,onClick:function(){return f("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[h," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(b.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:b.qty,maxValue:b.max,children:[b.qty,"/",b.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return f("ejectMaterial",{mat:b.name})},children:"Eject"})]},b.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:y?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[y.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:y.name,children:[y.percent,"% (",y.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},46772:function(_,j,n){"use strict";n.r(j),n.d(j,{AppearanceChanger:function(){return x}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=function(y){var O=(0,a.Oc)(),b=O.act,I=O.config,P=O.data,S=P.name,M=P.specimen,A=P.gender,R=P.gender_id,K=P.hair_style,N=P.facial_hair_style,k=P.ear_style,F=P.tail_style,W=P.wing_style,J=P.markings,X=P.change_race,Q=P.change_gender,Z=P.change_eye_color,G=P.change_skin_tone,H=P.change_skin_color,V=P.change_hair_color,q=P.change_facial_hair_color,ie=P.change_hair,te=P.change_facial_hair,ce=P.mapRef,ue=I.title,me=Z||G||H||V||q,xe=-1;X?xe=0:Q?xe=1:me?xe=2:ie?xe=4:te&&(xe=5);var ve=(0,r.useState)(xe),ge=ve[0],we=ve[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,t.jT)(ue),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(o.wn,{title:"Reflection",children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:S}),(0,e.jsx)(o.Ki.Item,{label:"Species",color:X?null:"grey",children:M}),(0,e.jsx)(o.Ki.Item,{label:"Biological Sex",color:Q?null:"grey",children:A?(0,t.ZH)(A):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Gender Identity",color:me?null:"grey",children:R?(0,t.ZH)(R):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Hair Style",color:ie?null:"grey",children:K?(0,t.ZH)(K):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Facial Hair Style",color:te?null:"grey",children:N?(0,t.ZH)(N):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Ear Style",color:ie?null:"grey",children:k?(0,t.ZH)(k):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Tail Style",color:ie?null:"grey",children:F?(0,t.ZH)(F):"Not Set"}),(0,e.jsx)(o.Ki.Item,{label:"Wing Style",color:ie?null:"grey",children:W?(0,t.ZH)(W):"Not Set"})]})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.D1,{style:{width:"256px",height:"256px"},params:{id:ce,type:"map"}})})]})}),(0,e.jsxs)(o.tU,{children:[X?(0,e.jsx)(o.tU.Tab,{selected:ge===0,onClick:function(){return we(0)},children:"Race"}):null,Q?(0,e.jsx)(o.tU.Tab,{selected:ge===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,me?(0,e.jsx)(o.tU.Tab,{selected:ge===2,onClick:function(){return we(2)},children:"Colors"}):null,ie?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.tU.Tab,{selected:ge===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(o.tU.Tab,{selected:ge===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(o.tU.Tab,{selected:ge===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(o.tU.Tab,{selected:ge===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(o.tU.Tab,{selected:ge===8,onClick:function(){return we(8)},children:"Markings"})]}):null,te?(0,e.jsx)(o.tU.Tab,{selected:ge===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(o.az,{height:"43%",children:[X&&ge===0?(0,e.jsx)(f,{}):null,Q&&ge===1?(0,e.jsx)(v,{}):null,me&&ge===2?(0,e.jsx)(m,{}):null,ie&&ge===3?(0,e.jsx)(u,{}):null,te&&ge===4?(0,e.jsx)(h,{}):null,ie&&ge===5?(0,e.jsx)(c,{}):null,ie&&ge===6?(0,e.jsx)(d,{}):null,ie&&ge===7?(0,e.jsx)(p,{}):null,ie&&ge===8?(0,e.jsx)(C,{}):null]})]})})},f=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.species,S=I.specimen,M=(0,s.Ul)(function(A){return A.specimen})(P||[]);return(0,e.jsx)(o.wn,{title:"Species",fill:!0,scrollable:!0,children:M.map(function(A){return(0,e.jsx)(o.$n,{selected:S===A.specimen,onClick:function(){return b("race",{race:A.specimen})},children:A.specimen},A.specimen)})})},v=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.gender,S=I.gender_id,M=I.genders,A=I.id_genders;return(0,e.jsx)(o.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Biological Sex",children:M.map(function(R){return(0,e.jsx)(o.$n,{selected:R.gender_key===P,onClick:function(){return b("gender",{gender:R.gender_key})},children:R.gender_name},R.gender_key)})}),(0,e.jsx)(o.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(o.$n,{selected:R.gender_key===S,onClick:function(){return b("gender_id",{gender_id:R.gender_key})},children:R.gender_name},R.gender_key)})})]})})},m=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.change_eye_color,S=I.change_skin_tone,M=I.change_skin_color,A=I.change_hair_color,R=I.change_facial_hair_color,K=I.eye_color,N=I.skin_color,k=I.hair_color,F=I.facial_hair_color,W=I.ears_color,J=I.ears2_color,X=I.tail_color,Q=I.tail2_color,Z=I.wing_color,G=I.wing2_color;return(0,e.jsxs)(o.wn,{title:"Colors",fill:!0,scrollable:!0,children:[P?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:K,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("eye_color")},children:"Change Eye Color"})]}):null,S?(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{onClick:function(){return b("skin_tone")},children:"Change Skin Tone"})}):null,M?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:N,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("skin_color")},children:"Change Skin Color"})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:k,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:W,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:J,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:X,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:Q,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:Z,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:G,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,R?(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.BK,{color:F,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},u=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.hair_style,S=I.hair_styles;return(0,e.jsx)(o.wn,{title:"Hair",fill:!0,scrollable:!0,children:S.map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("hair",{hair:M.hairstyle})},selected:M.hairstyle===P,children:M.hairstyle},M.hairstyle)})})},h=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.facial_hair_style,S=I.facial_hair_styles;return(0,e.jsx)(o.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:S.map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("facial_hair",{facial_hair:M.facialhairstyle})},selected:M.facialhairstyle===P,children:M.facialhairstyle},M.facialhairstyle)})})},c=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.ear_style,S=I.ear_styles;return(0,e.jsxs)(o.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("ear",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("ear",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},d=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.tail_style,S=I.tail_styles;return(0,e.jsxs)(o.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("tail",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("tail",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},p=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.wing_style,S=I.wing_styles;return(0,e.jsxs)(o.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.$n,{onClick:function(){return b("wing",{clear:!0})},selected:P===null,children:"-- Not Set --"}),(0,s.Ul)(function(M){return M.name.toLowerCase()})(S).map(function(M){return(0,e.jsx)(o.$n,{onClick:function(){return b("wing",{ref:M.instance})},selected:M.name===P,children:M.name},M.instance)})]})},C=function(y){var O=(0,a.Oc)(),b=O.act,I=O.data,P=I.markings;return(0,e.jsxs)(o.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(o.Ki,{children:P.map(function(S){return(0,e.jsxs)(o.Ki.Item,{label:S.marking_name,children:[(0,e.jsx)(o.BK,{color:S.marking_color,mr:1}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:4,name:S.marking_name})},children:"Change Color"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:0,name:S.marking_name})},children:"-"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:3,name:S.marking_name})},children:"Move down"}),(0,e.jsx)(o.$n,{onClick:function(){return b("marking",{todo:2,name:S.marking_name})},children:"Move up"})]},S.marking_name)})})]})}},59404:function(_,j,n){"use strict";n.r(j),n.d(j,{ArcadeBattle:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.name,m=f.temp,u=f.enemyAction,h=f.enemyName,c=f.playerHP,d=f.playerMP,p=f.enemyHP,C=f.enemyMP,y=f.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:h,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:m}),(0,e.jsx)(t.az,{children:!y&&u})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value: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)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.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)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),y&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return x("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},children:"Recharge!"})})]})]})})})}},82106:function(_,j,n){"use strict";n.r(j),n.d(j,{AreaScrubberControl:function(){return g}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=function(f){var v=(0,r.Oc)(),m=v.act,u=v.data,h=(0,t.useState)(!1),c=h[0],d=h[1],p=u.scrubbers;return p?(0,e.jsx)(o.p8,{width:600,height:400,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return m("scan")},children:"Scan"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:c,onClick:function(){return d(!c)},children:"Show Areas"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return m("allon")},children:"All On"})}),(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return m("alloff")},children:"All Off"})})]}),(0,e.jsx)(a.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(a.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(a.wn,{title:"Error",children:[(0,e.jsx)(a.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(a.$n,{fluid:!0,icon:"search",onClick:function(){return m("scan")},children:"Scan"})]})},x=function(f){var v=(0,r.Oc)().act,m=f.scrubber,u=f.showArea;return(0,e.jsxs)(a.wn,{title:m.name,children:[(0,e.jsx)(a.$n,{fluid:!0,icon:"power-off",selected:m.on,onClick:function(){return v("toggle",{id:m.id})},children:m.on?"Enabled":"Disabled"}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Pressure",children:[m.pressure," kPa"]}),(0,e.jsxs)(a.Ki.Item,{label:"Flow Rate",children:[m.flow_rate," L/s"]}),(0,e.jsxs)(a.Ki.Item,{label:"Load",children:[m.load," W"]}),u&&(0,e.jsx)(a.Ki.Item,{label:"Area",children:(0,s.Sn)(m.area)})]})]})}},29615:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyInfrared:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=f.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:v,onClick:function(){return x("state")},children:v?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:m,onClick:function(){return x("visible")},children:m?"Able to be seen":"Invisible"})})]})})})})}},52817:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyProx:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.timing,h=m.time,c=m.range,d=m.maxRange,p=m.scanning;return(0,e.jsx)(o.p8,{children:(0,e.jsxs)(o.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 v("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h,minValue:0,maxValue:600,format:function(C){return(0,a.fU)((0,s.LI)(C*10))},onDrag:function(C,y){return v("set_time",{time:y})}})})})}),(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,y){return v("range",{range:y})}})}),(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 v("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},16739:function(_,j,n){"use strict";n.r(j),n.d(j,{AssemblyTimer:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.timing,h=m.time;return(0,e.jsx)(o.p8,{children:(0,e.jsx)(o.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 v("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h,minValue:0,maxValue:600,format:function(c){return(0,a.fU)((0,s.LI)(c*10))},onDrag:function(c,d){return v("set_time",{time:d})}})})})})})})}},52883:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosAlertConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.priority_alarms||[],m=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)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return x("clear",{ref:u.ref})},children:u.name})},u.name)}),m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),m.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return x("clear",{ref:u.ref})},children:u.name})},u.name)})]})})})})}},16947:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosControl:function(){return f},AtmosControlContent:function(){return v}});var e=n(20462),s=n(7402),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(92736),x=(0,g.h)("fuck"),f=function(m){return(0,e.jsx)(o.p8,{width:600,height:440,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=u.config,p=(0,s.Ul)(function(M){return M.name})(c.alarms||[]),C=(0,t.useState)(0),y=C[0],O=C[1],b=(0,t.useState)(1),I=b[0],P=b[1],S;return y===0?S=(0,e.jsx)(a.wn,{title:"Alarms",children:p.map(function(M){return(0,e.jsx)(a.$n,{color:M.danger===2?"bad":M.danger===1?"average":"",onClick:function(){return h("alarm",{alarm:M.ref})},children:M.name},M.name)})}):y===1&&(S=(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{zoomScale:c.zoomScale,onZoom:function(M){return P(M)},children:p.filter(function(M){return~~M.z===~~d.mapZLevel}).map(function(M){return(0,e.jsx)(a.tx.Marker,{x:M.x,y:M.y,zoom:I,icon:"bell",tooltip:M.name,color:M.danger?"red":"green",onClick:function(){return h("alarm",{alarm:M.ref})}},M.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(a.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:S})]})}},49220:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosFilter:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:f.on?"power-off":"times",selected:f.on,onClick:function(){return x("power")},children:f.on?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:f.last_flow_rate,format:function(m){return m+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(f.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(m,u){return x("rate",{rate:u})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:f.rate===f.max_rate,onClick:function(){return x("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:v.map(function(m){return(0,e.jsx)(t.$n,{selected:m.selected,onClick:function(){return x("filter",{filterset:m.f_type})},children:m.name},m.name)})})]})})})})}},19575:function(_,j,n){"use strict";n.r(j),n.d(j,{AtmosMixer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){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)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:f.on?"power-off":"times",selected:f.on,onClick:function(){return x("power")},children:f.on?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(f.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:f.max_pressure,step:10,onChange:function(v,m){return x("pressure",{pressure:m})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:f.set_pressure===f.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+f.node1_dir+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(v,m){return x("node1",{concentration:m})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+f.node2_dir+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(v,m){return x("node2",{concentration:m})}})})]})})})})}},63333:function(_,j,n){"use strict";n.r(j),n.d(j,{Autolathe:function(){return c}});var e=n(20462),s=n(7402),t=n(22071),r=n(61282),a=n(7081),o=n(16754),g=n(2738),x=n(23162);function f(d,p){(p==null||p>d.length)&&(p=d.length);for(var C=0,y=new Array(p);C=d.length?{done:!0}:{done:!1,value:d[y++]}}}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 y=function(){var S=I.value,M=p.find(function(A){return A.name===S});if(!M)return"continue";if(M.amount=0)&&(C[O]=d[O]);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}},v=function(d){var p=function(J){M(J)},C=function(J){K(J)},y=function(J){F(J)},O=(0,r.Oc)(),b=O.act,I=O.data,P=(0,t.useState)(""),S=P[0],M=P[1],A=(0,t.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,t.useState)(!1),k=N[0],F=N[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:I.processing&&(0,e.jsx)(a.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.wn,{children:[I.points," points available.",(0,e.jsx)(a.$n,{ml:1,icon:"blender",onClick:function(){return b("activate")},children:"Activate"}),(0,e.jsx)(a.$n,{ml:1,icon:"eject",disabled:!I.beaker,onClick:function(){return b("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(m,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y})]})})})},m=function(d){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.points,b=y.items,I=(0,s.XZ)(d.searchText,function(M){return M[0]}),P=!1,S=Object.entries(b).map(function(M,A){var R=Object.entries(M[1]).filter(I).map(function(K){return K[1].affordable=O>=K[1].price/y.build_eff,K[1]}).sort(f[d.sortOrder]);if(R.length!==0)return d.descending&&(R=R.reverse()),P=!0,(0,e.jsx)(c,{title:M[0],items:R},M[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:P?S:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",value:d.searchText,width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:d.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$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,y=p.data,O=d.title,b=d.items,I=x(d,["title","items"]);return(0,e.jsx)(a.Nt,g({open:!0,title:O},I,{children:b.map(function(P){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:P.name}),(0,e.jsx)(a.$n,{disabled:!h(P,y),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:P.name})},children:(P.price/y.build_eff).toLocaleString("en-US")}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},P.name)})}))}},73221:function(_,j,n){"use strict";n.r(j),n.d(j,{BodyDesigner:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data,C=p.menu,y=p.disk,O=p.diskStored,b=p.activeBodyRecord,I=u[C];return(0,e.jsx)(a.p8,{width:400,height:650,children:(0,e.jsxs)(a.p8.Content,{children:[y?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return d("savetodisk")},disabled:!b,children:"Save To Disk"}),(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return d("loadfromdisk")},disabled:!O,children:"Load From Disk"}),(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("ejectdisk")},children:"Eject"})]}):null,I]})})},g=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})},x=function(h){var c=(0,t.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",onClick:function(){return d("menu",{menu:"Main"})},children:"Back"}),children:C?C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("view_brec",{view_brec:y.recref})},children:y.name},y.name)}):""})},f=function(h){var c=(0,t.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",onClick:function(){return d("menu",{menu:"Main"})},children:"Back"}),children:C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("view_stock_brec",{view_stock_brec:y})},children:y},y)})})},v=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord,y=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",onClick:function(){return d("menu",{menu:"Main"})},children:"Back"}),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",onClick:function(){return d("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,s.ZH)(C.gender)})}),(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",disabled:!C.booc,onClick:function(){return d("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:y,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("href_conversion",{target_href:"size_multiplier",target_value:1})},children:C.scale})}),Object.keys(C.styles).map(function(O){var b=C.styles[O];return(0,e.jsxs)(r.Ki.Item,{label:O,children:[b.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("href_conversion",{target_href:b.styleHref,target_value:1})},children:b.style}):null,b.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("href_conversion",{target_href:b.colorHref,target_value:1})},children:b.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color,style:{border:"1px solid #fff"}})]}):null,b.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("href_conversion",{target_href:b.colorHref2,target_value:1})},children:b.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color2,style:{border:"1px solid #fff"}})]}):null]},O)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return d("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(O){var b=C.markings[O];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:O})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:b,onClick:function(){return d("href_conversion",{target_href:"marking_color",target_value:O})},children:O})})]})},O)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},m=function(h){var c=(0,t.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",onClick:function(){return d("menu",{menu:"Specific Record"})},children:"Back"}),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)(v,{}),"OOC Notes":(0,e.jsx)(m,{})}},27590:function(_,j,n){"use strict";n.r(j),n.d(j,{BodyScanner:function(){return h}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(S){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(S){return"Viral pathogen detected in blood stream."}],["blind","average",function(S){return"Cataracts detected."}],["colourblind","average",function(S){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(S){return"Retinal misalignment detected."}],["humanPrey","average",function(S){return"Foreign Humanoid(s) detected: "+S.humanPrey}],["livingPrey","average",function(S){return"Foreign Creature(s) detected: "+S.livingPrey}],["objectPrey","average",function(S){return"Foreign Object(s) detected: "+S.objectPrey}]],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]},v=function(S,M){for(var A=[],R=0;R0?S.reduce(function(M,A){return M===null?A:(0,e.jsxs)(e.Fragment,{children:[M,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},h=function(S){var M=(0,t.Oc)().data,A=M.occupied,R=M.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(P,{});return(0,e.jsx)(a.p8,{width:690,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(S){var M=S.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(d,{occupant:M}),(0,e.jsx)(p,{occupant:M}),(0,e.jsx)(C,{occupant:M}),(0,e.jsx)(y,{occupant:M}),(0,e.jsx)(b,{organs:M.extOrgan}),(0,e.jsx)(I,{organs:M.intOrgan})]})},d=function(S){var M=(0,t.Oc)(),A=M.act,R=M.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:o[K.stat][0],children:o[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(S){var M=S.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:M.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"})]}),M.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:M.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"})]}),M.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(S){var M=S.occupant,A=M.hasBorer||M.blind||M.colourblind||M.nearsighted||M.hasVirus;return A=A||M.humanPrey||M.livingPrey||M.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(M[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](M)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},y=function(S){var M=S.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:v(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)(O,{value:M[A[1]],marginBottom:K0&&"0.5rem",value:M.totalLoss/100,ranges:f,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!M.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(M.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!M.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(M.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(M.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:m([M.internalBleeding&&"Internal bleeding",!!M.status.bleeding&&"External bleeding",M.lungRuptured&&"Ruptured lung",M.destroyed&&"Destroyed",!!M.status.broken&&M.status.broken,u(M.germ_level),!!M.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[m([!!M.status.splinted&&"Splinted",!!M.status.robotic&&"Robotic",!!M.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),m(M.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},I=function(S){return S.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"})]}),S.organs.map(function(M,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:M.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:M.maxHealth,value:M.damage/100,mt:A>0&&"0.5rem",ranges:f,children:(0,s.LI)(M.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:m([u(M.germ_level),!!M.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:m([M.robotic===1&&"Robotic",M.robotic===2&&"Assisted",!!M.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},P=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."]})})})}},50403:function(_,j,n){"use strict";n.r(j),n.d(j,{BombTester:function(){return f}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(){return o=Object.assign||function(m){for(var u=1;u.5,b=Math.random()>.5;return d.state={x:O?p:0,y:b?C:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(I){var P=o({},I);return P.reverseX?P.x-y<-5?(P.reverseX=!1,P.x+=y):P.x-=y:P.x+y>p?(P.reverseX=!0,P.x-=y):P.x+=y,P.reverseY?P.y-y<-20?(P.reverseY=!1,P.y+=y):P.y-=y:P.y+y>C?(P.reverseY=!0,P.y-=y):P.y+=y,P})},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,y={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:y,name:"bomb",size:10,color:"red"})})})},u}(s.Component)},56778:function(_,j,n){"use strict";n.r(j),n.d(j,{BotanyEditor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.activity,m=f.degradation,u=f.disk,h=f.sourceName,c=f.locus,d=f.loaded;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:h}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[m,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:d&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:d})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},89980:function(_,j,n){"use strict";n.r(j),n.d(j,{BotanyIsolator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.geneMasks,m=f.activity,u=f.degradation,h=f.disk,c=f.loaded,d=f.hasGenetics,p=f.sourceName;return m?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[u,"%"]}),h&&v.length&&v.map(function(C){return(0,e.jsx)(t.Ki.Item,{label:C.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),h&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),h&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},91287:function(_,j,n){"use strict";n.r(j),n.d(j,{BrigTimer:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data;return(0,e.jsx)(o.p8,{width:400,height:138,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:m.timing,onClick:function(){return v(m.timing?"stop":"start")},children:m.timing?"Stop":"Start"}),m.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:m.flash_charging,onClick:function(){return v("flash")},children:m.flash_charging?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m.time_left/10,minValue:0,maxValue:m.max_time_left/10,format:function(u){return(0,a.fU)((0,s.LI)(u*10))},onDrag:function(u,h){return v("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",onClick:function(){return v("preset",{preset:"short"})},children:"Add "+(0,a.fU)(m.preset_short)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return v("preset",{preset:"medium"})},children:"Add "+(0,a.fU)(m.preset_medium)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return v("preset",{preset:"long"})},children:"Add "+(0,a.fU)(m.preset_long)})})]})]})})})}},21648:function(_,j,n){"use strict";n.r(j),n.d(j,{CameraConsole:function(){return u},CameraConsoleContent:function(){return h},prevNextCamera:function(){return v},selectCameras:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(65380),a=n(61282),o=n(61358),g=n(7081),x=n(16754),f=n(2738),v=function(c,d){var p,C;if(!d)return[];var y=c.findIndex(function(O){return O.name===d.name});return[(p=c[y-1])==null?void 0:p.name,(C=c[y+1])==null?void 0:C.name]},m=function(c,d,p){d===void 0&&(d=""),p===void 0&&(p="");var C=(0,a.XZ)(d,function(y){return y.name});return(0,t.L)([(0,s.pb)(function(y){return y==null?void 0:y.name}),d&&(0,s.pb)(C),p&&(0,s.pb)(function(y){return y.networks.includes(p)}),(0,s.Ul)(function(y){return y.name})])(c)},u=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,y=C.mapRef,O=C.activeCamera,b=m(C.cameras),I=v(b,O),P=I[0],S=I[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: "}),O&&O.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!P,onClick:function(){return p("switch_camera",{name:P})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!S,onClick:function(){return p("switch_camera",{name:S})}}),"| 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:y,type:"map"}})]})]})},h=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,y=(0,o.useState)(""),O=y[0],b=y[1],I=(0,o.useState)(""),P=I[0],S=I[1],M=C.activeCamera,A=C.allNetworks;A.sort();var R=m(C.cameras,O,P);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 b(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:P?"155px":"177px",displayText:P||"No Filter",options:A,onSelected:function(K){return S(K)}})}),P?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){S("")}})}):""]})}),(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",M&&K.name===M.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},63281:function(_,j,n){"use strict";n.r(j),n.d(j,{Canister:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.connected,h=m.can_relabel,c=m.pressure,d=m.releasePressure,p=m.defaultReleasePressure,C=m.minReleasePressure,y=m.maxReleasePressure,O=m.valveOpen,b=m.holding;return(0,e.jsx)(o.p8,{width:360,height:242,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!h,onClick:function(){return v("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,a.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!O&&"yellow",value:d,unit:"kPa",minValue:C,maxValue:y,stepPixelSize:1,onDrag:function(I,P){return v("pressure",{pressure:P})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return v("pressure",{pressure:y})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return v("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:O?b?"caution":"danger":null,onClick:function(){return v("valve")},children:O?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name: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:!!b&&(0,e.jsx)(r.$n,{icon:"eject",color:O&&"danger",onClick:function(){return v("eject")},children:"Eject"}),children:[!!b&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:b.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:b.pressure})," kPa"]})]}),!b&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},99202:function(_,j,n){"use strict";n.r(j),n.d(j,{Canvas:function(){return h}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(){return o=Object.assign||function(c){for(var d=1;d=0)&&(p[y]=c[y]);return p}function f(c,d){return f=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},f(c,d)}var v=24,m=function(c){"use strict";g(d,c);function d(C){var y;return y=c.call(this,C)||this,y.canvasRef=(0,s.createRef)(),y.onCVClick=C.onCanvasClick,y}var p=d.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(y){var O=this.canvasRef.current.getContext("2d"),b=y.value,I=b.length;if(I){var P=b[0].length,S=Math.round(this.canvasRef.current.width/I),M=Math.round(this.canvasRef.current.height/P);O.save(),O.scale(S,M);for(var A=0;A=0)&&(p[y]=c[y]);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}},v=function(){var c=function(K){O(K)},d=function(K){P(K)},p=function(K){A(K)},C=(0,t.useState)(""),y=C[0],O=C[1],b=(0,t.useState)("Alphabetical"),I=b[0],P=b[1],S=(0,t.useState)(!1),M=S[0],A=S[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{searchText:y,sortOrder:I,descending:M,onSearchText:c,onSortOrder:d,onDescending:p}),(0,e.jsx)(u,{searchText:y,sortOrder:I,descending:M,onSearchText:c,onSortOrder:d,onDescending:p})]})})})},m=function(c){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(d,p){return c.onSearchText(p)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:c.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(d){return c.onSortOrder(d)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$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,y=C.points,O=C.items,b=(0,s.XZ)(c.searchText,function(S){return S[0]}),I=!1,P=Object.entries(O).map(function(S,M){var A=Object.entries(S[1]).filter(b).map(function(R){return R[1].affordable=y>=R[1].price,R[1]}).sort(f[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),I=!0,(0,e.jsx)(h,{title:S[0],items:A},S[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:I?P:(0,e.jsx)(a.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,y=c.title,O=c.items,b=x(c,["title","items"]);return(0,e.jsx)(a.Nt,g({open:!0,title:y},b,{children:O.map(function(I){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(a.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:y,name:I.name,price:I.price,restriction:I.restriction})},children:I.price.toLocaleString("en-US")}),(0,e.jsx)(a.az,{style:{clear:"both"}})]},I.name)})}))}},36924:function(_,j,n){"use strict";n.r(j),n.d(j,{CharacterDirectory:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){switch(m){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(m){var u=function(R){I(R)},h=(0,t.Oc)(),c=h.act,d=h.data,p=d.personalVisibility,C=d.personalTag,y=d.personalErpTag,O=(0,s.useState)(null),b=O[0],I=O[1],P=(0,s.useState)(!1),S=P[0],M=P[1];return(0,e.jsx)(a.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:b&&(0,e.jsx)(x,{overlay:b,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:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return M(!S)},children:S?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setVisible",{overwrite_prefs:S})},children:p?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setTag",{overwrite_prefs:S})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("setErpTag",{overwrite_prefs:S})},children:y})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return c("editAd",{overwrite_prefs:S})},children:"Edit Ad"})})]})}),(0,e.jsx)(f,{onOverlay:u})]})})})},x=function(m){return(0,e.jsxs)(r.wn,{title:m.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return m.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:m.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:o(m.overlay.tag),children:m.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:m.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:m.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:m.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:m.overlay.flavor_text||"Unset."})})]})},f=function(m){var u=function(A){b(A)},h=function(A){S(A)},c=(0,t.Oc)(),d=c.act,p=c.data,C=p.directory,y=(0,s.useState)("name"),O=y[0],b=y[1],I=(0,s.useState)("name"),P=I[0],S=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return d("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(v,{id:"name",sortId:O,sortOrder:P,onSortId:u,onSortOrder:h,children:"Name"}),(0,e.jsx)(v,{id:"species",sortId:O,sortOrder:P,onSortId:u,onSortOrder:h,children:"Species"}),(0,e.jsx)(v,{id:"tag",sortId:O,sortOrder:P,onSortId:u,onSortOrder:h,children:"Vore Tag"}),(0,e.jsx)(v,{id:"erptag",sortId:O,sortOrder:P,onSortId:u,onSortOrder:h,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(M,A){var R=P?1:-1;return M[O].localeCompare(A[O])*R}).map(function(M,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:o(M.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:M.name}),(0,e.jsx)(r.XI.Cell,{children:M.species}),(0,e.jsx)(r.XI.Cell,{children:M.tag}),(0,e.jsx)(r.XI.Cell,{children:M.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return m.onOverlay(M)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},A)})]})})},v=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=m.id,p=m.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:m.sortId!==d&&"transparent",onClick:function(){m.sortId===d?m.onSortOrder(!m.sortOrder):(m.onSortId(d),m.onSortOrder(!0))},children:[p,m.sortId===d&&(0,e.jsx)(r.In,{name:m.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(_,j,n){"use strict";n.r(j),n.d(j,{CheckboxInput:function(){return v}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(19996),g=n(2738),x=n(5335),f=n(44149),v=function(m){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,y=u.timeout,O=u.title,b=(0,t.useState)([]),I=b[0],P=b[1],S=(0,t.useState)(""),M=S[0],A=S[1],R=(0,s.XZ)(M,function(k){return k}),K=c.filter(R),N=function(k){var F=I.includes(k)?I.filter(function(W){return W!==k}):[].concat(I,[k]);P(F)};return(0,e.jsxs)(g.p8,{title:O,width:425,height:300,children:[!!y&&(0,e.jsx)(f.Loader,{value:y}),(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.jsxs)(a.IC,{info:!0,textAlign:"center",children:[(0,s.jT)(C)," ",d>0&&" (Min: "+d+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(a.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(a.XI,{children:K.map(function(k,F){return(0,e.jsx)(o.Hj,{className:"candystripe",children:(0,e.jsx)(o.nA,{children:(0,e.jsx)(a.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=p&&!I.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},F)})})})}),(0,e.jsxs)(a.BJ,{m:1,mb:0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(a.In,{name:"search",mt:.5})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.pd,{fluid:!0,value:M,onInput:function(k,F){return A(F)}})})]}),(0,e.jsx)(a.BJ.Item,{mt:.7,children:(0,e.jsx)(a.wn,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},9576:function(_,j,n){"use strict";n.r(j),n.d(j,{ChemDispenser:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(31310),a=n(2738),o=[5,10,20,30,40,60],g=[1,5,10],x=function(u){return(0,e.jsx)(a.p8,{width:390,height:655,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(v,{}),(0,e.jsx)(m,{})]})})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.amount;return(0,e.jsx)(t.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:o.map(function(C,y){return(0,e.jsx)(t.$n,{textAlign:"center",selected:p===C,m:"0",onClick:function(){return c("amount",{amount:C})},children:C+"u"},y)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,y){return c("amount",{amount:y})}})})]})})},v=function(u){for(var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.chemicals,C=p===void 0?[]:p,y=[],O=0;O<(C.length+1)%3;O++)y.push(!0);return(0,e.jsx)(t.wn,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(t.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(b,I){return(0,e.jsx)(t.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(t.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return c("dispense",{reagent:b.id})},children:b.title+" ("+b.amount+")"})},I)}),y.map(function(b,I){return(0,e.jsx)(t.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isBeakerLoaded,C=d.beakerCurrentVolume,y=d.beakerMaxVolume,O=d.beakerContents,b=O===void 0?[]:O;return(0,e.jsx)(t.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.az,{children:[!!p&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[C," / ",y," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!p,onClick:function(){return c("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:b,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:I.id,amount:-1})},children:"Isolate"}),g.map(function(P,S){return(0,e.jsx)(t.$n,{onClick:function(){return c("remove",{reagent:I.id,amount:P})},children:P},S)}),(0,e.jsx)(t.$n,{onClick:function(){return c("remove",{reagent:I.id,amount:I.volume})},children:"ALL"})]})}})})}},22803:function(_,j,n){"use strict";n.r(j),n.d(j,{ChemMaster:function(){return m}});var e=n(20462),s=n(65380),t=n(7081),r=n(16754),a=n(2738),o=n(31310),g=n(38509),x=[1,5,10,30,60],f=null,v=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=C.args.analysis;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(r.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!b.condi&&(0,e.jsx)(r.$n,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",onClick:function(){return O("print",{idx:I.idx,beaker:C.args.beaker})},children:"Print"})]})})})},m=function(C){var y=(0,t.Oc)().data,O=y.condi,b=y.beaker,I=y.beaker_reagents,P=I===void 0?[]:I,S=y.buffer_reagents,M=S===void 0?[]:S,A=y.mode;return(0,e.jsxs)(a.p8,{width:575,height:500,children:[(0,e.jsx)(g.ComplexModal,{}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(u,{beaker:b,beakerReagents:P,bufferNonEmpty:M.length>0}),(0,e.jsx)(h,{mode:A,bufferReagents:M}),(0,e.jsx)(c,{isCondiment:O,bufferNonEmpty:M.length>0})]})]})},u=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=C.beaker,P=C.beakerReagents,S=C.bufferNonEmpty,M=S?(0,e.jsx)(r.$n.Confirm,{icon:"eject",disabled:!I,onClick:function(){return O("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(r.$n,{icon:"eject",disabled:!I,onClick:function(){return O("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(r.wn,{title:"Beaker",buttons:M,children:I?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(A,R){return(0,e.jsxs)(r.az,{mb:R0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(P,S){return(0,e.jsxs)(r.az,{mb:S1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{color:o.lm.damageType.oxy,inline:!0,children:N[0]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.toxin,inline:!0,children:N[2]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.brute,inline:!0,children:N[3]}),"\xA0|\xA0",(0,e.jsx)(a.az,{color:o.lm.damageType.burn,inline:!0,children:N[1]})]}):(0,e.jsx)(a.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(a.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:R}),(0,e.jsx)(a.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:K}),(0,e.jsxs)(a.Ki.Item,{label:"Disk",children:[(0,e.jsx)(a.$n.Confirm,{disabled:!I.disk,icon:"arrow-circle-down",onClick:function(){return b("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(a.$n,{disabled:!I.disk,icon:"arrow-circle-up",onClick:function(){return b("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Actions",children:[(0,e.jsx)(a.$n,{disabled:!I.podready,icon:"user-plus",onClick:function(){return b("clone",{ref:S})},children:"Clone"}),(0,e.jsx)(a.$n,{icon:"trash",onClick:function(){return b("del_rec")},children:"Delete"})]})]})})},m=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.menu;return(0,g.modalRegisterBodyOverride)("view_rec",v),(0,e.jsxs)(x.p8,{children:[(0,e.jsx)(g.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(x.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(p,{}),(0,e.jsx)(C,{}),(0,e.jsx)(u,{}),(0,e.jsx)(a.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(h,{})})]})]})},u=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.menu;return(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:P===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(a.tU.Tab,{selected:P===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},h=function(y){var O=(0,r.Oc)().data,b=O.menu,I;return b===1?I=(0,e.jsx)(c,{}):b===2&&(I=(0,e.jsx)(d,{})),I},c=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.loading,S=I.scantemp,M=I.occupant,A=I.locked,R=I.can_brainscan,K=I.scan_mode,N=I.numberofpods,k=I.pods,F=I.selected_pod,W=A&&!!M;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(a.$n,{disabled:!M,selected:W,icon:W?"toggle-on":"toggle-off",onClick:function(){return b("lock")},children:W?"Engaged":"Disengaged"}),(0,e.jsx)(a.$n,{disabled:W||!M,icon:"user-slash",onClick:function(){return b("eject")},children:"Eject Occupant"})]}),children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Status",children:P?(0,e.jsxs)(a.az,{color:"average",children:[(0,e.jsx)(a.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(a.az,{color:S.color,children:S.text})}),!!R&&(0,e.jsx)(a.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(a.$n,{icon:K?"brain":"male",onClick:function(){return b("toggle_mode")},children:K?"Brain":"Body"})})]}),(0,e.jsx)(a.$n,{disabled:!M||P,icon:"user",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")},children:"Scan Occupant"})]}),(0,e.jsx)(a.wn,{title:"Pods",level:"2",children:N?k.map(function(J,X){var Q;return J.status==="cloning"?Q=(0,e.jsx)(a.z2,{min:"0",max:"100",value:J.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(a.az,{textAlign:"center",children:(0,s.LI)(J.progress,0)+"%"})}):J.status==="mess"?Q=(0,e.jsx)(a.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):Q=(0,e.jsx)(a.$n,{selected:F===J.pod,icon:F===J.pod&&"check",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:J.pod})},children:"Select"}),(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("pod_"+J.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(a.az,{color:"label",children:["Pod #",X+1]}),(0,e.jsxs)(a.az,{bold:!0,color:J.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Q]},X)}):(0,e.jsx)(a.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},d=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.records;return P.length?(0,e.jsx)(a.az,{mt:"0.5rem",children:P.map(function(S,M){return(0,e.jsx)(a.$n,{icon:"user",mb:"0.5rem",onClick:function(){return b("view_rec",{ref:S.record})},children:S.realname},M)})}):(0,e.jsx)(a.so,{height:"100%",children:(0,e.jsxs)(a.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},p=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.temp;if(!(!P||!P.text||P.text.length<=0)){var S,M=(S={},S[P.style]=!0,S);return(0,e.jsxs)(a.IC,f({},M,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",children:P.text}),(0,e.jsx)(a.$n,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(a.az,{clear:"both"})]}))}},C=function(y){var O=(0,r.Oc)(),b=O.act,I=O.data,P=I.scanner,S=I.numberofpods,M=I.autoallowed,A=I.autoprocess,R=I.disk;return(0,e.jsx)(a.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(a.$n,{selected:A,icon:A?"toggle-on":"toggle-off",onClick:function(){return b("autoprocess",{on:A?0:1})},children:A?"Enabled":"Disabled"})]}),(0,e.jsx)(a.$n,{disabled:!R,icon:"eject",onClick:function(){return b("disk",{option:"eject"})},children:"Eject Disk"})]}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Scanner",children:P?(0,e.jsx)(a.az,{color:"good",children:"Connected"}):(0,e.jsx)(a.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"Pods",children:S?(0,e.jsxs)(a.az,{color:"good",children:[S," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})})]})})}},74782:function(_,j,n){"use strict";n.r(j),n.d(j,{ColorMate:function(){return a},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return g},ColorMateTint:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(f,v){var m=(0,s.Oc)(v),u=m.act,h=m.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)(t.wn,{children:[d?(0,e.jsx)(t.IC,{children:d}):null,Object.keys(p).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.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)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return u("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return u("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.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)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return u("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return u("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return u("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:c===1?(0,e.jsx)(o,{}):c===2?(0,e.jsx)(x,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},o=function(f,v){var m=(0,s.Oc)(v),u=m.act,h=m.data;return(0,e.jsx)(t.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return u("choose_color")},children:"Select new color"})},g=function(f,v){var m=(0,s.Oc)(v),u=m.act,h=m.data,c=h.matrixcolors||[];return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RR:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["GR:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["BR:"," ",(0,e.jsx)(t.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)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RG:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["GG:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["BG:"," ",(0,e.jsx)(t.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)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["RB:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["GB:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["BB:"," ",(0,e.jsx)(t.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)(t.XI.Cell,{children:[(0,e.jsxs)(t.XI.Row,{children:["CR:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["CG:"," ",(0,e.jsx)(t.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)(t.XI.Row,{children:["CB:"," ",(0,e.jsx)(t.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)(t.XI.Cell,{width:"40%",children:[(0,e.jsx)(t.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(t.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(f,v){var m=(0,s.Oc)(v),u=m.act,h=m.data,c=h.buildhue,d=h.buildsat,p=h.buildval;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(t.XI.Cell,{width:"85%",children:(0,e.jsx)(t.Ap,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(C,y){return u("set_hue",{buildhue:y})}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Ap,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(C,y){return u("set_sat",{buildsat:y})}})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.Ap,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(C,y){return u("set_val",{buildval:y})}})})]})]})}},6938:function(_,j,n){"use strict";n.r(j),n.d(j,{CommunicationsConsole:function(){return a},CommunicationsConsoleContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(m){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.menu_state,p=(0,e.jsxs)(t.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)(v,{}):d===3&&(p=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.messages,p=c.msg_cooldown,C=c.emagged,y=c.cc_cooldown,O=c.str_security_level,b=c.levels,I=c.authmax,P=c.security_level,S=c.security_level_color,M=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;y>0&&(k+=" ("+y+"s)");var F=O,W=b.map(function(J){return(0,e.jsx)(t.$n,{icon:J.icon,disabled:!M,selected:J.id===P,onClick:function(){return h("newalertlevel",{level:J.id})},children:J.name},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!I||p>0,onClick:function(){return h("announce")},children:N})}),!!C&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!I||y>0,onClick:function(){return h("MessageSyndicate")},children:k}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!I,onClick:function(){return h("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!I||y>0,onClick:function(){return h("MessageCentCom")},children:k})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:S,children:F}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:W}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!M,onClick:function(){return h("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!M,onClick:function(){return h("messagelist")},children:K})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!M,selected:A,onClick:function(){return h("toggleatc")},children:A?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})},x=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.authenticated,p=c.is_ai,C=c.esc_status,y=c.esc_callable,O=c.esc_recallable,b;return d?p?b="AI":d===1?b="Command":d===2?b="Site Director":b="ERROR: Report This Bug!":b="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:p&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:d?"sign-out-alt":"id-card",selected:d,onClick:function(){return h("auth")},children:d?"Log Out ("+b+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!C&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),!!y&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!d,onClick:function(){return h("callshuttle")},children:"Call Shuttle"})}),!!O&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!d||p,onClick:function(){return h("cancelshuttle")},children:"Recall Shuttle"})})]})})]})},f=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,y=c.messages;if(d)return(0,e.jsx)(t.wn,{title:d.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!C,onClick:function(){return h("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:d.contents})});var O=y.map(function(b){return(0,e.jsxs)(t.Ki.Item,{label:b.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!C||d&&d.title===b.title,onClick:function(){return h("messagelist",{msgid:b.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!C||!p,onClick:function(){return h("delmessage",{msgid:b.id})},children:"Delete"})]},b.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return h("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:y.length&&O||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},v=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.stat_display,p=c.authenticated,C=d.presets.map(function(y){return(0,e.jsx)(t.$n,{selected:y.name===d.type,disabled:!p,onClick:function(){return h("setstat",{statdisp:y.name})},children:y.label},y.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return h("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!p,onClick:function(){return h("setmsg1")},children:d.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!p,onClick:function(){return h("setmsg2")},children:d.line_2})})]})})}},18581:function(_,j,n){"use strict";n.r(j),n.d(j,{Communicator:function(){return P}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=n(58044),f=1,v=2,m=3,u=4,h=40,c=5,d=6,p=7,C=8,y=9,O=[f,v,m,u,h,c,d,p,C,y],b={};function I(Q){return O.includes(Q)}var P=function(Q){for(var Z=(0,a.Oc)(),G=Z.act,H=Z.data,V=H.currentTab,q=H.video_comm,ie=H.owner,te=H.occupation,ce=H.connectionStatus,ue=H.address,me=H.visible,xe=H.ring,ve=H.selfie_mode,ge=H.homeScreen,we=H.targetAddress,Qe=H.voice_mobs,Me=H.phone_video_comm,Pe=H.communicating,Le=H.requestsReceived,vn=H.invitesSent,gn=H.imContacts,un=H.targetAddressName,ln=H.imList,He=H.feeds,_e=H.target_feed,De=H.latest_news,Ne=H.note,Te=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],We=Te.map(function(Ce){return(0,e.jsx)(o.$n,{fontSize:2,fluid:!0,onClick:function(){return G("add_hex",{add_hex:Ce})},children:Ce},Ce)}),$e=[],Xe=0;XeG?Z.length>G?Z.slice(0,G)+"...":Z:Q+Z},W=function(Q,Z,G,H){if(G<0||G>H.length)return k(Q,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var V=k(Q,Z),q=k(H[G],Z);return V&&q?"TinderMessage_Subsequent_Sent":!V&&!q?"TinderMessage_Subsequent_Received":V?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Q,Z,G,H,V){return QH?"average":Q>V?"bad":"good"},X=function(Q){var Z=(0,a.Oc)(),G=Z.act,H=Z.data,V=H.aircontents,q=H.weather,ie="\xB0";return(0,e.jsxs)(o.wn,{title:"Weather",children:[(0,e.jsx)(o.wn,{title:"Current Conditions",children:(0,e.jsx)(o.Ki,{children:(0,s.pb)(function(te){return te.val!=="0"||te.entry==="Pressure"||te.entry==="Temperature"})(V).map(function(te){return(0,e.jsxs)(o.Ki.Item,{label:te.entry,color:J(te.val,te.bad_low,te.poor_low,te.poor_high,te.bad_high),children:[te.val,(0,t.jT)(te.units)]},te.entry)})})}),(0,e.jsx)(o.wn,{title:"Weather Reports",children:!!q.length&&(0,e.jsx)(o.Ki,{children:q.map(function(te){return(0,e.jsx)(o.Ki.Item,{label:te.Planet,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Time",children:te.Time}),(0,e.jsx)(o.Ki.Item,{label:"Weather",children:(0,t.Sn)(te.Weather)}),(0,e.jsxs)(o.Ki.Item,{label:"Temperature",children:["Current: ",te.Temperature.toFixed()," ",ie,"C | High:"," ",te.High.toFixed()," ",ie,"C | Low: ",te.Low.toFixed()," ",ie,"C"]}),(0,e.jsx)(o.Ki.Item,{label:"Wind Direction",children:te.WindDir}),(0,e.jsx)(o.Ki.Item,{label:"Wind Speed",children:te.WindSpeed}),(0,e.jsx)(o.Ki.Item,{label:"Forecast",children:(0,t.jT)(te.Forecast)})]})},te.Planet)})})||(0,e.jsx)(o.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},82994:function(_,j,n){"use strict";n.r(j),n.d(j,{ComputerFabricator:function(){return c}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738);function o(O,b){return b||(b=O.slice(0)),O.raw=b,O}function g(){var O=o(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return O},O}function x(){var O=o(["\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 O},O}function f(){var O=o(["\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 O},O}function v(){var O=o(["\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 v=function(){return O},O}function m(){var O=o(["\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 m=function(){return O},O}function u(){var O=o(["\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 O},O}function h(){var O=o(["\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 O},O}var c=function(O){var b=(0,t.Oc)(),I=b.act,P=b.data;return(0,e.jsx)(a.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),P.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return I("clean_order")},children:"Clear Order"}),P.state===0&&(0,e.jsx)(d,{}),P.state===1&&(0,e.jsx)(p,{}),P.state===2&&(0,e.jsx)(C,{}),P.state===3&&(0,e.jsx)(y,{})]})})},d=function(O){var b=(0,t.Oc)(),I=b.act,P=b.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.jsx)(r.XI,{width:"100%",children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})},p=function(O){var b=(0,t.Oc)(),I=b.act,P=b.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:[P.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,{selected:P.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(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,{selected:P.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(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,{selected:P.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(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)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(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)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})},children:"Standard"})})]}),P.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,{selected:P.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(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,{selected:P.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:P.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")},children:"Confirm Order"})]})},C=function(O){var b=(0,t.Oc)(),I=b.act,P=b.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:[P.totalprice,"\u20AE"]})]})]})},y=function(O){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."})]})}},63875:function(_,j,n){"use strict";n.r(j),n.d(j,{CookingAppliance:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.temperature,m=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)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:u?"good":"blue",value:v,maxValue:m,children:[(0,e.jsx)(t.zv,{value:v}),"\xB0C / ",m,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:h}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:d.map(function(p,C){return p.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(t.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},58044:function(_,j,n){"use strict";n.r(j),n.d(j,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(79500),o=n(2738),g=function(){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(f){var v=(0,t.Oc)(),m=v.act,u=v.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:a.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)})})}},82703:function(_,j,n){"use strict";n.r(j),n.d(j,{CrewMonitor:function(){return v},CrewMonitorContent:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(61358),a=n(7081),o=n(16754),g=n(2738),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"},v=function(){var h=function(P){C(P)},c=function(P){b(P)},d=(0,r.useState)(0),p=d[0],C=d[1],y=(0,r.useState)(1),O=y[0],b=y[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(m,{tabIndex:p,zoom:O,onTabIndex:h,onZoom:c})})})},m=function(h){var c=(0,a.Oc)(),d=c.act,p=c.data,C=c.config,y=(0,t.L)([(0,s.Ul)(function(b){return b.name}),(0,s.Ul)(function(b){return b==null?void 0:b.x}),(0,s.Ul)(function(b){return b==null?void 0:b.y}),(0,s.Ul)(function(b){return b==null?void 0:b.realZ})])(p.crewmembers||[]),O;return h.tabIndex===0?O=(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Name"}),(0,e.jsx)(o.XI.Cell,{children:"Status"}),(0,e.jsx)(o.XI.Cell,{children:"Location"})]}),y.map(function(b){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsxs)(o.XI.Cell,{children:[b.name," (",b.assignment,")"]}),(0,e.jsxs)(o.XI.Cell,{children:[(0,e.jsx)(o.az,{inline:!0,color:f(b),children:x(b)}),b.sensor_type>=2?(0,e.jsxs)(o.az,{inline:!0,children:["(",(0,e.jsx)(o.az,{inline:!0,color:"red",children:b.brute}),"|",(0,e.jsx)(o.az,{inline:!0,color:"orange",children:b.fire}),"|",(0,e.jsx)(o.az,{inline:!0,color:"green",children:b.tox}),"|",(0,e.jsx)(o.az,{inline:!0,color:"blue",children:b.oxy}),")"]}):null]}),(0,e.jsx)(o.XI.Cell,{children:b.sensor_type===3?p.isAI?(0,e.jsx)(o.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return d("track",{track:b.ref})},children:b.area+" ("+b.x+", "+b.y+")"}):b.area+" ("+b.x+", "+b.y+", "+b.z+")":"Not Available"})]},b.ref)})]}):h.tabIndex===1?O=(0,e.jsx)(u,{zoom:h.zoom,onZoom:h.onZoom}):O="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:h.tabIndex===0,onClick:function(){return h.onTabIndex(0)},children:[(0,e.jsx)(o.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(o.tU.Tab,{selected:h.tabIndex===1,onClick:function(){return h.onTabIndex(1)},children:[(0,e.jsx)(o.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.az,{m:2,children:O})]})},u=function(h){var c=(0,a.Oc)(),d=c.act,p=c.config,C=c.data;return(0,e.jsx)(o.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.tx,{zoomScale:C.zoomScale,onZoom:function(y){return h.onZoom(y)},children:C.crewmembers.filter(function(y){return y.sensor_type===3&&~~y.realZ===~~p.mapZLevel}).map(function(y){return(0,e.jsx)(o.tx.Marker,{x:y.x,y:y.y,zoom:h.zoom,icon:"circle",tooltip:y.name+" ("+y.assignment+")",color:f(y)},y.ref)})})})}},84877:function(_,j,n){"use strict";n.r(j),n.d(j,{Cryo:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(v){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(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.isOperating,d=h.hasOccupant,p=h.occupant,C=p===void 0?[]:p,y=h.cellTemperature,O=h.cellTemperatureStatus,b=h.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(t.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!d,children:"Eject"}),children:d?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(t.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:o[C.stat][0],children:o[C.stat][1]}),(0,e.jsxs)(t.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(t.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(t.Ki.Divider,{}),a.map(function(I){return(0,e.jsx)(t.Ki.Item,{label:I.label,children:(0,e.jsx)(t.z2,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(t.zv,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(t.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(t.wn,{title:"Cell",buttons:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!b,children:"Eject Beaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Temperature",color:O,children:[(0,e.jsx)(t.zv,{value:y})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",children:(0,e.jsx)(f,{})})]})})]})},f=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.isBeakerLoaded,d=h.beakerLabel,p=h.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[d||(0,e.jsx)(t.az,{color:"average",children:"No label"}),(0,e.jsx)(t.az,{color:!p&&"bad",children:p?(0,e.jsx)(t.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded"})}},31286:function(_,j,n){"use strict";n.r(j),n.d(j,{CryoStorage:function(){return o},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.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 v=(0,t.Oc)(),m=v.act,u=v.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 v=(0,t.Oc)(),m=v.act,u=v.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 m("allitems")},children:"Claim All"}),children:h.length&&h.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return m("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},90994:function(_,j,n){"use strict";n.r(j),n.d(j,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(31286),g=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.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)(o.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(f){var v=(0,t.Oc)(),m=v.act,u=v.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."})})}},3377:function(_,j,n){"use strict";n.r(j),n.d(j,{DNAForensics:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.scan_progress,m=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)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:m,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:m?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:v,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(t.az,{children:[u,(0,e.jsx)(t.az,{color:"label",children:h})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},75752:function(_,j,n){"use strict";n.r(j),n.d(j,{DNAModifier:function(){return f}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(38509),o=[["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(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.irradiating,R=M.dnaBlockSize,K=M.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(O,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(a.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{isDNAInvalid:N}),(0,e.jsx)(m,{isDNAInvalid:N})]})]})},v=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.locked,R=M.hasOccupant,K=M.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",onClick:function(){return S("toggleLock")},children:A?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!R||A,icon:"user-slash",onClick:function(){return S("ejectOccupant")},children:"Eject"})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.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)(t.Ki.Item,{label:"Status",color:o[K.stat][0],children:o[K.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),I.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:M.occupant.uniqueEnzymes?M.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})},m=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedMenuKey,R=M.hasOccupant,K=M.occupant;if(R){if(I.isDNAInvalid)return(0,e.jsx)(t.wn,{flexGrow:"1",children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(t.wn,{flexGrow:"1",children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No 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)(y,{})),(0,e.jsxs)(t.wn,{flexGrow:"1",children:[(0,e.jsx)(t.tU,{children:g.map(function(k,F){return(0,e.jsxs)(t.tU.Tab,{selected:A===k[0],onClick:function(){return S("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(t.In,{name:k[2]}),k[1]]},F)})}),N]})},u=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedUIBlock,R=M.selectedUISubBlock,K=M.selectedUITarget,N=M.dnaBlockSize,k=M.occupant;return(0,e.jsxs)(t.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(b,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(F){return F.toString(16).toUpperCase()},ml:"0",onChange:function(F,W){return S("changeUITarget",{value:W})}})})}),(0,e.jsx)(t.$n,{icon:"radiation",mt:"0.5rem",onClick:function(){return S("pulseUIRadiation")},children:"Irradiate Block"})]})},h=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.selectedSEBlock,R=M.selectedSESubBlock,K=M.dnaBlockSize,N=M.occupant;return(0,e.jsxs)(t.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(b,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return S("pulseSERadiation")},children:"Irradiate Block"})]})},c=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.radiationIntensity,R=M.radiationDuration;return(0,e.jsxs)(t.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Intensity",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationIntensity",{value:N})}})}),(0,e.jsx)(t.Ki.Item,{label:"Duration",children:(0,e.jsx)(t.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationDuration",{value:N})}})})]}),(0,e.jsx)(t.$n,{icon:"radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return S("pulseRadiation")},children:"Pulse Radiation"})]})},d=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.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)(t.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=I.id,R=I.name,K=I.buffer,N=M.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!K.data,icon:"trash",onClick:function(){return S("bufferOption",{option:"clear",id:A})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!K.data,icon:"pen",onClick:function(){return S("bufferOption",{option:"changeLabel",id:A})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!K.data||!M.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return S("bufferOption",{option:"saveDisk",id:A})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUI",id:A})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUIAndUE",id:A})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"saveSE",id:A})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!M.hasDisk||!M.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return S("bufferOption",{option:"loadDisk",id:A})},children:"From Disk"})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return S("bufferOption",{option:"transfer",id:A})},children:"Subject"})]})]})]}),!K.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.hasDisk,R=M.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!A||!R.data,icon:"trash",onClick:function(){return S("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!A,icon:"eject",onClick:function(){return S("ejectDisk")},children:"Eject"})]}),children:A?R.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},y=function(I){var P=(0,s.Oc)(),S=P.act,M=P.data,A=M.isBeakerLoaded,R=M.beakerVolume,K=M.beakerLabel;return(0,e.jsx)(t.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(t.$n,{disabled:!A,icon:"eject",onClick:function(){return S("ejectBeaker")},children:"Eject"}),children:A?(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(t.$n,{disabled:N>R,icon:"syringe",onClick:function(){return S("injectRejuvenators",{amount:N})},children:N},k)}),(0,e.jsx)(t.$n,{disabled:R<=0,icon:"syringe",onClick:function(){return S("injectRejuvenators",{amount:R})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(t.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},O=function(I){return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(t.In,{name:"radiation"})]})}),(0,e.jsx)(t.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},b=function(I){for(var P=function(Z){for(var G=function(ie){var te=ie+1;V.push((0,e.jsx)(t.$n,{selected:K===H&&N===te,mb:"0",onClick:function(){return M(F,{block:H,subblock:te})},children:W[Z+ie]}))},H=Z/k+1,V=[],q=0;q1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(t.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(t.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),h.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return v("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return v("affected_species")},children:"Species"})]})]})]})},g=function(x){var f=(0,s.Oc)(),v=f.act,m=f.data,u=m.dish_inserted,h=m.buffer,c=m.species_buffer,d=m.effects,p=m.info,C=m.growth,y=m.affected_species,O=m.busy;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:h?(0,e.jsxs)(t.az,{children:[h.name," (",h.stage,")"]}):c?(0,e.jsx)(t.az,{children:c}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!h&&!c,onClick:function(){return v("disk")},children:"Save To Disk"}),h?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:h.stage>1,onClick:function(){return v("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:h.stage>2,onClick:function(){return v("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:h.stage>3,onClick:function(){return v("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:h.stage>4,onClick:function(){return v("splice",{splice:4})},children:"Splice #4"})]}):c?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!c||p,onClick:function(){return v("splice",{splice:5})},children:"Splice Species"})}):null]})}},67225:function(_,j,n){"use strict";n.r(j),n.d(j,{DishIncubator:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(41242),a=n(2738),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.on,u=v.system_in_use,h=v.food_supply,c=v.radiation,d=v.growth,p=v.toxins,C=v.chemicals_inserted,y=v.can_breed_virus,O=v.chemical_volume,b=v.max_chemical_volume,I=v.dish_inserted,P=v.blood_already_infected,S=v.virus,M=v.analysed,A=v.infection_rate;return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return f("power")},children:m?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return f("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!u,onClick:function(){return f("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:h})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:c>=50?"bad":d>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(t.wn,{title:y?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!C,onClick:function(){return f("ejectchem")},children:"Eject "+(y?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!y,onClick:function(){return f("virus")},children:"Breed Virus"})]}),children:C&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:b,value:O,children:[O,"/",b]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:y?"good":"average",children:[I?y?"Suitable":"No hemolytic samples detected":"N/A",P?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!I,onClick:function(){return f("ejectdish")},children:"Eject Dish"}),children:I?S?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:d})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:M?A:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(_,j,n){"use strict";n.r(j),n.d(j,{DisposalBin:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.mode,m=f.pressure,u=f.isAI,h=f.panel_open,c=f.flushing,d,p;return v===2?(d="good",p="Ready"):v<=0?(d="bad",p="N/A"):v===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)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:d,children:p}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:m,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:u||h,selected:c?null:!0,onClick:function(){return x("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:u||h,selected:c?!0:null,onClick:function(){return x("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:v===-1,selected:v?null:!0,onClick:function(){return x("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:v===-1,selected:v?!0:null,onClick:function(){return x("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:u,onClick:function(){return x("eject")},children:"Eject Contents"})})]})]})})})}},67415:function(_,j,n){"use strict";n.r(j),n.d(j,{DroneConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.drones,m=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)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!h,selected:c,icon:"power-off",onClick:function(){return x("toggle_fab")},children:c?"Enabled":"Disabled"}),children:h?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return x("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{options:m?m.sort():null,selected:u,width:"100%",onSelected:function(d){return x("set_dcall_area",{area:d})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return x("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:v&&v.length?(0,e.jsx)(t.Ki,{children:v.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return x("resync",{ref:d.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return x("shutdown",{ref:d.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:d.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[d.charge," / ",d.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:d.active?"Yes":"No"})]})},d.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},10412:function(_,j,n){"use strict";n.r(j),n.d(j,{EmbeddedController:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(92736),o=(0,a.h)("fuck"),g={},x=function(M){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(M){var A=M.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:A.map(function(R){return(0,e.jsx)(t.Ki.Item,{label:R.label,children:(0,e.jsx)(t.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},v=function(M){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)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:R.airlock_disabled,icon:"arrow-left",onClick:function(){return K("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:R.airlock_disabled,icon:"arrow-right",onClick:function(){return K("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return K("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return K("force_int")},children:"Force Interior Door"})]})]})},m=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(t.az,{color:"good",children:"SECURED"})),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},h=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return K("toggle_override")},children:"Override"})]})},c=function(M){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(t.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},d=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(F){return F<80||F>120?"bad":F<95||F>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)(t.wn,{title:"Controls",children:[(0,e.jsx)(v,{}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return R("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return R("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleAdvanced=d;var p=function(M){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)(t.wn,{title:"Controls",children:[(0,e.jsx)(v,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleSimple=p;var C=function(M){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)(t.wn,{title:"Controls",children:[(0,e.jsx)(v,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsolePhoron=C;var y=function(M){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)(t.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",onClick:function(){return R("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(v,{}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!K.processing,icon:"ban",color:"bad",onClick:function(){return R("abort")},children:"Abort"})})]})]})};g.AirlockConsoleDocking=y;var O=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(t.az,{color:"good",children:"SECURED"})),(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,onClick:function(){return R("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",onClick:function(){return R("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=O;var b=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(t.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(t.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=b;var I=function(M){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)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:N?"arrow-left":"exclamation-triangle",onClick:function(){R(N?"cycle_ext_door":"force_ext")},children:N?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:k?"arrow-right":"exclamation-triangle",onClick:function(){R(k?"cycle_int_door":"force_int")},children:k?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var P=function(M){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",onClick:function(){return R("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",onClick:function(){return R("force_launch")},children:"MANUAL EJECT"})]})]})]})};g.EscapePodConsole=P;var S=function(M){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(h,{})})]})};g.EscapePodBerthConsole=S},26356:function(_,j,n){"use strict";n.r(j),n.d(j,{DisplayDetails:function(){return x},EntityNarrate:function(){return o},EntitySelection:function(){return g},ModeSelector:function(){return f},NarrationInput:function(){return v}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data;return(0,e.jsx)(a.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(a.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)(v,{})})]})})})]})})})})},g=function(m){var u=(0,t.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,onClick:function(){return h("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(y){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(y),onClick:function(){return h("select_entity",{id_selected:y})},children:(0,e.jsx)(r.az,{inline:!0,children:y})},y)})})})})})},x=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,y=c.selected_name,O=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:"})," ",y," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",O," ",(0,e.jsx)("br",{})]})},f=function(m){var u=(0,t.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"),children: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."),children:p?"Currently: Emoting":"Currently: Talking"})})]})},v=function(m){var u=(0,t.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})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(y,O){return C(O)},value:p||""})})})})}},63183:function(_,j,n){"use strict";n.r(j),n.d(j,{ExonetNode:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=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)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_power")},children:"Power "+(v?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return x("toggle_PDA_port")},children:m?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u,onClick:function(){return x("toggle_communicator_port")},children:u?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return x("toggle_newscaster_port")},children:h?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[c.map(function(d,p){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:p%2,children:d},p)}),!c||c.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},23162:function(_,j,n){"use strict";n.r(j),n.d(j,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=n(20462),s=n(7402),t=n(4089),r=n(65380),a=n(61282),o=n(61358),g=n(7081),x=n(16754),f=n(41242),v=n(2738);function m(G,H){(H==null||H>G.length)&&(H=G.length);for(var V=0,q=new Array(H);V=G.length?{done:!0}:{done:!1,value:G[q++]}}}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,y,O=(y={},y[d]=!1,y[p]="average",y[C]="bad",y),b=function(G){var H={};return G.forEach(function(V){H[V.name]=V.amount}),H},I=function(G,H,V){return G>V?{color:C,deficit:G-V}:H>V?{color:p,deficit:G}:G+H>V?{color:p,deficit:G+H-V}:{color:d,deficit:0}},P=function(G,H,V){var q={textColor:d};return Object.keys(V.cost).forEach(function(ie){q[ie]=I(V.cost[ie],H[ie],G[ie]),q[ie].color>q.textColor&&(q.textColor=q[ie].color)}),q},S=function(G,H){var V={},q={},ie={},te={};return H.forEach(function(ce,ue){te[ue]=d,Object.keys(ce.cost).forEach(function(me){V[me]=V[me]||0,ie[me]=ie[me]||0,q[me]=I(ce.cost[me],V[me],G[me]),q[me].color!==d?te[ue]1&&te0});return ce.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:ce.map(function(ue){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:ue.name,amount:ue.amount,formatsi:!0}),!ie&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:ue})})]},ue.name)||null})})},N=function(G){var H=G.name,V=G.amount,q=G.formatsi,ie=G.formatmoney,te=G.color,ce=G.style,ue="0";return V<1&&V>0?ue=(0,t.Mg)(V,2):q?ue=(0,f.QL)(V,0):ie?ue=(0,f.up)(V):ue=V,(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,a.Sn)(H),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[H]]),position:"relative",style:ce})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:te,style:{"text-align":"center"},children:ue})})]})},k=function(G){var H=(0,g.Oc)().data,V=H.partSets||[],q=H.buildableParts||{},ie=(0,g.QY)("part_tab",V.length?q[0]:""),te=ie[0],ce=ie[1];return(0,e.jsx)(x.tU,{vertical:!0,children:V.map(function(ue){return!!q[ue]&&(0,e.jsx)(x.tU.Tab,{selected:ue===te,disabled:!q[ue],onClick:function(){return ce(ue)},children:ue},ue)})})},F=function(G){var H=(0,g.Oc)().data,V=function(Pe){for(var Le=h(Pe),vn;!(vn=Le()).done;){var gn=vn.value;if(ie[gn])return gn}return null},q=H.partSets||[],ie=H.buildableParts||[],te=G.queueMaterials,ce=G.materials,ue=(0,g.QY)("part_tab",V(q)),me=ue[0],xe=ue[1],ve=(0,g.QY)("search_text",""),ge=ve[0],we=ve[1];if(!me||!ie[me]){var Qe=V(q);if(Qe)xe(Qe);else return}var Me;return ge?(Me=[],M(ge,ie).forEach(function(Pe){Pe.format=P(ce,te,Pe),Me.push(Pe)})):(Me={Parts:[]},ie[me].forEach(function(Pe){if(Pe.format=P(ce,te,Pe),!Pe.subCategory){Me.Parts.push(Pe);return}Pe.subCategory in Me||(Me[Pe.subCategory]=[]),Me[Pe.subCategory].push(Pe)})),(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:ge,onInput:function(Pe,Le){return we(Le)}})})]})}),!!ge&&(0,e.jsx)(W,{name:"Search Results",parts:Me,forceShow:!0,placeholder:"No matching results..."})||Object.keys(Me).map(function(Pe){return(0,e.jsx)(W,{name:Pe,parts:Me[Pe]},Pe)})]})},W=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=q.buildingPart,te=G.parts,ce=G.name,ue=G.forceShow,me=G.placeholder,xe=(0,g.QY)("display_mats",!1),ve=xe[0];return(!!te.length||ue)&&(0,e.jsxs)(x.wn,{title:ce,buttons:(0,e.jsx)(x.$n,{disabled:!te.length,color:"good",icon:"plus-circle",onClick:function(){return V("add_queue_set",{part_list:te.map(function(ge){return ge.id})})},children:"Queue All"}),children:[!te.length&&me,te.map(function(ge){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:ie||ge.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return V("build_part",{id:ge.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 V("add_queue_part",{id:ge.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[ge.format.textColor],children:ge.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: "+ge.printTime+"s. "+(ge.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(ge.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:O[ge.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:ge.cost[we]})},we)})})]},ge.name)})]})},J=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=q.isProcessingQueue,te=q.queue||[],ce=G.queueMaterials,ue=G.missingMaterials,me=G.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:!te.length,color:"bad",icon:"minus-circle",onClick:function(){return V("clear_queue")},children:"Clear Queue"}),!!ie&&(0,e.jsx)(x.$n,{disabled:!te.length,icon:"stop",onClick:function(){return V("stop_queue")},children:"Stop"})||(0,e.jsx)(x.$n,{disabled:!te.length,icon:"play",onClick:function(){return V("build_queue")},children:"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})})]})})}),!!te.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(X,{queueMaterials:ce,missingMaterials:ue})})})]})},X=function(G){var H=G.queueMaterials,V=G.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(H).map(function(q){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:q,amount:H[q]}),!!V[q]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,f.up)(V[q])})]},q)})})},Q=function(G){var H=(0,g.Oc)(),V=H.act,q=H.data,ie=G.textColors,te=q.queue||[];return te.length?te.map(function(ce,ue){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 V("del_queue_part",{index:ue+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[ie[ue]],children:ce.name})})]})},ce.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(G){var H=(0,g.Oc)().data,V=H.buildingPart,q=H.storedPart;if(q){var ie=q.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:ie}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(V){var te=V.name,ce=V.duration,ue=V.printTime,me=Math.ceil(ce/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ue,value:ce,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:te}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:me>=0&&me+"s"||"Dispensing..."})]})})})}}},94475:function(_,j,n){"use strict";n.r(j),n.d(j,{Farmbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=f.locked,u=f.tank,h=f.tankVolume,c=f.tankMaxVolume,d=f.waters_trays,p=f.refills_water,C=f.uproots_weeds,y=f.replaces_nutriment,O=f.collects_produce,b=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)(t.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("power")},children:v?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(t.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(t.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:m?"good":"bad",children:m?"Locked":"Unlocked"})]})}),!m&&(0,e.jsxs)(t.wn,{title:"Behavior Controls",children:[(0,e.jsx)(t.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Water plants",children:(0,e.jsx)(t.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("water")},children:d?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(t.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(t.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(t.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("replacenutri")},children:y?"Yes":"No"})})})})]})||null]})})}},69393:function(_,j,n){"use strict";n.r(j),n.d(j,{Fax:function(){return g},FaxContent:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(2455),o=n(8491),g=function(m){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)(a.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)(o.LoginScreen,{machineType:"Fax"})]})})},x=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.bossName,p=c.copyItem,C=c.cooldown,y=c.destination,O=c.adminDepartments,b=new Set(O);return(0,e.jsxs)(t.wn,{children:[!!C&&(0,e.jsx)(t.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Network",children:[d," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(t.$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)(t.Ki.Item,{label:"Sending To",children:(0,e.jsx)(t.$n,{icon:"map-marker-alt",onClick:function(){return h("dept")},children:y})})]}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return h("send")},fluid:!0,children:"Send"})]})||(0,e.jsx)(t.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(v,{})]})},f=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.copyItem;return d?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return h("remove")},children:"Remove Item"})}):null},v=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.adminDepartments,p=c.destination,C=c.copyItem,y=new Set(d),O="1rem";return C&&(O="1.5rem"),!C||C&&y.has(p)?(0,e.jsxs)(t.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)(t.az,{mt:"1.5rem",children:(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return h("send_automated_staff_request")},fluid:!0,children:"Send Automated Staff Request"})})]}):null}},914:function(_,j,n){"use strict";n.r(j),n.d(j,{FileCabinet:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.contents,u=(0,s.Ul)(function(h){return h.name})(m||[]);return(0,e.jsx)(a.p8,{width:350,height:300,children:(0,e.jsx)(a.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",onClick:function(){return f("retrieve",{ref:h.ref})},children:h.name},h.ref)})})})})}},10935:function(_,j,n){"use strict";n.r(j),n.d(j,{Floorbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=f.open,u=f.locked,h=f.vocal,c=f.amount,d=f.possible_bmode,p=f.improvefloors,C=f.eattiles,y=f.maketiles,O=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)(t.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("start")},children:v?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(t.zv,{value:c})}),(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(t.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("make")},children:y?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(t.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:O,options:d,onSelected:function(b){return x("bridgemode",{dir:b})}})})]})})||null]})})}},18485:function(_,j,n){"use strict";n.r(j),n.d(j,{GasPump:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=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)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:u/10})," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Load",children:(0,e.jsx)(t.z2,{value:h,minValue:0,maxValue:c,color:h=100?d="Running":!v&&m>0&&(d="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:v?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:v?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",d]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[m,"%"]})]})})})})}},36903:function(_,j,n){"use strict";n.r(j),n.d(j,{GuestPass:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.access,u=v.area,h=v.giver,c=v.giveName,d=v.reason,p=v.duration,C=v.mode,y=v.log,O=v.uid;return(0,e.jsx)(a.p8,{width:500,height:520,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return f("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return f("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:y.length&&y.map(function(b){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}},b)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return f("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return f("id")},children:h||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return f("giv_name")},children:c})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return f("reason")},children:d})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return f("duration")},children:p})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return f("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(b){return b.area_name})(u).map(function(b){return(0,e.jsx)(r.$n.Checkbox,{checked:b.on,onClick:function(){return f("access",{access:b.area})},children:b.area_name},b.area)})})]})})})}},52149:function(_,j,n){"use strict";n.r(j),n.d(j,{GyrotronControl:function(){return a},GyrotronControlContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return f("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{gyro:u.ref})},children:u.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.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)(t.XI.Cell,{children:(0,e.jsx)(t.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)})]})})}},93757:function(_,j,n){"use strict";n.r(j),n.d(j,{Holodeck:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.supportedPrograms,m=f.restrictedPrograms,u=f.currentProgram,h=f.isSilicon,c=f.safetyDisabled,d=f.emagged,p=f.gravity,C=v;return c&&(C=C.concat(m)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:C.map(function(y){return(0,e.jsx)(t.$n,{color:m.indexOf(y)!==-1?"bad":null,icon:"eye",selected:u===y,fluid:!0,onClick:function(){return x("program",{program:y})},children:y},y)})}),!!h&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$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)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},2534:function(_,j,n){"use strict";n.r(j),n.d(j,{ICAssembly:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.total_parts,c=u.max_components,d=u.total_complexity,p=u.max_complexity,C=u.battery_charge,y=u.battery_max,O=u.net_power,b=u.unremovable_circuits,I=u.removable_circuits;return(0,e.jsx)(o.p8,{width:600,height:380,children:(0,e.jsxs)(o.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/y,maxValue:1,children:[C," / ",y," (",(0,s.LI)(C/y*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:O===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:O,format:function(P){return"-"+(0,a.d5)(Math.abs(P))+"/s"}})})]})}),b.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:b})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(f){var v=(0,t.Oc)().act,m=f.title,u=f.circuits;return(0,e.jsx)(r.wn,{title:m,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 v("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return v("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return v("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return v("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return v("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},42821:function(_,j,n){"use strict";n.r(j),n.d(j,{ICCircuit:function(){return g}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=h.name,d=h.desc,p=h.displayed_name,C=h.removable,y=h.complexity,O=h.power_draw_idle,b=h.power_draw_per_use,I=h.extended_desc,P=h.inputs,S=h.outputs,M=h.activators;return(0,e.jsx)(o.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(o.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:y}),O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,a.d5)(O)})||null,b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,a.d5)(b)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[P.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:P})})})||null,(0,e.jsx)(r.so.Item,{basis:P.length&&S.length?"33%":P.length||S.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:d})})}),S.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:S})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:M.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(v){var m=(0,t.Oc)().act,u=v.list;return u.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return m("pin_name",{pin:h.ref})},children:[(0,s.jT)(h.type),": ",h.name]}),(0,e.jsx)(r.$n,{onClick:function(){return m("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(f,{pin:h})]},h.ref)})},f=function(v){var m=(0,t.Oc)().act,u=v.pin;return u.linked.map(function(h){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return m("pin_unwire",{pin:u.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return m("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},57852:function(_,j,n){"use strict";n.r(j),n.d(j,{ICDetailer:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.detail_color,u=v.color_list;return(0,e.jsx)(a.p8,{width:420,height:254,children:(0,e.jsx)(a.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]===m?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[h]},h)})})})})}},54840:function(_,j,n){"use strict";n.r(j),n.d(j,{ICPrinter:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.metal,c=u.max_metal,d=u.metal_per_sheet,p=u.debug,C=u.upgraded,y=u.can_clone,O=u.assembly_to_clone,b=u.categories;return(0,e.jsx)(a.p8,{width:600,height:630,children:(0,e.jsxs)(a.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:y?"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,v){return!(!f.can_build||f.cost>v.metal)},x=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.categories,c=u.debug,d=(0,t.QY)("categoryTarget",null),p=d[0],C=d[1],y=(0,s.pb)(function(O){return O.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(O){return O.name})(h).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:p===O.name,onClick:function(){return C(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:y&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(O){return O.name})(y.items).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(O,u),icon:"print",onClick:function(){return m("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})})||"No category selected."})]})})}},62479:function(_,j,n){"use strict";n.r(j),n.d(j,{IDCard:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67707),o=function(g){var x=(0,s.Oc)().data,f=x.registered_name,v=x.sex,m=x.species,u=x.age,h=x.assignment,c=x.fingerprint_hash,d=x.blood_type,p=x.dna_hash,C=x.photo_front,y=[{name:"Sex",val:v},{name:"Species",val:m},{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)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children: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)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:y.map(function(O){return(0,e.jsx)(t.Ki.Item,{label:O.name,children:O.val},O.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(a.RankIcon,{rank:h})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:h})})]})]})})})}},95331:function(_,j,n){"use strict";n.r(j),n.d(j,{IdentificationComputer:function(){return f},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return v},IdentificationComputerPrinting:function(){return m},IdentificationComputerRegions:function(){return h}});var e=n(20462),s=n(7402),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),x=n(58044),f=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{})})})},v=function(c){var d=(0,a.Oc)(),p=d.act,C=d.data,y=c.ntos,O=C.mode,b=C.has_modify,I=C.printing,P=(0,e.jsx)(u,{ntos:y});return y&&!C.have_id_slot?P=(0,e.jsx)(x.CrewManifestContent,{}):I?P=(0,e.jsx)(m,{}):O===1&&(P=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(!y||!!C.have_id_slot)&&(0,e.jsx)(o.tU.Tab,{icon:"home",selected:O===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(o.tU.Tab,{icon:"home",selected:O===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!y||!!C.have_printer&&(0,e.jsx)(o.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!O&&!b,color:"",children:"Print"})]}),P]})},m=function(c){return(0,e.jsx)(o.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var d=(0,a.Oc)(),p=d.act,C=d.data,y=c.ntos,O=C.station_name,b=C.target_name,I=C.target_owner,P=C.scan_name,S=C.authenticated,M=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,F=C.departments;return(0,e.jsxs)(o.wn,{title:"Access Modification",children:[!S&&(0,e.jsx)(o.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(o.$n,{icon:"eject",fluid:!0,onClick:function(){return p("modify")},children:b})}),!y&&(0,e.jsx)(o.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(o.$n,{icon:"eject",fluid:!0,onClick:function(){return p("scan")},children:P})})]}),!!S&&!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Details",level:2,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(o.pd,{value:I,fluid:!0,onInput:function(W,J){return p("reg",{reg:J})}})}),(0,e.jsx)(o.Ki.Item,{label:"Account Number",children:(0,e.jsx)(o.pd,{value:A,fluid:!0,onInput:function(W,J){return p("account",{account:J})}})}),(0,e.jsx)(o.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(o.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")},children:"Dismiss "+I})})]})}),(0,e.jsx)(o.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(o.XI,{children:[F.map(function(W){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{header:!0,verticalAlign:"middle",children:W.department_name}),(0,e.jsx)(o.XI.Cell,{children:W.jobs.map(function(J){return(0,e.jsx)(o.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,t.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(o.az,{mt:-1,children:"\xA0"})," "]},W.department_name)}),(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(o.XI.Cell,{children:(0,e.jsx)(o.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(o.wn,{title:"Central Command",level:2,children:K.map(function(W){return(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{fluid:!0,selected:W.allowed,onClick:function(){return p("access",{access_target:W.ref,allowed:W.allowed})},children:(0,t.jT)(W.desc)})},W.ref)})})||(0,e.jsx)(o.wn,{title:O,level:2,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(c){var d=(0,a.Oc)(),p=d.act,C=d.data,y=c.actName,O=C.regions;return(0,e.jsx)(o.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(b){return b.name})(O).map(function(b){return(0,e.jsx)(o.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(o.wn,{title:b.name,height:"100%",children:(0,s.Ul)(function(I){return I.desc})(b.accesses).map(function(I){return(0,e.jsx)(o.az,{children:(0,e.jsx)(o.$n,{fluid:!0,selected:I.allowed,onClick:function(){return p(y,{access_target:I.ref,allowed:I.allowed})},children:(0,t.jT)(I.desc)})},I.ref)})})},b.name)})})}},15450:function(_,j,n){"use strict";n.r(j),n.d(j,{InventoryPanel:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.slots,m=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)(t.wn,{children:(0,e.jsx)(t.Ki,{children:v&&v.length&&v.map(function(u){return(0,e.jsx)(t.Ki.Item,{label:u.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),m&&(0,e.jsx)(t.wn,{title:"Actions",children:m&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},18893:function(_,j,n){"use strict";n.r(j),n.d(j,{InventoryPanelHuman:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.slots,m=f.specialSlots,u=f.internals,h=f.internalsValid,c=f.sensors,d=f.handcuffed,p=f.handcuffedParams,C=f.legcuffed,y=f.legcuffedParams,O=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)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[v&&v.length&&v.map(function(b){return(0,e.jsx)(t.Ki.Item,{label:b.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)}),(0,e.jsx)(t.Ki.Divider,{}),m&&m.length&&m.map(function(b){return(0,e.jsx)(t.Ki.Item,{label:b.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),h&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,d&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",y)},children:"Legcuffed"})||null,O&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},65546:function(_,j,n){"use strict";n.r(j),n.d(j,{IsolationCentrifuge:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.busy,m=f.antibodies,u=f.pathogens,h=f.is_antibody_sample,c=f.sample_inserted,d=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return c&&(!m&&!u?d=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):d=(0,e.jsxs)(e.Fragment,{children:[m?(0,e.jsx)(t.wn,{title:"Antibodies",children:m}):null,u.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:u.map(function(p){return(0,e.jsx)(t.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:v?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:v})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:h?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!m&&!u.length,onClick:function(){return x("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!c,onClick:function(){return x("sample")},children:"Eject Vial"})})]}),d]}),m&&!h||u.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[m&&!h?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("antibody")},children:m})}):null,u.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("isolate",{isolate:p.reference})},children:p.name},p.name)})}):null]})}):null]})})})}},54905:function(_,j,n){"use strict";n.r(j),n.d(j,{JanitorCart:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){var f=(0,s.Oc)(),v=f.act,m=f.data,u=m.mybag,h=m.mybucket,c=m.mymop,d=m.myspray,p=m.myreplacer,C=m.signs,y=m.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return v("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return v("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(t.$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 v("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(t.$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 v("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(t.$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 v("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$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 v("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},o={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var f=(0,s.Oc)().data,v=x.iconkey,m=f.icons;return v in m?(0,e.jsx)("img",{src:m[v].substr(1,m[v].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)(t.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:o[v]})}},54526:function(_,j,n){"use strict";n.r(j),n.d(j,{Jukebox:function(){return f}});var e=n(20462),s=n(4089),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(41242),x=n(2738),f=function(v){var m=function(){we&&ie("Admin"),Qe(!we)},u=(0,a.Oc)(),h=u.act,c=u.data,d=c.playing,p=c.loop_mode,C=c.volume,y=c.current_track_ref,O=c.current_track,b=c.current_genre,I=c.percent,P=c.tracks,S=c.admin,M=P.length&&P.reduce(function(Me,Pe){var Le=Pe.genre||"Uncategorized";return Me[Le]||(Me[Le]=[]),Me[Le].push(Pe),Me},{}),A=d&&(b||"Uncategorized"),R=(0,r.useState)("Unknown"),K=R[0],N=R[1],k=(0,r.useState)(""),F=k[0],W=k[1],J=(0,r.useState)(0),X=J[0],Q=J[1],Z=(0,r.useState)("Unknown"),G=Z[0],H=Z[1],V=(0,r.useState)("Admin"),q=V[0],ie=V[1],te=(0,r.useState)(!1),ce=te[0],ue=te[1],me=(0,r.useState)(!1),xe=me[0],ve=me[1],ge=(0,r.useState)(!1),we=ge[0],Qe=ge[1];return(0,e.jsx)(x.p8,{width:450,height:600,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.wn,{title:"Currently Playing",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Title",children:d&&O&&(0,e.jsxs)(o.az,{children:[O.title," by ",O.artist||"Unkown"]})||(0,e.jsx)(o.az,{children:"Stopped"})}),(0,e.jsxs)(o.Ki.Item,{label:"Controls",children:[(0,e.jsx)(o.$n,{icon:"play",disabled:d,onClick:function(){return h("play")},children:"Play"}),(0,e.jsx)(o.$n,{icon:"stop",disabled:!d,onClick:function(){return h("stop")},children:"Stop"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(o.$n,{icon:"play",onClick:function(){return h("loopmode",{loopmode:1})},selected:p===1,children:"Next"}),(0,e.jsx)(o.$n,{icon:"random",onClick:function(){return h("loopmode",{loopmode:2})},selected:p===2,children:"Shuffle"}),(0,e.jsx)(o.$n,{icon:"redo",onClick:function(){return h("loopmode",{loopmode:3})},selected:p===3,children:"Repeat"}),(0,e.jsx)(o.$n,{icon:"step-forward",onClick:function(){return h("loopmode",{loopmode:4})},selected:p===4,children:"Once"})]}),(0,e.jsx)(o.Ki.Item,{label:"Progress",children:(0,e.jsx)(o.z2,{value:I,maxValue:1,color:"good"})}),(0,e.jsx)(o.Ki.Item,{label:"Volume",children:(0,e.jsx)(o.Ap,{minValue:0,step:1,value:C*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(Me){return(0,s.LI)(Me,1)+"%"},onChange:function(Me,Pe){return h("volume",{val:(0,s.LI)(Pe/100,2)})}})})]})}),(0,e.jsx)(o.wn,{title:"Available Tracks",children:P.length&&Object.keys(M).sort().map(function(Me){return(0,t.ZH)(Me)!=="Admin"&&(0,e.jsx)(o.Nt,{title:Me,color:A===Me?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:M[Me].map(function(Pe){return(0,e.jsx)(o.$n,{fluid:!0,icon:"play",selected:y===Pe.ref,onClick:function(){return h("change_track",{change_track:Pe.ref})},children:Pe.title},Pe.ref)})})},Me)})||(0,e.jsx)(o.az,{color:"bad",children:"Error: No songs loaded."})}),S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Admin Tracks",children:P.length&&Object.keys(M).sort().map(function(Me){return(0,t.ZH)(Me)==="Admin"&&(0,e.jsx)(o.Nt,{title:Me,color:A===Me?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:M[Me].map(function(Pe){return(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"play",selected:y===Pe.ref,onClick:function(){return h("change_track",{change_track:Pe.ref})},children:Pe.title},Pe.ref)}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n.Confirm,{icon:"trash",onClick:function(){return h("remove_new_track",{ref:Pe.ref})}})})]},Pe.ref)})})},Me)})||(0,e.jsx)(o.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(o.wn,{title:"Admin Options",children:(0,e.jsxs)(o.Nt,{title:"Add Track",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Title",children:(0,e.jsx)(o.pd,{width:"100%",value:K,onChange:function(Me,Pe){return N(Pe)}})}),(0,e.jsx)(o.Ki.Item,{label:"URL",children:(0,e.jsx)(o.pd,{width:"100%",value:F,onChange:function(Me,Pe){return W(Pe)}})}),(0,e.jsx)(o.Ki.Item,{label:"Playtime",children:(0,e.jsx)(o.Q7,{value:X,minValue:0,maxValue:3600,onChange:function(Me,Pe){return Q(Pe)},format:function(Me){return(0,g.fU)((0,s.LI)(Me*10))}})}),(0,e.jsx)(o.Ki.Item,{label:"Artist",children:(0,e.jsx)(o.pd,{width:"100%",value:G,onChange:function(Me,Pe){return H(Pe)}})}),(0,e.jsx)(o.Ki.Item,{label:"Genre",children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{grow:1,children:we?(0,e.jsx)(o.pd,{width:"100%",value:q,onChange:function(Me,Pe){return ie(Pe)}}):(0,e.jsx)(o.az,{children:q})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n.Checkbox,{icon:we?"lock-open":"lock",color:we?"good":"bad",onClick:function(Me,Pe){return m()}})})]})}),(0,e.jsx)(o.Ki.Item,{label:"Secret",children:(0,e.jsx)(o.$n.Checkbox,{checked:ce,onClick:function(Me,Pe){return ue(!ce)}})}),(0,e.jsx)(o.Ki.Item,{label:"Lobby",children:(0,e.jsx)(o.$n.Checkbox,{checked:xe,onClick:function(Me,Pe){return ve(!xe)}})})]}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(o.$n,{disabled:!(K&&F&&X&&G&&q),onClick:function(){return h("add_new_track",{title:K,url:F,duration:X,artist:G,genre:q,secret:ce,lobby:xe})},children:"Add new Track"})]})})]})]})})}},64667:function(_,j,n){"use strict";n.r(j),n.d(j,{LawManager:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738);function a(){return a=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)(t.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)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:c===0,onClick:function(){return d(0)},children:"Law Management"}),(0,e.jsx)(t.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)(m,{})||null]})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.ion_law_nr,C=d.ion_law,y=d.zeroth_law,O=d.inherent_law,b=d.supplied_law,I=d.supplied_law_position,P=d.zeroth_laws,S=d.has_zeroth_laws,M=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,F=d.isAI,W=d.isMalf,J=d.isAdmin,X=d.channel,Q=d.channels,Z=P.map(function(G){return G.zero=!0,G}).concat(R);return(0,e.jsxs)(t.wn,{children:[A&&(0,e.jsx)(v,{laws:M,title:p+" Laws:",mt:-2})||null,(S||K)&&(0,e.jsx)(v,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(v,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(t.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:Q.map(function(G){return(0,e.jsx)(t.$n,{selected:X===G.channel,onClick:function(){return c("law_channel",{law_channel:G.channel})},children:G.channel},G.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),F&&(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),W&&(0,e.jsx)(t.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!S&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:y,fluid:!0,onChange:function(G,H){return c("change_zeroth_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:C,fluid:!0,onChange:function(G,H){return c("change_ion_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:O,fluid:!0,onChange:function(G,H){return c("change_inherent_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:b,fluid:!0,onChange:function(G,H){return c("change_supplied_law",{val:H})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:I})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isMalf,C=d.isAdmin,y=u.laws,O=u.title,b=u.noButtons,I=o(u,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,a({level:2,title:O},I,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),!b&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),y.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[P.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:P.zero?"bad":null,children:P.law}),!b&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:P.state,onClick:function(){return c("state_law",{ref:P.ref,state_law:!P.state})},children:P.state?"Yes":"No"})})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:P.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:P.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:P.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:P.ref})},children:"Delete"})})]})||null]},P.index)})]})}))},m=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)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(y){return(0,e.jsxs)(t.wn,{title:y.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:y.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:y.ref})},children:"State Laws"})]}),children:[y.laws.has_ion_laws&&(0,e.jsx)(v,{noButtons:!0,laws:y.laws.ion_laws,title:y.laws.ion_law_nr+" Laws:"})||null,(y.laws.has_zeroth_laws||y.laws.has_inherent_laws)&&(0,e.jsx)(v,{noButtons:!0,laws:y.laws.zeroth_laws.concat(y.laws.inherent_laws),title:y.header})||null,y.laws.has_supplied_laws&&(0,e.jsx)(v,{noButtons:!0,laws:y.laws.supplied_laws,title:"Supplied Laws"})||null]},y.name)})||null]})}},94979:function(_,j,n){"use strict";n.r(j),n.d(j,{ListInputModal:function(){return f}});var e=n(20462),s=n(61358),t=n(6544),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),f=function(u){var h=(0,r.Oc)(),c=h.act,d=h.data,p=d.items,C=p===void 0?[]:p,y=d.message,O=y===void 0?"":y,b=d.init_value,I=d.large_buttons,P=d.timeout,S=d.title,M=(0,s.useState)(C.indexOf(b)),A=M[0],R=M[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],F=(0,s.useState)(""),W=F[0],J=F[1],X=function(te){var ce=q.length-1;if(te===t.R)if(A===null||A===ce){var ue;R(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var me;R(A+1),(me=document.getElementById((A+1).toString()))==null||me.scrollIntoView()}else if(te===t.gf)if(A===null||A===0){var xe;R(ce),(xe=document.getElementById(ce.toString()))==null||xe.scrollIntoView()}else{var ve;R(A-1),(ve=document.getElementById((A-1).toString()))==null||ve.scrollIntoView()}},Q=function(te){te!==A&&R(te)},Z=function(){k(!1),k(!0)},G=function(te){var ce=String.fromCharCode(te),ue=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(ce==null?void 0:ce.toLowerCase())});if(ue){var me,xe=C.indexOf(ue);R(xe),(me=document.getElementById(xe.toString()))==null||me.scrollIntoView()}},H=function(te){var ce;te!==W&&(J(te),R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView())},V=function(){k(!N),J("")},q=C.filter(function(te){return te==null?void 0:te.toLowerCase().includes(W.toLowerCase())}),ie=325+Math.ceil(O.length/3)+(I?5:0);return N||setTimeout(function(){var te;return(te=document.getElementById(A.toString()))==null?void 0:te.focus()},1),(0,e.jsxs)(o.p8,{title:S,width:325,height:ie,children:[P&&(0,e.jsx)(x.Loader,{value:P}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(te){var ce=window.event?te.which:te.keyCode;(ce===t.R||ce===t.gf)&&(te.preventDefault(),X(ce)),ce===t.Ri&&(te.preventDefault(),c("submit",{entry:q[A]})),!N&&ce>=t.W8&&ce<=t.bh&&(te.preventDefault(),G(ce)),ce===t.s6&&(te.preventDefault(),c("cancel"))},children:(0,e.jsx)(a.wn,{buttons:(0,e.jsx)(a.$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 V()}}),className:"ListInput__Section",fill:!0,title:O,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{filteredItems:q,onClick:Q,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(m,{filteredItems:q,onSearch:H,searchQuery:W,selected:A}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:q[A]})})]})})})]})},v=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,y=u.selected;return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.y5,{}),c.map(function(O,b){return(0,e.jsx)(a.$n,{color:"transparent",fluid:!0,onClick:function(){return d(b)},onDoubleClick:function(I){I.preventDefault(),h("submit",{entry:c[y]})},onKeyDown:function(I){var P=window.event?I.which:I.keyCode;C&&P>=t.W8&&P<=t.bh&&(I.preventDefault(),p())},selected:b===y,style:{animation:"none",transition:"none"},children:O.replace(/^\w/,function(I){return I.toUpperCase()})},b)})]})},m=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(a.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(y){y.preventDefault(),h("submit",{entry:c[C]})},onInput:function(y,O){return d(O)},placeholder:"Search...",value:p})}},10895:function(_,j,n){"use strict";n.r(j),n.d(j,{LookingGlass:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.supportedPrograms,m=f.currentProgram,u=f.immersion,h=f.gravity,c=Math.min(180+v.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)(t.wn,{title:"Programs",children:v.map(function(d){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:d===m,onClick:function(){return x("program",{program:d})},children:d},d)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:h,onClick:function(){return x("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},25970:function(_,j,n){"use strict";n.r(j),n.d(j,{MechaControlConsole:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.beacons,u=v.stored_data;return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsxs)(a.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,m.length&&m.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",icon:"bomb",onClick:function(){return f("shock",{mt:h.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[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."})]})})}},75003:function(_,j,n){"use strict";n.r(j),n.d(j,{Medbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=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,y=f.injection_amount_min,O=f.injection_amount,b=f.injection_amount_max,I=f.use_beaker,P=f.declare_treatment,S=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)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("power")},children:v?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(t.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(M,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:y,maxValue:b,value:O,onDrag:function(M,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return x("declaretreatment")},children:P?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return x("togglevoice")},children:S?"On":"Off"})})]})})||null]})})}},10271:function(_,j,n){"use strict";n.r(j),n.d(j,{MedicalRecords:function(){return h}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(38509),o=n(2738),g=n(2455),x=n(8491),f=n(55789),v={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},m=function(P){(0,a.modalOpen)("edit",{field:P.edit,value:P.value})},u=function(P){var S=(0,t.Oc)().act,M=P.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:M.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return S("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:[M.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:M.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:M.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[M.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:M.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:M.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(P){var S=(0,t.Oc)().data,M=S.authenticated,A=S.screen;if(!M)return(0,e.jsx)(o.p8,{width:800,height:380,children:(0,e.jsx)(o.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)(O,{}):A===6&&(R=(0,e.jsx)(b,{})),(0,e.jsxs)(o.p8,{width:800,height:380,children:[(0,e.jsx)(a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(P){var S=(0,t.Oc)(),M=S.act,A=S.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 M("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",onClick:function(){return M("d_rec",{d_rec:K.ref})},children:K.id+": "+K.name},N)})})]})},d=function(P){var S=(0,t.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",onClick:function(){return S("del_all")},children:"Delete All Medical Records"})]})},p=function(P){var S=(0,t.Oc)(),M=S.act,A=S.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)(y,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,color:"bad",onClick:function(){return M("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,ml:"0.5rem",onClick:function(){return M("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return M("screen",{screen:2})},children:"Back"})]})]})},C=function(P){var S=(0,t.Oc)().data,M=S.general;return!M||!M.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:M.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 m(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!M.has_photos&&M.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)})})]})},y=function(P){var S=(0,t.Oc)(),M=S.act,A=S.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",ml:"0.5rem",onClick:function(){return M("new")},children:"New Record"})]}):(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 m(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 M("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)("add_c")},children:"Add Entry"})]})]})},O=function(P){var S=(0,t.Oc)(),M=S.act,A=S.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",mb:"0.5rem",onClick:function(){return M("vir",{vir:K.D})},children:K.name}),(0,e.jsx)("br",{})]},N)})},b=function(P){var S=(0,t.Oc)().data,M=S.medbots;return M.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):M.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)})},I=function(P){var S=(0,t.Oc)(),M=S.act,A=S.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return M("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 M("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 M("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 M("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",u)},4477:function(_,j,n){"use strict";n.r(j),n.d(j,{MentorTicketPanel:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={open:"Open",resolved:"Resolved",unknown:"Unknown"},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.id,u=v.title,h=v.name,c=v.state,d=v.opened_at,p=v.closed_at,C=v.opened_at_date,y=v.closed_at_date,O=v.actions,b=v.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Ticket #"+m,buttons:(0,e.jsxs)(t.az,{nowrap:!0,children:[(0,e.jsx)(t.$n,{icon:"arrow-up",onClick:function(){return f("escalate")},children:"Escalate"}),(0,e.jsx)(t.$n,{onClick:function(){return f("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Mentor Help Ticket",children:["#",m,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(t.Ki.Item,{label:"State",children:a[c]}),a[c]===a.open?(0,e.jsxs)(t.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10,"minutes ago.)"]}):(0,e.jsxs)(t.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10,"minutes ago.)",(0,e.jsx)(t.$n,{onClick:function(){return f("reopen")},children:"Reopen"})]}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(t.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},P)})})]})})})})}},25979:function(_,j,n){"use strict";n.r(j),n.d(j,{MessageMonitor:function(){return f}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(9129),x=n(55789),f=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.auth,P=b.linkedServer,S=b.message,M=b.hacking,A=b.emag,R;return M||A?R=(0,e.jsx)(v,{}):I?P?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(a.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(m,{}),(0,e.jsx)(o.p8,{width:670,height:450,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},v=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(a.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(a.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"]})})},m=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(a.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(a.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(a.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(a.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(P,S){return O("auth",{key:S})}})]}),!!I&&(0,e.jsx)(a.$n,{icon:"terminal",onClick:function(){return O("hack")},children:"Hack"}),(0,e.jsx)(a.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer,P=(0,t.useState)(0),S=P[0],M=P[1],A;return S===0?A=(0,e.jsx)(h,{}):S===1?A=(0,e.jsx)(c,{logs:I.pda_msgs,pda:!0}):S===2?A=(0,e.jsx)(c,{logs:I.rc_msgs,rc:!0}):S===3?A=(0,e.jsx)(d,{}):S===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:S===0,onClick:function(){return M(0)},children:[(0,e.jsx)(a.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(a.tU.Tab,{selected:S===1,onClick:function(){return M(1)},children:[(0,e.jsx)(a.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(a.tU.Tab,{selected:S===2,onClick:function(){return M(2)},children:[(0,e.jsx)(a.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(a.tU.Tab,{selected:S===3,onClick:function(){return M(3)},children:[(0,e.jsx)(a.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(a.tU.Tab,{selected:S===4,onClick:function(){return M(4)},children:[(0,e.jsx)(a.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(a.tU.Tab,{color:"red",onClick:function(){return O("deauth")},children:[(0,e.jsx)(a.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(a.az,{m:2,children:A})]})},h=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(a.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"link",onClick:function(){return O("find")},children:"Server Link"}),(0,e.jsx)(a.$n,{icon:"power-off",selected:I.active,onClick:function(){return O("active")},children:"Server "+(I.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Server Status",children:(0,e.jsx)(a.az,{color:"good",children:"Good"})})}),(0,e.jsx)(a.$n,{mt:1,icon:"key",onClick:function(){return O("pass")},children:"Set Custom Key"}),(0,e.jsx)(a.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(a.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},c=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=C.logs,P=C.pda,S=C.rc;return(0,e.jsx)(a.wn,{title:P?"PDA Logs":S?"Request Logs":"Logs",buttons:(0,e.jsx)(a.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return O(P?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(a.so,{wrap:"wrap",children:I.map(function(M,A){return(0,e.jsx)(a.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(a.wn,{title:M.sender+" -> "+M.recipient,buttons:(0,e.jsx)(a.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return O("delete",{id:M.ref,type:S?"rc":"pda"})}}),children:S?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Message",children:M.message}),(0,e.jsx)(a.Ki.Item,{label:"Verification",color:M.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(M.id_auth)}),(0,e.jsx)(a.Ki.Item,{label:"Stamp",children:M.stamp})]}):M.message})},M.ref)})})})},d=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.possibleRecipients,P=b.customsender,S=b.customrecepient,M=b.customjob,A=b.custommessage,R=Object.keys(I);return(0,e.jsxs)(a.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Sender",children:(0,e.jsx)(a.pd,{fluid:!0,value:P,onChange:function(K,N){return O("set_sender",{val:N})}})}),(0,e.jsx)(a.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(a.pd,{fluid:!0,value:M,onChange:function(K,N){return O("set_sender_job",{val:N})}})}),(0,e.jsx)(a.Ki.Item,{label:"Recipient",children:(0,e.jsx)(a.ms,{selected:S,options:R,width:"100%",mb:-.7,onSelected:function(K){return O("set_recipient",{val:I[K]})}})}),(0,e.jsx)(a.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(a.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return O("set_message",{val:N})}})})]}),(0,e.jsx)(a.$n,{fluid:!0,icon:"comment",onClick:function(){return O("send_message")},children:"Send Message"})]})},p=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(a.wn,{title:"Spam Filtering",children:[(0,e.jsx)(a.Ki,{children:I.spamFilter.map(function(P){return(0,e.jsx)(a.Ki.Item,{label:P.index,buttons:(0,e.jsx)(a.$n,{icon:"trash",color:"bad",onClick:function(){return O("deltoken",{deltoken:P.index})},children:"Delete"}),children:P.token},P.index)})}),(0,e.jsx)(a.$n,{icon:"plus",onClick:function(){return O("addtoken")},children:"Add New Entry"})]})}},27819:function(_,j,n){"use strict";n.r(j),n.d(j,{Microwave:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.config,v=g.data,m=v.broken,u=v.operating,h=v.dirty,c=v.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(t.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:c.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.name,children:[d.amt," ",d.extra]},d.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[f.title," is empty."]})})})})}},5950:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningOreProcessingConsole:function(){return g}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=n(51870),g=function(u){var h=(0,t.Oc)(),c=h.act,d=h.data,p=d.unclaimedPoints,C=d.ores,y=d.showAllOres,O=d.power,b=d.speed;return(0,e.jsx)(a.p8,{width:400,height:500,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(o.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:b,onClick:function(){return c("speed_toggle")},children:b?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:O,onClick:function(){return c("power")},children:O?"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)(m,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],f=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],v=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)},m=function(u){var h=(0,t.Oc)(),c=h.act,d=h.data,p=d.ores,C=d.showAllOres,y=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(v).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow",options:x,selected:x[O.processing],onSelected:function(b){return c("toggleSmelting",{ore:O.ore,set:x.indexOf(b)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},10435:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningStackingConsole:function(){return o}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.stacktypes,u=v.stackingAmt;return(0,e.jsx)(a.p8,{width:400,height:500,children:(0,e.jsx)(a.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,{}),m.length&&m.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."})]})})})})}},80464:function(_,j,n){"use strict";n.r(j),n.d(j,{MiningVendor:function(){return m}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(51870);function x(){return x=Object.assign||function(d){for(var p=1;p=0)&&(C[O]=d[O]);return C}var v={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(k){I(k)},C=function(k){M(k)},y=function(k){K(k)},O=(0,t.useState)(""),b=O[0],I=O[1],P=(0,t.useState)("Alphabetical"),S=P[0],M=P[1],A=(0,t.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsxs)(o.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:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(u,{searchText:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:y})]})})},u=function(d){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.has_id,b=y.id,I=y.items,P=(0,s.XZ)(d.searchText,function(A){return A[0]}),S=!1,M=Object.entries(I).map(function(A,R){var K=Object.entries(A[1]).filter(P).map(function(N){return N[1].affordable=O&&b.points>=N[1].price,N[1]}).sort(v[d.sortOrder]);if(K.length!==0)return d.descending&&(K=K.reverse()),S=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(a.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(a.wn,{children:S?M:(0,e.jsx)(a.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(d){return(0,e.jsx)(a.az,{mb:"0.5rem",children:(0,e.jsxs)(a.so,{width:"100%",children:[(0,e.jsx)(a.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(a.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(a.so.Item,{basis:"30%",children:(0,e.jsx)(a.ms,{selected:"Alphabetical",options:Object.keys(v),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$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,y=p.data,O=d.title,b=d.items,I=f(d,["title","items"]);return(0,e.jsx)(a.Nt,x({open:!0,title:O},I,{children:b.map(function(P){return(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:P.name}),(0,e.jsx)(a.$n,{disabled:!y.has_id||y.id.points=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,t.Oc)(),y=C.act,O=C.config,b=C.data,I=b.nif_percent,P=b.nif_stat,S=b.nutrition,M=b.isSynthetic,A=b.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:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(P,I)," (",(0,e.jsx)(r.zv,{value:I}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:S,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:h(S,M)})})]}),(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 y("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 y("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},d=function(p){var C=(0,t.Oc)(),y=C.act,O=C.data,b=O.valid_themes,I=O.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:I||"default",options:b,onSelected:function(P){return y("setTheme",{theme:P})}})}),I?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){y("setTheme",{theme:null})}})}):""]})})})}},34044:function(_,j,n){"use strict";n.r(j),n.d(j,{NTNetRelay:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(9129),o=function(f){var v=(0,s.Oc)(),m=v.act,u=v.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 v=(0,s.Oc)(),m=v.act,u=v.data,h=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return m("toggle")},children:"Relay "+(c?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[d," / ",p," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("purge")},children:"Purge network blacklist"})})]})})},x=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data;return(0,e.jsxs)(a.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("restart")},children:"Purge buffered traffic"})})]})}},26511:function(_,j,n){"use strict";n.r(j),n.d(j,{Newscaster:function(){return d}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=n(55789),g="Main Menu",x="New Channel",f="View List",v="New Story",m="Print",u="New Wanted",h="View Wanted",c="View Selected Channel",d=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.screen,W=k.user;return(0,e.jsx)(a.p8,{width:600,height:600,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.user,W=(0,t.QY)("screen",g),J=W[0],X=W[1],Q=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Q,{setScreen:X})})},C=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.securityCaster,W=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[W&&(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(v)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(m)},children:"Print Newspaper"})]}),!!F&&(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'})})]})},y=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.c_locked,J=k.user,X=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return X(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)(F),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:W?"lock":"lock-open",selected:!W,onClick:function(){return N("set_channel_lock")},children:W?"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 X(g)},children:"Cancel"})]})},O=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channels,W=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(g)},children:"Back"}),children:F.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}),W(c)},children:(0,s.jT)(J.name)},J.name)})})},b=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.user,J=k.title,X=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:F||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:W}),(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:X||"(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"})]})},I=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.total_num,W=k.active_num,J=k.message_num,X=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 ",F," Feed channels,"," ",W," 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:[X*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"})]})},P=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.channel_name,W=k.msg,J=k.photo_data,X=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)(F),onInput:function(G,H){return N("set_channel_name",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(W),onInput:function(G,H){return N("set_wanted_desc",{val:H})}})}),(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:X})]}),(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"})]})},S=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.wanted_issue,W=R.setScreen;return F?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(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)(F.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(F.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(F.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:F.img&&(0,e.jsx)("img",{src:F.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return W(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},M=function(R){var K=(0,t.Oc)(),N=K.act,k=K.data,F=k.viewing_channel,W=k.securityCaster,J=k.company,X=R.setScreen;return F?(0,e.jsxs)(r.wn,{title:(0,s.jT)(F.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!W&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return N("toggle_d_notice",{ref:F.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return X(f)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:W&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:F.ref})},children:(0,s.jT)(F.author)})||(0,e.jsx)(r.az,{children:(0,s.jT)(F.author)})})}),!!F.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."]}),!!F.messages.length&&F.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,"]"]}),!!W&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return N("censor_channel_story_body",{ref:Q.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return N("censor_channel_story_author",{ref:Q.ref})},children:"Censor Author"})]})]},Q.ref)})||!F.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 X(f)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=y,A[f]=O,A[v]=b,A[m]=I,A[u]=P,A[h]=S,A[c]=M},4418:function(_,j,n){"use strict";n.r(j),n.d(j,{NoticeBoard:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:v.length?(0,e.jsx)(t.Ki,{children:v.map(function(m,u){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return x("look",{ref:m.ref})},children:"Look"})||m.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return x("read",{ref:m.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("write",{ref:m.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return x("remove",{ref:m.ref})},children:"Remove"})]},u)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosAccessDecrypter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(95331),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.message,u=v.running,h=v.rate,c=v.factor,d=v.regions,p=function(y){for(var O="";O.lengthc?O+="0":O+="1";return O},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:m&&(0,e.jsx)(t.IC,{children:m})||u&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," PHash/s",(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.az,{children:p(C)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return f("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:d.length&&(0,e.jsx)(a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},89334:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosArcade:function(){return o}});var e=n(20462),s=n(31200),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data;return(0,e.jsx)(a.Zm,{width:450,height:350,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:v.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:v.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[v.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:v.PauseState===1?"#1b3622":"#471915",children:v.Status})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v.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)(v.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:v.GameActive===0||v.PauseState===1,onClick:function(){return f("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:v.GameActive===0||v.PauseState===1,onClick:function(){return f("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:v.GameActive===0||v.PauseState===1,onClick:function(){return f("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:v.GameActive===1,onClick:function(){return f("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:v.GameActive===1,onClick:function(){return f("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:v.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",v.TicketCount]})]})})})}},98669:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosAtmosControl:function(){return r}});var e=n(20462),s=n(2738),t=n(16947),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},39092:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCameraConsole:function(){return m},prevNextCamera:function(){return f},selectCameras:function(){return v}});var e=n(20462),s=n(7402),t=n(22071),r=n(61282),a=n(7081),o=n(16754),g=n(2738),x=n(21648),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]},v=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,t.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)},m=function(u){var h=(0,a.Oc)(),c=h.act,d=h.data,p=d.mapRef,C=d.activeCamera,y=v(d.cameras),O=f(y,C),b=O[0],I=O[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)(o.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return c("switch_camera",{name:b})}}),(0,e.jsx)(o.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(o.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(o.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(o.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(o.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(o.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},77580:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),s=n(2738),t=n(6938),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)(t.CommunicationsConsoleContent,{})})})}},50902:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosConfiguration:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.PC_device_theme,m=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,y=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:v,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",m,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(t.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)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:p,minValue:0,maxValue:d,color:"good",children:[p," GQ / ",d," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:y.map(function(O){return(0,e.jsx)(t.wn,{title:O.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!O.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:O.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:O.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",O.powerusage,"W"]})]}),children:O.desc},O.name)})})]})})}},23984:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCrewManifest:function(){return r}});var e=n(20462),s=n(2738),t=n(58044),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosCrewMonitor:function(){return a}});var e=n(20462),s=n(61358),t=n(2738),r=n(82703),a=function(){var o=function(d){v(d)},g=function(d){h(d)},x=(0,s.useState)(0),f=x[0],v=x[1],m=(0,s.useState)(1),u=m[0],h=m[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:f,zoom:u,onTabIndex:o,onZoom:g})})})}},31765:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosDigitalWarrant:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,y=h.allwarrants,O=(0,e.jsx)(g,{});return p&&(O=(0,e.jsx)(f,{})),(0,e.jsx)(a.Zm,{width:500,height:350,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:O})})},g=function(v){var m=(0,t.Oc)(),u=m.act,h=m.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(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=v.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(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,y=C==="arrest",O=C==="arrest"?"Name":"Location",b=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:y?"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:O,buttons:y&&(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:b,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})]})})}},99538:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosEmailAdministration:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(46189),o=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.cur_title,C=c.current_account,y=(0,e.jsx)(g,{});return d?y=(0,e.jsx)(x,{}):p?y=(0,e.jsx)(f,{}):C&&(y=(0,e.jsx)(v,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:y})})},g=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return h("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),d.map(function(p){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return h("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:d})},f=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data;return(0,e.jsx)(t.wn,{children:(0,e.jsx)(a.NtosEmailClientViewMessage,{administrator:!0})})},v=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.msg_title,C=c.msg_body,y=c.msg_timestamp,O=c.msg_source,b=c.current_account,I=c.cur_suspended,P=c.messages,S=c.accounts;return(0,e.jsxs)(t.wn,{title:"Viewing "+b+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return h("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{level:2,title:"Messages",children:P.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),P.map(function(M){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:M.source}),(0,e.jsx)(t.XI.Cell,{children:M.title}),(0,e.jsx)(t.XI.Cell,{children:M.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return h("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},46189:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosEmailClient:function(){return o},NtosEmailClientViewMessage:function(){return v}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.PC_device_theme,b=y.error,I=y.downloading,P=y.current_account,S=(0,e.jsx)(c,{});return b?S=(0,e.jsx)(h,{error:b}):I?S=(0,e.jsx)(g,{}):P&&(S=(0,e.jsx)(x,{})),(0,e.jsx)(a.Zm,{resizable:!0,theme:O,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:S})})},g=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.down_filename,b=y.down_progress,I=y.down_size,P=y.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:[O," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:P})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:b,maxValue:I,children:[b,"/",I," (",(0,s.LI)(b/I*100,1),"%)"]})})]})})},x=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.addressbook,I=y.new_message,P=y.cur_title,S=(0,e.jsx)(f,{});return b?S=(0,e.jsx)(m,{}):I?S=(0,e.jsx)(u,{}):P&&(S=(0,e.jsx)(v,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+O,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:S})},f=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.folder,I=y.messagecount,P=y.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:b==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(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"})]}),P.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",b,"."]})]})},v=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=d.administrator,b=y.cur_title,I=y.cur_source,P=y.cur_timestamp,S=y.cur_body,M=y.cur_hasattachment,A=y.cur_attachment_filename,R=y.cur_attachment_size,K=y.cur_uid;return(0,e.jsx)(r.wn,{title:b,buttons:O?(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})}}),M&&(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:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:P}),M&&!O&&(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:S}})})})]})})},m=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.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:O.map(function(b){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:b.login})},children:b.login},b.login)})})},u=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.msg_title,I=y.msg_recipient,P=y.msg_body,S=y.msg_hasattachment,M=y.msg_attachment_filename,A=y.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:b,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:I,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:S&&(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:S&&(0,e.jsxs)(r.az,{inline:!0,children:[M," (",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:P}})})}),(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,t.Oc)().act,C=d.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return p("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(d){var p=(0,t.Oc)(),C=p.act,y=p.data,O=y.stored_login,b=y.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:O,onInput:function(I,P){return C("edit_login",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(I,P){return C("edit_password",{val:P})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},77127:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosFileManager:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.PC_device_theme,u=v.usbconnected,h=v.filename,c=v.filedata,d=v.error,p=v.files,C=p===void 0?[]:p,y=v.usbfiles,O=y===void 0?[]:y;return(0,e.jsx)(r.Zm,{resizable:!0,theme:m,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[h&&(0,e.jsx)(t.wn,{title:"Viewing File "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return f("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return f("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return f("PRG_closefile")},children:"Close"})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(o,{files:C,usbconnected:u,onUpload:function(b){return f("PRG_copytousb",{uid:b})},onDelete:function(b){return f("PRG_deletefile",{uid:b})},onOpen:function(b){return f("PRG_openfile",{uid:b})},onRename:function(b,I){return f("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return f("PRG_clone",{uid:b})}})}),u&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(o,{usbmode:!0,files:O,usbconnected:u,onUpload:function(b){return f("PRG_copyfromusb",{uid:b})},onDelete:function(b){return f("PRG_deletefile",{uid:b})},onOpen:function(b){return f("PRG_openfile",{uid:b})},onRename:function(b,I){return f("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return f("PRG_clone",{uid:b})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return f("PRG_newtextfile")},children:"New Text File"})})]}),d&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return f("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:d})})]})]})})},o=function(g){var x=g.files,f=x===void 0?[]:x,v=g.usbconnected,m=g.usbmode,u=g.onUpload,h=g.onDelete,c=g.onRename,d=g.onOpen;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),f.map(function(p){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:p.name,tooltip:"Rename",onCommit:function(C,y){return c(p.uid,y)},children:p.name}),(0,e.jsx)(t.$n,{onClick:function(){return d(p.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:p.type}),(0,e.jsx)(t.XI.Cell,{children:p.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return h(p.uid)}}),!!v&&(m?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},39925:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosIdentificationComputer:function(){return r}});var e=n(20462),s=n(2738),t=n(95331),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)(t.IdentificationComputerContent,{ntos:!0})})})}},97357:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosMain:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={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"},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.device_theme,u=v.programs,h=u===void 0?[]:u,c=v.has_light,d=v.light_on,p=v.comp_light_color,C=v.removable_media,y=C===void 0?[]:C,O=v.login,b=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{title:m==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:m,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:d,onClick:function(){return f("PC_toggle_light")},children:["Flashlight: ",d?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return f("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:p})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!b.IDName,onClick:function(){return f("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",b.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",b.IDJob]})]})}),!!y.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:y.map(function(I){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return f("PC_Eject_Disk",{name:I})},children:I})})},I)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:h.map(function(I){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:a[I.name]||"window-maximize-o",onClick:function(){return f("PC_runprogram",{name:I.name})},children:I.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return f("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return f("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},12171:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetChat:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.can_admin,m=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,y=f.clients,O=y===void 0?[]:y,b=f.messages,I=b===void 0?[]:b,P=c!==null,S=u||m;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_newchannel",{new_channel_name:A})},children:"New Channel..."}),C.map(function(M){return(0,e.jsx)(t.$n,{fluid:!0,selected:M.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:M.id})},children:M.chan},M.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:h,onCommit:function(M,A){return x("PRG_changename",{new_name:A})},children:h+"..."}),!!v&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:m?"bad":"good",onClick:function(){return x("PRG_toggleadmin")},children:"ADMIN MODE: "+(m?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:P&&(S?I.map(function(M){return(0,e.jsx)(t.az,{children:M.msg},M.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(M,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:O.map(function(M){return(0,e.jsx)(t.az,{children:M.name},M.name)})}),P&&S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(M,A){return x("PRG_savelog",{log_name:A})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return x("PRG_leavechannel")},children:"Leave Channel"})]}),!!d&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return x("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_renamechannel",{new_name:A})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(M,A){return x("PRG_setpassword",{new_password:A})},children:"Set Password..."})]})]})]})})})})})}},18515:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetDos:function(){return a},NtosNetDosContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.relays,u=m===void 0?[]:m,h=v.focus,c=v.target,d=v.speed,p=v.overload,C=v.capacity,y=v.error;if(y)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:y}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return f("PRG_reset")},children:"Reset"})]});var O=function(I){for(var P="",S=p/C;P.lengthS?P+="0":P+="1";return P},b=45;return c?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",d," GQ/s"]}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)}),(0,e.jsx)(t.az,{children:O(b)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:u.map(function(I){return(0,e.jsx)(t.$n,{selected:h===I.id,onClick:function(){return f("PRG_target_relay",{targid:I.id})},children:I.id},I.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!h,mt:1,onClick:function(){return f("PRG_execute")},children:"EXECUTE"})]})}},74988:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetDownloader:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.PC_device_theme,h=m.disk_size,c=m.disk_used,d=m.downloadable_programs,p=d===void 0?[]:d,C=m.error,y=m.hacked_programs,O=y===void 0?[]:y,b=m.hackedavailable;return(0,e.jsx)(a.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(a.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,{onClick:function(){return v("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:h,children:c+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!b&&(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."}),O.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var f=x.program,v=(0,t.Oc)(),m=v.act,u=v.data,h=u.disk_size,c=u.disk_used,d=u.downloadcompletion,p=u.downloading,C=u.downloadname,y=u.downloadsize,O=u.downloadspeed,b=u.downloads_queue,I=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:y,value:d,children:[(0,s.LI)(d/y*100,1),"%\xA0(",O,"GQ/s)"]})||b.indexOf(f.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return m("PRG_removequeued",{filename:f.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:f.size>I,onClick:function(){return m("PRG_downloadfile",{filename:f.filename})},children:"Download"})})]}),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>I&&(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})]})}},69955:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetMonitor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.ntnetrelays,m=f.ntnetstatus,u=f.config_softwaredownload,h=f.config_peertopeer,c=f.config_communication,d=f.config_systemcontrol,p=f.idsalarm,C=f.idsstatus,y=f.ntnetmaxlogs,O=f.maxlogs,b=f.minlogs,I=f.banned_nids,P=f.ntnetlogs,S=P===void 0?[]:P;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:m?"power-off":"times",selected:m,onClick:function(){return x("toggleWireless")},children:m?"ENABLED":"DISABLED"}),children:v?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:v})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:u?"power-off":"times",selected:u,onClick:function(){return x("toggle_function",{id:"1"})},children:u?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:h?"power-off":"times",selected:h,onClick:function(){return x("toggle_function",{id:"2"})},children:h?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return x("toggle_function",{id:"3"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:d?"power-off":"times",selected:d,onClick:function(){return x("toggle_function",{id:"4"})},children:d?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,onClick:function(){return x("toggleIDS")},children:C?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return x("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{value:y,minValue:b,maxValue:O,width:"39px",onChange:function(M,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return x("purgelogs")},children:"Clear Logs"}),children:S.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M.entry},M.entry)})})]})]})})}},60056:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNetTransfer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.downloading,C=c.uploading,y=c.upload_filelist,O=(0,e.jsx)(v,{});return d?O=(0,e.jsx)(o,{}):p?O=(0,e.jsx)(g,{}):C?O=(0,e.jsx)(x,{}):y.length&&(O=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:O})})},o=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",d]})},g=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.download_name,p=c.download_progress,C=c.download_size,y=c.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:d}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[y," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},x=function(m){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)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:d}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},f=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",level:2,children:d.map(function(p){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},v=function(m){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:d.length&&(0,e.jsx)(t.Ki,{children:d.map(function(p){return(0,e.jsxs)(t.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return h("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},95799:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosNewsBrowser:function(){return o}});var e=n(20462),s=n(31200),t=n(7081),r=n(16754),a=n(2738),o=function(v){var m=(0,t.Oc)(),u=m.act,h=m.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)(a.Zm,{width:575,height:750,children:(0,e.jsxs)(a.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(v){var m=(0,t.Oc)(),u=m.act,h=m.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(v){var m=(0,t.Oc)(),u=m.act,h=m.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(v){var m=(0,t.Oc)(),u=m.act,h=m.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"})})]})})}},95436:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosOvermapNavigation:function(){return r}});var e=n(20462),s=n(2738),t=n(65912),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)(t.OvermapNavigationContent,{})})})}},75655:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosPowerMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(30889),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)(t.PowerMonitorContent,{})})})}},81986:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosRCON:function(){return r}});var e=n(20462),s=n(2738),t=n(40932),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)(t.RCONContent,{})})})}},35399:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosRevelation:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=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)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(m,u){return x("PRG_obfuscate",{new_name:u})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:v?"bad":"average",onClick:function(){return x("PRG_arm")},children:v?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!v,children:"ACTIVATE"})]})})})}},79389:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosShutoffMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(20563),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosStationAlertConsole:function(){return r}});var e=n(20462),s=n(2738),t=n(20717),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)(t.StationAlertConsoleContent,{})})})}},57488:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),s=n(2738),t=n(18766),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)(t.SupermatterMonitorContent,{})})})}},46756:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosUAV:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.current_uav,m=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)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:v&&v.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:v&&m||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:v&&(0,e.jsx)(t.$n,{icon:"power-off",selected:v.power,onClick:function(){return x("power_uav")},children:v.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:v&&(0,e.jsx)(t.$n,{icon:"power-off",selected:u,disabled:!v.power,onClick:function(){return x("view_uav")},children:v.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:h.length&&h.map(function(c){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},25268:function(_,j,n){"use strict";n.r(j),n.d(j,{NtosWordProcessor:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.PC_device_theme,m=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:v,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:m&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",m,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("PRG_backtomenu")},children:"Back to menu"})]})||u&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),h.map(function(y,O){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:y.name}),(0,e.jsx)(t.XI.Cell,{children:y.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:y.name})},children:"Open"})})]},O)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+p,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},46836:function(_,j,n){"use strict";n.r(j),n.d(j,{NumberInputModal:function(){return f}});var e=n(20462),s=n(87239),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),f=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.init_value,p=c.large_buttons,C=c.message,y=C===void 0?"":C,O=c.timeout,b=c.title,I=(0,t.useState)(d),P=I[0],S=I[1],M=function(R){R!==P&&S(R)},A=140+(y.length>30?Math.ceil(y.length/3):0)+(y.length&&p?5:0);return(0,e.jsxs)(o.p8,{title:b,width:270,height:A,children:[O&&(0,e.jsx)(x.Loader,{value:O}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&h("submit",{entry:P}),R.key===s._.Escape&&h("cancel")},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.az,{color:"label",children:y})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{input:P,onClick:M,onChange:M,onBlur:M})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:P})})]})})})]})},v=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.min_value,p=c.max_value,C=c.init_value,y=c.round_value,O=m.input,b=m.onClick,I=m.onChange,P=m.onBlur;return(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===d,icon:"angle-double-left",onClick:function(){return b(d)},tooltip:d?"Min ("+d+")":"Min"})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!y,minValue:d,maxValue:p,onChange:function(S,M){return I(M)},onBlur:function(S,M){return P(M)},onEnter:function(S,M){return h("submit",{entry:M})},value:O})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===p,icon:"angle-double-right",onClick:function(){return b(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{disabled:O===C,icon:"redo",onClick:function(){return b(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},12333:function(_,j,n){"use strict";n.r(j),n.d(j,{OmniFilter:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.power,u=v.config,h=v.ports,c=v.set_flow_rate,d=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:m,disabled:u,onClick:function(){return f("power")},children:m?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:u,onClick:function(){return f("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:h?h.map(function(p){return(0,e.jsx)(t.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:p.input,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:"in",dir:p.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:p.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:p.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:p.input||p.output,onClick:function(){return f("switch_filter",{mode:p.f_type,dir:p.dir})},children:p.f_type||"None"})]}):a(p)},p.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[d," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return f("set_flow_rate")},children:c+" L/s"}):c+" L/s"})]})})]})})}},60780:function(_,j,n){"use strict";n.r(j),n.d(j,{OmniMixer:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},o=function(x){var f=(0,s.Oc)(),v=f.act,m=f.data,u=m.power,h=m.config,c=m.ports,d=m.set_flow_rate,p=m.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:u,disabled:h,onClick:function(){return v("power")},children:u?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:h,onClick:function(){return v("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),h?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:h},C.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return v("set_flow_rate")},children:d+" L/s"}):d+" L/s"})]})})]})})},g=function(x){var f=(0,s.Oc)().act,v=x.port,m=x.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:v.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:m?(0,e.jsx)(t.$n,{selected:v.input,disabled:v.output,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:v.input?"none":"in",dir:v.dir})},children:"IN"}):a(v)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:m?(0,e.jsx)(t.$n,{selected:v.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:v.dir})},children:"OUT"}):v.concentration*100+"%"}),m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!v.input,onClick:function(){return f("switch_con",{dir:v.dir})},children:v.input?v.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:v.con_lock?"lock":"lock-open",disabled:!v.input,selected:v.con_lock,onClick:function(){return f("switch_conlock",{dir:v.dir})},children:v.f_type||"None"})})]}):null]})}},51498:function(_,j,n){"use strict";n.r(j),n.d(j,{OperatingComputer:function(){return v}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["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"],v=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=C.hasOccupant,O=C.choice,b;return O?b=(0,e.jsx)(h,{}):b=y?(0,e.jsx)(m,{}):(0,e.jsx)(u,{}),(0,e.jsx)(a.p8,{width:650,height:455,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!O,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!O,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:b})]})})},m=function(c){var d=(0,t.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:o[p.stat][0],children:o[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,y){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]])},y)},y)}),(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(y){return(0,e.jsx)("div",{children:y},y)})})]})},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,t.Oc)(),p=d.act,C=d.data,y=C.verbose,O=C.health,b=C.healthAlarm,I=C.oxy,P=C.oxyAlarm,S=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:y,icon:y?"toggle-on":"toggle-off",onClick:function(){return p(y?"verboseOff":"verboseOn")},children:y?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",onClick:function(){return p(O?"healthOff":"healthOn")},children:O?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:b,stepPixelSize:"5",ml:"0",format:function(M){return M+"%"},onChange:function(M,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",onClick:function(){return p(I?"oxyOff":"oxyOn")},children:I?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:P,stepPixelSize:"5",ml:"0",onChange:function(M,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:S,icon:S?"toggle-on":"toggle-off",onClick:function(){return p(S?"critOff":"critOn")},children:S?"On":"Off"})})]})}},16371:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapDisperser:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=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)(),v=f.act,m=f.data,u=m.faillink,h=m.calibration,c=m.overmapdir,d=m.cal_accuracy,p=m.strength,C=m.range,y=m.next_shot,O=m.nopower,b=m.skill,I=m.chargeload;return u?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(a.OvermapPanControls,{actToDo:"choose",selected:function(P){return P===c}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[O&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:y===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||y>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:y})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:d}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return v("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:h.map(function(P,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return v("calibration",{calibration:S})},children:P.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return v("strength")},children:p})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return v("range")},children:C})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return v("fire")},children:"Fire ORB"})})]})}},73847:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapEngines:function(){return a},OvermapEnginesContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.global_state,u=v.global_limit,h=v.engines_info,c=v.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:m,onClick:function(){return f("global_toggle")},children:m?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return f("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return f("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return f("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:c})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:h.map(function(d,p){return(0,e.jsxs)(t.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:d.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:d.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:d.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.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,y){return Array.isArray(C)?(0,e.jsx)(t.az,{color:C[1],children:C[0]},y):(0,e.jsx)(t.az,{children:C},y)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:d.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return f("limit",{limit:-.1,engine:d.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return f("set_limit",{engine:d.eng_reference})},children:[d.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return f("limit",{limit:.1,engine:d.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$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)})})]})}},61321:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapFull:function(){return x}});var e=n(20462),s=n(61358),t=n(16754),r=n(2738),a=n(73847),o=n(95828),g=n(40489),x=function(f){var v=(0,s.useState)(0),m=v[0],u=v[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:m===2,onClick:function(){return u(2)},children:"Sensors"})]}),m===0&&(0,e.jsx)(a.OvermapEnginesContent,{}),m===1&&(0,e.jsx)(o.OvermapHelmContent,{}),m===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},95828:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return o},OvermapHelmContent:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=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)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(v,{})})]}),(0,e.jsx)(m,{})]})},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)(a.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)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.dest,C=d.d_x,y=d.d_y,O=d.speedlimit,b=d.autopilot,I=d.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(t.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:y})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[O," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:b,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:b?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.sector,C=d.s_x,y=d.s_y,O=d.sector_info,b=d.landed,I=d.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[C," : ",y]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:O}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:b})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),I.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:P.name}),(0,e.jsxs)(t.XI.Cell,{children:[P.x," : ",P.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return c("setds",{x:P.x,y:P.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return c("remove",{remove:P.reference})},children:"Remove"})]})]},P.name)})]})})]})}},65912:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapNavigation:function(){return o},OvermapNavigationContent:function(){return g}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(67804),o=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)(),v=f.act,m=f.data,u=m.sector,h=m.s_x,c=m.s_y,d=m.sector_info,p=m.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:p,onClick:function(){return v("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[h," : ",c]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:d})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(a.OvermapFlightData,{disableLimiterControls:!0})})]})}},3500:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapShieldGenerator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=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)(o,{})})})},o=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.modes,c=u.offline_for;return c?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:h.map(function(d){return(0,e.jsxs)(t.wn,{title:d.name,level:2,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:d.status,onClick:function(){return m("toggle_mode",{toggle_mode:d.flag})},children:d.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:d.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",d.multiplier]})]},d.name)})})]})},g=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.running,c=u.overloaded,d=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,y=u.mitigation_heat,O=u.field_integrity,b=u.max_energy,I=u.current_energy,P=u.percentage_energy,S=u.total_segments,M=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,F=u.spinup_counter;return(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:h===1&&(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"})||h===2&&(c&&(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(t.az,{color:"good",children:"Running"}))||h===3&&(0,e.jsx)(t.az,{color:"average",children:"Inactive"})||h===4&&(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[F*2,"s"]})]})||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:I,maxValue:b,children:[I," / ",b," MJ (",P,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:O}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",y,"% HE / ",d,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:N})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:M}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:S})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:A}),", target"," ",(0,e.jsx)(t.zv,{value:R}),")"]})]})})},x=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.running,c=u.hacked,d=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return m("start_generator")},children:"Turn on"}),h&&c&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return m("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return m("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return m("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(t.$n,{selected:C===d,disabled:h===4,onClick:function(){return m("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},40489:function(_,j,n){"use strict";n.r(j),n.d(j,{OvermapShipSensors:function(){return a},OvermapShipSensorsContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.viewing,u=v.on,h=v.range,c=v.health,d=v.max_health,p=v.heat,C=v.critical_heat,y=v.status,O=v.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:m,onClick:function(){return f("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:u,onClick:function(){return f("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:y}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return f("range")},children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.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)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.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 v("cancel",{cancel:I+1})},children:"Cancel"})||null]},b)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(b){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return v("queue",{queue:b.type})},children:(0,s.Sn)(b.name)})},b.name)})})]})})}},14889:function(_,j,n){"use strict";n.r(j),n.d(j,{PathogenicIsolator:function(){return x}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(38509),o=n(2738),g=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.can_print,p=m.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",onClick:function(){return h("print",{type:"virus_record",vir:p.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return h("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[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(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.isolating,p=(0,s.useState)(0),C=p[0],y=p[1],O=null;return C===0?O=(0,e.jsx)(f,{}):C===1&&(O=(0,e.jsx)(v,{})),(0,a.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(o.p8,{height:500,width:520,children:[(0,e.jsx)(a.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(o.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 y(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return y(1)},children:"Database"})]}),O]})]})},f=function(m){var u=(0,t.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",disabled:!C,onClick:function(){return h("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!d,onClick:function(){return h("eject")},children:"Eject Syringe"})]}),children:p.length&&p.map(function(y){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 #",y.unique_id]}),y.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return h("isolate",{isolate:y.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!y.is_in_database,onClick:function(){return h("view_entry",{vir:y.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:y.name}),y.dna]})]},y.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."}))})},v=function(m){var u=(0,t.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",disabled:!p,onClick:function(){return h("print",{type:"virus_list"})},children:"Print"}),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."})})}},90945:function(_,j,n){"use strict";n.r(j),n.d(j,{Pda:function(){return f}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(15857),g=n(7339),x=function(h){var c;try{c=g("./"+h+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,o.z)("notFound",h);throw p}var d=c[h];return d||(0,o.z)("missingExport",h)},f=function(h){var c=function(R){M(R)},d=(0,t.Oc)(),p=d.act,C=d.data,y=C.app,O=C.owner,b=C.useRetro;if(!O)return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var I=x(y.template),P=(0,s.useState)(!1),S=P[0],M=P[1];return(0,e.jsx)(a.p8,{width:580,height:670,theme:b?"pda-retro":null,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(v,{settingsMode:S,onSettingsMode:c}),S&&(0,e.jsx)(m,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:y.icon,mr:1}),y.name]}),p:1,children:(0,e.jsx)(I,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},v=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=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")},children:y})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:b}),(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"})]})]})})},m=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=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",onClick:function(){return d("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!b,onClick:function(){return d("TouchSounds")},children:b?"Disabled":"Enabled"})}),!!O&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Eject")},children:O})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Authenticate")},children:y})})]})})},u=function(h){var c=(0,t.Oc)(),d=c.act,p=c.data,C=p.app,y=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:y?"#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")}})})]})})}},21104:function(_,j,n){"use strict";n.r(j),n.d(j,{PersonalCrafting:function(){return v}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738);function o(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 v=function(u){for(var h,c=(0,t.Oc)(),d=c.act,p=c.data,C=p.busy,y=p.display_craftable_only,O=p.display_compact,b=p.crafting_recipes||{},I=[],P=[],S=f(Object.keys(b)),M;!(M=S()).done;){var A=M.value,R=b[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"){I.push({name:k,category:A,subcategory:k});for(var F=R[k],W=f(F),J;!(J=W()).done;){var X=J.value;P.push(g({},X,{category:k}))}}}continue}I.push({name:A,category:A});for(var Q=b[A],Z=f(Q),G;!(G=Z()).done;){var H=G.value;P.push(g({},H,{category:A}))}}var V=(0,s.useState)((h=I[0])==null?void 0:h.name),q=V[0],ie=V[1],te=P.filter(function(ce){return ce.category===q});return(0,e.jsx)(a.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(a.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,{checked:O,onClick:function(){return d("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:y,onClick:function(){return d("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(ce){return(0,e.jsx)(r.tU.Tab,{selected:ce.name===q,onClick:function(){ie(ce.name),d("set_category",{category:ce.category,subcategory:ce.subcategory})},children:ce.name},ce.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(m,{craftables:te})})]})})]})})},m=function(u){var h=u.craftables,c=h===void 0?[]:h,d=(0,t.Oc)(),p=d.act,C=d.data,y=C.craftability,O=y===void 0?{}:y,b=C.display_compact,I=C.display_craftable_only;return c.map(function(P){return I&&!O[P.ref]?null:b?(0,e.jsx)(r.Ki.Item,{label:P.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[P.ref],tooltip:P.tool_text&&"Tools needed: "+P.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:P.ref})},children:"Craft"}),children:P.req_text},P.name):(0,e.jsx)(r.wn,{title:P.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[P.ref],onClick:function(){return p("make",{recipe:P.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!P.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:P.req_text}),!!P.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:P.catalyst_text}),!!P.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:P.tool_text})]})},P.name)})}},56430:function(_,j,n){"use strict";n.r(j),n.d(j,{Photocopier:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(f){var v=(0,s.Oc)().data,m=v.isAI,u=v.has_toner,h=v.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:m?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(o,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!m&&(0,e.jsx)(x,{})]})})},o=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.max_toner,c=u.current_toner,d=h*.66,p=h*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[d,h],average:[p,d],bad:[0,p]},value:c,minValue:0,maxValue:h})})},g=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:h,onDrag:function(d,p){return m("set_copies",{num_copies:p})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return m("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return m("remove")},children:"Remove item"})]})},x=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!h,onClick:function(){return m("ai_photo")},children:"Print photo from database"})})})}},99141:function(_,j,n){"use strict";n.r(j),n.d(j,{PipeDispenser:function(){return g}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=n(8313),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.disposals,h=m.p_layer,c=m.pipe_layers,d=m.categories,p=d===void 0?[]:d,C=(0,s.useState)("categoryName"),y=C[0],O=C[1],b=p.find(function(I){return I.cat_name===y})||p[0];return(0,e.jsx)(a.p8,{width:425,height:515,children:(0,e.jsxs)(a.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(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[I]===h,onClick:function(){return v("p_layer",{p_layer:c[I]})},children:I},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(I,P){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:o.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===b.cat_name,onClick:function(){return O(I.cat_name)},children:I.cat_name},I.cat_name)})}),b==null?void 0:b.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,title:I.pipe_name,onClick:function(){return v("dispense_pipe",{ref:I.ref,bent:I.bent,category:b.cat_name})},children:I.pipe_name},I.pipe_name)})]})]})})}},72801:function(_,j,n){"use strict";n.r(j),n.d(j,{PlantAnalyzer:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=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)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.no_seed,u=v.seed,h=v.reagents;return m?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return f("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return f("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:u.potency})]}),h.length&&(0,e.jsx)(t.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:h.map(function(c){return(0,e.jsxs)(t.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(t.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:c},c)})})]})}},12588:function(_,j,n){"use strict";n.r(j),n.d(j,{PlayerNotes:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.device_theme,m=f.filter,u=f.pages,h=f.ckeys,c=function(d){return d()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:v,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(d,p){return x("show_player_info",{name:p})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return x("clear_player_info_filter")},children:m}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:h.map(function(d){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return x("show_player_info",{name:d.name})},children:d.name})})},d.name)})}),(0,e.jsx)(t.cG,{}),c(function(){for(var d=function(y){p.push((0,e.jsx)(t.$n,{onClick:function(){return x("set_page",{index:y})},children:y},y))},p=[],C=1;C=.5&&"good"||m>.15&&"average"||"bad";return(0,e.jsx)(a.p8,{width:450,height:340,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[!v.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:v.active?"power-off":"times",onClick:function(){return f("toggle_power")},selected:v.active,disabled:!v.ready_to_boot,children:v.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:v.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:v.active,onClick:function(){return f("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[v.fuel_stored,"cm\xB3 ",v.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:v.fuel_stored/v.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[v.fuel_stored,"cm\xB3 / ",v.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[v.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:v.temperature_current,maxValue:v.temperature_max+30,color:v.temperature_overheat?"bad":"good",children:[(0,s.LI)(v.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:v.unsafe_output?"bad":null,children:v.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:v.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return f("higher_power")},children:v.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!v.connected&&"bad",children:v.connected?v.power_available:"Unconnected"})})]})})]})})}},61725:function(_,j,n){"use strict";n.r(j),n.d(j,{PortablePump:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(66885),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.direction,u=v.target_pressure,h=v.default_pressure,c=v.min_pressure,d=v.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)(a.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:m?"sign-in-alt":"sign-out-alt",selected:m,onClick:function(){return f("direction")},children:m?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:d,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return f("pressure",{pressure:C})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:u===c,onClick:function(){return f("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:u===h,onClick:function(){return f("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:u===d,onClick:function(){return f("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(_,j,n){"use strict";n.r(j),n.d(j,{PortableScrubber:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(66885),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.rate,u=v.minrate,h=v.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(a.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:h,value:m,unit:"L/s",onChange:function(c,d){return f("volume_adj",{vol:d})}})})})})]})})}},32357:function(_,j,n){"use strict";n.r(j),n.d(j,{PortableTurret:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.locked,m=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,y=f.neutralize_criminals,O=f.neutralize_all,b=f.neutralize_nonsynth,I=f.neutralize_unidentified,P=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)(t.IC,{children:["Swipe an ID card to ",v?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,disabled:v,onClick:function(){return x("power")},children:m?"On":"Off"})}),!!h&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:u?"exclamation-triangle":"times",color:u?"bad":"",disabled:v,onClick:function(){return x("lethal")},children:u?"On":"Off"})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:y,disabled:v,onClick:function(){return x("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:v,onClick:function(){return x("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:d,disabled:v,onClick:function(){return x("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:p,disabled:v,onClick:function(){return x("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:I,disabled:v,onClick:function(){return x("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:b,disabled:v,onClick:function(){return x("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:v,onClick:function(){return x("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:O,disabled:v,onClick:function(){return x("authall")},children:"All Entities"})]})]})]})})}},30889:function(_,j,n){"use strict";n.r(j),n.d(j,{AreaCharge:function(){return d},PowerMonitor:function(){return u},PowerMonitorContent:function(){return h},PowerMonitorFocus:function(){return c},powerRank:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(4089),a=n(61358),o=n(7081),g=n(16754),x=n(2738);function f(){return f=Object.assign||function(C){for(var y=1;y50?"battery-half":"battery-quarter")||y===1&&"bolt"||y===2&&"battery-full",color:y===0&&(O>50?"yellow":"red")||y===1&&"yellow"||y===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(O)+"%"})]})},p=function(C){var y=C.status,O=!!(y&2),b=!!(y&1),I=(O?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:O?"good":"bad",content:b?void 0:"M",title:I})}},84818:function(_,j,n){"use strict";n.r(j),n.d(j,{PressureRegulator:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=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)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:h/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_valve")},children:v?"Unlocked":"Closed"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:d===0,onClick:function(){return x("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:d===1,onClick:function(){return x("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:d===2,onClick:function(){return x("regulate_mode",{mode:"output"})},children:"Output"})]})}),(0,e.jsxs)(t.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return x("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return x("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return x("set_press",{press:"set"})},children:"SET"})]}),children:[m/100," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return x("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return x("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return x("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[p/10," L/s"]})]})})]})})}},11747:function(_,j,n){"use strict";n.r(j),n.d(j,{PrisonerManagement:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.locked,m=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:v&&(0,e.jsxs)(t.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Interface Lock",buttons:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:m.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Inject"})]}),m.map(function(h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:h.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[h.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:h.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:h.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:h.ref,val:10})},children:"(10)"})]})]},h.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(h){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[h.host," (",h.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:h.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return x("warn",{imp:h.ref})},children:"Message"})})]},h.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},40932:function(_,j,n){"use strict";n.r(j),n.d(j,{RCON:function(){return v},RCONContent:function(){return m}});var e=n(20462),s=n(4089),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(41242),x=n(2738),f=1e3,v=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)(m,{})})})},m=function(p){var C=(0,r.useState)(0),y=C[0],O=C[1],b;return y===0?b=(0,e.jsx)(u,{}):y===1&&(b=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(o.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(o.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(o.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(o.az,{m:2,children:b})]})},u=function(p){var C=(0,a.Oc)(),y=C.act,O=C.data,b=O.smes_info,I=O.pages,P=O.current_page,S=function(M){return M()};return(0,e.jsxs)(o.wn,{title:"SMESs (Page "+P+")",children:[(0,e.jsx)(o.BJ,{vertical:!0,children:b.map(function(M){return(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(h,{smes:M})},M.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),S(function(){for(var M=function(K){A.push((0,e.jsx)(o.$n,{selected:P===K,onClick:function(){return y("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: ",y.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",y.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",y.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:y.desc})]}),y.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)(y.chargetype)}),y.charges.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(b.caption),children:(0,e.jsx)(r.$n,{selected:y.realchargetype===b.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:y.index,module_mode:"select_charge_type",charge_type:b.index})}})},b.caption)})]})})}):null]},y.name)})]})}},62325:function(_,j,n){"use strict";n.r(j),n.d(j,{Radio:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(79500),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.rawfreq,h=m.minFrequency,c=m.maxFrequency,d=m.listening,p=m.broadcasting,C=m.subspace,y=m.subspaceSwitchable,O=m.chan_list,b=m.loudspeaker,I=m.mic_cut,P=m.spk_cut,S=m.useSyndMode,M=a.Fo.find(function(R){return R.freq===Number(u)}),A=156;return O&&O.length>0?A+=O.length*28+6:A+=24,y&&(A+=38),(0,e.jsx)(o.p8,{width:310,height:A,resizable:!0,theme:S?"syndicate":"",children:(0,e.jsxs)(o.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 v("setFrequency",{freq:(0,s.LI)(K*10)})}}),M&&(0,e.jsxs)(r.az,{inline:!0,color:M.color,ml:2,children:["[",M.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:P,onClick:function(){return v("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return v("broadcast")}}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,onClick:function(){return v("subspace")},children:"Subspace Tx "+(C?"ON":"OFF")})}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:b?"volume-up":"volume-mute",selected:b,onClick:function(){return v("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!O||O.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:O?O.map(function(R){var K=a.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,onClick:function(){return v("channel",{channel:R.chan})},children:R.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:R.chan===u,onClick:function(){return v("specFreq",{channel:R.chan})},children:"Switch"})},R.chan)}):null})]})]})})}},8313:function(_,j,n){"use strict";n.r(j),n.d(j,{ICON_BY_CATEGORY_NAME:function(){return f},RapidPipeDispenser:function(){return c}});var e=n(20462),s=n(65380),t=n(61282),r=n(61358),a=n(7081),o=n(16754),g=n(2738),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"},v=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(d){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category,b=y.selected_color,I=y.mode;return(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Category",children:x.map(function(P,S){return(0,e.jsx)(o.$n,{selected:O===S,icon:f[P],color:"transparent",onClick:function(){return C("category",{category:S})},children:P},P)})}),(0,e.jsx)(o.Ki.Item,{label:"Modes",children:(0,e.jsx)(o.BJ,{fill:!0,children:v.map(function(P){return(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n.Checkbox,{checked:I&P.bitmask,fluid:!0,onClick:function(){return C("mode",{mode:P.bitmask})},children:P.name})},P.bitmask)})})}),(0,e.jsxs)(o.Ki.Item,{label:"Color",children:[(0,e.jsx)(o.az,{inline:!0,width:"64px",color:y.paint_colors[b],children:(0,t.ZH)(b)}),Object.keys(y.paint_colors).map(function(P){return(0,e.jsx)(o.BK,{ml:1,color:y.paint_colors[P],onClick:function(){return C("color",{paint_color:P})}},P)})]})]})})},u=function(d){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category,b=y.piping_layer,I=y.pipe_layers,P=y.preview_rows.flatMap(function(S){return S.previews});return(0,e.jsxs)(o.wn,{fill:!0,width:7.5,children:[O===0&&(0,e.jsx)(o.BJ,{vertical:!0,mb:1,children:Object.keys(I).map(function(S){return(0,e.jsx)(o.BJ.Item,{my:0,children:(0,e.jsx)(o.$n.Checkbox,{checked:I[S]===b,onClick:function(){return C("piping_layer",{piping_layer:I[S]})},children:S})},S)})}),(0,e.jsx)(o.az,{width:"120px",children:P.map(function(S){return(0,e.jsx)(o.$n,{ml:0,title:S.dir_name,selected:S.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:S.dir,flipped:S.flipped})},children:(0,e.jsx)(o.az,{className:(0,s.Ly)(["pipes32x32",S.dir+"-"+S.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},S.dir)})})]})},h=function(d){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.categories,b=O===void 0?[]:O,I=(0,r.useState)("categoryName"),P=I[0],S=I[1],M=b.find(function(A){return A.cat_name===P})||b[0];return(0,e.jsxs)(o.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(o.tU,{children:b.map(function(A,R){return(0,e.jsx)(o.tU.Tab,{fluid:!0,icon:f[A.cat_name],selected:A.cat_name===M.cat_name,onClick:function(){return S(A.cat_name)},children:A.cat_name},A.cat_name)})}),M==null?void 0:M.recipes.map(function(A){return(0,e.jsx)(o.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:M.cat_name})},children:A.pipe_name},A.pipe_index)})]})},c=function(d){var p=(0,a.Oc)(),C=p.act,y=p.data,O=y.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(m,{})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{})})]})})]})})})}},27412:function(_,j,n){"use strict";n.r(j),n.d(j,{RequestConsole:function(){return R}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=0,g=1,x=2,f=3,v=4,m=5,u=6,h=7,c=8,d=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!W,icon:W?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",W?"OFF":"ON"]})})},p=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(O,{dept_list:J,department:W})})},C=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(O,{dept_list:J,department:W})})},y=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(O,{dept_list:J,department:W})})},O=function(K){var N=(0,t.Oc)().act,k=K.dept_list,F=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(W){return W!==F&&(0,e.jsx)(r.Ki.Item,{label:W,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:W,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:W,priority:2})},children:"High Priority"})]})})||null})})},b=function(K){var N=(0,t.Oc)(),k=N.act,F=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:o})},children:"Continue"})})]})},I=function(K){var N=(0,t.Oc)(),k=N.act,F=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:o})},children:"Continue"})})]})},P=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:W.length&&W.map(function(J,X){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:X+1})},children:"Print"}),children:(0,s.jT)(J[1])},X)})||(0,e.jsx)(r.az,{children:"No messages."})})},S=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.message,J=F.recipient,X=F.priority,Q=F.msgStamped,Z=F.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:W}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:X===2?"High Priority":X===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:o})},children:"Back"})]})},M=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.department,J=F.screen,X=F.message_log,Q=F.newmessagepriority,Z=F.silent,G=F.announcementConsole,H=F.assist_dept,V=F.supply_dept,q=F.info_dept,ie=F.message,te=F.recipient,ce=F.priority,ue=F.msgStamped,me=F.msgVerified,xe=F.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:ie||"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:!ie||!xe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:o})},children:"Back"})]})},A={};A[o]=d,A[g]=C,A[x]=p,A[f]=y,A[v]=b,A[m]=I,A[u]=P,A[h]=S,A[c]=M;var R=function(K){var N=(0,t.Oc)(),k=N.act,F=N.data,W=F.screen,J=F.newmessagepriority,X=F.announcementConsole,Q=A[W];return(0,e.jsx)(a.p8,{width:520,height:410,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:W===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:W===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:W===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:W===f,onClick:function(){return k("setScreen",{setScreen:f})},icon:"share-square-o",children:"Report"}),X&&(0,e.jsx)(r.tU.Tab,{selected:W===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:W===o,onClick:function(){return k("setScreen",{setScreen:o})},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,{})]})})}},34102:function(_,j,n){"use strict";n.r(j),n.d(j,{ResearchConsole:function(){return b}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(2738);function g(){return g=Object.assign||function(I){for(var P=1;P=150?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:X.biomass>=150?"circle":"circle-o"}),"\xA0",X.biomass]}),Z]},Q)}):null},I=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.sleevers,W=k.spods,J=k.selected_sleever;return F&&F.length?F.map(function(X,Q){return(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("sleeve_"+(X.occupied?"occupied":"empty")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(a.az,{color:X.occupied?"label":"bad",children:X.name}),(0,e.jsx)(a.$n,{selected:J===X.sleever,icon:J===X.sleever&&"check",mt:W&&W.length?"3rem":"1.5rem",onClick:function(){return N("selectsleever",{ref:X.sleever})},children:"Select"})]},Q)}):null},P=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.spods,W=k.selected_printer;return F&&F.length?F.map(function(J,X){var Q;return J.status==="cloning"?Q=(0,e.jsx)(a.z2,{min:"0",max:"100",value:J.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(a.az,{textAlign:"center",children:(0,s.LI)(J.progress,0)+"%"})}):J.status==="mess"?Q=(0,e.jsx)(a.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):Q=(0,e.jsx)(a.$n,{selected:W===J.spod,icon:W===J.spod&&"check",mt:"0.5rem",onClick:function(){return N("selectprinter",{ref:J.spod})},children:"Select"}),(0,e.jsxs)(a.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("synthprinter"+(J.busy?"_working":"")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(a.az,{color:"label",children:J.name}),(0,e.jsxs)(a.az,{bold:!0,color:J.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.steel>=15e3?"circle":"circle-o"}),"\xA0",J.steel]}),(0,e.jsxs)(a.az,{bold:!0,color:J.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(a.In,{name:J.glass>=15e3?"circle":"circle-o"}),"\xA0",J.glass]}),Q]},X)}):null},S=function(R){var K=(0,r.Oc)().act,N=R.records,k=R.actToDo;return N.length?(0,e.jsx)(a.az,{mt:"0.5rem",children:N.map(function(F,W){return(0,e.jsx)(a.$n,{icon:"user",mb:"0.5rem",onClick:function(){return K(k,{ref:F.recref})},children:F.name},W)})}):(0,e.jsx)(a.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(a.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(a.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},M=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.temp;if(!(!F||!F.text||F.text.length<=0)){var W,J=(W={},W[F.style]=!0,W);return(0,e.jsxs)(a.IC,x({},J,{children:[(0,e.jsx)(a.az,{display:"inline-block",verticalAlign:"middle",children:F.text}),(0,e.jsx)(a.$n,{icon:"times-circle",float:"right",onClick:function(){return N("cleartemp")}}),(0,e.jsx)(a.az,{clear:"both"})]}))}},A=function(R){var K=(0,r.Oc)(),N=K.act,k=K.data,F=k.pods,W=k.spods,J=k.sleevers,X=k.autoallowed,Q=k.autoprocess,Z=k.disk;return(0,e.jsx)(a.wn,{title:"Status",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Pods",children:F&&F.length?(0,e.jsxs)(a.az,{color:"good",children:[F.length," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"SynthFabs",children:W&&W.length?(0,e.jsxs)(a.az,{color:"good",children:[W.length," connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(a.Ki.Item,{label:"Sleevers",children:J&&J.length?(0,e.jsxs)(a.az,{color:"good",children:[J.length," Connected"]}):(0,e.jsx)(a.az,{color:"bad",children:"None connected!"})})]})})}},75099:function(_,j,n){"use strict";n.r(j),n.d(j,{ResleevingPod:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)().data,x=g.occupied,f=g.name,v=g.health,m=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)(t.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:f}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:v/m,children:[v,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:h?"Present":"Missing"}),h?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:c}):""]}),d?(0,e.jsxs)(t.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)(t.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},67611:function(_,j,n){"use strict";n.r(j),n.d(j,{RoboticsControlConsole:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.can_hack,u=v.safety,h=v.show_detonate_all,c=v.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)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:u?"lock":"unlock",selected:u,children:u?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:u,color:"bad",onClick:function(){return f("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(o,{cyborgs:d,can_hack:m})]})})},o=function(g){var x=g.cyborgs,f=g.can_hack,v=(0,s.Oc)(),m=v.act,u=v.data;return x.length?x.map(function(h){return(0,e.jsx)(t.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!h.hackable&&!h.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return m("hackbot",{ref:h.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:h.locked_down?"unlock":"lock",color:h.locked_down?"good":"default",disabled:!u.auth,onClick:function(){return m("stopbot",{ref:h.ref})},children:h.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!u.auth,color:"bad",onClick:function(){return m("killbot",{ref:h.ref})},children:"Detonate"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.az,{color:h.status?"bad":h.locked_down?"average":"good",children:h.status?"Not Responding":h.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:h.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:h.health>50?"good":"bad",value:h.health/100})}),typeof h.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:h.charge>30?"good":"bad",value:h.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:h.cell_capacity<3e4?"average":"good",children:h.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!h.is_hacked&&(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Module",children:h.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:h.synchronization?"default":"average",children:h.synchronization||"None"})})]})},h.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},28341:function(_,j,n){"use strict";n.r(j),n.d(j,{RogueZones:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.timeout_percent,m=f.diffstep,u=f.difficulty,h=f.occupied,c=f.scanning,d=f.updated,p=f.debug,C=f.shuttle_location,y=f.shuttle_at_station,O=f.scan_ready,b=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)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:b&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),h&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",h," personnel!"]})||(0,e.jsx)(t.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.wn,{title:"Scanner",buttons:(0,e.jsx)(t.$n,{disabled:!O,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.z2,{value:v,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,d&&!c&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",v]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",m]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(t.az,{children:["Occupied: ",h]}),(0,e.jsxs)(t.az,{children:["Debug: ",p]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",y]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",O]})]})||null]})})]})})}},1249:function(_,j,n){"use strict";n.r(j),n.d(j,{RustCoreMonitor:function(){return a},RustCoreMonitorContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return f("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_active",{core:u.ref})},children:u.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_reactantdump",{core:u.ref})},children:u.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:u.field_instability}),(0,e.jsx)(t.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.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)(t.XI.Cell,{})]},u.name)})]})})}},27095:function(_,j,n){"use strict";n.r(j),n.d(j,{RustFuelContent:function(){return o},RustFuelControl:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return f("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{fuel:u.ref})},children:u.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},23316:function(_,j,n){"use strict";n.r(j),n.d(j,{Secbot:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.on,m=f.open,u=f.locked,h=f.idcheck,c=f.check_records,d=f.check_arrest,p=f.arrest_type,C=f.declare_arrests,y=f.bot_patrolling,O=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)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("power")},children:v?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:m?"bad":"good",children:m?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("idcheck")},children:h?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("ignorearr")},children:d?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!y&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("patrol")},children:O?"Yes":"No"})})]})})||null]})})}},84350:function(_,j,n){"use strict";n.r(j),n.d(j,{SecureSafe:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=v.locked,h=v.l_setshort,c=v.code,d=v.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:m.map(function(p){return(0,e.jsx)(t.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",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})},children:C},C)})},p[0])})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.code,u=v.l_setshort,h=v.l_set,c=v.emagged,d=v.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)(t.az,{m:"6px",children:[p&&(0,e.jsx)(t.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(t.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(t.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.wn,{height:"60px",children:(0,e.jsx)(t.az,{textAlign:"center",position:"center",fontSize:"35px",children:m&&m||(0,e.jsx)(t.az,{textColor:d?"red":"green",children:d?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},51412:function(_,j,n){"use strict";n.r(j),n.d(j,{SecurityRecords:function(){return v}});var e=n(20462),s=n(7081),t=n(16754),r=n(38509),a=n(2738),o=n(2455),g=n(8491),x=n(55789),f=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},v=function(C){var y=(0,s.Oc)().data,O=y.authenticated,b=y.screen;if(!O)return(0,e.jsx)(a.p8,{width:700,height:680,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return b===2?I=(0,e.jsx)(m,{}):b===3?I=(0,e.jsx)(u,{}):b===4&&(I=(0,e.jsx)(h,{})),(0,e.jsxs)(a.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:I})]})]})},m=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(P,S){return O("search",{t1:S})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:I.map(function(P,S){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:P.color,onClick:function(){return O("d_rec",{d_rec:P.ref})},children:P.id+": "+P.name+" (Criminal Status: "+P.criminal+")"},S)})})]})},u=function(C){var y=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return y("del_all")},children:"Delete All Security Records"})]})},h=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security,P=b.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(d,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!I.empty,color:"bad",onClick:function(){return O("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!I.empty,color:"bad",onClick:function(){return O("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,ml:"0.5rem",onClick:function(){return O("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return O("screen",{screen:2})},children:"Back"})]})]})},c=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.general;return!I||!I.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:I.fields.map(function(P,S){return(0,e.jsxs)(t.Ki.Item,{label:P.field,children:[(0,e.jsx)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:P.value}),!!P.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return f(P)}})]},S)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(P,S){return(0,e.jsxs)(t.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:P.substr(1,P.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",S+1]},S)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return O("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return O("photo_side")},children:"Update Side Photo"})]})]})]})},d=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security;return!I||!I.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return O("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:I.fields.map(function(P,S){return(0,e.jsx)(t.Ki.Item,{label:P.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[P.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){return f(P)}})]})},S)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):I.comments.map(function(P,S){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:P.header}),(0,e.jsx)("br",{}),P.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return O("del_c",{del_c:S+1})}})]},S)}),(0,e.jsx)(t.$n,{icon:"comment",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})},p=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return O("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return O("screen",{screen:3})},children:"Record Maintenance"})]})}},81190:function(_,j,n){"use strict";n.r(j),n.d(j,{SeedStorage:function(){return g}});var e=n(20462),s=n(7402),t=n(61282),r=n(7081),a=n(16754),o=n(2738),g=function(x){var f=(0,r.Oc)(),v=f.act,m=f.data,u=m.scanner,h=m.seeds,c=(0,s.Ul)(function(d){return d.name.toLowerCase()})(h);return(0,e.jsx)(o.p8,{width:600,height:760,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(a.wn,{title:"Seeds",children:c.map(function(d){return(0,e.jsxs)(a.so,{spacing:1,mt:-1,children:[(0,e.jsx)(a.so.Item,{basis:"60%",children:(0,e.jsx)(a.Nt,{title:(0,t.Sn)(d.name)+" #"+d.uid,children:(0,e.jsx)(a.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(a.Ki,{children:Object.keys(d.traits).map(function(p){return(0,e.jsx)(a.Ki.Item,{label:(0,t.Sn)(p),children:d.traits[p]},p)})})})})}),(0,e.jsxs)(a.so.Item,{mt:.4,children:[d.amount," Remaining"]}),(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,icon:"download",onClick:function(){return v("vend",{id:d.id})},children:"Vend"})}),(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,icon:"trash",onClick:function(){return v("purge",{id:d.id})},children:"Purge"})})]},d.name+d.uid)})})})})}},88309:function(_,j,n){"use strict";n.r(j),n.d(j,{ShieldCapacitor:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.active,h=m.time_since_fail,c=m.stored_charge,d=m.max_charge,p=m.charge_rate,C=m.max_charge_rate;return(0,e.jsx)(o.p8,{width:500,height:400,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,onClick:function(){return v("toggle")},children:u?"Online":"Offline"}),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(y){return(0,a.QL)(y,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(y){return(0,a.d5)(y)},onDrag:function(y,O){return v("charge_rate",{rate:O})}})})]})})})})}},56686:function(_,j,n){"use strict";n.r(j),n.d(j,{ShieldGenerator:function(){return x}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=n(9129),x=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.locked;return(0,e.jsx)(o.p8,{width:500,height:400,children:(0,e.jsx)(o.p8.Content,{children:d?(0,e.jsx)(f,{}):(0,e.jsx)(v,{})})})},f=function(m){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."})]})},v=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.lockedData,p=d.capacitors,C=d.active,y=d.failing,O=d.radius,b=d.max_radius,I=d.z_range,P=d.max_z_range,S=d.average_field_strength,M=d.target_field_strength,A=d.max_field_strength,R=d.shields,K=d.upkeep,N=d.strengthen_rate,k=d.max_strengthen_rate,F=d.gen_power,W=(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:y?(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)(S,2)," Renwick (",M&&(0,s.LI)(100*S/M,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,a.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,a.d5)(F)}),(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:W?p.map(function(J,X){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+X,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,a.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."})})]})]},X)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:C,onClick:function(){return h("toggle")},children:C?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:b,value:O,unit:"m",onDrag:function(J,X){return h("change_radius",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:P,value:I,unit:"vertical range",onDrag:function(J,X){return h("z_range",{val:X})}})}),(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,X){return h("strengthen_rate",{val:X})}})}),(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:M,unit:"Renwick",onDrag:function(J,X){return h("target_field_strength",{val:X})}})})]})})]})}},20563:function(_,j,n){"use strict";n.r(j),n.d(j,{ShutoffMonitor:function(){return a},ShutoffMonitorContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.valves;return(0,e.jsx)(t.wn,{title:"Valves",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Open"}),(0,e.jsx)(t.XI.Cell,{children:"Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),m.map(function(u){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:u.name}),(0,e.jsxs)(t.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(t.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:u.open,disabled:!u.enabled,onClick:function(){return f("toggle_open",{valve:u.ref})},children:u.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:u.enabled,onClick:function(){return f("toggle_enable",{valve:u.ref})},children:u.enabled?"Auto":"Manual"})]})]},u.name)})]})})}},90868:function(_,j,n){"use strict";n.r(j),n.d(j,{ShuttleControl:function(){return h}});var e=n(20462),s=n(61282),t=n(7081),r=n(16754),a=n(2738),o=function(c,d){var p="ERROR",C="bad",y=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",y=!0):c==="undocking"?(p="UNDOCKING",C="average",y=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),y&&d&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=c.engineName,O=y===void 0?"Bluespace Drive":y,b=C.shuttle_status,I=C.shuttle_state,P=C.has_docking,S=C.docking_status,M=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:b}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,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"})}),P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:o(S,M)}),(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,t.Oc)(),p=d.act,C=d.data,y=C.can_launch,O=C.can_cancel,b=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:!y,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:!O,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:!b,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},f=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},v=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=C.can_cloak,O=C.can_pick,b=C.legit,I=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:[y&&(0,e.jsx)(r.Ki.Item,{label:b?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:I?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!O,onClick:function(){return p("pick")},children:c.destination_name})})]})}),(0,e.jsx)(x,{})]})},m=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=C.can_pick,O=C.destination_name,b=C.fuel_usage,I=C.fuel_span,P=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:!y,onClick:function(){return p("pick")},children:O})}),b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:I,children:[P," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[b," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=C.autopilot,O=C.can_rename,b=C.shuttle_state,I=C.is_moving,P=C.skip_docking,S=C.docking_status,M=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,F=C.is_in_transit,W=C.travel_progress,J=C.time_left,X=C.doors,Q=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[y&&(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:O&&(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:b==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||b==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||b==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!P&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:S==="docked",disabled:S!=="undocked"&&S!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:S==="undocked",disabled:S!=="docked"&&S!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:o(S,M)})})||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:y,icon:y?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:y?"Enabled":"Disabled"})})||null]})||null]}),!I&&(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]}),F&&(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:W,children:[J,"s"]})})})})||null,Object.keys(X).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(X).map(function(Z){var G=X[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[G.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",G.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,G){var H=Q[Z];return H.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},G):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[H.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[H.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[H.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[H.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[H.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[H.phoron,"%"]}),H.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[H.other,"%"]})||null]})},Z)})})})||null]})},h=function(c){var d=(0,t.Oc)(),p=d.act,C=d.data,y=C.subtemplate,O=C.destination_name;return(0,e.jsx)(a.p8,{width:470,height:y==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(a.p8.Content,{children:y==="ShuttleControlConsoleDefault"&&(0,e.jsx)(f,{})||y==="ShuttleControlConsoleMulti"&&(0,e.jsx)(v,{destination_name:O})||y==="ShuttleControlConsoleExploration"&&(0,e.jsx)(m,{})||y==="ShuttleControlConsoleWeb"&&(0,e.jsx)(u,{})})})}},46321:function(_,j,n){"use strict";n.r(j),n.d(j,{Signaler:function(){return o},SignalerContent:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(){return(0,e.jsx)(a.p8,{width:280,height:132,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.code,h=m.frequency,c=m.minFrequency,d=m.maxFrequency;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{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 v("freq",{freq:C})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return v("reset",{reset:"freq"})},children:"Reset"})})]}),(0,e.jsxs)(r.XI.Row,{mt:.6,children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return v("code",{code:C})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return v("reset",{reset:"code"})},children:"Reset"})})]}),(0,e.jsx)(r.XI.Row,{mt:.8,children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return v("signal")},children:"Send Signal"})})})]})})}},79608:function(_,j,n){"use strict";n.r(j),n.d(j,{Sleeper:function(){return v}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=[["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"],v=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.hasOccupant,P=I?(0,e.jsx)(m,{}):(0,e.jsx)(p,{});return(0,e.jsx)(a.p8,{width:550,height:760,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",children:P})})},m=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.dialysis,S=b.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{}),(0,e.jsx)(c,{title:"Dialysis",active:P,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.jsx)(d,{})]})},u=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.auto_eject_dead,S=b.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:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return O("auto_eject_dead_"+(P?"off":"on"))},children:P?"On":"Off"}),(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return O("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{onClick:function(){return O("changestasis")},children:S})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:o[I.stat][0],children:o[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:f[I.temperatureSuitability+3],children:[(0,s.LI)(I.btCelsius,0),"\xB0C,",(0,s.LI)(I.btFaren,0),"\xB0F"]})}),!!I.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:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},h=function(C){var y=(0,t.Oc)().data,O=y.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:b[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:O[b[1]]/100,ranges:x,children:(0,s.LI)(O[b[1]],0)},I)},I)})})})},c=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.isBeakerLoaded,P=b.beakerMaxSpace,S=b.beakerFreeSpace,M=C.active,A=C.actToDo,R=C.title,K=M&&S>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||S<=0,selected:K,icon:K?"toggle-on":"toggle-off",onClick:function(){return O(A)},children:K?"Active":"Inactive"}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",onClick:function(){return O("removebeaker")},children:"Eject"})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:P,value:S/P,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[S,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},d=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.occupant,P=b.chemicals,S=b.maxchem,M=b.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:P.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:S,value:A.occ_amount/S,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",S,"u"]}),M.map(function(k,F){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>S||I.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return O("chemical",{chemid:A.id,amount:k})},children:k},F)})]})})},R)})})},p=function(C){var y=(0,t.Oc)(),O=y.act,b=y.data,I=b.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.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return O("removebeaker")},children:"Remove Beaker"})})||null]})})})}},37746:function(_,j,n){"use strict";n.r(j),n.d(j,{SmartVend:function(){return o}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.config,m=x.data;return(0,e.jsx)(a.p8,{width:500,height:550,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[m.secure&&(0,e.jsx)(r.IC,{danger:m.locked===-1,info:m.locked!==-1,children:m.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,m.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",v.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,{disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:u.amount<5,onClick:function(){return f("Release",{index:u.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:u.amount<25,onClick:function(){return f("Release",{index:u.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:u.amount<50,onClick:function(){return f("Release",{index:u.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:u.amount})},children:"All"})]})]},h)})(m.contents)]})]})})})}},65554:function(_,j,n){"use strict";n.r(j),n.d(j,{Smes:function(){return x}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=1e3,x=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.capacityPercent,c=u.capacity,d=u.charge,p=u.inputAttempt,C=u.inputting,y=u.inputLevel,O=u.inputLevelMax,b=u.inputAvailable,I=u.outputAttempt,P=u.outputting,S=u.outputLevel,M=u.outputLevelMax,A=u.outputUsed,R=h>=100&&"good"||C&&"average"||"bad",K=P&&"good"||d>0&&"average"||"bad";return(0,e.jsx)(o.p8,{width:400,height:350,children:(0,e.jsxs)(o.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 m("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:y===0,onClick:function(){return m("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:y===0,onClick:function(){return m("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:y/g,fillValue:b/g,minValue:0,maxValue:O/g,step:5,stepPixelSize:4,format:function(N){return(0,a.d5)(N*g,1)},onDrag:function(N,k){return m("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:y===O,onClick:function(){return m("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:y===O,onClick:function(){return m("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,a.d5)(b)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return m("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:P?"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:S===0,onClick:function(){return m("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:S===0,onClick:function(){return m("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:S/g,minValue:0,maxValue:M/g,step:5,stepPixelSize:4,format:function(N){return(0,a.d5)(N*g,1)},onDrag:function(N,k){return m("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:S===M,onClick:function(){return m("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:S===M,onClick:function(){return m("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,a.d5)(A)})]})})]})})}},60836:function(_,j,n){"use strict";n.r(j),n.d(j,{SolarControl:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(g){var x=(0,t.Oc)(),f=x.act,v=x.data,m=v.generated,u=v.generated_ratio,h=v.sun_angle,c=v.array_angle,d=v.rotation_rate,p=v.max_rotation_rate,C=v.tracking_state,y=v.connected_panels,O=v.connected_tracker;return(0,e.jsx)(a.p8,{width:380,height:230,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:O?"good":"bad",children:O?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:y>0?"good":"bad",children:y})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:m+" 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",selected:C===0,onClick:function(){return f("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:C===1,onClick:function(){return f("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:C===2,disabled:!O,onClick:function(){return f("tracking",{mode:2})},children:"Auto"})]}),(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(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return f("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:d,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return f("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(_,j,n){"use strict";n.r(j),n.d(j,{SpaceHeater:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(79500),a=n(2738),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.temp,u=v.minTemp,h=v.maxTemp,c=v.cell,d=v.power;return(0,e.jsx)(a.p8,{width:300,height:250,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[m," K (",m-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[d,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(t.N6,{animated:!0,value:m-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)(t.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return f("cellinstall")},children:"Insert Cell"})})]})})]})})}},39064:function(_,j,n){"use strict";n.r(j),n.d(j,{Stack:function(){return x}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738);function a(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,y=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)(t.wn,{title:"Amount: "+C,children:(0,e.jsx)(f,{recipes:y})})})})},f=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=h.recipes,y=Object.keys(C).sort();return y.map(function(O,b){var I=C[O];return I.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:O,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(f,{recipes:I})})},b):(0,e.jsx)(u,{title:O,recipe:I},b)})},v=function(h,c){return h.req_amount>c?0:Math.floor(c/h.req_amount)},m=function(h){for(var c=function(){var A=M.value;b>=A&&P.push((0,e.jsx)(t.$n,{onClick:function(){return p("make",{ref:y.ref,multiplier:A})},children:A*y.res_amount+"x"}))},d=(0,s.Oc)(),p=d.act,C=d.data,y=h.recipe,O=h.maxMultiplier,b=Math.min(O,Math.floor(y.max_res_amount/y.res_amount)),I=[5,10,25],P=[],S=g(I),M;!(M=S()).done;)c();return I.indexOf(b)===-1&&P.push((0,e.jsx)(t.$n,{onClick:function(){return p("make",{ref:y.ref,multiplier:b})},children:b*y.res_amount+"x"})),P},u=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,y=h.recipe,O=h.title,b=y.res_amount,I=y.max_res_amount,P=y.req_amount,S=y.ref,M=O;M+=" (",M+=P+" ",M+="sheet"+(P>1?"s":""),M+=")",b>1&&(M=b+"x "+M);var A=v(y,C);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.XI,{children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!A,icon:"wrench",onClick:function(){return d("make",{ref:y.ref,multiplier:1})},children:M})}),I>1&&A>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(m,{recipe:y,maxMultiplier:A})})]})})})}},20717:function(_,j,n){"use strict";n.r(j),n.d(j,{StationAlertConsole:function(){return a},StationAlertConsoleContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(o,{})})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.categories,u=m===void 0?[]:m;return u.map(function(h){return(0,e.jsx)(t.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)(t.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(t.$n,{disabled:p.deact,icon:"video",onClick:function(){return f("switchTo",{camera:p.camera})},children:p.name+(p.deact?" (deactived)":"")},p.name)})}):c.lost_sources&&(d=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",d]},c.name)})]})},h.category)})}},76064:function(_,j,n){"use strict";n.r(j),n.d(j,{StationBlueprints:function(){return a},StationBlueprintsContent:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(o,{})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=x.config,u=v.mapRef,h=v.areas,c=v.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)(t.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},97073:function(_,j,n){"use strict";n.r(j),n.d(j,{StockExchange:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.screen,C=d.stationName,y;return p==="stocks"?y=(0,e.jsx)(o,{}):p==="logs"?y=(0,e.jsx)(f,{}):p==="archive"?y=(0,e.jsx)(v,{}):p==="graph"&&(y=(0,e.jsx)(m,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:""+C+" Stock Exchange",children:y})})})},o=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.balance,C=d.stationName,y=d.viewMode,O=(0,e.jsx)(g,{});return y==="Full"?O=(0,e.jsx)(g,{}):y==="Compressed"&&(O=(0,e.jsx)(x,{})),(0,e.jsxs)(t.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)(t.$n,{onClick:function(){return c("stocks_cycle_view")},children:y}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return c("stocks_check")},children:"Check"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(t.wn,{title:"Listed Stocks",children:O})]})},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)(t.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.cG,{}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{children:"ID"}),(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Owned"}),(0,e.jsx)(t.XI.Cell,{children:"Avail"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(t.cG,{}),C.map(function(y){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:y.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:y.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:y.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_archive",{share:y.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_history",{share:y.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},y.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)(t.az,{children:C.map(function(y){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:y.name})," ",(0,e.jsx)("span",{children:y.ID}),y.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",y.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",y.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_history",{share:y.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:y.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",y.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),y.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_buy",{share:y.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_sell",{share:y.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:y.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_archive",{share:y.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},y.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)(t.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:C.map(function(y){return(0,e.jsxs)(t.az,{children:[y.type!=="borrow"?(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name}),y.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:y.stocks})," stocks at ",y.shareprice," a share for",(0,e.jsx)("b",{children:y.money})," total credits",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," borrowed ",(0,e.jsx)("b",{children:y.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:y.money})," credits in",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},y.time)})})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.events,y=C===void 0?[]:C,O=d.articles,b=O===void 0?[]:O;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:y.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(t.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:b.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},I.headline)})})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.maxValue,y=d.values,O=y===void 0?[]:y;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return c("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.wn,{position:"relative",height:"100%",children:(0,e.jsx)(t.t1.Line,{fillPositionedParent:!0,data:O,rangeX:[0,O.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},6085:function(_,j,n){"use strict";n.r(j),n.d(j,{SuitCycler:function(){return o}});var e=n(20462),s=n(61358),t=n(7081),r=n(16754),a=n(2738),o=function(m){var u=function(F){M(F)},h=function(F){K(F)},c=(0,t.Oc)(),d=c.act,p=c.data,C=p.active,y=p.locked,O=p.uv_active,b=p.species,I=p.departments,P=(0,s.useState)(!!I&&I[0]||null),S=P[0],M=P[1],A=(0,s.useState)(!!b&&b[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:S,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:h});return O?N=(0,e.jsx)(x,{}):y?N=(0,e.jsx)(f,{}):C&&(N=(0,e.jsx)(v,{})),(0,e.jsx)(a.p8,{width:320,height:400,children:(0,e.jsx)(a.p8.Content,{children:N})})},g=function(m){var u=(0,t.Oc)(),h=u.act,c=u.data,d=c.safeties,p=c.occupied,C=c.suit,y=c.helmet,O=c.departments,b=c.species,I=c.uv_level,P=c.max_uv_level,S=c.can_repair,M=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",onClick:function(){return h("lock")},children:"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",onClick:function(){return h("eject_guy")},children:"Eject Entity"})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:y?"square":"square-o",disabled:!y,onClick:function(){return h("dispense",{item:"helmet"})},children:y||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",disabled:!C,onClick:function(){return h("dispense",{item:"suit"})},children:C||"Empty"})}),S&&M?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[M,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return h("repair_suit")},children:"Repair"})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:O,selected:m.selectedDepartment,onSelected:function(A){m.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:b,selected:m.selectedSpecies,onSelected:function(A){m.onSelectedSpecies(A),h("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return h("apply_paintjob")},children:"Customize"})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,minValue:1,maxValue:P,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(m){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(m){var u=(0,t.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",disabled:!p,onClick:function(){return h("lock")},children:"[Unlock]"})})]})},v=function(m){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},33364:function(_,j,n){"use strict";n.r(j),n.d(j,{SuitStorageUnit:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.panelopen,d=h.uv_active,p=h.broken,C=(0,e.jsx)(o,{});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})})},o=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.locked,d=h.open,p=h.safeties,C=h.occupied,y=h.suit,O=h.helmet,b=h.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!d&&(0,e.jsx)(t.$n,{icon:c?"unlock":"lock",onClick:function(){return u("lock")},children:c?"Unlock":"Lock"}),!c&&(0,e.jsx)(t.$n,{icon:d?"sign-out-alt":"sign-in-alt",onClick:function(){return u("door")},children:d?"Close":"Open"})]}),children:[!!(C&&p)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return u("eject_guy")},children:"Eject Entity"})]}),c&&(0,e.jsxs)(t.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.az,{children:"Unit Locked"}),(0,e.jsx)(t.In,{name:"lock"})]})||d&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return u("dispense",{item:"helmet"})},children:O||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:y?"square":"square-o",disabled:!y,onClick:function(){return u("dispense",{item:"suit"})},children:y||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:b?"square":"square-o",disabled:!b,onClick:function(){return u("dispense",{item:"mask"})},children:b||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")},children:"Decontaminate"})]})},g=function(v){var m=(0,s.Oc)(),u=m.act,h=m.data,c=h.safeties,d=h.uv_super;return(0,e.jsxs)(t.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(t.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.N6,{size:2,inline:!0,value: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)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(v){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(v){return(0,e.jsx)(t.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},18766:function(_,j,n){"use strict";n.r(j),n.d(j,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=n(20462),s=n(4089),t=n(61282),r=n(7081),a=n(16754),o=n(2738),g=function(m){return(0,e.jsx)(o.p8,{width:600,height:400,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.active;return d?(0,e.jsx)(v,{}):(0,e.jsx)(f,{})},f=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.supermatters;return(0,e.jsx)(a.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(a.$n,{icon:"sync",onClick:function(){return h("refresh")},children:"Refresh"}),children:(0,e.jsx)(a.so,{wrap:"wrap",children:d.map(function(p,C){return(0,e.jsx)(a.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(a.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(a.Ki.Item,{label:"Options",children:(0,e.jsx)(a.$n,{icon:"eye",onClick:function(){return h("set",{set:p.uid})},children:"View Details"})})]})})},C)})})})},v=function(m){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.SM_area,p=c.SM_integrity,C=c.SM_power,y=c.SM_ambienttemp,O=c.SM_ambientpressure,b=c.SM_EPR,I=c.SM_gas_O2,P=c.SM_gas_CO2,S=c.SM_gas_N2,M=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(a.wn,{title:(0,t.Sn)(d),buttons:(0,e.jsx)(a.$n,{icon:"arrow-left",onClick:function(){return h("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(a.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(a.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(a.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(a.Ki.Item,{label:"Temperature",children:(0,e.jsx)(a.az,{color:y>5e3&&"bad"||y>4e3&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:y})})}),(0,e.jsx)(a.Ki.Item,{label:"Pressure",children:(0,e.jsx)(a.az,{color:O>1e4&&"bad"||O>5e3&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:O})})}),(0,e.jsx)(a.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(a.az,{color:b>4&&"bad"||b>1&&"average"||"good",children:(0,e.jsx)(a.zv,{format:function(R){return(0,s.LI)(R,2)},value:b})})}),(0,e.jsx)(a.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsxs)(a.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(a.zv,{value:I}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(a.zv,{value:P}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(a.zv,{value:S}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"PH",children:[(0,e.jsx)(a.zv,{value:M}),"%"]}),(0,e.jsxs)(a.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(a.zv,{value:A}),"%"]})]})})]})})}},11296:function(_,j,n){"use strict";n.r(j),n.d(j,{SupplyConsole:function(){return m}});var e=n(20462),s=n(7402),t=n(22071),r=n(61358),a=n(7081),o=n(16754),g=n(41242),x=n(38509),f=n(2738),v=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.supply_points,P=C.args,S=P.name,M=P.cost,A=P.manifest,R=P.ref,K=P.random;return(0,e.jsx)(o.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:S,buttons:(0,e.jsx)(o.$n,{icon:"shopping-cart",disabled:M>I,onClick:function(){return O("request_crate",{ref:R})},children:"Buy - "+M+" points"}),children:(0,e.jsx)(o.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(o.az,{children:N},N)})})})},m=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data;return(0,x.modalRegisterBodyOverride)("view_crate",v),(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)(o.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{})]})]})})},u=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.supply_points,P=b.shuttle,S=b.shuttle_auth,M=null,A=!1;return S&&(P.launch===1&&P.mode===0?M=(0,e.jsx)(o.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_away"})},children:"Send Away"}):P.launch===2&&(P.mode===3||P.mode===1)?M=(0,e.jsx)(o.$n,{icon:"ban",onClick:function(){return O("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):P.launch===1&&P.mode===5&&(M=(0,e.jsx)(o.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),P.force&&(A=!0)),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(o.zv,{value:I})})}),(0,e.jsx)(o.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[M,A?(0,e.jsx)(o.$n,{icon:"exclamation-triangle",onClick:function(){return O("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):null]}),children:P.location}),(0,e.jsx)(o.Ki.Item,{label:"Engine",children:P.engine}),P.mode===4?(0,e.jsx)(o.Ki.Item,{label:"ETA",children:P.time>1?(0,g.fU)(P.time):"LATE"}):null]})})]})},h=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.order_auth,P=(0,r.useState)(0),S=P[0],M=P[1];return(0,e.jsxs)(o.wn,{title:"Menu",children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{icon:"box",selected:S===0,onClick:function(){return M(0)},children:"Request"}),(0,e.jsx)(o.tU.Tab,{icon:"check-circle-o",selected:S===1,onClick:function(){return M(1)},children:"Accepted"}),(0,e.jsx)(o.tU.Tab,{icon:"circle-o",selected:S===2,onClick:function(){return M(2)},children:"Requests"}),(0,e.jsx)(o.tU.Tab,{icon:"book",selected:S===3,onClick:function(){return M(3)},children:"Order history"}),(0,e.jsx)(o.tU.Tab,{icon:"book",selected:S===4,onClick:function(){return M(4)},children:"Export history"})]}),S===0?(0,e.jsx)(c,{}):null,S===1?(0,e.jsx)(d,{mode:"Approved"}):null,S===2?(0,e.jsx)(d,{mode:"Requested"}):null,S===3?(0,e.jsx)(d,{mode:"All"}):null,S===4?(0,e.jsx)(p,{}):null]})},c=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.categories,P=b.supply_packs,S=b.contraband,M=b.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,t.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||S}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>M})])(P);return(0,e.jsx)(o.wn,{level:2,children:(0,e.jsxs)(o.BJ,{children:[(0,e.jsx)(o.BJ.Item,{basis:"25%",children:(0,e.jsx)(o.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(o.$n,{fluid:!0,selected:k===R,onClick:function(){return K(k)},children:k},k)})})}),(0,e.jsx)(o.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(o.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(o.az,{children:(0,e.jsxs)(o.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(o.BJ.Item,{basis:"70%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:k.cost>M?"red":null,onClick:function(){return O("request_crate",{ref:k.ref})},children:k.name})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:k.cost>M?"red":null,onClick:function(){return O("request_crate_multi",{ref:k.ref})},children:"#"})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{color:k.cost>M?"red":null,onClick:function(){return O("view_crate",{crate:k.ref})},children:"C"})}),(0,e.jsxs)(o.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},d=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=C.mode,P=b.orders,S=b.order_auth,M=b.supply_points,A=P.filter(function(R){return R.status===I||I==="All"});return A.length?(0,e.jsxs)(o.wn,{level:2,children:[I==="Requested"&&S?(0,e.jsx)(o.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return O("clear_all_requests")},children:"Clear all requests"}):null,A.map(function(R,K){return(0,e.jsxs)(o.wn,{title:"Order "+(K+1),buttons:I==="All"&&S?(0,e.jsx)(o.$n,{color:"red",icon:"trash",onClick:function(){return O("delete_order",{ref:R.ref})},children:"Delete Record"}):null,children:[(0,e.jsxs)(o.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(o.Ki.Item,{label:N.field,buttons:S?(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){O("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})},children:"Edit"}):null,children:N.entry},k):null}),I==="All"?(0,e.jsx)(o.Ki.Item,{label:"Status",children:R.status}):null]}),S&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"check",disabled:R.cost>M,onClick:function(){return O("approve_order",{ref:R.ref})},children:"Approve"}),(0,e.jsx)(o.$n,{icon:"times",onClick:function(){return O("deny_order",{ref:R.ref})},children:"Deny"})]}):null]},K)})]}):(0,e.jsx)(o.wn,{level:2,children:"No orders found."})},p=function(C){var y=(0,a.Oc)(),O=y.act,b=y.data,I=b.receipts,P=b.order_auth;return I.length?(0,e.jsx)(o.wn,{level:2,children:I.map(function(S,M){return(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.Ki,{children:[S.title.map(function(A){return(0,e.jsx)(o.Ki.Item,{label:A.field,buttons:P?(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){return O("export_edit",{ref:S.ref,edit:A.field,default:A.entry})},children:"Edit"}):null,children:A.entry},A.field)}),S.error?(0,e.jsx)(o.Ki.Item,{labelColor:"red",label:"Error",children:S.error}):S.contents.map(function(A,R){return(0,e.jsxs)(o.Ki.Item,{label:A.object,buttons:P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"pen",onClick:function(){return O("export_edit_field",{ref:S.ref,index:R+1,edit:"meow",default:A.object})},children:"Edit"}),(0,e.jsx)(o.$n,{icon:"trash",color:"red",onClick:function(){return O("export_delete_field",{ref:S.ref,index:R+1})},children:"Delete"})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{mt:1,icon:"plus",onClick:function(){return O("export_add_field",{ref:S.ref})},children:"Add Item To Record"}),(0,e.jsx)(o.$n,{icon:"trash",onClick:function(){return O("export_delete",{ref:S.ref})},children:"Delete Record"})]}):null]},M)})}):(0,e.jsx)(o.wn,{level:2,children:"No receipts found."})}},87736:function(_,j,n){"use strict";n.r(j),n.d(j,{TEGenerator:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(41242),o=n(2738),g=function(f){var v=(0,t.Oc)().data,m=v.totalOutput,u=v.maxTotalOutput,h=v.thermalOutput,c=v.primary,d=v.secondary;return(0,e.jsx)(o.p8,{width:550,height:310,children:(0,e.jsxs)(o.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:m,maxValue:u,children:(0,a.d5)(m)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,a.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 v=f.name,m=f.values,u=m.dir,h=m.output,c=m.flowCapacity,d=m.inletPressure,p=m.inletTemperature,C=m.outletPressure,y=m.outletTemperature;return(0,e.jsx)(r.wn,{title:v+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,a.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,a.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,a.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(y,2)," K"]})]})})}},1674:function(_,j,n){"use strict";n.r(j),n.d(j,{Tank:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.connected,m=f.showToggle,u=m===void 0?!0:m,h=f.maskConnected,c=f.tankPressure,d=f.releasePressure,p=f.defaultReleasePressure,C=f.minReleasePressure,y=f.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(t.$n,{icon:v?"air-freshener":"lock-open",selected:v,disabled:!h,onClick:function(){return x("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:h?"Yes":"No"})})}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:f.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:d===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,value:parseFloat(d),width:"65px",unit:"kPa",minValue:C,maxValue:y,onChange:function(O,b){return x("pressure",{pressure:b})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:d===y,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:d===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(_,j,n){"use strict";n.r(j),n.d(j,{TankDispenser:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.plasma,m=f.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:v?"square":"square-o",disabled:!v,onClick:function(){return x("plasma")},children:"Dispense"}),children:v}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:m?"square":"square-o",disabled:!m,onClick:function(){return x("oxygen")},children:"Dispense"}),children:m})]})})})})}},91765:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsLogBrowser:function(){return o}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=function(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=h.universal_translate,d=h.network,p=h.temp,C=h.servers,y=h.selectedServer;return(0,e.jsx)(a.p8,{width:575,height:450,children:(0,e.jsxs)(a.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",onClick:function(){return u("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:C.length===0,onClick:function(){return u("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("network")},children:d})})})}),y?(0,e.jsx)(x,{network:d,server:y,universal_translate:c}):(0,e.jsx)(g,{network:d,servers:C})]})})},g=function(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=v.network,d=v.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,icon:"search",onClick:function(){return u("scan")},children:"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,{icon:"eye",onClick:function(){return u("view",{id:p.id})},children:"View"})},p.id)})})})},x=function(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=v.network,d=v.server,p=v.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+d.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("mainmenu")},children:"Return"}),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(v){var m=(0,t.Oc)(),u=m.act,h=m.data,c=v.log,d=v.error,p=c&&c.parameters||{none:"none"},C=p.timecode,y=p.name,O=p.race,b=p.job,I=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:O}),(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:[y," (Job: ",b,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},67702:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsMachineBrowser:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.network,u=v.temp,h=v.machinelist,c=v.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)(t.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(t.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(t.$n,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(t.az,{clear:"both"})]}):null,(0,e.jsx)(t.wn,{title:"Network Control",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return f("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:h.length===0,onClick:function(){return f("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return f("network")},children:m})})})}),h&&h.length?(0,e.jsx)(o,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:h,showBack:c}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return f("scan")},children:"Probe Network"})})]})})},o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=g.list,u=g.title,h=g.showBack;return(0,e.jsxs)(t.wn,{title:u,buttons:h&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:m.length?m.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("view",{id:c.id})},children:"View"})},c.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},42639:function(_,j,n){"use strict";n.r(j),n.d(j,{TelecommsMultitoolMenu:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=n(55789),o=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,y=u.shadowlink,O=u.options,b=u.linked,I=u.filter,P=u.multitool,S=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)(a.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:O})]})})},g=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,y=u.shadowlink,O=u.options,b=u.linked,I=u.filter,P=u.multitool,S=u.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return m("toggle")},children:c?"On":"Off"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Identification String",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("id")},children:d})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("network")},children:p})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),y?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):null,P?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[S?(0,e.jsxs)(e.Fragment,{children:[S.name," (",S.id,")"]}):null,(0,e.jsx)(t.$n,{color:S?"green":null,icon:S?"link":"plus",onClick:S?function(){return m("link")}:function(){return m("buffer")},children:S?"Link ("+S.id+")":"Add Machine"}),S?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return m("flush")},children:"Flush"}):null]}):null]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:b.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.ref+" "+M.name+" ("+M.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return m("unlink",{unlink:M.index})}})},M.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("freq")},children:"Add Frequency"}),children:[I.map(function(M){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return m("delete",{delete:M.freq})},children:M.name+" GHz"},M.index)}),!I||I.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):null]})]})},x=function(f){var v=(0,s.Oc)(),m=v.act,u=v.data,h=f.options,c=h.use_listening_level,d=h.use_broadcasting,p=h.use_receiving,C=h.listening_level,y=h.broadcasting,O=h.receiving,b=h.use_change_freq,I=h.change_freq,P=h.use_broadcast_range,S=h.use_receive_range,M=h.range,A=h.minRange,R=h.maxRange;return!c&&!d&&!p&&!b&&!P&&!S?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[c?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:C?"lock-closed":"lock-open",onClick:function(){return m("change_listening")},children:C?"Yes":"No"})}):null,d?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:y,onClick:function(){return m("broadcast")},children:y?"Yes":"No"})}):null,p?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:O,onClick:function(){return m("receive")},children:O?"Yes":"No"})}):null,b?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!I,onClick:function(){return m("change_freq")},children:I?"Yes ("+I+")":"No"})}):null,P||S?(0,e.jsx)(t.Ki.Item,{label:(P?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{value:M,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return m("range",{range:N})}})}):null]})})}},50624:function(_,j,n){"use strict";n.r(j),n.d(j,{Teleporter:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.locked_name,m=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)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return x("test_fire")},children:h?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},children:c?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:m?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},680:function(_,j,n){"use strict";n.r(j),n.d(j,{TelesciConsole:function(){return o},TelesciConsoleContent:function(){return x}});var e=n(20462),s=n(7402),t=n(7081),r=n(16754),a=n(2738),o=function(f){var v=(0,t.Oc)(),m=v.act,u=v.data,h=u.noTelepad;return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.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 v=(0,t.Oc)(),m=v.act,u=v.data,h=u.insertedGps,c=u.rotation,d=u.currentZ,p=u.cooldown,C=u.crystalCount,y=u.maxCrystals,O=u.maxPossibleDistance,b=u.maxAllowedDistance,I=u.distance,P=u.tempMsg,S=u.sectorOptions,M=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!h,onClick:function(){return m("ejectGPS")},children:"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:P})}),(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 m("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+b+" m"},minValue:0,maxValue:b,step:1,stepPixelSize:4,onDrag:function(A,R){return m("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(S).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:d===A,onClick:function(){return m("setz",{setz:A})},children:A},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return m("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return m("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return m("recal")},children:"Recalibrate"})]})]}),M&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[M.src_x,", ",M.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[M.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[M.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",y]})]})}},17654:function(_,j,n){"use strict";n.r(j),n.d(j,{TextInputModal:function(){return m},removeAllSkiplines:function(){return v},sanitizeMultiline:function(){return f}});var e=n(20462),s=n(87239),t=n(61358),r=n(7081),a=n(16754),o=n(2738),g=n(5335),x=n(44149),f=function(h){return h.replace(/(\n|\r\n){3,}/,"\n\n")},v=function(h){return h.replace(/[\r\n]+/,"")},m=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,y=p.max_length,O=p.message,b=O===void 0?"":O,I=p.multiline,P=p.placeholder,S=P===void 0?"":P,M=p.timeout,A=p.title,R=(0,t.useState)(S||""),K=R[0],N=R[1],k=function(J){if(J!==K){var X=I?f(J):v(J);N(X)}},F=I||K.length>=30,W=135+(b.length>30?Math.ceil(b.length/4):0)+(F?75:0)+(b.length&&C?5:0);return(0,e.jsxs)(o.p8,{title:A,width:325,height:W,children:[M&&(0,e.jsx)(x.Loader,{value:M}),(0,e.jsx)(o.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!F||!J.shiftKey)&&d("submit",{entry:K}),J.key===s._.Escape&&d("cancel")},children:(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.az,{color:"label",children:b})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k},A)}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+y})})]})})})]})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.max_length,y=p.multiline,O=h.input,b=h.onType,I=y||O.length>=30;return(0,e.jsx)(a.fs,{autoFocus:!0,autoSelect:!0,height:y||O.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return d("cancel")},onEnter:function(P){I&&P.shiftKey||(P.preventDefault(),d("submit",{entry:O}))},onChange:function(P,S){return b(S)},onInput:function(P,S){return b(S)},placeholder:"Type something...",value:O})}},66307:function(_,j,n){"use strict";n.r(j),n.d(j,{TimeClock:function(){return g}});var e=n(20462),s=n(4089),t=n(7081),r=n(16754),a=n(2738),o=n(67707),g=function(x){var f=(0,t.Oc)(),v=f.act,m=f.data,u=m.department_hours,h=m.user_name,c=m.card,d=m.assignment,p=m.job_datum,C=m.allow_change_job,y=m.job_choices;return(0,e.jsx)(a.p8,{width:500,height:520,children:(0,e.jsxs)(a.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(O){return(0,e.jsxs)(r.Ki.Item,{label:O,color:u[O]>6?"good":u[O]>1?"average":"bad",children:[(0,s.Mg)(u[O],1)," ",u[O]===1?"hour":"hours"]},O)})})})]}),(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 v("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)(o.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 v("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(y).length&&Object.keys(y).map(function(O){var b=y[O];return b.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return v("switch-to-onduty-rank",{"switch-to-onduty-rank":O,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(_,j,n){"use strict";n.r(j),n.d(j,{TraitDescription:function(){return g},TraitSelection:function(){return o},TraitTutorial:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(x){var f=(0,s.Oc)(),v=f.act,m=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)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(o,{})})})})},o=function(x){var f=(0,s.Oc)(),v=f.act,m=f.data,u=m.names,h=m.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(t.tU.Tab,{selected:c===h,onClick:function(){return v("select_trait",{name:c})},children:(0,e.jsx)(t.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:h&&(0,e.jsx)(t.wn,{title:h,children:(0,e.jsx)(g,{name:h})})})]})},g=function(x){var f=(0,s.Oc)(),v=f.act,m=f.data,u=x.name,h=m.descriptions,c=m.categories,d=m.tutorials;return(0,e.jsxs)(t.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]}})]})}},67159:function(_,j,n){"use strict";n.r(j),n.d(j,{TransferValve:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.tank_one,m=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)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:h?"unlock":"lock",disabled:!v||!m,onClick:function(){return x("toggle")},children:h?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!u,onClick:function(){return x("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:u?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!u,onClick:function(){return x("remove_device")},children:u})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:v?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!v,onClick:function(){return x("tankone")},children:v})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.wn,{title:"Attachment Two",children:(0,e.jsx)(t.Ki,{children:m?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!m,onClick:function(){return x("tanktwo")},children:m})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},28234:function(_,j,n){"use strict";n.r(j),n.d(j,{TurbineControl:function(){return o}});var e=n(20462),s=n(7081),t=n(16754),r=n(41242),a=n(2738),o=function(g){var x=(0,s.Oc)(),f=x.act,v=x.data,m=v.connected,u=v.compressor_broke,h=v.turbine_broke,c=v.broken,d=v.door_status,p=v.online,C=v.power,y=v.rpm,O=v.temp;return(0,e.jsx)(a.p8,{width:520,height:440,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return f("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:p?"good":"bad",children:p&&!u&&!h?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||h&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:p,onClick:function(){return f(p?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:d,onClick:function(){return f("doors")},children:d?"Closed":"Open"})})]})}),(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(t.zv,{value:y})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(t.zv,{value:O})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(t.zv,{format:function(b){return(0,r.d5)(b)},value:Number(C)})})]})})]})})}},61063:function(_,j,n){"use strict";n.r(j),n.d(j,{Turbolift:function(){return a}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a=function(o){var g=(0,s.Oc)(),x=g.act,f=g.data,v=f.floors,m=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)(t.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:m?"door-open":"door-closed",selected:m&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")},children:m?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return x("emergency_stop")},children:"Emergency Stop"})]}),children:[!u||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:v.map(function(h){return(0,e.jsx)(t.so.Item,{basis:"100%",children:(0,e.jsxs)(t.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:h.label||"Floor #"+h.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$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)(t.so.Item,{basis:"50%",grow:1,children:h.name})]})},h.id)})})]})})})}},28657:function(_,j,n){"use strict";n.r(j),n.d(j,{GenericUplink:function(){return h},Uplink:function(){return v}});var e=n(20462),s=n(61282),t=n(61358),r=n(7081),a=n(16754),o=n(41242),g=n(2738);function x(){return x=Object.assign||function(d){for(var p=1;p").map(function(I){return(0,e.jsx)(a.az,{children:I},I)})})]})})||b.map(function(I){return(0,e.jsx)(a.$n,{icon:"eye",fluid:!0,onClick:function(){return C("view_exploits",{id:I.id})},children:I.name},I.id)})})},h=function(d){var p,C,y=d.currencyAmount,O=y===void 0?0:y,b=d.currencySymbol,I=b===void 0?"\u20AE":b,P=(0,r.Oc)(),S=P.act,M=P.data,A=M.compactMode,R=M.lockable,K=M.categories,N=K===void 0?[]:K,k=(0,t.useState)(""),F=k[0],W=k[1],J=(0,t.useState)((p=N[0])==null?void 0:p.name),X=J[0],Q=J[1],Z=(0,s.XZ)(F,function(H){return H.name+H.desc}),G=F.length>0&&N.flatMap(function(H){return H.items||[]}).filter(Z).filter(function(H,V){return V0?"good":"bad",children:[(0,o.up)(O)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(a.pd,{autoFocus:!0,value:F,onInput:function(H,V){return W(V)},mx:1}),(0,e.jsx)(a.$n,{icon:A?"list":"info",onClick:function(){return S("compact_toggle")},children:A?"Compact":"Detailed"}),!!R&&(0,e.jsx)(a.$n,{icon:"lock",onClick:function(){return S("lock")},children:"Lock"})]}),children:(0,e.jsxs)(a.so,{children:[F.length===0&&(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.tU,{vertical:!0,children:N.map(function(H){var V;return(0,e.jsxs)(a.tU.Tab,{selected:H.name===X,onClick:function(){return Q(H.name)},children:[H.name," (",((V=H.items)==null?void 0:V.length)||0,")"]},H.name)})})}),(0,e.jsxs)(a.so.Item,{grow:1,basis:0,children:[G.length===0&&(0,e.jsx)(a.IC,{children:F.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:F.length>0||A,currencyAmount:O,currencySymbol:I,items:G})]})]})})},c=function(d){var p=d.compactMode,C=d.currencyAmount,y=d.currencySymbol,O=(0,r.Oc)().act,b=(0,t.useState)({}),I=b[0],P=b[1],S=I&&I.cost||0,M=d.items.map(function(A){var R=I&&I.name!==A.name,K=C-S=0)&&(k[W]=K[W]);return k}var v=[null,"average","bad"],m={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,a.Oc)(),k=N.act,F=N.data,W=(0,r.useState)(0),J=W[0],X=W[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:[F.unsaved_changes&&(0,e.jsx)(o.IC,{danger:!0,children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return k("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")},children:"Save Prefs & Export Selected Belly"})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:J===0,onClick:function(){return X(0)},children:["Bellies",(0,e.jsx)(o.In,{name:"list",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{selected:J===1,onClick:function(){return X(1)},children:["Preferences",(0,e.jsx)(o.In,{name:"user-cog",ml:.5})]})]}),Q[J]||"Error"]})})},c=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.inside,J=W.absorbed,X=W.belly_name,Q=W.belly_mode,Z=W.desc,G=W.pred,H=W.contents,V=W.ref;return X?(0,e.jsxs)(o.wn,{title:"Inside",children:[(0,e.jsxs)(o.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(o.az,{color:"yellow",inline:!0,children:[G,"'s"]}),"\xA0",(0,e.jsx)(o.az,{color:"red",inline:!0,children:X}),"\xA0",(0,e.jsx)(o.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(o.az,{color:m[Q],inline:!0,children:u[Q]}),"\xA0",(0,e.jsx)(o.az,{color:"label",children:Z}),H.length&&(0,e.jsx)(o.Nt,{title:"Belly Contents",children:(0,e.jsx)(M,{contents:H,belly:V})})||"There is nothing else around you."]}):(0,e.jsx)(o.wn,{title:"Inside",children:"You aren't inside anyone."})},d=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.our_bellies,J=F.selected;return(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{shrink:!0,children:(0,e.jsx)(o.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(o.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(o.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(o.cG,{}),W.map(function(X){return(0,e.jsx)(o.tU.Tab,{selected:X.selected,textColor:m[X.digest_mode],onClick:function(){return k("bellypick",{bellypick:X.ref})},children:(0,e.jsxs)(o.az,{inline:!0,textColor:X.selected&&m[X.digest_mode]||null,children:[X.name," (",X.contents,")"]})},X.name)})]})})}),(0,e.jsx)(o.so.Item,{grow:!0,children:J&&(0,e.jsx)(o.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.contents,W=(0,r.useState)(0),J=W[0],X=W[1],Q=[];return Q[0]=(0,e.jsx)(C,{belly:k}),Q[1]=(0,e.jsx)(y,{belly:k}),Q[2]=(0,e.jsx)(O,{belly:k}),Q[3]=(0,e.jsx)(I,{belly:k}),Q[4]=(0,e.jsx)(P,{belly:k}),Q[5]=(0,e.jsx)(S,{belly:k}),Q[6]=(0,e.jsx)(M,{outside:!0,contents:F}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{selected:J===0,onClick:function(){return X(0)},children:"Controls"}),(0,e.jsx)(o.tU.Tab,{selected:J===1,onClick:function(){return X(1)},children:"Descriptions"}),(0,e.jsx)(o.tU.Tab,{selected:J===2,onClick:function(){return X(2)},children:"Options"}),(0,e.jsx)(o.tU.Tab,{selected:J===3,onClick:function(){return X(3)},children:"Sounds"}),(0,e.jsx)(o.tU.Tab,{selected:J===4,onClick:function(){return X(4)},children:"Visuals"}),(0,e.jsx)(o.tU.Tab,{selected:J===5,onClick:function(){return X(5)},children:"Interactions"}),(0,e.jsxs)(o.tU.Tab,{selected:J===6,onClick:function(){return X(6)},children:["Contents (",F.length,")"]})]}),Q[J]||"Error"]})},C=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.belly_name,W=k.mode,J=k.item_mode,X=k.addons;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(o.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},children:F})}),(0,e.jsx)(o.Ki.Item,{label:"Mode",children:(0,e.jsx)(o.$n,{color:m[W],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},children:W})}),(0,e.jsxs)(o.Ki.Item,{label:"Mode Addons",children:[X.length&&X.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},children:J})}),(0,e.jsx)(o.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(o.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})},children:"Delete Belly"})})]})},y=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.verb,W=k.release_verb,J=k.desc,X=k.absorbed_desc;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Description",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(o.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:X}),(0,e.jsx)(o.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},children:F})}),(0,e.jsx)(o.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},children:W})}),(0,e.jsxs)(o.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},children:"Examine Message (when full)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},children:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},children:"Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},children:"Struggle Message (inside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},children:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},children:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},children:"Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},children:"Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},children:"Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},children:"Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},children:"Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},children:"Escape Item Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},children:"Escape Item Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},children:"Escape Item Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},children:"Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},children:"Escape Fail Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},children:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},children:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},children:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},children:"Absorbed Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},children:"Absorbed Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},children:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},children:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},children:"Primary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},children:"Primary Transfer Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},children:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},children:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},children:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},children:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},children:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},children:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},children:"Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},children:"Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},children:"Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},children:"Absorb Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},children:"Unabsorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},children:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},children:"Idle Messages (Hold)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},children:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},children:"Idle Messages (Digest)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},children:"Idle Messages (Absorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},children:"Idle Messages (Unabsorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},children:"Idle Messages (Drain)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},children:"Idle Messages (Heal)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},children:"Idle Messages (Size Steal)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},children:"Idle Messages (Shrink)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},children:"Idle Messages (Grow)"}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},children:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(o.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(o.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},children:"Reset Messages"})})]})},O=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.host_mobtype,J=W.is_cyborg,X=W.is_vore_simple_mob,Q=K.belly,Z=Q.can_taste,G=Q.nutrition_percent,H=Q.digest_brute,V=Q.digest_burn,q=Q.digest_oxy,ie=Q.digest_tox,te=Q.digest_clone,ce=Q.bulge_size,ue=Q.display_absorbed_examine,me=Q.shrink_grow_size,xe=Q.emote_time,ve=Q.emote_active,ge=Q.contaminates,we=Q.contaminate_flavor,Qe=Q.contaminate_color,Me=Q.egg_type,Pe=Q.selective_preference,Le=Q.save_digest_mode,vn=Q.eating_privacy_local,gn=Q.silicon_belly_overlay_preference,un=Q.belly_mob_mult,ln=Q.belly_item_mult,He=Q.belly_overall_mult,_e=Q.drainmode;return(0,e.jsxs)(o.so,{wrap:"wrap",children:[(0,e.jsxs)(o.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,children:Z?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:ge?"toggle-on":"toggle-off",selected:ge,children:ge?"Yes":"No"})}),ge&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",children:we})}),(0,e.jsx)(o.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",children:(0,t.ZH)(Qe)})})]})||null,(0,e.jsx)(o.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},children:G+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},children:ce*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ue?"toggle-on":"toggle-off",selected:ue,children:ue?"True":"False"})}),(0,e.jsx)(o.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},children:(0,t.ZH)(vn)})}),(0,e.jsx)(o.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Le?"toggle-on":"toggle-off",selected:Le,children:Le?"True":"False"})})]}),(0,e.jsx)(b,{belly:Q})]}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ve?"toggle-on":"toggle-off",selected:ve,children:ve?"Active":"Inactive"})}),(0,e.jsx)(o.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},children:xe+" seconds"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},children:H})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},children:V})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},children:q})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},children:ie})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},children:te})}),(0,e.jsx)(o.Ki.Item,{label:"Drain Finishing Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_drainmode"})},children:_e})}),(0,e.jsx)(o.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},children:me*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",children:(0,t.ZH)(Me)})}),(0,e.jsx)(o.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},children:(0,t.ZH)(Pe)})})]})})]})},b=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.host_mobtype,J=W.is_cyborg,X=W.is_vore_simple_mob,Q=K.belly,Z=Q.silicon_belly_overlay_preference,G=Q.belly_mob_mult,H=Q.belly_item_mult,V=Q.belly_overall_mult;return J?(0,e.jsx)(o.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},children:(0,t.ZH)(Z)})}),(0,e.jsx)(o.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},children:G})}),(0,e.jsx)(o.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},children:H})}),(0,e.jsx)(o.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},children:V})})]})}):X?(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})}):(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})})},I=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.is_wet,W=k.wet_loop,J=k.fancy,X=k.sound,Q=k.release_sound;return(0,e.jsx)(o.so,{wrap:"wrap",children:(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:F?"toggle-on":"toggle-off",selected:F,children:F?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:W?"toggle-on":"toggle-off",selected:W,children:W?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,children:J?"Yes":"No"})}),(0,e.jsxs)(o.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},children:X}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},children:Q}),(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},P=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.belly_fullscreen,W=k.possible_fullscreens,J=k.disable_hud,X=k.belly_fullscreen_color,Q=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,G=k.mapRef,H=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(o.so,{direction:"row",children:[(0,e.jsx)(o.az,{backgroundColor:X,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(o.az,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(o.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(o.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:H?"toggle-on":"toggle-off",selected:H,children:H?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},children:"Preview"})}),(0,e.jsx)(o.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},children:"Clear"})})]})}),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.wn,{title:"Vore FX",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,children:J?"Yes":"No"})})})}),(0,e.jsxs)(o.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(o.$n,{fluid:!0,selected:F===""||F===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(W).map(function(V,q){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(o.$n,{width:"256px",height:"256px",selected:V===F,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:V})},children:(0,e.jsx)(o.az,{className:(0,s.Ly)(["vore240x240",V]),style:{transform:"translate(0%, 4%)"}})},V)},q)})]})]})]})},S=function(K){var N=(0,a.Oc)().act,k=K.belly,F=k.escapable,W=k.interacts;return(0,e.jsx)(o.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:F?"toggle-on":"toggle-off",selected:F,children:F?"Interactions On":"Interactions Off"}),children:F?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})},children:W.escapechance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})},children:W.escapechance_absorbed+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})},children:W.escapetime/10+"s"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})},children:W.transferchance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})},children:W.transferlocation?W.transferlocation:"Disabled"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})},children:W.transferchance_secondary+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})},children:W.transferlocation_secondary?W.transferlocation_secondary:"Disabled"})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})},children:W.absorbchance+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})},children:W.digestchance+"%"})})]}):"These options only display while interactions are turned on."})},M=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.show_pictures,J=K.contents,X=K.belly,Q=K.outside,Z=Q===void 0?!1:Q;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,W&&(0,e.jsx)(o.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(G){return(0,e.jsxs)(o.so.Item,{basis:"33%",children:[(0,e.jsx)(o.$n,{width:"64px",color:G.absorbed?"purple":v[G.stat],style:{verticalAlign:"middle",marginRight:"5px",borderRadius:"20px"},onClick:function(){return k(G.outside?"pick_from_outside":"pick_from_inside",{pick:G.ref,belly:X})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+G.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),G.name]},G.name)})})||(0,e.jsx)(o.Ki,{children:J.map(function(G){return(0,e.jsx)(o.Ki.Item,{label:G.name,children:(0,e.jsx)(o.$n,{fluid:!0,mt:-1,mb:-1,color:G.absorbed?"purple":v[G.stat],onClick:function(){return k(G.outside?"pick_from_outside":"pick_from_inside",{pick:G.ref,belly:X})},children:"Interact"})},G.ref)})})]})},A=function(K){var N=(0,a.Oc)(),k=N.act,F=N.data,W=F.prefs,J=W.digestable,X=W.devourable,Q=W.resizable,Z=W.feeding,G=W.absorbable,H=W.digest_leave_remains,V=W.allowmobvore,q=W.permit_healbelly,ie=W.show_vore_fx,te=W.can_be_drop_prey,ce=W.can_be_drop_pred,ue=W.allow_inbelly_spawning,me=W.allow_spontaneous_tf,xe=W.step_mechanics_active,ve=W.pickup_mechanics_active,ge=W.noisy,we=W.drop_vore,Qe=W.stumble_vore,Me=W.slip_vore,Pe=W.throw_vore,Le=W.food_vore,vn=W.digest_pain,gn=W.nutrition_message_visible,un=W.weight_message_visible,ln=W.eating_privacy_global,He=F.show_pictures,_e={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:G,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:X,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:V,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:q,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:te,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:ce,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:Me,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:Qe,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:Pe,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:Le,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"}},toggle_digest_pain:{action:"toggle_digest_pain",test:vn,tooltip:{main:"Allows for pain messages to show when being digested. Can be toggled off to disable pain messages.",enable:"Click here to allow for digestion pain.",disable:"Click here to disable digestion pain."},content:{enabled:"Digestion Pain Enabled",disabled:"Digestion Pain Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:ue,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:ge,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:ie,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:H,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:gn,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:un,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:ln,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)(o.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(o.$n,{icon:"eye",selected:He,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",He?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.digestion})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.absorbable})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.devour})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.mobvore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.feed})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.dropnom_prey})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.dropnom_pred})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.toggle_drop_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.toggle_slip_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.toggle_stumble_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.toggle_throw_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.toggle_food_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.toggle_digest_pain})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.inbelly_spawning})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.noisy})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.resize})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.steppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:_e.remains,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:_e.spontaneous_tf})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,onClick:function(){return k("switch_selective_mode_pref")},children:"Selective Mode Preference"})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:_e.eating_privacy_global})})]}),(0,e.jsx)(o.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"grin-tongue",onClick:function(){return k("setflavor")},children:"Set Taste"})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"wind",onClick:function(){return k("setsmell")},children:"Set Smell"})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},icon:"flask",fluid:!0,children:"Set Nutrition Examine Message"})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},icon:"weight-hanging",fluid:!0,children:"Set Weight Examine Message"})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:_e.examine_nutrition})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:_e.examine_weight})})]})}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsx)(o.so.Item,{basis:"49%",children:(0,e.jsx)(o.$n,{fluid:!0,icon:"save",onClick:function(){return k("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"undo",onClick:function(){return k("reloadprefs")},children:"Reload Prefs"})})]})})]})},R=function(K){var N=(0,a.Oc)().act,k=K.spec,F=f(K,["spec"]),W=k.action,J=k.test,X=k.tooltip,Q=k.content;return(0,e.jsx)(o.$n,x({onClick:function(){return N(W)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:X.main+" "+(J?X.disable:X.enable)},F,{children:J?Q.enabled:Q.disabled}))}},84580:function(_,j,n){"use strict";n.r(j),n.d(j,{VorePanelExport:function(){return u}});var e=n(20462),s=n(7081),t=n(16754),r=n(2738),a={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'},o={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,y=c.absorbed_desc,O=c.vore_verb,b=c.release_verb,I=c.mode,P=c.addons,S=c.item_mode,M=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,F=c.contaminates,W=c.contamination_flavor,J=c.contamination_color,X=c.nutrition_percent,Q=c.bulge_size,Z=c.display_absorbed_examine,G=c.save_digest_mode,H=c.emote_active,V=c.emote_time,q=c.shrink_grow_size,ie=c.egg_type,te=c.selective_preference,ce=c.struggle_messages_outside,ue=c.struggle_messages_inside,me=c.absorbed_struggle_messages_outside,xe=c.absorbed_struggle_messages_inside,ve=c.escape_attempt_messages_owner,ge=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Qe=c.escape_messages_prey,Me=c.escape_messages_outside,Pe=c.escape_item_messages_owner,Le=c.escape_item_messages_prey,vn=c.escape_item_messages_outside,gn=c.escape_fail_messages_owner,un=c.escape_fail_messages_prey,ln=c.escape_attempt_absorbed_messages_owner,He=c.escape_attempt_absorbed_messages_prey,_e=c.escape_absorbed_messages_owner,De=c.escape_absorbed_messages_prey,Ne=c.escape_absorbed_messages_outside,Te=c.escape_fail_absorbed_messages_owner,We=c.escape_fail_absorbed_messages_prey,$e=c.primary_transfer_messages_owner,Xe=c.primary_transfer_messages_prey,Cn=c.secondary_transfer_messages_owner,Dn=c.secondary_transfer_messages_prey,On=c.digest_chance_messages_owner,Tn=c.digest_chance_messages_prey,dn=c.absorb_chance_messages_owner,Ve=c.absorb_chance_messages_prey,Ce=c.digest_messages_owner,Ze=c.digest_messages_prey,pn=c.absorb_messages_owner,_n=c.absorb_messages_prey,$n=c.unabsorb_messages_owner,rt=c.unabsorb_messages_prey,Wn=c.examine_messages,ht=c.examine_messages_absorbed,Lt=c.emotes_digest,Yt=c.emotes_hold,Qt=c.emotes_holdabsorbed,gi=c.emotes_absorb,ji=c.emotes_heal,yi=c.emotes_drain,Vr=c.emotes_steal,Xr=c.emotes_egg,Gr=c.emotes_shrink,Zi=c.emotes_grow,Mt=c.emotes_unabsorb,Ci=c.is_wet,Or=c.wet_loop,pt=c.fancy_vore,gt=c.vore_sound,cr=c.release_sound,br=c.disable_hud,Ei=c.escapable,Za=c.escapechance,Ja=c.escapechance_absorbed,qa=c.escapetime,kt=c.transferchance,Ji=c.transferlocation,qi=c.transferchance_secondary,eo=c.transferlocation_secondary,ea=c.absorbchance,na=c.digestchance,ae="";return ae+='

',ae+='

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

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

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

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

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

',ae+="
",ae+="== Messages ==
",ae+='
',ae+='
",ae+='
',ae+='
',ae+='
',ve==null||ve.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',ge==null||ge.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',vn==null||vn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',gn==null||gn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',un==null||un.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',ln==null||ln.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',_e==null||_e.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',De==null||De.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Ne==null||Ne.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Te==null||Te.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',$e==null||$e.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Xe==null||Xe.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Cn==null||Cn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Dn==null||Dn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',On==null||On.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Tn==null||Tn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',dn==null||dn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Ve==null||Ve.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',ue==null||ue.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',me==null||me.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',xe==null||xe.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Ce==null||Ce.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Ze==null||Ze.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',pn==null||pn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',_n==null||_n.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',$n==null||$n.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',rt==null||rt.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',Wn==null||Wn.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+='
',ht==null||ht.forEach(function(Be){ae+=Be+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =

",ae+="

Idle Messages (Hold):

",Yt==null||Yt.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",Qt==null||Qt.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",Lt==null||Lt.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",gi==null||gi.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",Mt==null||Mt.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",yi==null||yi.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",ji==null||ji.forEach(function(Be){ae+=Be+"
"}),ae+="


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

",Vr==null||Vr.forEach(function(Be){ae+=Be+"
"}),ae+="


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

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


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

",Zi==null||Zi.forEach(function(Be){ae+=Be+"
"}),ae+="


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

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


",ae+="


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

',ae+='

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

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Fleshy Belly: '+(Ci?'Yes':'No')+"
  • ",ae+='
  • Internal Loop: '+(Or?'Yes':'No')+"
  • ",ae+='
  • Use Fancy Sounds: '+(pt?'Yes':'No')+"
  • ",ae+='
  • Vore Sound: '+gt+"
  • ",ae+='
  • Release Sound: '+cr+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

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

',ae+='

",ae+='
',ae+='
',ae+="Belly Interactions ("+(Ei?'Enabled':'Disabled')+")",ae+='
    ',ae+='
  • Escape Chance: '+Za+"%
  • ",ae+='
  • Escape Chance: '+Ja+"%
  • ",ae+='
  • Escape Time: '+qa/10+"s
  • ",ae+='
  • Transfer Chance: '+kt+"%
  • ",ae+='
  • Transfer Location: '+Ji+"
  • ",ae+='
  • Secondary Transfer Chance: '+qi+"%
  • ",ae+='
  • Secondary Transfer Location: '+eo+"
  • ",ae+='
  • Absorb Chance: '+ea+"%
  • ",ae+='
  • Digest Chance: '+na+"%
  • ",ae+="
",ae+="
",ae+="
",ae},v=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 y=String(c.getMonth()+1);y.length<2&&(y="0"+y);var O=String(c.getFullYear());return" "+O+"-"+y+"-"+C+" ("+d+" "+p+")"},m=function(c){var d=(0,s.Oc)(),p=d.act,C=d.data,y=C.db_version,O=C.db_repo,b=C.mob_name,I=C.bellies,P=v(),S=b+P+c,M;if(c===".html"){var A="";M=new Blob([''+I.length+" Exported Bellies (DB_VER: "+O+"-"+y+')'+A+'

Bellies of '+b+'

Generated on: '+P+'

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