diff --git a/code/datums/supplypacks/contraband.dm b/code/datums/supplypacks/contraband.dm index bc86a7f763..a2b9fcbd3b 100644 --- a/code/datums/supplypacks/contraband.dm +++ b/code/datums/supplypacks/contraband.dm @@ -101,7 +101,7 @@ /datum/supply_pack/supply/stolen name = "Stolen supply crate" contains = list(/obj/item/stolenpackage = 1) - cost = 150 + cost = 1000 // YW Edit containertype = /obj/structure/closet/crate containername = "Stolen crate" contraband = 1 diff --git a/code/modules/client/preference_setup/loadout/loadout_eyes.dm b/code/modules/client/preference_setup/loadout/loadout_eyes.dm index bd8413b3dd..14195953b0 100644 --- a/code/modules/client/preference_setup/loadout/loadout_eyes.dm +++ b/code/modules/client/preference_setup/loadout/loadout_eyes.dm @@ -117,7 +117,7 @@ display_name = "Optical Meson Scanners selection" description = "Select from a range of meson-projection eyewear. Note: not all of these items are atmospherically sealed." path = /obj/item/clothing/glasses/meson - allowed_roles = list("Engineer","Chief Engineer","Atmospheric Technician", "Scientist", "Research Director") + allowed_roles = list("Engineer","Chief Engineer","Atmospheric Technician", "Scientist", "Research Director", "Explorer", "Pathfinder", "Field Medic") // YW EDIT Field medic, Explo /datum/gear/eyes/meson/New() ..() diff --git a/code/modules/client/preference_setup/loadout/loadout_shoes.dm b/code/modules/client/preference_setup/loadout/loadout_shoes.dm index b22e2151ba..e45b65e22b 100644 --- a/code/modules/client/preference_setup/loadout/loadout_shoes.dm +++ b/code/modules/client/preference_setup/loadout/loadout_shoes.dm @@ -228,7 +228,7 @@ /datum/gear/shoes/boots/winter/medical display_name = "medical winter boots" path = /obj/item/clothing/shoes/boots/winter/medical - allowed_roles = list("Medical Doctor","Chief Medical Officer","Chemist","Paramedic","Geneticist", "Psychiatrist") + allowed_roles = list("Medical Doctor","Chief Medical Officer","Chemist","Paramedic","Geneticist", "Psychiatrist", "Field Medic") // YW EDIT Field medic /datum/gear/shoes/boots/winter/mining display_name = "mining winter boots" diff --git a/code/modules/vehicles/Securitrain_vr.dm b/code/modules/vehicles/Securitrain_vr.dm index 14abfe54fd..dfa88ff47f 100644 --- a/code/modules/vehicles/Securitrain_vr.dm +++ b/code/modules/vehicles/Securitrain_vr.dm @@ -200,7 +200,7 @@ if(is_train_head()) if(direction == reverse_direction(dir) && tow) return 0 - if(vehicle_move(get_step(src, direction))) // YW Edit - pr #1294 + if(Move(get_step(src, direction))) // YW Edit - pr #1294 return 1 return 0 else diff --git a/code/modules/vehicles/bike.dm b/code/modules/vehicles/bike.dm index 1bc53a9e6f..783ed376d3 100644 --- a/code/modules/vehicles/bike.dm +++ b/code/modules/vehicles/bike.dm @@ -129,7 +129,7 @@ /obj/vehicle/bike/relaymove(mob/user, direction) if(user != load || !on) return 0 - if(vehicle_move(get_step(src, direction))) // YW Edit - pr #1294 + if(Move(get_step(src, direction))) return 1 return 0 diff --git a/code/modules/vehicles/cargo_train.dm b/code/modules/vehicles/cargo_train.dm index 5ee30abc7a..05ff17a8d9 100644 --- a/code/modules/vehicles/cargo_train.dm +++ b/code/modules/vehicles/cargo_train.dm @@ -189,7 +189,7 @@ if(is_train_head()) if(direction == reverse_direction(dir) && tow) return 0 - if(vehicle_move(get_step(src, direction))) // YW Edit - pr #1294 + if(Move(get_step(src, direction))) // YW Edit - pr #1294 return 1 return 0 else diff --git a/code/modules/vehicles/vehicle.dm b/code/modules/vehicles/vehicle.dm index 169130fba9..7aa275412f 100644 --- a/code/modules/vehicles/vehicle.dm +++ b/code/modules/vehicles/vehicle.dm @@ -92,13 +92,6 @@ if(load && !(load in buckled_mobs) && !istype(load, /datum/vehicle_dummy_load)) load.forceMove(loc) -//YW ADDITION: start - pr #1294 -/obj/vehicle/Move(var/newloc, var/direction, var/movetime) - // NOTICE - do not put checks here, put them in vehicle_move() otherwise you will break falling and other forced movements! - // as well, vehicles should call vehicle_move() instead, so they do their checks... - . = ..() -//YW ADDITION: end - /obj/vehicle/attackby(obj/item/weapon/W as obj, mob/user as mob) if(istype(W, /obj/item/weapon/hand_labeler)) return diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 69e1556490..865a202eed 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,4 +1,4 @@ -(function(){(function(){var wu={49055:function(I,g,n){"use strict";/** +(function(){(function(){var Uu={75614:function(y,h,n){"use strict";/** * @license React * react-dom.production.min.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,m){return m!=null&&typeof Symbol!="undefined"&&m[Symbol.hasInstance]?!!m[Symbol.hasInstance](i):i instanceof m}function o(i){"@swc/helpers - typeof";return i&&typeof Symbol!="undefined"&&i.constructor===Symbol?"symbol":typeof i}var t=n(28277),r=n(9359);function s(i){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+i,y=1;ym}return!1}function C(i,m,y,P,K,k,J){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=P,this.attributeNamespace=K,this.mustUseProperty=y,this.propertyName=i,this.type=m,this.sanitizeURL=k,this.removeEmptyString=J}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){O[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var m=i[0];O[m]=new C(m,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){O[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){O[i]=new C(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 C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){O[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){O[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){O[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){O[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function b(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 m=i.replace(_,b);O[m]=new C(m,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var m=i.replace(_,b);O[m]=new C(m,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var m=i.replace(_,b);O[m]=new C(m,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),O.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){O[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function D(i,m,y,P){var K=O.hasOwnProperty(m)?O[m]:null;(K!==null?K.type!==0:P||!(2ae||K[J]!==k[ae]){var fe="\n"+K[J].replace(" at new "," at ");return i.displayName&&fe.includes("")&&(fe=fe.replace("",i.displayName)),fe}while(1<=J&&0<=ae);break}}}finally{le=!1,Error.prepareStackTrace=y}return(i=i?i.displayName||i.name:"")?ie(i):""}function ge(i){switch(i.tag){case 5:return ie(i.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("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 L:return"Fragment";case R:return"Portal";case F:return"Profiler";case W:return"StrictMode";case q:return"Suspense";case Z:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case G:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case Y:var m=i.render;return i=i.displayName,i||(i=m.displayName||m.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return m=i.displayName||null,m!==null?m:xe(i.type)||"Memo";case z:m=i._payload,i=i._init;try{return xe(i(m))}catch(y){}}return null}function me(i){var m=i.type;switch(i.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=m.render,i=i.displayName||i.name||"",m.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(m);case 8:return m===W?"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 m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function _e(i){switch(typeof i=="undefined"?"undefined":o(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function We(i){var m=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Ve(i){var m=We(i)?"checked":"value",y=Object.getOwnPropertyDescriptor(i.constructor.prototype,m),P=""+i[m];if(!i.hasOwnProperty(m)&&typeof y!="undefined"&&typeof y.get=="function"&&typeof y.set=="function"){var K=y.get,k=y.set;return Object.defineProperty(i,m,{configurable:!0,get:function(){return K.call(this)},set:function(ae){P=""+ae,k.call(this,ae)}}),Object.defineProperty(i,m,{enumerable:y.enumerable}),{getValue:function(){return P},setValue:function(ae){P=""+ae},stopTracking:function(){i._valueTracker=null,delete i[m]}}}}function ye(i){i._valueTracker||(i._valueTracker=Ve(i))}function Pe(i){if(!i)return!1;var m=i._valueTracker;if(!m)return!0;var y=m.getValue(),P="";return i&&(P=We(i)?i.checked?"true":"false":i.value),i=P,i!==y?(m.setValue(i),!0):!1}function nn(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(m){return i.body}}function dn(i,m){var y=m.checked;return ee({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y!=null?y:i._wrapperState.initialChecked})}function mn(i,m){var y=m.defaultValue==null?"":m.defaultValue,P=m.checked!=null?m.checked:m.defaultChecked;y=_e(m.value!=null?m.value:y),i._wrapperState={initialChecked:P,initialValue:y,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function fn(i,m){m=m.checked,m!=null&&D(i,"checked",m,!1)}function un(i,m){fn(i,m);var y=_e(m.value),P=m.type;if(y!=null)P==="number"?(y===0&&i.value===""||i.value!=y)&&(i.value=""+y):i.value!==""+y&&(i.value=""+y);else if(P==="submit"||P==="reset"){i.removeAttribute("value");return}m.hasOwnProperty("value")?Ke(i,m.type,y):m.hasOwnProperty("defaultValue")&&Ke(i,m.type,_e(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(i.defaultChecked=!!m.defaultChecked)}function He(i,m,y){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var P=m.type;if(!(P!=="submit"&&P!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+i._wrapperState.initialValue,y||m===i.value||(i.value=m),i.defaultValue=m}y=i.name,y!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,y!==""&&(i.name=y)}function Ke(i,m,y){(m!=="number"||nn(i.ownerDocument)!==i)&&(y==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+y&&(i.defaultValue=""+y))}var Me=Array.isArray;function Le(i,m,y,P){if(i=i.options,m){m={};for(var K=0;K"+m.valueOf().toString()+"",m=Mn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;m.firstChild;)i.appendChild(m.firstChild)}});function gn(i,m){if(m){var y=i.firstChild;if(y&&y===i.lastChild&&y.nodeType===3){y.nodeValue=m;return}}i.textContent=m}var Ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xe=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(i){Xe.forEach(function(m){m=m+i.charAt(0).toUpperCase()+i.substring(1),Ge[m]=Ge[i]})});function on(i,m,y){return m==null||typeof m=="boolean"||m===""?"":y||typeof m!="number"||m===0||Ge.hasOwnProperty(i)&&Ge[i]?(""+m).trim():m+"px"}function pn(i,m){i=i.style;for(var y in m)if(m.hasOwnProperty(y)){var P=y.indexOf("--")===0,K=on(y,m[y],P);y==="float"&&(y="cssFloat"),P?i.setProperty(y,K):i[y]=K}}var bn=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zn(i,m){if(m){if(bn[i]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(s(137,i));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(s(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(s(61))}if(m.style!=null&&typeof m.style!="object")throw Error(s(62))}}function tt(i,m){if(i.indexOf("-")===-1)return typeof m.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 Fn=null;function dt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Rt=null,Vt=null,Xt=null;function Ei(i){if(i=Fi(i)){if(typeof Rt!="function")throw Error(s(280));var m=i.stateNode;m&&(m=si(m),Rt(i.stateNode,i.type,m))}}function Ci(i){Vt?Xt?Xt.push(i):Xt=[i]:Vt=i}function yi(){if(Vt){var i=Vt,m=Xt;if(Xt=Vt=null,Ei(i),m)for(i=0;i>>=0,i===0?32:31-(Ga(i)/Ha|0)|0}var ur=64,uo=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 fo(i,m){var y=i.pendingLanes;if(y===0)return 0;var P=0,K=i.suspendedLanes,k=i.pingedLanes,J=y&268435455;if(J!==0){var ae=J&~K;ae!==0?P=Ii(ae):(k&=J,k!==0&&(P=Ii(k)))}else J=y&~K,J!==0?P=Ii(J):k!==0&&(P=Ii(k));if(P===0)return 0;if(m!==0&&m!==P&&!(m&K)&&(K=P&-P,k=m&-m,K>=k||K===16&&(k&4194240)!==0))return m;if(P&4&&(P|=y&16),m=i.entangledLanes,m!==0)for(i=i.entanglements,m&=P;0y;y++)m.push(i);return m}function _i(i,m,y){i.pendingLanes|=m,m!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,m=31-Mt(m),i[m]=y}function al(i,m){var y=i.pendingLanes&~m;i.pendingLanes=m,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=m,i.mutableReadLanes&=m,i.entangledLanes&=m,m=i.entanglements;var P=i.eventTimes;for(i=i.expirationTimes;0=fr),ms=" ",xl=!1;function Ea(i,m){switch(i){case"keyup":return vl.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gl(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var hr=!1;function yc(i,m){switch(i){case"compositionend":return gl(m);case"keypress":return m.which!==32?null:(xl=!0,ms);case"textInput":return i=m.data,i===ms&&xl?null:i;default:return null}}function Oc(i,m){if(hr)return i==="compositionend"||!ja&&Ea(i,m)?(i=rs(),po=Gt=gt=null,hr=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:y,offset:m-i};i=P}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=Mo(y)}}function gs(i,m){return i&&m?i===m?!0:i&&i.nodeType===3?!1:m&&m.nodeType===3?gs(i,m.parentNode):"contains"in i?i.contains(m):i.compareDocumentPosition?!!(i.compareDocumentPosition(m)&16):!1:!1}function ps(){for(var i=window,m=nn();e(m,i.HTMLIFrameElement);){try{var y=typeof m.contentWindow.location.href=="string"}catch(P){y=!1}if(y)i=m.contentWindow;else break;m=nn(i.document)}return m}function js(i){var m=i&&i.nodeName&&i.nodeName.toLowerCase();return m&&(m==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||m==="textarea"||i.contentEditable==="true")}function Es(i){var m=ps(),y=i.focusedElem,P=i.selectionRange;if(m!==y&&y&&y.ownerDocument&&gs(y.ownerDocument.documentElement,y)){if(P!==null&&js(y)){if(m=P.start,i=P.end,i===void 0&&(i=m),"selectionStart"in y)y.selectionStart=m,y.selectionEnd=Math.min(i,y.value.length);else if(i=(m=y.ownerDocument||document)&&m.defaultView||window,i.getSelection){i=i.getSelection();var K=y.textContent.length,k=Math.min(P.start,K);P=P.end===void 0?k:Math.min(P.end,K),!i.extend&&k>P&&(K=P,P=k,k=K),K=Po(y,k);var J=Po(y,P);K&&J&&(i.rangeCount!==1||i.anchorNode!==K.node||i.anchorOffset!==K.offset||i.focusNode!==J.node||i.focusOffset!==J.offset)&&(m=m.createRange(),m.setStart(K.node,K.offset),i.removeAllRanges(),k>P?(i.addRange(m),i.extend(J.node,J.offset)):(m.setEnd(J.node,J.offset),i.addRange(m)))}}for(m=[],i=y;i=i.parentNode;)i.nodeType===1&&m.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Li=null,wi=null,Do=null,Cs=!1;function Ol(i,m,y){var P=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;Cs||Li==null||Li!==nn(P)||(P=Li,"selectionStart"in P&&js(P)?P={start:P.selectionStart,end:P.selectionEnd}:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection(),P={anchorNode:P.anchorNode,anchorOffset:P.anchorOffset,focusNode:P.focusNode,focusOffset:P.focusOffset}),Do&&Lt(Do,P)||(Do=P,P=Ro(wi,"onSelect"),0Lr||(i.current=No[Lr],No[Lr]=null,Lr--)}function Pn(i,m){Lr++,No[Lr]=i.current,i.current=m}var xr={},Qn=vr(xr),Zn=vr(!1),wr=xr;function Ut(i,m){var y=i.type.contextTypes;if(!y)return xr;var P=i.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===m)return P.__reactInternalMemoizedMaskedChildContext;var K={},k;for(k in y)K[k]=m[k];return P&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=m,i.__reactInternalMemoizedMaskedChildContext=K),K}function at(i){return i=i.childContextTypes,i!=null}function Aa(){An(Zn),An(Qn)}function Ta(i,m,y){if(Qn.current!==xr)throw Error(s(168));Pn(Qn,m),Pn(Zn,y)}function ko(i,m,y){var P=i.stateNode;if(m=m.childContextTypes,typeof P.getChildContext!="function")return y;P=P.getChildContext();for(var K in P)if(!(K in m))throw Error(s(108,me(i)||"Unknown",K));return ee({},y,P)}function Wo(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xr,wr=Qn.current,Pn(Qn,i),Pn(Zn,Zn.current),!0}function Ds(i,m,y){var P=i.stateNode;if(!P)throw Error(s(169));y?(i=ko(i,m,wr),P.__reactInternalMemoizedMergedChildContext=i,An(Zn),An(Qn),Pn(Qn,i)):An(Zn),Pn(Zn,y)}var At=null,$o=!1,zo=!1;function Al(i){At===null?At=[i]:At.push(i)}function Fo(i){$o=!0,Al(i)}function Jt(){if(!zo&&At!==null){zo=!0;var i=0,m=_n;try{var y=At;for(_n=1;i>=J,K-=J,gr=1<<32-Mt(m)+K|y<jn?(nt=xn,xn=null):nt=xn.sibling;var In=Se(ve,xn,pe[jn],ke);if(In===null){xn===null&&(xn=nt);break}i&&xn&&In.alternate===null&&m(ve,xn),he=k(In,he,jn),vn===null?rn=In:vn.sibling=In,vn=In,xn=nt}if(jn===pe.length)return y(ve,xn),Dn&&qt(ve,jn),rn;if(xn===null){for(;jnjn?(nt=xn,xn=null):nt=xn.sibling;var ji=Se(ve,xn,In.value,ke);if(ji===null){xn===null&&(xn=nt);break}i&&xn&&ji.alternate===null&&m(ve,xn),he=k(ji,he,jn),vn===null?rn=ji:vn.sibling=ji,vn=ji,xn=nt}if(In.done)return y(ve,xn),Dn&&qt(ve,jn),rn;if(xn===null){for(;!In.done;jn++,In=pe.next())In=Te(ve,In.value,ke),In!==null&&(he=k(In,he,jn),vn===null?rn=In:vn.sibling=In,vn=In);return Dn&&qt(ve,jn),rn}for(xn=P(ve,xn);!In.done;jn++,In=pe.next())In=Ye(xn,ve,jn,In.value,ke),In!==null&&(i&&In.alternate!==null&&xn.delete(In.key===null?jn:In.key),he=k(In,he,jn),vn===null?rn=In:vn.sibling=In,vn=In);return i&&xn.forEach(function(xd){return m(ve,xd)}),Dn&&qt(ve,jn),rn}function Xn(ve,he,pe,ke){if(typeof pe=="object"&&pe!==null&&pe.type===L&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case A:e:{for(var rn=pe.key,vn=he;vn!==null;){if(vn.key===rn){if(rn=pe.type,rn===L){if(vn.tag===7){y(ve,vn.sibling),he=K(vn,pe.props.children),he.return=ve,ve=he;break e}}else if(vn.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===z&&tr(rn)===vn.type){y(ve,vn.sibling),he=K(vn,pe.props),he.ref=jr(ve,vn,pe),he.return=ve,ve=he;break e}y(ve,vn);break}else m(ve,vn);vn=vn.sibling}pe.type===L?(he=qi(pe.props.children,ve.mode,ke,pe.key),he.return=ve,ve=he):(ke=Gs(pe.type,pe.key,pe.props,null,ve.mode,ke),ke.ref=jr(ve,he,pe),ke.return=ve,ve=ke)}return J(ve);case R:e:{for(vn=pe.key;he!==null;){if(he.key===vn)if(he.tag===4&&he.stateNode.containerInfo===pe.containerInfo&&he.stateNode.implementation===pe.implementation){y(ve,he.sibling),he=K(he,pe.children||[]),he.return=ve,ve=he;break e}else{y(ve,he);break}else m(ve,he);he=he.sibling}he=fc(pe,ve.mode,ke),he.return=ve,ve=he}return J(ve);case z:return vn=pe._init,Xn(ve,he,vn(pe._payload),ke)}if(Me(pe))return Je(ve,he,pe,ke);if(Q(pe))return en(ve,he,pe,ke);nr(ve,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"?(pe=""+pe,he!==null&&he.tag===6?(y(ve,he.sibling),he=K(he,pe),he.return=ve,ve=he):(y(ve,he),he=dc(pe,ve.mode,ke),he.return=ve,ve=he),J(ve)):y(ve,he)}return Xn}var rr=ui(!0),Er=ui(!1),Wr={},Wt=vr(Wr),$r=vr(Wr),Xi=vr(Wr);function Cr(i){if(i===Wr)throw Error(s(174));return i}function Ra(i,m){switch(Pn(Xi,m),Pn($r,i),Pn(Wt,Wr),i=m.nodeType,i){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:Ln(null,"");break;default:i=i===8?m.parentNode:m,m=i.namespaceURI||null,i=i.tagName,m=Ln(m,i)}An(Wt),Pn(Wt,m)}function di(){An(Wt),An($r),An(Xi)}function Ba(i){Cr(Xi.current);var m=Cr(Wt.current),y=Ln(m,i.type);m!==y&&(Pn($r,i),Pn(Wt,y))}function Go(i){$r.current===i&&(An(Wt),An($r))}var wn=vr(0);function Ho(i){for(var m=i;m!==null;){if(m.tag===13){var y=m.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(m.flags&128)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===i)break;for(;m.sibling===null;){if(m.return===null||m.return===i)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var ir=[];function fi(){for(var i=0;iy?y:4,i(!0);var P=Yo.transition;Yo.transition={};try{i(!1),m()}finally{_n=y,Yo.transition=P}}function $c(){return $t().memoizedState}function ku(i,m,y){var P=xi(i);if(y={lane:P,action:y,hasEagerState:!1,eagerState:null,next:null},zc(i))Fc(m,y);else if(y=sn(i,m,y,P),y!==null){var K=mt();lr(y,i,P,K),Vc(y,m,P)}}function Wu(i,m,y){var P=xi(i),K={lane:P,action:y,hasEagerState:!1,eagerState:null,next:null};if(zc(i))Fc(m,K);else{var k=i.alternate;if(i.lanes===0&&(k===null||k.lanes===0)&&(k=m.lastRenderedReducer,k!==null))try{var J=m.lastRenderedState,ae=k(J,y);if(K.hasEagerState=!0,K.eagerState=ae,St(ae,J)){var fe=m.interleaved;fe===null?(K.next=K,ze(m)):(K.next=fe.next,fe.next=K),m.interleaved=K;return}}catch(Ce){}finally{}y=sn(i,m,K,P),y!==null&&(K=mt(),lr(y,i,P,K),Vc(y,m,P))}}function zc(i){var m=i.alternate;return i===Kn||m!==null&&m===Kn}function Fc(i,m){Ka=Hi=!0;var y=i.pending;y===null?m.next=m:(m.next=y.next,y.next=m),i.pending=m}function Vc(i,m,y){if(y&4194240){var P=m.lanes;P&=i.pendingLanes,y|=P,m.lanes=y,aa(i,y)}}var Bs={readContext:$e,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},$u={readContext:$e,useCallback:function(m,y){return yr().memoizedState=[m,y===void 0?null:y],m},useContext:$e,useEffect:Bc,useImperativeHandle:function(m,y,P){return P=P!=null?P.concat([m]):null,Ts(4194308,4,wc.bind(null,y,m),P)},useLayoutEffect:function(m,y){return Ts(4194308,4,m,y)},useInsertionEffect:function(m,y){return Ts(4,2,m,y)},useMemo:function(m,y){var P=yr();return y=y===void 0?null:y,m=m(),P.memoizedState=[m,y],m},useReducer:function(m,y,P){var K=yr();return y=P!==void 0?P(y):y,K.memoizedState=K.baseState=y,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:y},K.queue=m,m=m.dispatch=ku.bind(null,Kn,m),[K.memoizedState,m]},useRef:function(m){var y=yr();return m={current:m},y.memoizedState=m},useState:Tc,useDebugValue:kl,useDeferredValue:function(m){return yr().memoizedState=m},useTransition:function(){var m=Tc(!1),y=m[0];return m=Nu.bind(null,m[1]),yr().memoizedState=m,[y,m]},useMutableSource:function(){},useSyncExternalStore:function(m,y,P){var K=Kn,k=yr();if(Dn){if(P===void 0)throw Error(s(407));P=P()}else{if(P=y(),et===null)throw Error(s(349));or&30||Mc(K,y,P)}k.memoizedState=P;var J={value:P,getSnapshot:y};return k.queue=J,Bc(Dc.bind(null,K,J,m),[m]),K.flags|=2048,Ua(9,Pc.bind(null,K,J,P,y),void 0,null),P},useId:function(){var m=yr(),y=et.identifierPrefix;if(Dn){var P=pr,K=gr;P=(K&~(1<<32-Mt(K)-1)).toString(32)+P,y=":"+y+"R"+P,P=La++,0<\/script>",i=i.removeChild(i.firstChild)):typeof P.is=="string"?i=J.createElement(y,{is:P.is}):(i=J.createElement(y),y==="select"&&(J=i,P.multiple?J.multiple=!0:P.size&&(J.size=P.size))):i=J.createElementNS(i,y),i[wt]=m,i[Br]=P,lu(i,m,!1,!1),m.stateNode=i;e:{switch(J=tt(y,P),y){case"dialog":Sn("cancel",i),Sn("close",i),K=P;break;case"iframe":case"object":case"embed":Sn("load",i),K=P;break;case"video":case"audio":for(K=0;Kqo&&(m.flags|=128,P=!0,Na(k,!1),m.lanes=4194304)}else{if(!P)if(i=Ho(J),i!==null){if(m.flags|=128,P=!0,y=i.updateQueue,y!==null&&(m.updateQueue=y,m.flags|=4),Na(k,!0),k.tail===null&&k.tailMode==="hidden"&&!J.alternate&&!Dn)return ct(m),null}else 2*Bn()-k.renderingStartTime>qo&&y!==1073741824&&(m.flags|=128,P=!0,Na(k,!1),m.lanes=4194304);k.isBackwards?(J.sibling=m.child,m.child=J):(y=k.last,y!==null?y.sibling=J:m.child=J,k.last=J)}return k.tail!==null?(m=k.tail,k.rendering=m,k.tail=m.sibling,k.renderingStartTime=Bn(),m.sibling=null,y=wn.current,Pn(wn,P?y&1|2:y&1),m):(ct(m),null);case 22:case 23:return lc(),P=m.memoizedState!==null,i!==null&&i.memoizedState!==null!==P&&(m.flags|=8192),P&&m.mode&1?Tt&1073741824&&(ct(m),m.subtreeFlags&6&&(m.flags|=8192)):ct(m),null;case 24:return null;case 25:return null}throw Error(s(156,m.tag))}function Qu(i,m){switch(As(m),m.tag){case 1:return at(m.type)&&Aa(),i=m.flags,i&65536?(m.flags=i&-65537|128,m):null;case 3:return di(),An(Zn),An(Qn),fi(),i=m.flags,i&65536&&!(i&128)?(m.flags=i&-65537|128,m):null;case 5:return Go(m),null;case 13:if(An(wn),i=m.memoizedState,i!==null&&i.dehydrated!==null){if(m.alternate===null)throw Error(s(340));te()}return i=m.flags,i&65536?(m.flags=i&-65537|128,m):null;case 19:return An(wn),null;case 4:return di(),null;case 10:return Ae(m.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var ws=!1,ut=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Zo(i,m){var y=i.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(P){$n(i,m,P)}else y.current=null}function Ql(i,m,y){try{y()}catch(P){$n(i,m,P)}}var du=!1;function Ju(i,m){if(Ma=ua,i=ps(),js(i)){if("selectionStart"in i)var y={start:i.selectionStart,end:i.selectionEnd};else e:{y=(y=i.ownerDocument)&&y.defaultView||window;var P=y.getSelection&&y.getSelection();if(P&&P.rangeCount!==0){y=P.anchorNode;var K=P.anchorOffset,k=P.focusNode;P=P.focusOffset;try{y.nodeType,k.nodeType}catch(ke){y=null;break e}var J=0,ae=-1,fe=-1,Ce=0,Ie=0,Te=i,Se=null;n:for(;;){for(var Ye;Te!==y||K!==0&&Te.nodeType!==3||(ae=J+K),Te!==k||P!==0&&Te.nodeType!==3||(fe=J+P),Te.nodeType===3&&(J+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)Se=Te,Te=Ye;for(;;){if(Te===i)break n;if(Se===y&&++Ce===K&&(ae=J),Se===k&&++Ie===P&&(fe=J),(Ye=Te.nextSibling)!==null)break;Te=Se,Se=Te.parentNode}Te=Ye}y=ae===-1||fe===-1?null:{start:ae,end:fe}}else y=null}y=y||{start:0,end:0}}else y=null;for(Pa={focusedElem:i,selectionRange:y},ua=!1,Qe=m;Qe!==null;)if(m=Qe,i=m.child,(m.subtreeFlags&1028)!==0&&i!==null)i.return=m,Qe=i;else for(;Qe!==null;){m=Qe;try{var Je=m.alternate;if(m.flags&1024)switch(m.tag){case 0:case 11:case 15:break;case 1:if(Je!==null){var en=Je.memoizedProps,Xn=Je.memoizedState,ve=m.stateNode,he=ve.getSnapshotBeforeUpdate(m.elementType===m.type?en:se(m.type,en),Xn);ve.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var pe=m.stateNode.containerInfo;pe.nodeType===1?pe.textContent="":pe.nodeType===9&&pe.documentElement&&pe.removeChild(pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(ke){$n(m,m.return,ke)}if(i=m.sibling,i!==null){i.return=m.return,Qe=i;break}Qe=m.return}return Je=du,du=!1,Je}function ka(i,m,y){var P=m.updateQueue;if(P=P!==null?P.lastEffect:null,P!==null){var K=P=P.next;do{if((K.tag&i)===i){var k=K.destroy;K.destroy=void 0,k!==void 0&&Ql(m,y,k)}K=K.next}while(K!==P)}}function Us(i,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var y=m=m.next;do{if((y.tag&i)===i){var P=y.create;y.destroy=P()}y=y.next}while(y!==m)}}function Zl(i){var m=i.ref;if(m!==null){var y=i.stateNode;switch(i.tag){case 5:i=y;break;default:i=y}typeof m=="function"?m(i):m.current=i}}function fu(i){var m=i.alternate;m!==null&&(i.alternate=null,fu(m)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(m=i.stateNode,m!==null&&(delete m[wt],delete m[Br],delete m[zi],delete m[Sl],delete m[Ps])),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 Jl(i,m,y){var P=i.tag;if(P===5||P===6)i=i.stateNode,m?y.nodeType===8?y.parentNode.insertBefore(i,m):y.insertBefore(i,m):(y.nodeType===8?(m=y.parentNode,m.insertBefore(i,y)):(m=y,m.appendChild(i)),y=y._reactRootContainer,y!=null||m.onclick!==null||(m.onclick=Bo));else if(P!==4&&(i=i.child,i!==null))for(Jl(i,m,y),i=i.sibling;i!==null;)Jl(i,m,y),i=i.sibling}function ql(i,m,y){var P=i.tag;if(P===5||P===6)i=i.stateNode,m?y.insertBefore(i,m):y.appendChild(i);else if(P!==4&&(i=i.child,i!==null))for(ql(i,m,y),i=i.sibling;i!==null;)ql(i,m,y),i=i.sibling}var it=null,ar=!1;function hi(i,m,y){for(y=y.child;y!==null;)vu(i,m,y),y=y.sibling}function vu(i,m,y){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(co,y)}catch(ae){}switch(y.tag){case 5:ut||Zo(y,m);case 6:var P=it,K=ar;it=null,hi(i,m,y),it=P,ar=K,it!==null&&(ar?(i=it,y=y.stateNode,i.nodeType===8?i.parentNode.removeChild(y):i.removeChild(y)):it.removeChild(y.stateNode));break;case 18:it!==null&&(ar?(i=it,y=y.stateNode,i.nodeType===8?Sa(i.parentNode,y):i.nodeType===1&&Sa(i,y),Di(i)):Sa(it,y.stateNode));break;case 4:P=it,K=ar,it=y.stateNode.containerInfo,ar=!0,hi(i,m,y),it=P,ar=K;break;case 0:case 11:case 14:case 15:if(!ut&&(P=y.updateQueue,P!==null&&(P=P.lastEffect,P!==null))){K=P=P.next;do{var k=K,J=k.destroy;k=k.tag,J!==void 0&&(k&2||k&4)&&Ql(y,m,J),K=K.next}while(K!==P)}hi(i,m,y);break;case 1:if(!ut&&(Zo(y,m),P=y.stateNode,typeof P.componentWillUnmount=="function"))try{P.props=y.memoizedProps,P.state=y.memoizedState,P.componentWillUnmount()}catch(ae){$n(y,m,ae)}hi(i,m,y);break;case 21:hi(i,m,y);break;case 22:y.mode&1?(ut=(P=ut)||y.memoizedState!==null,hi(i,m,y),ut=P):hi(i,m,y);break;default:hi(i,m,y)}}function xu(i){var m=i.updateQueue;if(m!==null){i.updateQueue=null;var y=i.stateNode;y===null&&(y=i.stateNode=new Zu),m.forEach(function(P){var K=sd.bind(null,i,P);y.has(P)||(y.add(P),P.then(K,K))})}}function sr(i,m){var y=m.deletions;if(y!==null)for(var P=0;PK&&(K=J),P&=~k}if(P=K,P=Bn()-P,P=(120>P?120:480>P?480:1080>P?1080:1920>P?1920:3e3>P?3e3:4320>P?4320:1960*ed(P/1960))-P,10i?16:i,vi===null)var P=!1;else{if(i=vi,vi=null,zs=0,On&6)throw Error(s(331));var K=On;for(On|=4,Qe=i.current;Qe!==null;){var k=Qe,J=k.child;if(Qe.flags&16){var ae=k.deletions;if(ae!==null){for(var fe=0;feBn()-tc?Zi(i,0):nc|=y),It(i,m)}function Du(i,m){m===0&&(i.mode&1?(m=uo,uo<<=1,!(uo&130023424)&&(uo=4194304)):m=1);var y=mt();i=Ze(i,m),i!==null&&(_i(i,m,y),It(i,y))}function ad(i){var m=i.memoizedState,y=0;m!==null&&(y=m.retryLane),Du(i,y)}function sd(i,m){var y=0;switch(i.tag){case 13:var P=i.stateNode,K=i.memoizedState;K!==null&&(y=K.retryLane);break;case 19:P=i.stateNode;break;default:throw Error(s(314))}P!==null&&P.delete(m),Du(i,y)}var Su;Su=function(m,y,P){if(m!==null)if(m.memoizedProps!==y.pendingProps||Zn.current)yt=!0;else{if(!(m.lanes&P)&&!(y.flags&128))return yt=!1,Hu(m,y,P);yt=!!(m.flags&131072)}else yt=!1,Dn&&y.flags&1048576&&Tl(y,Vo,y.index);switch(y.lanes=0,y.tag){case 2:var K=y.type;Ls(m,y),m=y.pendingProps;var k=Ut(y,Qn.current);Ue(y,P),k=Kl(null,y,K,m,k,P);var J=Ll();return y.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(y.tag=1,y.memoizedState=null,y.updateQueue=null,at(K)?(J=!0,Wo(y)):J=!1,y.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,hn(y),k.updater=er,y.stateNode=k,k._reactInternals=y,kr(y,K,m,P),y=Fl(null,y,K,!0,J,P)):(y.tag=0,Dn&&J&&Ss(y),ht(null,y,k,P),y=y.child),y;case 16:K=y.elementType;e:{switch(Ls(m,y),m=y.pendingProps,k=K._init,K=k(K._payload),y.type=K,k=y.tag=cd(K),m=se(K,m),k){case 0:y=zl(null,y,K,m,P);break e;case 1:y=tu(null,y,K,m,P);break e;case 11:y=Zc(null,y,K,m,P);break e;case 14:y=Jc(null,y,K,se(K.type,m),P);break e}throw Error(s(306,K,""))}return y;case 0:return K=y.type,k=y.pendingProps,k=y.elementType===K?k:se(K,k),zl(m,y,K,k,P);case 1:return K=y.type,k=y.pendingProps,k=y.elementType===K?k:se(K,k),tu(m,y,K,k,P);case 3:e:{if(ru(y),m===null)throw Error(s(387));K=y.pendingProps,J=y.memoizedState,k=J.element,En(m,y),Un(y,K,null,P);var ae=y.memoizedState;if(K=ae.element,J.isDehydrated)if(J={element:K,isDehydrated:!1,cache:ae.cache,pendingSuspenseBoundaries:ae.pendingSuspenseBoundaries,transitions:ae.transitions},y.updateQueue.baseState=J,y.memoizedState=J,y.flags&256){k=Qo(Error(s(423)),y),y=iu(m,y,K,P,k);break e}else if(K!==k){k=Qo(Error(s(424)),y),y=iu(m,y,K,P,k);break e}else for(Ct=Yt(y.stateNode.containerInfo.firstChild),Et=y,Dn=!0,Nt=null,P=Er(y,null,K,P),y.child=P;P;)P.flags=P.flags&-3|4096,P=P.sibling;else{if(te(),K===k){y=zr(m,y,P);break e}ht(m,y,K,P)}y=y.child}return y;case 5:return Ba(y),m===null&&w(y),K=y.type,k=y.pendingProps,J=m!==null?m.memoizedProps:null,ae=k.children,Ko(K,k)?ae=null:J!==null&&Ko(K,J)&&(y.flags|=32),nu(m,y),ht(m,y,ae,P),y.child;case 6:return m===null&&w(y),null;case 13:return ou(m,y,P);case 4:return Ra(y,y.stateNode.containerInfo),K=y.pendingProps,m===null?y.child=rr(y,null,K,P):ht(m,y,K,P),y.child;case 11:return K=y.type,k=y.pendingProps,k=y.elementType===K?k:se(K,k),Zc(m,y,K,k,P);case 7:return ht(m,y,y.pendingProps,P),y.child;case 8:return ht(m,y,y.pendingProps.children,P),y.child;case 12:return ht(m,y,y.pendingProps.children,P),y.child;case 10:e:{if(K=y.type._context,k=y.pendingProps,J=y.memoizedProps,ae=k.value,Pn(de,K._currentValue),K._currentValue=ae,J!==null)if(St(J.value,ae)){if(J.children===k.children&&!Zn.current){y=zr(m,y,P);break e}}else for(J=y.child,J!==null&&(J.return=y);J!==null;){var fe=J.dependencies;if(fe!==null){ae=J.child;for(var Ce=fe.firstContext;Ce!==null;){if(Ce.context===K){if(J.tag===1){Ce=qe(-1,P&-P),Ce.tag=2;var Ie=J.updateQueue;if(Ie!==null){Ie=Ie.shared;var Te=Ie.pending;Te===null?Ce.next=Ce:(Ce.next=Te.next,Te.next=Ce),Ie.pending=Ce}}J.lanes|=P,Ce=J.alternate,Ce!==null&&(Ce.lanes|=P),we(J.return,P,y),fe.lanes|=P;break}Ce=Ce.next}}else if(J.tag===10)ae=J.type===y.type?null:J.child;else if(J.tag===18){if(ae=J.return,ae===null)throw Error(s(341));ae.lanes|=P,fe=ae.alternate,fe!==null&&(fe.lanes|=P),we(ae,P,y),ae=J.sibling}else ae=J.child;if(ae!==null)ae.return=J;else for(ae=J;ae!==null;){if(ae===y){ae=null;break}if(J=ae.sibling,J!==null){J.return=ae.return,ae=J;break}ae=ae.return}J=ae}ht(m,y,k.children,P),y=y.child}return y;case 9:return k=y.type,K=y.pendingProps.children,Ue(y,P),k=$e(k),K=K(k),y.flags|=1,ht(m,y,K,P),y.child;case 14:return K=y.type,k=se(K,y.pendingProps),k=se(K.type,k),Jc(m,y,K,k,P);case 15:return qc(m,y,y.type,y.pendingProps,P);case 17:return K=y.type,k=y.pendingProps,k=y.elementType===K?k:se(K,k),Ls(m,y),y.tag=1,at(K)?(m=!0,Wo(y)):m=!1,Ue(y,P),Vi(y,K,k),kr(y,K,k,P),Fl(null,y,K,!0,m,P);case 19:return su(m,y,P);case 22:return eu(m,y,P)}throw Error(s(156,y.tag))};function Au(i,m){return oo(i,m)}function ld(i,m,y,P){this.tag=i,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(i,m,y,P){return new ld(i,m,y,P)}function uc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function cd(i){if(typeof i=="function")return uc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===Y)return 11;if(i===V)return 14}return 2}function pi(i,m){var y=i.alternate;return y===null?(y=Ft(i.tag,m,i.key,i.mode),y.elementType=i.elementType,y.type=i.type,y.stateNode=i.stateNode,y.alternate=i,i.alternate=y):(y.pendingProps=m,y.type=i.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=i.flags&14680064,y.childLanes=i.childLanes,y.lanes=i.lanes,y.child=i.child,y.memoizedProps=i.memoizedProps,y.memoizedState=i.memoizedState,y.updateQueue=i.updateQueue,m=i.dependencies,y.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},y.sibling=i.sibling,y.index=i.index,y.ref=i.ref,y}function Gs(i,m,y,P,K,k){var J=2;if(P=i,typeof i=="function")uc(i)&&(J=1);else if(typeof i=="string")J=5;else e:switch(i){case L:return qi(y.children,K,k,m);case W:J=8,K|=8;break;case F:return i=Ft(12,y,m,K|2),i.elementType=F,i.lanes=k,i;case q:return i=Ft(13,y,m,K),i.elementType=q,i.lanes=k,i;case Z:return i=Ft(19,y,m,K),i.elementType=Z,i.lanes=k,i;case X:return Hs(y,K,k,m);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:J=10;break e;case G:J=9;break e;case Y:J=11;break e;case V:J=14;break e;case z:J=16,P=null;break e}throw Error(s(130,i==null?i:typeof i=="undefined"?"undefined":o(i),""))}return m=Ft(J,y,m,K),m.elementType=i,m.type=P,m.lanes=k,m}function qi(i,m,y,P){return i=Ft(7,i,P,m),i.lanes=y,i}function Hs(i,m,y,P){return i=Ft(22,i,P,m),i.elementType=X,i.lanes=y,i.stateNode={isHidden:!1},i}function dc(i,m,y){return i=Ft(6,i,null,m),i.lanes=y,i}function fc(i,m,y){return m=Ft(4,i.children!==null?i.children:[],i.key,m),m.lanes=y,m.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},m}function ud(i,m,y,P,K){this.tag=m,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=oa(0),this.expirationTimes=oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oa(0),this.identifierPrefix=P,this.onRecoverableError=K,this.mutableSourceEagerHydrationData=null}function hc(i,m,y,P,K,k,J,ae,fe){return i=new ud(i,m,y,ae,fe),m===1?(m=1,k===!0&&(m|=8)):m=0,k=Ft(3,null,null,m),i.current=k,k.stateNode=i,k.memoizedState={element:P,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},hn(k),i}function dd(i,m,y){var P=3p}return!1}function O(d,p,C,I,A,N,F){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=I,this.attributeNamespace=A,this.mustUseProperty=C,this.propertyName=d,this.type=p,this.sanitizeURL=N,this.removeEmptyString=F}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){M[d]=new O(d,0,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var p=d[0];M[p]=new O(p,1,!1,d[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){M[d]=new O(d,2,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){M[d]=new O(d,2,!1,d,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(d){M[d]=new O(d,3,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){M[d]=new O(d,3,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){M[d]=new O(d,4,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){M[d]=new O(d,6,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){M[d]=new O(d,5,!1,d.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function D(d){return d[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(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var p=d.replace(P,D);M[p]=new O(p,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){M[d]=new O(d,1,!1,d.toLowerCase(),null,!1,!1)}),M.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){M[d]=new O(d,1,!1,d.toLowerCase(),null,!0,!0)});function S(d,p,C,I){var A=M.hasOwnProperty(p)?M[p]:null;(A!==null?A.type!==0:I||!(2q||A[F]!==N[q]){var ue="\n"+A[F].replace(" at new "," at ");return d.displayName&&ue.includes("")&&(ue=ue.replace("",d.displayName)),ue}while(1<=F&&0<=q);break}}}finally{fe=!1,Error.prepareStackTrace=C}return(d=d?d.displayName||d.name:"")?le(d):""}function Ie(d){switch(d.tag){case 5:return le(d.type);case 16:return le("Lazy");case 13:return le("Suspense");case 19:return le("SuspenseList");case 0:case 2:case 15:return d=ge(d.type,!1),d;case 11:return d=ge(d.type.render,!1),d;case 1:return d=ge(d.type,!0),d;default:return""}}function Ee(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case W:return"Fragment";case L:return"Portal";case k:return"Profiler";case $:return"StrictMode";case Q:return"Suspense";case ee:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case X:return(d.displayName||"Context")+".Consumer";case z:return(d._context.displayName||"Context")+".Provider";case G:var p=d.render;return d=d.displayName,d||(d=p.displayName||p.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case se:return p=d.displayName||null,p!==null?p:Ee(d.type)||"Memo";case ne:p=d._payload,d=d._init;try{return Ee(d(p))}catch(C){}}return null}function je(d){var p=d.type;switch(d.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=p.render,d=d.displayName||d.name||"",p.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(p);case 8:return p===$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ne(d){switch(typeof d=="undefined"?"undefined":i(d)){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function on(d){var p=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Xe(d){var p=on(d)?"checked":"value",C=Object.getOwnPropertyDescriptor(d.constructor.prototype,p),I=""+d[p];if(!d.hasOwnProperty(p)&&typeof C!="undefined"&&typeof C.get=="function"&&typeof C.set=="function"){var A=C.get,N=C.set;return Object.defineProperty(d,p,{configurable:!0,get:function(){return A.call(this)},set:function(q){I=""+q,N.call(this,q)}}),Object.defineProperty(d,p,{enumerable:C.enumerable}),{getValue:function(){return I},setValue:function(q){I=""+q},stopTracking:function(){d._valueTracker=null,delete d[p]}}}}function Pe(d){d._valueTracker||(d._valueTracker=Xe(d))}function qe(d){if(!d)return!1;var p=d._valueTracker;if(!p)return!0;var C=p.getValue(),I="";return d&&(I=on(d)?d.checked?"true":"false":d.value),d=I,d!==C?(p.setValue(d),!0):!1}function jn(d){if(d=d||(typeof document!="undefined"?document:void 0),typeof d=="undefined")return null;try{return d.activeElement||d.body}catch(p){return d.body}}function En(d,p){var C=p.checked;return te({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C!=null?C:d._wrapperState.initialChecked})}function hn(d,p){var C=p.defaultValue==null?"":p.defaultValue,I=p.checked!=null?p.checked:p.defaultChecked;C=Ne(p.value!=null?p.value:C),d._wrapperState={initialChecked:I,initialValue:C,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function Cn(d,p){p=p.checked,p!=null&&S(d,"checked",p,!1)}function fn(d,p){Cn(d,p);var C=Ne(p.value),I=p.type;if(C!=null)I==="number"?(C===0&&d.value===""||d.value!=C)&&(d.value=""+C):d.value!==""+C&&(d.value=""+C);else if(I==="submit"||I==="reset"){d.removeAttribute("value");return}p.hasOwnProperty("value")?Se(d,p.type,C):p.hasOwnProperty("defaultValue")&&Se(d,p.type,Ne(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(d.defaultChecked=!!p.defaultChecked)}function tn(d,p,C){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var I=p.type;if(!(I!=="submit"&&I!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+d._wrapperState.initialValue,C||p===d.value||(d.value=p),d.defaultValue=p}C=d.name,C!==""&&(d.name=""),d.defaultChecked=!!d._wrapperState.initialChecked,C!==""&&(d.name=C)}function Se(d,p,C){(p!=="number"||jn(d.ownerDocument)!==d)&&(C==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+C&&(d.defaultValue=""+C))}var Le=Array.isArray;function Oe(d,p,C,I){if(d=d.options,p){p={};for(var A=0;A"+p.valueOf().toString()+"",p=In.firstChild;d.firstChild;)d.removeChild(d.firstChild);for(;p.firstChild;)d.appendChild(p.firstChild)}});function rn(d,p){if(p){var C=d.firstChild;if(C&&C===d.lastChild&&C.nodeType===3){C.nodeValue=p;return}}d.textContent=p}var $e={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},Fe=["Webkit","ms","Moz","O"];Object.keys($e).forEach(function(d){Fe.forEach(function(p){p=p+d.charAt(0).toUpperCase()+d.substring(1),$e[p]=$e[d]})});function mn(d,p,C){return p==null||typeof p=="boolean"||p===""?"":C||typeof p!="number"||p===0||$e.hasOwnProperty(d)&&$e[d]?(""+p).trim():p+"px"}function _n(d,p){d=d.style;for(var C in p)if(p.hasOwnProperty(C)){var I=C.indexOf("--")===0,A=mn(C,p[C],I);C==="float"&&(C="cssFloat"),I?d.setProperty(C,A):d[C]=A}}var Dt=te({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 rt(d,p){if(p){if(Dt[d]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(l(137,d));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(l(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(l(61))}if(p.style!=null&&typeof p.style!="object")throw Error(l(62))}}function pt(d,p){if(d.indexOf("-")===-1)return typeof p.is=="string";switch(d){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 Jn=null;function dt(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var Nt=null,Qt=null,ur=null;function ti(d){if(d=$o(d)){if(typeof Nt!="function")throw Error(l(280));var p=d.stateNode;p&&(p=ko(p),Nt(d.stateNode,d.type,p))}}function ri(d){Qt?ur?ur.push(d):ur=[d]:Qt=d}function oi(){if(Qt){var d=Qt,p=ur;if(ur=Qt=null,ti(d),p)for(d=0;d>>=0,d===0?32:31-(Fa(d)/Va|0)|0}var hr=64,ci=4194304;function jo(d){switch(d&-d){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 d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function ui(d,p){var C=d.pendingLanes;if(C===0)return 0;var I=0,A=d.suspendedLanes,N=d.pingedLanes,F=C&268435455;if(F!==0){var q=F&~A;q!==0?I=jo(q):(N&=F,N!==0&&(I=jo(N)))}else F=C&~A,F!==0?I=jo(F):N!==0&&(I=jo(N));if(I===0)return 0;if(p!==0&&p!==I&&!(p&A)&&(A=I&-I,N=p&-p,A>=N||A===16&&(N&4194240)!==0))return p;if(I&4&&(I|=C&16),p=d.entangledLanes,p!==0)for(d=d.entanglements,p&=I;0C;C++)p.push(d);return p}function Eo(d,p,C){d.pendingLanes|=p,p!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,p=31-bt(p),d[p]=C}function ol(d,p){var C=d.pendingLanes&~p;d.pendingLanes=p,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=p,d.mutableReadLanes&=p,d.entangledLanes&=p,p=d.entanglements;var I=d.eventTimes;for(d=d.expirationTimes;0=ji),ia=" ",aa=!1;function ss(d,p){switch(d){case"keyup":return gl.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ls(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Zt=!1;function cs(d,p){switch(d){case"compositionend":return ls(p);case"keypress":return p.which!==32?null:(aa=!0,ia);case"textInput":return d=p.data,d===ia&&aa?null:d;default:return null}}function us(d,p){if(Zt)return d==="compositionend"||!oa&&ss(d,p)?(d=pr(),mi=Hi=gr=null,Zt=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:C,offset:p-d};d=I}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=fs(C)}}function Ao(d,p){return d&&p?d===p?!0:d&&d.nodeType===3?!1:p&&p.nodeType===3?Ao(d,p.parentNode):"contains"in d?d.contains(p):d.compareDocumentPosition?!!(d.compareDocumentPosition(p)&16):!1:!1}function ms(){for(var d=window,p=jn();e(p,d.HTMLIFrameElement);){try{var C=typeof p.contentWindow.location.href=="string"}catch(I){C=!1}if(C)d=p.contentWindow;else break;p=jn(d.document)}return p}function da(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p&&(p==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||p==="textarea"||d.contentEditable==="true")}function Hr(d){var p=ms(),C=d.focusedElem,I=d.selectionRange;if(p!==C&&C&&C.ownerDocument&&Ao(C.ownerDocument.documentElement,C)){if(I!==null&&da(C)){if(p=I.start,d=I.end,d===void 0&&(d=p),"selectionStart"in C)C.selectionStart=p,C.selectionEnd=Math.min(d,C.value.length);else if(d=(p=C.ownerDocument||document)&&p.defaultView||window,d.getSelection){d=d.getSelection();var A=C.textContent.length,N=Math.min(I.start,A);I=I.end===void 0?N:Math.min(I.end,A),!d.extend&&N>I&&(A=I,I=N,N=A),A=hs(C,N);var F=hs(C,I);A&&F&&(d.rangeCount!==1||d.anchorNode!==A.node||d.anchorOffset!==A.offset||d.focusNode!==F.node||d.focusOffset!==F.offset)&&(p=p.createRange(),p.setStart(A.node,A.offset),d.removeAllRanges(),N>I?(d.addRange(p),d.extend(F.node,F.offset)):(p.setEnd(F.node,F.offset),d.addRange(p)))}}for(p=[],d=C;d=d.parentNode;)d.nodeType===1&&p.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C=document.documentMode,Cr=null,ha=null,Ro=null,vs=!1;function ma(d,p,C){var I=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;vs||Cr==null||Cr!==jn(I)||(I=Cr,"selectionStart"in I&&da(I)?I={start:I.selectionStart,end:I.selectionEnd}:(I=(I.ownerDocument&&I.ownerDocument.defaultView||window).getSelection(),I={anchorNode:I.anchorNode,anchorOffset:I.anchorOffset,focusNode:I.focusNode,focusOffset:I.focusOffset}),Ro&&To(Ro,I)||(Ro=I,I=No(ha,"onSelect"),0Zr||(d.current=Fo[Zr],Fo[Zr]=null,Zr--)}function Tn(d,p){Zr++,Fo[Zr]=d.current,d.current=p}var rr={},qn=tr(rr),lt=tr(!1),Br=rr;function Jr(d,p){var C=d.type.contextTypes;if(!C)return rr;var I=d.stateNode;if(I&&I.__reactInternalMemoizedUnmaskedChildContext===p)return I.__reactInternalMemoizedMaskedChildContext;var A={},N;for(N in C)A[N]=p[N];return I&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=p,d.__reactInternalMemoizedMaskedChildContext=A),A}function ot(d){return d=d.childContextTypes,d!=null}function Kr(){bn(lt),bn(qn)}function Os(d,p,C){if(qn.current!==rr)throw Error(l(168));Tn(qn,p),Tn(lt,C)}function qr(d,p,C){var I=d.stateNode;if(p=p.childContextTypes,typeof I.getChildContext!="function")return C;I=I.getChildContext();for(var A in I)if(!(A in p))throw Error(l(108,je(d)||"Unknown",A));return te({},C,I)}function Si(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||rr,Br=qn.current,Tn(qn,d),Tn(lt,lt.current),!0}function Al(d,p,C){var I=d.stateNode;if(!I)throw Error(l(169));C?(d=qr(d,p,Br),I.__reactInternalMemoizedMergedChildContext=d,bn(lt),bn(qn),Tn(qn,d)):bn(lt),Tn(lt,C)}var kt=null,eo=!1,Pa=!1;function ys(d){kt===null?kt=[d]:kt.push(d)}function Ia(d){eo=!0,ys(d)}function yr(){if(!Pa&&kt!==null){Pa=!0;var d=0,p=Dn;try{var C=kt;for(Dn=1;d>=F,A-=F,Ft=1<<32-bt(p)+A|C<vn?(tt=dn,dn=null):tt=dn.sibling;var Pn=De(he,dn,xe[vn],Ue);if(Pn===null){dn===null&&(dn=tt);break}d&&dn&&Pn.alternate===null&&p(he,dn),de=N(Pn,de,vn),un===null?nn=Pn:un.sibling=Pn,un=Pn,dn=tt}if(vn===xe.length)return C(he,dn),Nn&&no(he,vn),nn;if(dn===null){for(;vnvn?(tt=dn,dn=null):tt=dn.sibling;var ho=De(he,dn,Pn.value,Ue);if(ho===null){dn===null&&(dn=tt);break}d&&dn&&ho.alternate===null&&p(he,dn),de=N(ho,de,vn),un===null?nn=ho:un.sibling=ho,un=ho,dn=tt}if(Pn.done)return C(he,dn),Nn&&no(he,vn),nn;if(dn===null){for(;!Pn.done;vn++,Pn=xe.next())Pn=Te(he,Pn.value,Ue),Pn!==null&&(de=N(Pn,de,vn),un===null?nn=Pn:un.sibling=Pn,un=Pn);return Nn&&no(he,vn),nn}for(dn=I(he,dn);!Pn.done;vn++,Pn=xe.next())Pn=Ve(dn,he,vn,Pn.value,Ue),Pn!==null&&(d&&Pn.alternate!==null&&dn.delete(Pn.key===null?vn:Pn.key),de=N(Pn,de,vn),un===null?nn=Pn:un.sibling=Pn,un=Pn);return d&&dn.forEach(function(vd){return p(he,vd)}),Nn&&no(he,vn),nn}function Vn(he,de,xe,Ue){if(typeof xe=="object"&&xe!==null&&xe.type===W&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case T:e:{for(var nn=xe.key,un=de;un!==null;){if(un.key===nn){if(nn=xe.type,nn===W){if(un.tag===7){C(he,un.sibling),de=A(un,xe.props.children),de.return=he,he=de;break e}}else if(un.elementType===nn||typeof nn=="object"&&nn!==null&&nn.$$typeof===ne&&re(nn)===un.type){C(he,un.sibling),de=A(un,xe.props),de.ref=oe(he,un,xe),de.return=he,he=de;break e}C(he,un);break}else p(he,un);un=un.sibling}xe.type===W?(de=ni(xe.props.children,he.mode,Ue,xe.key),de.return=he,he=de):(Ue=$s(xe.type,xe.key,xe.props,null,he.mode,Ue),Ue.ref=oe(he,de,xe),Ue.return=he,he=Ue)}return F(he);case L:e:{for(un=xe.key;de!==null;){if(de.key===un)if(de.tag===4&&de.stateNode.containerInfo===xe.containerInfo&&de.stateNode.implementation===xe.implementation){C(he,de.sibling),de=A(de,xe.children||[]),de.return=he,he=de;break e}else{C(he,de);break}else p(he,de);de=de.sibling}de=fc(xe,he.mode,Ue),de.return=he,he=de}return F(he);case ne:return un=xe._init,Vn(he,de,un(xe._payload),Ue)}if(Le(xe))return Ze(he,de,xe,Ue);if(V(xe))return Je(he,de,xe,Ue);ae(he,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"?(xe=""+xe,de!==null&&de.tag===6?(C(he,de.sibling),de=A(de,xe),de.return=he,he=de):(C(he,de),de=dc(xe,he.mode,Ue),de.return=he,he=de),F(he)):C(he,de)}return Vn}var me=ie(!0),Ce=ie(!1),ve=tr(null),Me=null,be=null,Be=null;function Ke(){Be=be=Me=null}function ze(d){var p=ve.current;bn(ve),d._currentValue=p}function en(d,p,C){for(;d!==null;){var I=d.alternate;if((d.childLanes&p)!==p?(d.childLanes|=p,I!==null&&(I.childLanes|=p)):I!==null&&(I.childLanes&p)!==p&&(I.childLanes|=p),d===C)break;d=d.return}}function _e(d,p){Me=d,Be=be=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&p&&(_t=!0),d.firstContext=null)}function We(d){var p=d._currentValue;if(Be!==d)if(d={context:d,memoizedValue:p,next:null},be===null){if(Me===null)throw Error(l(308));be=d,Me.dependencies={lanes:0,firstContext:d}}else be=be.next=d;return p}var Ge=null;function gn(d){Ge===null?Ge=[d]:Ge.push(d)}function an(d,p,C,I){var A=p.interleaved;return A===null?(C.next=C,gn(p)):(C.next=A.next,A.next=C),p.interleaved=C,cn(d,I)}function cn(d,p){d.lanes|=p;var C=d.alternate;for(C!==null&&(C.lanes|=p),C=d,d=d.return;d!==null;)d.childLanes|=p,C=d.alternate,C!==null&&(C.childLanes|=p),C=d,d=d.return;return C.tag===3?C.stateNode:null}var Re=!1;function sn(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ln(d,p){d=d.updateQueue,p.updateQueue===d&&(p.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects})}function pn(d,p){return{eventTime:d,lane:p,tag:0,payload:null,callback:null,next:null}}function An(d,p,C){var I=d.updateQueue;if(I===null)return null;if(I=I.shared,Mn&2){var A=I.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),I.pending=p,cn(d,C)}return A=I.interleaved,A===null?(p.next=p,gn(I)):(p.next=A.next,A.next=p),I.interleaved=p,cn(d,C)}function et(d,p,C){if(p=p.updateQueue,p!==null&&(p=p.shared,(C&4194240)!==0)){var I=p.lanes;I&=d.pendingLanes,C|=I,p.lanes=C,Fi(d,C)}}function Bn(d,p){var C=d.updateQueue,I=d.alternate;if(I!==null&&(I=I.updateQueue,C===I)){var A=null,N=null;if(C=C.firstBaseUpdate,C!==null){do{var F={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};N===null?A=N=F:N=N.next=F,C=C.next}while(C!==null);N===null?A=N=p:N=N.next=p}else A=N=p;C={baseState:I.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:I.shared,effects:I.effects},d.updateQueue=C;return}d=C.lastBaseUpdate,d===null?C.firstBaseUpdate=p:d.next=p,C.lastBaseUpdate=p}function kn(d,p,C,I){var A=d.updateQueue;Re=!1;var N=A.firstBaseUpdate,F=A.lastBaseUpdate,q=A.shared.pending;if(q!==null){A.shared.pending=null;var ue=q,pe=ue.next;ue.next=null,F===null?N=pe:F.next=pe,F=ue;var ye=d.alternate;ye!==null&&(ye=ye.updateQueue,q=ye.lastBaseUpdate,q!==F&&(q===null?ye.firstBaseUpdate=pe:q.next=pe,ye.lastBaseUpdate=ue))}if(N!==null){var Te=A.baseState;F=0,ye=pe=ue=null,q=N;do{var De=q.lane,Ve=q.eventTime;if((I&De)===De){ye!==null&&(ye=ye.next={eventTime:Ve,lane:0,tag:q.tag,payload:q.payload,callback:q.callback,next:null});e:{var Ze=d,Je=q;switch(De=p,Ve=C,Je.tag){case 1:if(Ze=Je.payload,typeof Ze=="function"){Te=Ze.call(Ve,Te,De);break e}Te=Ze;break e;case 3:Ze.flags=Ze.flags&-65537|128;case 0:if(Ze=Je.payload,De=typeof Ze=="function"?Ze.call(Ve,Te,De):Ze,De==null)break e;Te=te({},Te,De);break e;case 2:Re=!0}}q.callback!==null&&q.lane!==0&&(d.flags|=64,De=A.effects,De===null?A.effects=[q]:De.push(q))}else Ve={eventTime:Ve,lane:De,tag:q.tag,payload:q.payload,callback:q.callback,next:null},ye===null?(pe=ye=Ve,ue=Te):ye=ye.next=Ve,F|=De;if(q=q.next,q===null){if(q=A.shared.pending,q===null)break;De=q,q=De.next,De.next=null,A.lastBaseUpdate=De,A.shared.pending=null}}while(!0);if(ye===null&&(ue=Te),A.baseState=ue,A.firstBaseUpdate=pe,A.lastBaseUpdate=ye,p=A.shared.interleaved,p!==null){A=p;do F|=A.lane,A=A.next;while(A!==p)}else N===null&&(A.shared.lanes=0);Zo|=F,d.lanes=F,d.memoizedState=Te}}function Gt(d,p,C){if(d=p.effects,p.effects=null,d!==null)for(p=0;pC?C:4,d(!0);var I=Ai.transition;Ai.transition={};try{d(!1),p()}finally{Dn=C,Ai.transition=I}}function Wc(){return vt().memoizedState}function Wu(d,p,C){var I=co(d);if(C={lane:I,action:C,hasEagerState:!1,eagerState:null,next:null},wc(d))zc(p,C);else if(C=an(d,p,C,I),C!==null){var A=gt();cr(C,d,I,A),$c(C,p,I)}}function wu(d,p,C){var I=co(d),A={lane:I,action:C,hasEagerState:!1,eagerState:null,next:null};if(wc(d))zc(p,A);else{var N=d.alternate;if(d.lanes===0&&(N===null||N.lanes===0)&&(N=p.lastRenderedReducer,N!==null))try{var F=p.lastRenderedState,q=N(F,C);if(A.hasEagerState=!0,A.eagerState=q,Ct(q,F)){var ue=p.interleaved;ue===null?(A.next=A,gn(p)):(A.next=ue.next,ue.next=A),p.interleaved=A;return}}catch(pe){}finally{}C=an(d,p,A,I),C!==null&&(A=gt(),cr(C,d,I,A),$c(C,p,I))}}function wc(d){var p=d.alternate;return d===Wn||p!==null&&p===Wn}function zc(d,p){Yo=Ri=!0;var C=d.pending;C===null?p.next=p:(p.next=C.next,C.next=p),d.pending=p}function $c(d,p,C){if(C&4194240){var I=p.lanes;I&=d.pendingLanes,C|=I,p.lanes=C,Fi(d,C)}}var Ds={readContext:We,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},zu={readContext:We,useCallback:function(p,C){return Lt().memoizedState=[p,C===void 0?null:C],p},useContext:We,useEffect:Tc,useImperativeHandle:function(p,C,I){return I=I!=null?I.concat([p]):null,Ps(4194308,4,Bc.bind(null,C,p),I)},useLayoutEffect:function(p,C){return Ps(4194308,4,p,C)},useInsertionEffect:function(p,C){return Ps(4,2,p,C)},useMemo:function(p,C){var I=Lt();return C=C===void 0?null:C,p=p(),I.memoizedState=[p,C],p},useReducer:function(p,C,I){var A=Lt();return C=I!==void 0?I(C):C,A.memoizedState=A.baseState=C,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:C},A.queue=p,p=p.dispatch=Wu.bind(null,Wn,p),[A.memoizedState,p]},useRef:function(p){var C=Lt();return p={current:p},C.memoizedState=p},useState:Sc,useDebugValue:Nl,useDeferredValue:function(p){return Lt().memoizedState=p},useTransition:function(){var p=Sc(!1),C=p[0];return p=Nu.bind(null,p[1]),Lt().memoizedState=p,[C,p]},useMutableSource:function(){},useSyncExternalStore:function(p,C,I){var A=Wn,N=Lt();if(Nn){if(I===void 0)throw Error(l(407));I=I()}else{if(I=C(),nt===null)throw Error(l(349));Nr&30||Mc(A,C,I)}N.memoizedState=I;var F={value:I,getSnapshot:C};return N.queue=F,Tc(Pc.bind(null,A,F,p),[p]),A.flags|=2048,Sa(9,_c.bind(null,A,F,I,C),void 0,null),I},useId:function(){var p=Lt(),C=nt.identifierPrefix;if(Nn){var I=ir,A=Ft;I=(A&~(1<<32-bt(A)-1)).toString(32)+I,C=":"+C+"R"+I,I=Kt++,0<\/script>",d=d.removeChild(d.firstChild)):typeof I.is=="string"?d=F.createElement(C,{is:I.is}):(d=F.createElement(C),C==="select"&&(F=d,I.multiple?F.multiple=!0:I.size&&(F.size=I.size))):d=F.createElementNS(d,C),d[Bt]=p,d[Rr]=I,lu(d,p,!1,!1),p.stateNode=d;e:{switch(F=pt(C,I),C){case"dialog":Rn("cancel",d),Rn("close",d),A=I;break;case"iframe":case"object":case"embed":Rn("load",d),A=I;break;case"video":case"audio":for(A=0;Awi&&(p.flags|=128,I=!0,ba(N,!1),p.lanes=4194304)}else{if(!I)if(d=oo(F),d!==null){if(p.flags|=128,I=!0,C=d.updateQueue,C!==null&&(p.updateQueue=C,p.flags|=4),ba(N,!0),N.tail===null&&N.tailMode==="hidden"&&!F.alternate&&!Nn)return ct(p),null}else 2*Ln()-N.renderingStartTime>wi&&C!==1073741824&&(p.flags|=128,I=!0,ba(N,!1),p.lanes=4194304);N.isBackwards?(F.sibling=p.child,p.child=F):(C=N.last,C!==null?C.sibling=F:p.child=F,N.last=F)}return N.tail!==null?(p=N.tail,N.rendering=p,N.tail=p.sibling,N.renderingStartTime=Ln(),p.sibling=null,C=Sn.current,Tn(Sn,I?C&1|2:C&1),p):(ct(p),null);case 22:case 23:return lc(),I=p.memoizedState!==null,d!==null&&d.memoizedState!==null!==I&&(p.flags|=8192),I&&p.mode&1?Ut&1073741824&&(ct(p),p.subtreeFlags&6&&(p.flags|=8192)):ct(p),null;case 24:return null;case 25:return null}throw Error(l(156,p.tag))}function Yu(d,p){switch(Ms(p),p.tag){case 1:return ot(p.type)&&Kr(),d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 3:return mt(),bn(lt),bn(qn),Ho(),d=p.flags,d&65536&&!(d&128)?(p.flags=d&-65537|128,p):null;case 5:return ro(p),null;case 13:if(bn(Sn),d=p.memoizedState,d!==null&&d.dehydrated!==null){if(p.alternate===null)throw Error(l(340));R()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 19:return bn(Sn),null;case 4:return mt(),null;case 10:return ze(p.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var As=!1,ut=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Ni(d,p){var C=d.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(I){$n(d,p,I)}else C.current=null}function Ql(d,p,C){try{C()}catch(I){$n(d,p,I)}}var du=!1;function Zu(d,p){if(ja=vr,d=ms(),da(d)){if("selectionStart"in d)var C={start:d.selectionStart,end:d.selectionEnd};else e:{C=(C=d.ownerDocument)&&C.defaultView||window;var I=C.getSelection&&C.getSelection();if(I&&I.rangeCount!==0){C=I.anchorNode;var A=I.anchorOffset,N=I.focusNode;I=I.focusOffset;try{C.nodeType,N.nodeType}catch(Ue){C=null;break e}var F=0,q=-1,ue=-1,pe=0,ye=0,Te=d,De=null;n:for(;;){for(var Ve;Te!==C||A!==0&&Te.nodeType!==3||(q=F+A),Te!==N||I!==0&&Te.nodeType!==3||(ue=F+I),Te.nodeType===3&&(F+=Te.nodeValue.length),(Ve=Te.firstChild)!==null;)De=Te,Te=Ve;for(;;){if(Te===d)break n;if(De===C&&++pe===A&&(q=F),De===N&&++ye===I&&(ue=F),(Ve=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ve}C=q===-1||ue===-1?null:{start:q,end:ue}}else C=null}C=C||{start:0,end:0}}else C=null;for(Ea={focusedElem:d,selectionRange:C},vr=!1,Ye=p;Ye!==null;)if(p=Ye,d=p.child,(p.subtreeFlags&1028)!==0&&d!==null)d.return=p,Ye=d;else for(;Ye!==null;){p=Ye;try{var Ze=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(Ze!==null){var Je=Ze.memoizedProps,Vn=Ze.memoizedState,he=p.stateNode,de=he.getSnapshotBeforeUpdate(p.elementType===p.type?Je:ar(p.type,Je),Vn);he.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var xe=p.stateNode.containerInfo;xe.nodeType===1?xe.textContent="":xe.nodeType===9&&xe.documentElement&&xe.removeChild(xe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(Ue){$n(p,p.return,Ue)}if(d=p.sibling,d!==null){d.return=p.return,Ye=d;break}Ye=p.return}return Ze=du,du=!1,Ze}function Ta(d,p,C){var I=p.updateQueue;if(I=I!==null?I.lastEffect:null,I!==null){var A=I=I.next;do{if((A.tag&d)===d){var N=A.destroy;A.destroy=void 0,N!==void 0&&Ql(p,C,N)}A=A.next}while(A!==I)}}function Rs(d,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var C=p=p.next;do{if((C.tag&d)===d){var I=C.create;C.destroy=I()}C=C.next}while(C!==p)}}function Zl(d){var p=d.ref;if(p!==null){var C=d.stateNode;switch(d.tag){case 5:d=C;break;default:d=C}typeof p=="function"?p(d):p.current=d}}function fu(d){var p=d.alternate;p!==null&&(d.alternate=null,fu(p)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(p=d.stateNode,p!==null&&(delete p[Bt],delete p[Rr],delete p[Ma],delete p[_a],delete p[Tl])),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}function hu(d){return d.tag===5||d.tag===3||d.tag===4}function mu(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||hu(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function Jl(d,p,C){var I=d.tag;if(I===5||I===6)d=d.stateNode,p?C.nodeType===8?C.parentNode.insertBefore(d,p):C.insertBefore(d,p):(C.nodeType===8?(p=C.parentNode,p.insertBefore(d,C)):(p=C,p.appendChild(d)),C=C._reactRootContainer,C!=null||p.onclick!==null||(p.onclick=Ii));else if(I!==4&&(d=d.child,d!==null))for(Jl(d,p,C),d=d.sibling;d!==null;)Jl(d,p,C),d=d.sibling}function ql(d,p,C){var I=d.tag;if(I===5||I===6)d=d.stateNode,p?C.insertBefore(d,p):C.appendChild(d);else if(I!==4&&(d=d.child,d!==null))for(ql(d,p,C),d=d.sibling;d!==null;)ql(d,p,C),d=d.sibling}var it=null,sr=!1;function ao(d,p,C){for(C=C.child;C!==null;)vu(d,p,C),C=C.sibling}function vu(d,p,C){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(li,C)}catch(q){}switch(C.tag){case 5:ut||Ni(C,p);case 6:var I=it,A=sr;it=null,ao(d,p,C),it=I,sr=A,it!==null&&(sr?(d=it,C=C.stateNode,d.nodeType===8?d.parentNode.removeChild(C):d.removeChild(C)):it.removeChild(C.stateNode));break;case 18:it!==null&&(sr?(d=it,C=C.stateNode,d.nodeType===8?zo(d.parentNode,C):d.nodeType===1&&zo(d,C),Mo(d)):zo(it,C.stateNode));break;case 4:I=it,A=sr,it=C.stateNode.containerInfo,sr=!0,ao(d,p,C),it=I,sr=A;break;case 0:case 11:case 14:case 15:if(!ut&&(I=C.updateQueue,I!==null&&(I=I.lastEffect,I!==null))){A=I=I.next;do{var N=A,F=N.destroy;N=N.tag,F!==void 0&&(N&2||N&4)&&Ql(C,p,F),A=A.next}while(A!==I)}ao(d,p,C);break;case 1:if(!ut&&(Ni(C,p),I=C.stateNode,typeof I.componentWillUnmount=="function"))try{I.props=C.memoizedProps,I.state=C.memoizedState,I.componentWillUnmount()}catch(q){$n(C,p,q)}ao(d,p,C);break;case 21:ao(d,p,C);break;case 22:C.mode&1?(ut=(I=ut)||C.memoizedState!==null,ao(d,p,C),ut=I):ao(d,p,C);break;default:ao(d,p,C)}}function xu(d){var p=d.updateQueue;if(p!==null){d.updateQueue=null;var C=d.stateNode;C===null&&(C=d.stateNode=new Qu),p.forEach(function(I){var A=ad.bind(null,d,I);C.has(I)||(C.add(I),I.then(A,A))})}}function lr(d,p){var C=p.deletions;if(C!==null)for(var I=0;IA&&(A=F),I&=~N}if(I=A,I=Ln()-I,I=(120>I?120:480>I?480:1080>I?1080:1920>I?1920:3e3>I?3e3:4320>I?4320:1960*qu(I/1960))-I,10d?16:d,lo===null)var I=!1;else{if(d=lo,lo=null,Ns=0,Mn&6)throw Error(l(331));var A=Mn;for(Mn|=4,Ye=d.current;Ye!==null;){var N=Ye,F=N.child;if(Ye.flags&16){var q=N.deletions;if(q!==null){for(var ue=0;ueLn()-tc?qo(d,0):nc|=C),It(d,p)}function Su(d,p){p===0&&(d.mode&1?(p=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):p=1);var C=gt();d=cn(d,p),d!==null&&(Eo(d,p,C),It(d,C))}function id(d){var p=d.memoizedState,C=0;p!==null&&(C=p.retryLane),Su(d,C)}function ad(d,p){var C=0;switch(d.tag){case 13:var I=d.stateNode,A=d.memoizedState;A!==null&&(C=A.retryLane);break;case 19:I=d.stateNode;break;default:throw Error(l(314))}I!==null&&I.delete(p),Su(d,C)}var bu;bu=function(p,C,I){if(p!==null)if(p.memoizedProps!==C.pendingProps||lt.current)_t=!0;else{if(!(p.lanes&I)&&!(C.flags&128))return _t=!1,Xu(p,C,I);_t=!!(p.flags&131072)}else _t=!1,Nn&&C.flags&1048576&&Rl(C,Go,C.index);switch(C.lanes=0,C.tag){case 2:var A=C.type;Ts(p,C),p=C.pendingProps;var N=Jr(C,qn.current);_e(C,I),N=Qo(null,C,A,p,N,I);var F=Li();return C.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(C.tag=1,C.memoizedState=null,C.updateQueue=null,ot(A)?(F=!0,Si(C)):F=!1,C.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,sn(C),N.updater=Ss,C.stateNode=N,N._reactInternals=C,wl(C,A,p,I),C=Fl(null,C,A,!0,F,I)):(C.tag=0,Nn&&F&&Xo(C),xt(null,C,N,I),C=C.child),C;case 16:A=C.elementType;e:{switch(Ts(p,C),p=C.pendingProps,N=A._init,A=N(A._payload),C.type=A,N=C.tag=ld(A),p=ar(A,p),N){case 0:C=kl(null,C,A,p,I);break e;case 1:C=tu(null,C,A,p,I);break e;case 11:C=Zc(null,C,A,p,I);break e;case 14:C=Jc(null,C,A,ar(A.type,p),I);break e}throw Error(l(306,A,""))}return C;case 0:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:ar(A,N),kl(p,C,A,N,I);case 1:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:ar(A,N),tu(p,C,A,N,I);case 3:e:{if(ru(C),p===null)throw Error(l(387));A=C.pendingProps,F=C.memoizedState,N=F.element,ln(p,C),kn(C,A,null,I);var q=C.memoizedState;if(A=q.element,F.isDehydrated)if(F={element:A,isDehydrated:!1,cache:q.cache,pendingSuspenseBoundaries:q.pendingSuspenseBoundaries,transitions:q.transitions},C.updateQueue.baseState=F,C.memoizedState=F,C.flags&256){N=Ui(Error(l(423)),C),C=ou(p,C,A,I,N);break e}else if(A!==N){N=Ui(Error(l(424)),C),C=ou(p,C,A,I,N);break e}else for(Mt=Rt(C.stateNode.containerInfo.firstChild),yt=C,Nn=!0,Vt=null,I=Ce(C,null,A,I),C.child=I;I;)I.flags=I.flags&-3|4096,I=I.sibling;else{if(R(),A===N){C=Wr(p,C,I);break e}xt(p,C,A,I)}C=C.child}return C;case 5:return to(C),p===null&&_(C),A=C.type,N=C.pendingProps,F=p!==null?p.memoizedProps:null,q=N.children,wo(A,N)?q=null:F!==null&&wo(A,F)&&(C.flags|=32),nu(p,C),xt(p,C,q,I),C.child;case 6:return p===null&&_(C),null;case 13:return iu(p,C,I);case 4:return Mr(C,C.stateNode.containerInfo),A=C.pendingProps,p===null?C.child=me(C,null,A,I):xt(p,C,A,I),C.child;case 11:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:ar(A,N),Zc(p,C,A,N,I);case 7:return xt(p,C,C.pendingProps,I),C.child;case 8:return xt(p,C,C.pendingProps.children,I),C.child;case 12:return xt(p,C,C.pendingProps.children,I),C.child;case 10:e:{if(A=C.type._context,N=C.pendingProps,F=C.memoizedProps,q=N.value,Tn(ve,A._currentValue),A._currentValue=q,F!==null)if(Ct(F.value,q)){if(F.children===N.children&&!lt.current){C=Wr(p,C,I);break e}}else for(F=C.child,F!==null&&(F.return=C);F!==null;){var ue=F.dependencies;if(ue!==null){q=F.child;for(var pe=ue.firstContext;pe!==null;){if(pe.context===A){if(F.tag===1){pe=pn(-1,I&-I),pe.tag=2;var ye=F.updateQueue;if(ye!==null){ye=ye.shared;var Te=ye.pending;Te===null?pe.next=pe:(pe.next=Te.next,Te.next=pe),ye.pending=pe}}F.lanes|=I,pe=F.alternate,pe!==null&&(pe.lanes|=I),en(F.return,I,C),ue.lanes|=I;break}pe=pe.next}}else if(F.tag===10)q=F.type===C.type?null:F.child;else if(F.tag===18){if(q=F.return,q===null)throw Error(l(341));q.lanes|=I,ue=q.alternate,ue!==null&&(ue.lanes|=I),en(q,I,C),q=F.sibling}else q=F.child;if(q!==null)q.return=F;else for(q=F;q!==null;){if(q===C){q=null;break}if(F=q.sibling,F!==null){F.return=q.return,q=F;break}q=q.return}F=q}xt(p,C,N.children,I),C=C.child}return C;case 9:return N=C.type,A=C.pendingProps.children,_e(C,I),N=We(N),A=A(N),C.flags|=1,xt(p,C,A,I),C.child;case 14:return A=C.type,N=ar(A,C.pendingProps),N=ar(A.type,N),Jc(p,C,A,N,I);case 15:return qc(p,C,C.type,C.pendingProps,I);case 17:return A=C.type,N=C.pendingProps,N=C.elementType===A?N:ar(A,N),Ts(p,C),C.tag=1,ot(A)?(p=!0,Si(C)):p=!1,_e(C,I),Fc(C,A,N),wl(C,A,N,I),Fl(null,C,A,!0,p,I);case 19:return su(p,C,I);case 22:return eu(p,C,I)}throw Error(l(156,C.tag))};function Tu(d,p){return wa(d,p)}function sd(d,p,C,I){this.tag=d,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=I,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(d,p,C,I){return new sd(d,p,C,I)}function uc(d){return d=d.prototype,!(!d||!d.isReactComponent)}function ld(d){if(typeof d=="function")return uc(d)?1:0;if(d!=null){if(d=d.$$typeof,d===G)return 11;if(d===se)return 14}return 2}function fo(d,p){var C=d.alternate;return C===null?(C=Yt(d.tag,p,d.key,d.mode),C.elementType=d.elementType,C.type=d.type,C.stateNode=d.stateNode,C.alternate=d,d.alternate=C):(C.pendingProps=p,C.type=d.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=d.flags&14680064,C.childLanes=d.childLanes,C.lanes=d.lanes,C.child=d.child,C.memoizedProps=d.memoizedProps,C.memoizedState=d.memoizedState,C.updateQueue=d.updateQueue,p=d.dependencies,C.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},C.sibling=d.sibling,C.index=d.index,C.ref=d.ref,C}function $s(d,p,C,I,A,N){var F=2;if(I=d,typeof d=="function")uc(d)&&(F=1);else if(typeof d=="string")F=5;else e:switch(d){case W:return ni(C.children,A,N,p);case $:F=8,A|=8;break;case k:return d=Yt(12,C,p,A|2),d.elementType=k,d.lanes=N,d;case Q:return d=Yt(13,C,p,A),d.elementType=Q,d.lanes=N,d;case ee:return d=Yt(19,C,p,A),d.elementType=ee,d.lanes=N,d;case Y:return ks(C,A,N,p);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case z:F=10;break e;case X:F=9;break e;case G:F=11;break e;case se:F=14;break e;case ne:F=16,I=null;break e}throw Error(l(130,d==null?d:typeof d=="undefined"?"undefined":i(d),""))}return p=Yt(F,C,p,A),p.elementType=d,p.type=I,p.lanes=N,p}function ni(d,p,C,I){return d=Yt(7,d,I,p),d.lanes=C,d}function ks(d,p,C,I){return d=Yt(22,d,I,p),d.elementType=Y,d.lanes=C,d.stateNode={isHidden:!1},d}function dc(d,p,C){return d=Yt(6,d,null,p),d.lanes=C,d}function fc(d,p,C){return p=Yt(4,d.children!==null?d.children:[],d.key,p),p.lanes=C,p.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},p}function cd(d,p,C,I,A){this.tag=p,this.containerInfo=d,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ki(0),this.expirationTimes=ki(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ki(0),this.identifierPrefix=I,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function hc(d,p,C,I,A,N,F,q,ue){return d=new cd(d,p,C,q,ue),p===1?(p=1,N===!0&&(p|=8)):p=0,N=Yt(3,null,null,p),d.current=N,N.stateNode=d,N.memoizedState={element:I,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},sn(N),d}function ud(d,p,C){var I=3=0;--ee){var ne=this.tryEntries[ee],ie=ne.completion;if(ne.tryLoc==="root")return Q("end");if(ne.tryLoc<=this.prev){var le=r.call(ne,"catchLoc"),ue=r.call(ne,"finallyLoc");if(le&&ue){if(this.prev=0;--Q){var ee=this.tryEntries[Q];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--U){var Q=this.tryEntries[U];if(Q.finallyLoc===X)return this.complete(Q.completion,Q.afterLoc),Y(Q),C}},catch:function(z){for(var X=this.tryEntries.length-1;X>=0;--X){var U=this.tryEntries[X];if(U.tryLoc===z){var Q=U.completion;if(Q.type==="throw"){var ee=Q.arg;Y(U)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(X,U,Q){return this.delegate={iterator:Z(X),resultName:U,nextLoc:Q},this.method==="next"&&(this.arg=d),C}},o}(I.exports);try{regeneratorRuntime=e}catch(o){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},65656:function(I,g){"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"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),x=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),c=Symbol.iterator;function f(V){return V===null||typeof V!="object"?null:(V=c&&V[c]||V["@@iterator"],typeof V=="function"?V:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,j={};function E(V,te,ce){this.props=V,this.context=te,this.refs=j,this.updater=ce||m}E.prototype.isReactComponent={},E.prototype.setState=function(V,te){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,te,"setState")},E.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function O(){}O.prototype=E.prototype;function M(V,te,ce){this.props=V,this.context=te,this.refs=j,this.updater=ce||m}var P=M.prototype=new O;P.constructor=M,v(P,E.prototype),P.isPureReactComponent=!0;var D=Array.isArray,S=Object.prototype.hasOwnProperty,B={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function L(V,te,ce){var le,fe={},ge=null,Ie=null;if(te!=null)for(le in te.ref!==void 0&&(Ie=te.ref),te.key!==void 0&&(ge=""+te.key),te)S.call(te,le)&&!T.hasOwnProperty(le)&&(fe[le]=te[le]);var Ee=arguments.length-2;if(Ee===1)fe.children=ce;else if(1=0;--te){var ce=this.tryEntries[te],le=ce.completion;if(ce.tryLoc==="root")return V("end");if(ce.tryLoc<=this.prev){var fe=r.call(ce,"catchLoc"),ge=r.call(ce,"finallyLoc");if(fe&&ge){if(this.prev=0;--V){var te=this.tryEntries[V];if(te.tryLoc<=this.prev&&r.call(te,"finallyLoc")&&this.prev=0;--J){var V=this.tryEntries[J];if(V.finallyLoc===Y)return this.complete(V.completion,V.afterLoc),G(V),O}},catch:function(ne){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var J=this.tryEntries[Y];if(J.tryLoc===ne){var V=J.completion;if(V.type==="throw"){var te=V.arg;G(J)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(Y,J,V){return this.delegate={iterator:ee(Y),resultName:J,nextLoc:V},this.method==="next"&&(this.arg=g),O}},i}(y.exports);try{regeneratorRuntime=e}catch(i){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(y,h){"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(Z,V){var z=Z.length;Z.push(V);e:for(;0>>1,U=Z[X];if(0>>1;Xt(ne,z))iet(le,ne)?(Z[X]=le,Z[ie]=z,X=ie):(Z[X]=ne,Z[ee]=z,X=ee);else if(iet(le,z))Z[X]=le,Z[ie]=z,X=ie;else break e}}return V}function t(Z,V){var z=Z.sortIndex-V.sortIndex;return z!==0?z:Z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;g.unstable_now=function(){return r.now()}}else{var s=Date,d=s.now();g.unstable_now=function(){return s.now()-d}}var p=[],x=[],a=1,f=null,c=3,l=!1,v=!1,u=!1,h=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Z){for(var V=e(x);V!==null;){if(V.callback===null)o(x);else if(V.startTime<=Z)o(x),V.sortIndex=V.expirationTime,n(p,V);else break;V=e(x)}}function O(Z){if(u=!1,C(Z),!v)if(e(p)!==null)v=!0,Y(_);else{var V=e(x);V!==null&&q(O,V.startTime-Z)}}function _(Z,V){v=!1,u&&(u=!1,j(S),S=-1),l=!0;var z=c;try{for(C(V),f=e(p);f!==null&&(!(f.expirationTime>V)||Z&&!L());){var X=f.callback;if(typeof X=="function"){f.callback=null,c=f.priorityLevel;var U=X(f.expirationTime<=V);V=g.unstable_now(),typeof U=="function"?f.callback=U:f===e(p)&&o(p),C(V)}else o(p);f=e(p)}if(f!==null)var Q=!0;else{var ee=e(x);ee!==null&&q(O,ee.startTime-V),Q=!1}return Q}finally{f=null,c=z,l=!1}}var b=!1,D=null,S=-1,A=5,R=-1;function L(){return!(g.unstable_now()-RZ||125X?(Z.sortIndex=z,n(x,Z),e(p)===null&&Z===e(x)&&(u?(j(S),S=-1):u=!0,q(O,z-X))):(Z.sortIndex=U,n(p,Z),v||l||(v=!0,Y(_))),Z},g.unstable_shouldYield=L,g.unstable_wrapCallback=function(Z){var V=c;return function(){var z=c;c=V;try{return Z.apply(this,arguments)}finally{c=z}}}},9359:function(I,g,n){"use strict";I.exports=n(65656)},73396:function(){self.fetch||(self.fetch=function(I,g){return g=g||{},new Promise(function(n,e){var o=new XMLHttpRequest,t=[],r={},s=function p(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:p,headers:{keys:function(){return t},entries:function(){return t.map(function(a){return[a,o.getResponseHeader(a)]})},get:function(a){return o.getResponseHeader(a)},has:function(a){return o.getResponseHeader(a)!=null}}}};for(var d in o.open(g.method||"get",I,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(p,x){r[x]||t.push(r[x]=x)}),n(s())},o.onerror=e,o.withCredentials=g.credentials=="include",g.headers)o.setRequestHeader(d,g.headers[d]);o.send(g.body||null)})})},7402:function(I,g,n){"use strict";n.d(g,{OY:function(){return E},TS:function(){return v},Tj:function(){return d},Ul:function(){return a},hS:function(){return u},pb:function(){return s}});/** + */function n(ee,se){var ne=ee.length;ee.push(se);e:for(;0>>1,J=ee[Y];if(0>>1;Yt(ce,ne))let(fe,ce)?(ee[Y]=fe,ee[le]=ne,Y=le):(ee[Y]=ce,ee[te]=ne,Y=te);else if(let(fe,ne))ee[Y]=fe,ee[le]=ne,Y=le;else break e}}return se}function t(ee,se){var ne=ee.sortIndex-se.sortIndex;return ne!==0?ne:ee.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;h.unstable_now=function(){return r.now()}}else{var l=Date,g=l.now();h.unstable_now=function(){return l.now()-g}}var x=[],u=[],o=1,s=null,a=3,c=!1,f=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(ee){for(var se=e(u);se!==null;){if(se.callback===null)i(u);else if(se.startTime<=ee)i(u),se.sortIndex=se.expirationTime,n(x,se);else break;se=e(u)}}function M(ee){if(m=!1,O(ee),!f)if(e(x)!==null)f=!0,G(P);else{var se=e(u);se!==null&&Q(M,se.startTime-ee)}}function P(ee,se){f=!1,m&&(m=!1,j(B),B=-1),c=!0;var ne=a;try{for(O(se),s=e(x);s!==null&&(!(s.expirationTime>se)||ee&&!W());){var Y=s.callback;if(typeof Y=="function"){s.callback=null,a=s.priorityLevel;var J=Y(s.expirationTime<=se);se=h.unstable_now(),typeof J=="function"?s.callback=J:s===e(x)&&i(x),O(se)}else i(x);s=e(x)}if(s!==null)var V=!0;else{var te=e(u);te!==null&&Q(M,te.startTime-se),V=!1}return V}finally{s=null,a=ne,c=!1}}var D=!1,S=null,B=-1,T=5,L=-1;function W(){return!(h.unstable_now()-Lee||125Y?(ee.sortIndex=ne,n(u,ee),e(x)===null&&ee===e(u)&&(m?(j(B),B=-1):m=!0,Q(M,ne-Y))):(ee.sortIndex=J,n(x,ee),f||c||(f=!0,G(P))),ee},h.unstable_shouldYield=W,h.unstable_wrapCallback=function(ee){var se=a;return function(){var ne=a;a=se;try{return ee.apply(this,arguments)}finally{a=ne}}}},20686:function(y,h,n){"use strict";y.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(y,h){return h=h||{},new Promise(function(n,e){var i=new XMLHttpRequest,t=[],r={},l=function x(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:x,headers:{keys:function(){return t},entries:function(){return t.map(function(o){return[o,i.getResponseHeader(o)]})},get:function(o){return i.getResponseHeader(o)},has:function(o){return i.getResponseHeader(o)!=null}}}};for(var g in i.open(h.method||"get",y,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(x,u){r[u]||t.push(r[u]=u)}),n(l())},i.onerror=e,i.withCredentials=h.credentials=="include",h.headers)i.setRequestHeader(g,h.headers[g]);i.send(h.body||null)})})},7402:function(y,h,n){"use strict";n.d(h,{TS:function(){return a},Tj:function(){return g},Ul:function(){return u},hS:function(){return c},pb:function(){return l},yU:function(){return m}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(S,A){(A==null||A>S.length)&&(A=S.length);for(var R=0,L=new Array(A);R=S.length?{done:!0}:{done:!1,value:S[L++]}}}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 s=function(S){return function(A){if(A==null)return A;if(Array.isArray(A)){for(var R=[],L=0;LG)return 1}return 0},a=function(){for(var S=arguments.length,A=new Array(S),R=0;R>1,G=S(A[Y]),GL?Y:Y+1},O=function(S){return function(A,R){var L=[].concat(A);return L.splice(C(S,A,R),0,R),L}},_=function(S,A){for(var R=[],L=[],W=A,F=r(S),$;!($=F()).done;){var G=$.value;L.push(G),W--,W||(W=A,R.push(L),L=[])}return L.length&&R.push(L),R},b=function(S){return typeof S=="object"&&S!==null},D=function(){for(var S=arguments.length,A=new Array(S),R=0;RP.length)&&(D=P.length);for(var S=0,B=new Array(D);S=P.length?{done:!0}:{done:!1,value:P[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(P,D){if(P==null)return P;if(Array.isArray(P)){for(var S=[],B=0;B$)return 1}return 0},u=function(P){for(var D=function(z){var X=P[z];W.push({criteria:B.map(function(G){return G(X)}),value:X})},S=arguments.length,B=new Array(S>1?S-1:0),T=1;T>1,$=P(D[k]),$B?k:k+1},j=function(P,D,S){var B=[].concat(P);return B.splice(v(S,P,D),0,D),B},E=function(P,D){for(var S=[],B=[],T=D,L=r(P),W;!(W=L()).done;){var $=W.value;B.push($),T--,T||(T=D,S.push(B),B=[])}return B.length&&S.push(B),S},O=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,D=new Array(P),S=0;S1?d-1:0),x=1;x1?g-1:0),u=1;up.length)&&(x=p.length);for(var a=0,f=new Array(x);a=p.length?{done:!0}:{done:!1,value:p[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,s=function(){for(var p=arguments.length,x=new Array(p),a=0;a1?l-1:0),u=1;u1?v-1:0),h=1;hg.length)&&(x=g.length);for(var u=0,o=new Array(x);u=g.length?{done:!0}:{done:!1,value:g[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,l=function(){for(var g=arguments.length,x=new Array(g),u=0;u1?a-1:0),f=1;fl.length)&&(v=l.length);for(var u=0,h=new Array(v);u=l.length?{done:!0}:{done:!1,value:l[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(l,v,u){return lu?u:l},s=function(l){return l<0?0:l>1?1:l},d=function(l,v,u){return(l-v)/(u-v)},p=function(l,v){if(!l||isNaN(l))return l;var u,h,j,E;return v|=0,u=Math.pow(10,v),l*=u,E=+(l>0)|-(l<0),j=Math.abs(l%1)>=.4999999999854481,h=Math.floor(l),j&&(l=h+(E>0)),(j?l:Math.round(l))/u},x=function(l,v){return v===void 0&&(v=0),Number(l).toFixed(Math.max(v,0))},a=function(l,v){return v&&l>=v[0]&&l<=v[1]},f=function(l,v){for(var u=t(Object.keys(v)),h;!(h=u()).done;){var j=h.value,E=v[j];if(a(l,E))return j}},c=function(l){return Math.floor(l)!==l&&l.toString().split(".")[1].length||0}},12450:function(I,g,n){"use strict";n.d(g,{k:function(){return f}});/** + */function e(c,f){(f==null||f>c.length)&&(f=c.length);for(var m=0,v=new Array(f);m=c.length?{done:!0}:{done:!1,value:c[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=function(c,f,m){return cm?m:c},l=function(c){return c<0?0:c>1?1:c},g=function(c,f,m){return(c-f)/(m-f)},x=function(c,f){if(!c||isNaN(c))return c;var m,v,j,E;return f|=0,m=Math.pow(10,f),c*=m,E=+(c>0)|-(c<0),j=Math.abs(c%1)>=.4999999999854481,v=Math.floor(c),j&&(c=v+(E>0)),(j?c:Math.round(c))/m},u=function(c,f){return f===void 0&&(f=0),Number(c).toFixed(Math.max(f,0))},o=function(c,f){return f&&c>=f[0]&&c<=f[1]},s=function(c,f){for(var m=t(Object.keys(f)),v;!(v=m()).done;){var j=v.value,E=f[j];if(o(c,E))return j}},a=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},56236:function(y,h,n){"use strict";n.d(h,{k:function(){return s}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,25 +60,29 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,o=60,t=1e3/o,r=!!((e=window.performance)!=null&&e.now),s={},d={},p=function(c,l){},x=function(c,l){if(0)var v,u,h},a=function(c){var l=c/t;return c.toFixed(c<10?1:0)+"ms ("+l.toFixed(2)+" frames)"},f={mark:p,measure:x}},65380:function(I,g,n){"use strict";n.d(g,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** + */var e,i=60,t=1e3/i,r=!!((e=window.performance)!=null&&e.now),l={},g={};function x(a,c){}function u(a,c){return;var f,m,v}function o(a){var c=a/t;return a.toFixed(a<10?1:0)+"ms ("+c.toFixed(2)+" frames)"}var s={mark:x,measure:u}},65380:function(y,h,n){"use strict";n.d(h,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(s){for(var d="",p=0;pa.length)&&(f=a.length);for(var c=0,l=new Array(f);c=a.length?{done:!0}:{done:!1,value:a[l++]}}}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 s=function(a,f){if(f)return f(s)(a);var c,l=[],v=function(){return c},u=function(j){l.push(j)},h=function(j){c=a(c,j);for(var E=0;E1?u-1:0),j=1;j1?D-1:0),A=1;A1?D-1:0),A=1;Ao.length)&&(s=o.length);for(var a=0,c=new Array(s);a=o.length?{done:!0}:{done:!1,value:o[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(o,s){if(s)return s(l)(o);var a,c=[],f=function(){return a},m=function(j){c.push(j)},v=function(j){a=o(a,j);for(var E=0;E1?m-1:0),j=1;j1?S-1:0),T=1;T1?S-1:0),T=1;T0&&A[A.length-1])&&($[0]===6||$[0]===2)){L=0;continue}if($[0]===3&&(!A||$[1]>A[0]&&$[1]0&&T[T.length-1])&&(z[0]===6||z[0]===2)){W=0;continue}if(z[0]===3&&(!T||z[1]>T[0]&&z[1]v.length)&&(u=v.length);for(var h=0,j=new Array(u);h=v.length?{done:!0}:{done:!1,value:v[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(v){if(Array.isArray(v))return r(v.join(""));for(var u=v.split("\n"),h,j=t(u),E;!(E=j()).done;)for(var C=E.value,O=0;O",apos:"'"};return v.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(u,function(j,E){return h[E]}).replace(/&#?([0-9]+);/gi,function(j,E){var C=parseInt(E,10);return String.fromCharCode(C)}).replace(/&#x?([0-9a-f]+);/gi,function(j,E){var C=parseInt(E,16);return String.fromCharCode(C)})},l=function(v){return Object.keys(v).map(function(u){return encodeURIComponent(u)+"="+encodeURIComponent(v[u])}).join("&")}},32126:function(I,g,n){"use strict";n.d(g,{CO:function(){return d},Jk:function(){return l},Xd:function(){return f},Z4:function(){return p},tk:function(){return x}});var e=n(7402);/** + */function e(m,v){(v==null||v>m.length)&&(v=m.length);for(var j=0,E=new Array(v);j=m.length?{done:!0}:{done:!1,value:m[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(m,v){v===void 0&&(v=function(E){return JSON.stringify(E)});var j=m.toLowerCase().trim();return function(E){if(!j)return!0;var O=v(E);return O?O.toLowerCase().includes(j):!1}}function l(m){return m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()}function g(m){return m.replace(/(^\w{1})|(\s+\w{1})/g,function(v){return v.toUpperCase()})}function x(m){return m.replace(/^\w/,function(v){return v.toUpperCase()})}var u=["Id","Tv"],o=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function s(m){if(!m)return m;for(var v=m.replace(/([^\W_]+[^\s-]*) */g,function(T){return l(T)}),j=t(o),E;!(E=j()).done;){var O=E.value,M=new RegExp("\\s"+O+"\\s","g");v=v.replace(M,function(T){return T.toLowerCase()})}for(var P=t(u),D;!(D=P()).done;){var S=D.value,B=new RegExp("\\b"+S+"\\b","g");v=v.replace(B,function(T){return T.toLowerCase()})}return v}var a=/&(nbsp|amp|quot|lt|gt|apos);/g,c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function f(m){return m&&m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(a,function(v,j){return c[j]}).replace(/&#?([0-9]+);/gi,function(v,j){var E=parseInt(j,10);return String.fromCharCode(E)}).replace(/&#x?([0-9a-f]+);/gi,function(v,j){var E=parseInt(j,16);return String.fromCharCode(E)})}},27482:function(y,h,n){"use strict";n.d(h,{sg:function(){return e}});/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var e=function(r,l,g){g===void 0&&(g=!1);var x;return function(){for(var u=arguments.length,o=new Array(u),s=0;s=l?(r.apply(null,s),g=c):x=setTimeout(function(){return u.apply(void 0,[].concat(s))},l-(c-(g!=null?g:0)))}},t=function(r){return new Promise(function(l){return setTimeout(l,r)})}},87760:function(y,h,n){"use strict";n.d(h,{CO:function(){return g},Jk:function(){return c},Xd:function(){return s},Z4:function(){return x},tk:function(){return u}});var e=n(7402);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -86,11 +90,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var o=function(u,h){return u+h},t=function(u,h){return u-h},r=function(u,h){return u*h},s=function(u,h){return u/h},d=function(){for(var u=arguments.length,h=new Array(u),j=0;jx.length)&&(a=x.length);for(var f=0,c=new Array(a);f=x.length?{done:!0}:{done:!1,value:x[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],s={},d=function(x){return s[x]||x},p=function(x){return function(a){return function(f){var c=f.type,l=f.payload;if(c==="asset/stylesheet"){Byond.loadCss(l);return}if(c==="asset/mappings"){for(var v=function(){var j=h.value;if(r.some(function(O){return O.test(j)}))return"continue";var E=l[j],C=j.split(".").pop();s[j]=E,C==="css"&&Byond.loadCss(E),C==="js"&&Byond.loadJs(E)},u=t(Object.keys(l)),h;!(h=u()).done;)v();return}a(f)}}}},7081:function(I,g,n){"use strict";n.d(g,{H$:function(){return u},J3:function(){return v},JV:function(){return E},Oc:function(){return A},QY:function(){return L},Ul:function(){return R},d4:function(){return F},jB:function(){return _},pX:function(){return b}});var e=n(12450),o=n(74429),t=n(21547),r=n(37912),s=n(49945),d=n(92736),p=n(67278);/** + */function e(u,o){(o==null||o>u.length)&&(o=u.length);for(var s=0,a=new Array(o);s=u.length?{done:!0}:{done:!1,value:u[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],l={},g=function(u){return l[u]||u},x=function(u){return function(o){return function(s){var a=s.type,c=s.payload;if(a==="asset/stylesheet"){Byond.loadCss(c);return}if(a==="asset/mappings"){for(var f=function(){var j=v.value;if(r.some(function(M){return M.test(j)}))return"continue";var E=c[j],O=j.split(".").pop();l[j]=E,O==="css"&&Byond.loadCss(E),O==="js"&&Byond.loadJs(E)},m=t(Object.keys(c)),v;!(v=m()).done;)f();return}o(s)}}}},7081:function(y,h,n){"use strict";n.d(h,{H$:function(){return m},J3:function(){return f},JV:function(){return E},Oc:function(){return T},QY:function(){return W},d4:function(){return k},jB:function(){return P},pX:function(){return D}});var e=n(56236),i=n(74429),t=n(21547),r=n(37912),l=n(49945),g=n(92736),x=n(67278);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,307 +105,303 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x($,G){(G==null||G>$.length)&&(G=$.length);for(var Y=0,q=new Array(G);Y=$.length?{done:!0}:{done:!1,value:$[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 l=(0,d.h)("backend"),v,u=function($){v=$},h=(0,o.VP)("backend/update"),j=(0,o.VP)("backend/setSharedState"),E=(0,o.VP)("backend/suspendStart"),C=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},_=function($,G){$===void 0&&($=O);var Y=G.type,q=G.payload;if(Y==="backend/update"){var Z=a({},$.config,q.config),V=a({},$.data,q.static_data,q.data),z=a({},$.shared);if(q.shared)for(var X=c(Object.keys(q.shared)),U;!(U=X()).done;){var Q=U.value,ee=q.shared[Q];ee===""?z[Q]=void 0:z[Q]=JSON.parse(ee)}return a({},$,{config:Z,data:V,shared:z,suspended:!1})}if(Y==="backend/setSharedState"){var ne=q.key,ie=q.nextState,le;return a({},$,{shared:a({},$.shared,(le={},le[ne]=ie,le))})}if(Y==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Y==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Y==="backend/suspendStart")return a({},$,{suspending:!0});if(Y==="backend/suspendSuccess"){var ue=q.timestamp;return a({},$,{data:{},shared:{},config:a({},$.config,{title:"",status:1}),suspending:!1,suspended:ue})}return $},b=function($){var G,Y;return function(q){return function(Z){var V=S($.getState()).suspended,z=Z.type,X=Z.payload;if(z==="update"){$.dispatch(h(X));return}if(z==="suspend"){$.dispatch(C());return}if(z==="ping"){Byond.sendMessage("ping/reply");return}if(z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),z==="backend/suspendStart"&&!Y){l.log("suspending ("+Byond.windowId+")");var U=function(){return Byond.sendMessage("suspend")};U(),Y=setInterval(U,2e3)}if(z==="backend/suspendSuccess"&&((0,p.Su)(),clearInterval(Y),Y=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,s.$)()})),z==="backend/update"){var Q,ee,ne=(ee=X.config)==null||(Q=ee.window)==null?void 0:Q.fancy;G===void 0?G=ne:G!==ne&&(l.log("changing fancy mode to",ne),G=ne,Byond.winset(Byond.windowId,{titlebar:!ne,"can-resize":!ne}))}return z==="backend/update"&&V&&(l.log("backend/update",X),(0,p.P7)(),(0,t.MN)(),setImmediate(function(){e.k.mark("resume/start");var ie=S($.getState()).suspended;ie||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),q(Z)}}},D=function($,G){G===void 0&&(G={});var Y=typeof G=="object"&&G!==null&&!Array.isArray(G);if(!Y){l.error("Payload for act() must be an object, got this:",G);return}Byond.sendMessage("act/"+$,G)},S=function($){return $.backend||{}},A=function(){var $,G=v==null||($=v.getState())==null?void 0:$.backend;return a({},G,{act:D})},R=function($,G){var Y,q=v==null||(Y=v.getState())==null?void 0:Y.backend,Z,V=(Z=q==null?void 0:q.shared)!=null?Z:{},z=$ in V?V[$]:G;return[z,function(X){v.dispatch(j({key:$,nextState:typeof X=="function"?X(z):X}))}]},L=function($,G){var Y,q=v==null||(Y=v.getState())==null?void 0:Y.backend,Z,V=(Z=q==null?void 0:q.shared)!=null?Z:{},z=$ in V?V[$]:G;return[z,function(X){Byond.sendMessage({type:"setSharedState",key:$,value:JSON.stringify(typeof X=="function"?X(z):X)||""})}]},W=function(){return v.dispatch},F=function($){return $(v==null?void 0:v.getState())}},96781:function(I,g,n){"use strict";n.d(g,{Fl:function(){return b},WP:function(){return D},az:function(){return S},zA:function(){return f}});var e=n(65380),o=n(28277),t=n(79500),r=n(92736);/** + */function u(z,X){(X==null||X>z.length)&&(X=z.length);for(var G=0,Q=new Array(X);G=z.length?{done:!0}:{done:!1,value:z[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=(0,g.h)("backend"),f,m=function(z){f=z},v=(0,i.VP)("backend/update"),j=(0,i.VP)("backend/setSharedState"),E=(0,i.VP)("backend/suspendStart"),O=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function(z,X){z===void 0&&(z=M);var G=X.type,Q=X.payload;if(G==="backend/update"){var ee=o({},z.config,Q.config),se=o({},z.data,Q.static_data,Q.data),ne=o({},z.shared);if(Q.shared)for(var Y=a(Object.keys(Q.shared)),J;!(J=Y()).done;){var V=J.value,te=Q.shared[V];te===""?ne[V]=void 0:ne[V]=JSON.parse(te)}return o({},z,{config:ee,data:se,shared:ne,suspended:!1})}if(G==="backend/setSharedState"){var ce=Q.key,le=Q.nextState,fe;return o({},z,{shared:o({},z.shared,(fe={},fe[ce]=le,fe))})}if(G==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),G==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),G==="backend/suspendStart")return o({},z,{suspending:!0});if(G==="backend/suspendSuccess"){var ge=Q.timestamp;return o({},z,{data:{},shared:{},config:o({},z.config,{title:"",status:1}),suspending:!1,suspended:ge})}return z},D=function(z){var X,G;return function(Q){return function(ee){var se=B(z.getState()).suspended,ne=ee.type,Y=ee.payload;if(ne==="update"){z.dispatch(v(Y));return}if(ne==="suspend"){z.dispatch(O());return}if(ne==="ping"){Byond.sendMessage("ping/reply");return}if(ne==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),ne==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),ne==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),ne==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),ne==="backend/suspendStart"&&!G){c.log("suspending ("+Byond.windowId+")");var J=function(){return Byond.sendMessage("suspend")};J(),G=setInterval(J,2e3)}if(ne==="backend/suspendSuccess"&&((0,x.Su)(),clearInterval(G),G=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,l.$)()})),ne==="backend/update"){var V,te,ce=(te=Y.config)==null||(V=te.window)==null?void 0:V.fancy;X===void 0?X=ce:X!==ce&&(c.log("changing fancy mode to",ce),X=ce,Byond.winset(Byond.windowId,{titlebar:!ce,"can-resize":!ce}))}return ne==="backend/update"&&se&&(c.log("backend/update",Y),(0,x.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var le=B(z.getState()).suspended;le||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),Q(ee)}}},S=function(z,X){X===void 0&&(X={});var G=typeof X=="object"&&X!==null&&!Array.isArray(X);if(!G){c.error("Payload for act() must be an object, got this:",X);return}Byond.sendMessage("act/"+z,X)},B=function(z){return z.backend||{}},T=function(){var z,X=f==null||(z=f.getState())==null?void 0:z.backend;return o({},X,{act:S})},L=function(z,X){var G,Q=f==null||(G=f.getState())==null?void 0:G.backend,ee,se=(ee=Q==null?void 0:Q.shared)!=null?ee:{},ne=z in se?se[z]:X;return[ne,function(Y){f.dispatch(j({key:z,nextState:typeof Y=="function"?Y(ne):Y}))}]},W=function(z,X){var G,Q=f==null||(G=f.getState())==null?void 0:G.backend,ee,se=(ee=Q==null?void 0:Q.shared)!=null?ee:{},ne=z in se?se[z]:X;return[ne,function(Y){Byond.sendMessage({type:"setSharedState",key:z,value:JSON.stringify(typeof Y=="function"?Y(ne):Y)||""})}]},$=function(){return f.dispatch},k=function(z){return z(f==null?void 0:f.getState())}},96781:function(y,h,n){"use strict";n.d(h,{Fl:function(){return D},WP:function(){return S},az:function(){return B},zA:function(){return s}});var e=n(65380),i=n(61358),t=n(79500),r=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function s(A,R){(R==null||R>A.length)&&(R=A.length);for(var L=0,W=new Array(R);L=0)&&(L[F]=A[F]);return L}function x(A,R){if(A){if(typeof A=="string")return s(A,R);var L=Object.prototype.toString.call(A).slice(8,-1);if(L==="Object"&&A.constructor&&(L=A.constructor.name),L==="Map"||L==="Set")return Array.from(L);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return s(A,R)}}function a(A,R){var L=typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(L)return(L=L.call(A)).next.bind(L);if(Array.isArray(A)||(L=x(A))||R&&A&&typeof A.length=="number"){L&&(A=L);var W=0;return function(){return W>=A.length?{done:!0}:{done:!1,value:A[W++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(A){if(typeof A=="string")return A.endsWith("px")?parseFloat(A)/12+"rem":A;if(typeof A=="number")return A+"rem"},c=function(A){if(typeof A=="string")return f(A);if(typeof A=="number")return f(A*.5)},l=function(A){return!v(A)},v=function(A){return typeof A=="string"&&t.NE.includes(A)},u=function(A){return function(R,L){(typeof L=="number"||typeof L=="string")&&(R[A]=L)}},h=function(A,R){return function(L,W){(typeof W=="number"||typeof W=="string")&&(L[A]=R(W))}},j=function(A,R){return function(L,W){W&&(L[A]=R)}},E=function(A,R,L){return function(W,F){if(typeof F=="number"||typeof F=="string")for(var $=0;$T.length)&&(L=T.length);for(var W=0,$=new Array(L);W=0)&&(W[k]=T[k]);return W}function u(T,L){if(T){if(typeof T=="string")return l(T,L);var W=Object.prototype.toString.call(T).slice(8,-1);if(W==="Object"&&T.constructor&&(W=T.constructor.name),W==="Map"||W==="Set")return Array.from(W);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return l(T,L)}}function o(T,L){var W=typeof Symbol!="undefined"&&T[Symbol.iterator]||T["@@iterator"];if(W)return(W=W.call(T)).next.bind(W);if(Array.isArray(T)||(W=u(T))||L&&T&&typeof T.length=="number"){W&&(T=W);var $=0;return function(){return $>=T.length?{done:!0}:{done:!1,value:T[$++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(T){if(typeof T=="string")return T.endsWith("px")?parseFloat(T)/12+"rem":T;if(typeof T=="number")return T+"rem"},a=function(T){if(typeof T=="string")return s(T);if(typeof T=="number")return s(T*.5)},c=function(T){return!f(T)},f=function(T){return typeof T=="string"&&t.NE.includes(T)},m=function(T){return function(L,W){(typeof W=="number"||typeof W=="string")&&(L[T]=W)}},v=function(T,L){return function(W,$){(typeof $=="number"||typeof $=="string")&&(W[T]=L($))}},j=function(T,L){return function(W,$){$&&(W[T]=L)}},E=function(T,L,W){return function($,k){if(typeof k=="number"||typeof k=="string")for(var z=0;z=0)&&(s[c]=u[c]);return s}var g=5;function x(u){var o=u.fixBlur,s=o===void 0?!0:o,a=u.fixErrors,c=a===void 0?!1:a,f=u.objectFit,m=f===void 0?"fill":f,v=u.src,j=l(u,["fixBlur","fixErrors","objectFit","src"]),E=(0,i.useRef)(0),O=(0,t.Fl)(j);return O.style=r({},O.style,{"-ms-interpolation-mode":s?"nearest-neighbor":"auto",objectFit:m}),(0,e.jsx)("img",r({onError:function(M){if(c&&E.current=0)&&(c[v]=a[v]);return c}var d=function(a){var f=a.className,c=a.collapsing,l=a.children,v=s(a,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,o.Ly)(["Table",c&&"Table--collapsing",f,(0,t.WP)(v)])},(0,t.Fl)(v),{children:(0,e.jsx)("tbody",{children:l})}))},p=function(a){var f=a.className,c=a.header,l=s(a,["className","header"]);return(0,e.jsx)("tr",r({className:(0,o.Ly)(["Table__row",c&&"Table__row--header",f,(0,t.WP)(a)])},(0,t.Fl)(l)))},x=function(a){var f=a.className,c=a.collapsing,l=a.header,v=s(a,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,o.Ly)(["Table__cell",c&&"Table__cell--collapsing",l&&"Table__cell--header",f,(0,t.WP)(a)])},(0,t.Fl)(v)))};d.Row=p,d.Cell=x},16754:function(I,g,n){"use strict";n.d(g,{zv:function(){return f},y5:function(){return c},Z8:function(){return j},Y0:function(){return b},az:function(){return C.az},$n:function(){return Hn},D1:function(){return jo},t1:function(){return Eo},Nt:function(){return cl},BK:function(){return ul},Rr:function(){return ls},cG:function(){return cs},Hx:function(){return Oo},ms:function(){return ms},so:function(){return pt},In:function(){return L},_V:function(){return El},pd:function(){return Os},N6:function(){return bl},Wx:function(){return Is},Ki:function(){return Rr},aF:function(){return Ma},tx:function(){return Da},IC:function(){return wt},Q7:function(){return Ps},ND:function(){return hs},z2:function(){return St},SM:function(){return wr},wn:function(){return Ds},Ap:function(){return zo},BJ:function(){return Po},XI:function(){return Bi.XI},tU:function(){return Ur},fs:function(){return Nr},m_:function(){return rt}});var e=n(62161),o=n(4089),t=n(28277);/** + */function r(){return r=Object.assign||function(o){for(var s=1;s=0)&&(a[f]=o[f]);return a}var g=function(o){var s=o.className,a=o.collapsing,c=o.children,f=l(o,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,i.Ly)(["Table",a&&"Table--collapsing",s,(0,t.WP)(f)])},(0,t.Fl)(f),{children:(0,e.jsx)("tbody",{children:c})}))},x=function(o){var s=o.className,a=o.header,c=l(o,["className","header"]);return(0,e.jsx)("tr",r({className:(0,i.Ly)(["Table__row",a&&"Table__row--header",s,(0,t.WP)(o)])},(0,t.Fl)(c)))},u=function(o){var s=o.className,a=o.collapsing,c=o.header,f=l(o,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,i.Ly)(["Table__cell",a&&"Table__cell--collapsing",c&&"Table__cell--header",s,(0,t.WP)(o)])},(0,t.Fl)(f)))};g.Row=x,g.Cell=u},88569:function(y,h,n){"use strict";n.d(h,{zv:function(){return s},y5:function(){return a},Z8:function(){return j},Y0:function(){return D},az:function(){return O.az},$n:function(){return Yn},D1:function(){return mi},t1:function(){return Qi},Nt:function(){return xi},BK:function(){return cl},Rr:function(){return ts},cG:function(){return rs},Hx:function(){return pi},ms:function(){return ds},so:function(){return Jt},In:function(){return W},_V:function(){return dl._},pd:function(){return Or},N6:function(){return Es},Wx:function(){return yi},Ki:function(){return $t},aF:function(){return Sl},tx:function(){return Di},IC:function(){return Ma},Q7:function(){return Qr},ND:function(){return cs},z2:function(){return da},SM:function(){return Os},wn:function(){return ys},Ap:function(){return Lr},BJ:function(){return Cr},XI:function(){return Ci.XI},tU:function(){return ht},fs:function(){return ir},m_:function(){return st}});var e=n(20462),i=n(4089),t=n(61358);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(M,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(T&&T.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),T&&s(M,T)}function s(M,T){return s=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},s(M,T)}var d=function(M){return typeof M=="number"&&Number.isFinite(M)&&!Number.isNaN(M)},p=1e3/60,x=.8333,a=.001,f=function(M){"use strict";r(T,M);function T(N){var B;B=M.call(this,N)||this,B.ref=(0,t.createRef)(),B.currentValue=0;var H=N.initial,te=N.value;return H!==void 0&&d(H)?B.currentValue=H:d(te)&&(B.currentValue=te),B}var w=T.prototype;return w.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},w.componentWillUnmount=function(){this.stopTicking()},w.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},w.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},p))},w.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},w.tick=function(){var B=this.currentValue,H=this.props.value;d(H)?this.currentValue=B*x+H*(1-x):this.stopTicking(),Math.abs(H-this.currentValue)=0)&&(w[B]=M[B]);return w}function b(M){var T=M.className,w=_(M,["className"]);return(0,e.jsx)(C.az,O({className:(0,E.Ly)(["BlockQuote",T])},w))}var D=n(87239);/** + */function M(){return M=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function D(_){var b=_.className,K=P(_,["className"]);return(0,e.jsx)(O.az,M({className:(0,E.Ly)(["BlockQuote",b])},K))}var S=n(87239);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function S(){return S=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var R=/-o$/,L=function(M){var T=M.name,w=M.size,N=M.spin,B=M.className,H=M.rotation,te=A(M,["name","size","spin","className","rotation"]),re=te.style||{};w&&(re.fontSize=w*100+"%"),H&&(re.transform="rotate("+H+"deg)"),te.style=re;var ce=(0,C.Fl)(te),se="";if(T.startsWith("tg-"))se=T;else{var de=R.test(T),je=T.replace(R,""),Oe=!je.startsWith("fa-");se=de?"far ":"fas ",Oe&&(se+="fa-"),se+=je,N&&(se+=" fa-spin")}return(0,e.jsx)("i",S({className:(0,E.Ly)(["Icon",se,B,(0,C.WP)(te)])},ce))},W=function(M){var T=M.className,w=M.children,N=A(M,["className","children"]);return(0,e.jsx)("span",S({className:(0,E.Ly)(["IconStack",T,(0,C.WP)(N)])},(0,C.Fl)(N),{children:w}))};L.Stack=W;function F(M){if(M==null)return window;if(M.toString()!=="[object Window]"){var T=M.ownerDocument;return T&&T.defaultView||window}return M}function $(M,T){return T!=null&&typeof Symbol!="undefined"&&T[Symbol.hasInstance]?!!T[Symbol.hasInstance](M):M instanceof T}function G(M){var T=F(M).Element;return $(M,T)||$(M,Element)}function Y(M){var T=F(M).HTMLElement;return $(M,T)||$(M,HTMLElement)}function q(M){if(typeof ShadowRoot=="undefined")return!1;var T=F(M).ShadowRoot;return $(M,T)||$(M,ShadowRoot)}var Z=Math.max,V=Math.min,z=Math.round;function X(){var M=navigator.userAgentData;return M!=null&&M.brands&&Array.isArray(M.brands)?M.brands.map(function(T){return T.brand+"/"+T.version}).join(" "):navigator.userAgent}function U(){return!/^((?!chrome|android).)*safari/i.test(X())}function Q(M,T,w){T===void 0&&(T=!1),w===void 0&&(w=!1);var N=M.getBoundingClientRect(),B=1,H=1;T&&Y(M)&&(B=M.offsetWidth>0&&z(N.width)/M.offsetWidth||1,H=M.offsetHeight>0&&z(N.height)/M.offsetHeight||1);var te=G(M)?F(M):window,re=te.visualViewport,ce=!U()&&w,se=(N.left+(ce&&re?re.offsetLeft:0))/B,de=(N.top+(ce&&re?re.offsetTop:0))/H,je=N.width/B,Oe=N.height/H;return{width:je,height:Oe,top:de,right:se+je,bottom:de+Oe,left:se,x:se,y:de}}function ee(M){var T=F(M),w=T.pageXOffset,N=T.pageYOffset;return{scrollLeft:w,scrollTop:N}}function ne(M){return{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function ie(M){return M===F(M)||!Y(M)?ee(M):ne(M)}function le(M){return M?(M.nodeName||"").toLowerCase():null}function ue(M){return((G(M)?M.ownerDocument:M.document)||window.document).documentElement}function ge(M){return Q(ue(M)).left+ee(M).scrollLeft}function xe(M){return F(M).getComputedStyle(M)}function me(M){var T=xe(M),w=T.overflow,N=T.overflowX,B=T.overflowY;return/auto|scroll|overlay|hidden/.test(w+B+N)}function _e(M){var T=M.getBoundingClientRect(),w=z(T.width)/M.offsetWidth||1,N=z(T.height)/M.offsetHeight||1;return w!==1||N!==1}function We(M,T,w){w===void 0&&(w=!1);var N=Y(T),B=Y(T)&&_e(T),H=ue(T),te=Q(M,B,w),re={scrollLeft:0,scrollTop:0},ce={x:0,y:0};return(N||!N&&!w)&&((le(T)!=="body"||me(H))&&(re=ie(T)),Y(T)?(ce=Q(T,!0),ce.x+=T.clientLeft,ce.y+=T.clientTop):H&&(ce.x=ge(H))),{x:te.left+re.scrollLeft-ce.x,y:te.top+re.scrollTop-ce.y,width:te.width,height:te.height}}function Ve(M){var T=Q(M),w=M.offsetWidth,N=M.offsetHeight;return Math.abs(T.width-w)<=1&&(w=T.width),Math.abs(T.height-N)<=1&&(N=T.height),{x:M.offsetLeft,y:M.offsetTop,width:w,height:N}}function ye(M){return le(M)==="html"?M:M.assignedSlot||M.parentNode||(q(M)?M.host:null)||ue(M)}function Pe(M){return["html","body","#document"].indexOf(le(M))>=0?M.ownerDocument.body:Y(M)&&me(M)?M:Pe(ye(M))}function nn(M,T){var w;T===void 0&&(T=[]);var N=Pe(M),B=N===((w=M.ownerDocument)==null?void 0:w.body),H=F(N),te=B?[H].concat(H.visualViewport||[],me(N)?N:[]):N,re=T.concat(te);return B?re:re.concat(nn(ye(te)))}function dn(M){return["table","td","th"].indexOf(le(M))>=0}function mn(M){return!Y(M)||xe(M).position==="fixed"?null:M.offsetParent}function fn(M){var T=/firefox/i.test(X()),w=/Trident/i.test(X());if(w&&Y(M)){var N=xe(M);if(N.position==="fixed")return null}var B=ye(M);for(q(B)&&(B=B.host);Y(B)&&["html","body"].indexOf(le(B))<0;){var H=xe(B);if(H.transform!=="none"||H.perspective!=="none"||H.contain==="paint"||["transform","perspective"].indexOf(H.willChange)!==-1||T&&H.willChange==="filter"||T&&H.filter&&H.filter!=="none")return B;B=B.parentNode}return null}function un(M){for(var T=F(M),w=mn(M);w&&dn(w)&&xe(w).position==="static";)w=mn(w);return w&&(le(w)==="html"||le(w)==="body"&&xe(w).position==="static")?T:w||fn(M)||T}var He="top",Ke="bottom",Me="right",Le="left",De="auto",Fe=[He,Ke,Me,Le],Ne="start",Be="end",Cn="clippingParents",Ln="viewport",Mn="popper",Rn="reference",gn=Fe.reduce(function(M,T){return M.concat([T+"-"+Ne,T+"-"+Be])},[]),Ge=[].concat(Fe,[De]).reduce(function(M,T){return M.concat([T,T+"-"+Ne,T+"-"+Be])},[]),Xe="beforeRead",on="read",pn="afterRead",bn="beforeMain",zn="main",tt="afterMain",Fn="beforeWrite",dt="write",Rt="afterWrite",Vt=[Xe,on,pn,bn,zn,tt,Fn,dt,Rt];function Xt(M){var T=new Map,w=new Set,N=[];M.forEach(function(H){T.set(H.name,H)});function B(H){w.add(H.name);var te=[].concat(H.requires||[],H.requiresIfExists||[]);te.forEach(function(re){if(!w.has(re)){var ce=T.get(re);ce&&B(ce)}}),N.push(H)}return M.forEach(function(H){w.has(H.name)||B(H)}),N}function Ei(M){var T=Xt(M);return Vt.reduce(function(w,N){return w.concat(T.filter(function(B){return B.phase===N}))},[])}function Ci(M){var T;return function(){return T||(T=new Promise(function(w){Promise.resolve().then(function(){T=void 0,w(M())})})),T}}function yi(M){var T=M.reduce(function(w,N){var B=w[N.name];return w[N.name]=B?Object.assign({},B,N,{options:Object.assign({},B.options,N.options),data:Object.assign({},B.data,N.data)}):N,w},{});return Object.keys(T).map(function(w){return T[w]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var M=arguments.length,T=new Array(M),w=0;w=0?"x":"y"}function _r(M){var T=M.reference,w=M.element,N=M.placement,B=N?vt(N):null,H=N?xt(N):null,te=T.x+T.width/2-w.width/2,re=T.y+T.height/2-w.height/2,ce;switch(B){case He:ce={x:te,y:T.y-w.height};break;case Ke:ce={x:te,y:T.y+T.height};break;case Me:ce={x:T.x+T.width,y:re};break;case Le:ce={x:T.x-w.width,y:re};break;default:ce={x:T.x,y:T.y}}var se=B?cr(B):null;if(se!=null){var de=se==="y"?"height":"width";switch(H){case Ne:ce[se]=ce[se]-(T[de]/2-w[de]/2);break;case Be:ce[se]=ce[se]+(T[de]/2-w[de]/2);break;default:}}return ce}function Oi(M){var T=M.state,w=M.name;T.modifiersData[w]=_r({reference:T.rects.reference,element:T.rects.popper,strategy:"absolute",placement:T.placement})}var na={name:"popperOffsets",enabled:!0,phase:"read",fn:Oi,data:{}},ta={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ra(M,T){var w=M.x,N=M.y,B=T.devicePixelRatio||1;return{x:z(w*B)/B||0,y:z(N*B)/B||0}}function Bt(M){var T,w=M.popper,N=M.popperRect,B=M.placement,H=M.variation,te=M.offsets,re=M.position,ce=M.gpuAcceleration,se=M.adaptive,de=M.roundOffsets,je=M.isFixed,Oe=te.x,Ee=Oe===void 0?0:Oe,be=te.y,Ae=be===void 0?0:be,we=typeof de=="function"?de({x:Ee,y:Ae}):{x:Ee,y:Ae};Ee=we.x,Ae=we.y;var Ue=te.hasOwnProperty("x"),$e=te.hasOwnProperty("y"),an=Le,ze=He,sn=window;if(se){var Ze=un(w),ln="clientHeight",hn="clientWidth";if(Ze===F(w)&&(Ze=ue(w),xe(Ze).position!=="static"&&re==="absolute"&&(ln="scrollHeight",hn="scrollWidth")),Ze=Ze,B===He||(B===Le||B===Me)&&H===Be){ze=Ke;var En=je&&Ze===sn&&sn.visualViewport?sn.visualViewport.height:Ze[ln];Ae-=En-N.height,Ae*=ce?1:-1}if(B===Le||(B===He||B===Ke)&&H===Be){an=Me;var qe=je&&Ze===sn&&sn.visualViewport?sn.visualViewport.width:Ze[hn];Ee-=qe-N.width,Ee*=ce?1:-1}}var cn=Object.assign({position:re},se&&ta),tn=de===!0?ra({x:Ee,y:Ae},F(w)):{x:Ee,y:Ae};if(Ee=tn.x,Ae=tn.y,ce){var Tn;return Object.assign({},cn,(Tn={},Tn[ze]=$e?"0":"",Tn[an]=Ue?"0":"",Tn.transform=(sn.devicePixelRatio||1)<=1?"translate("+Ee+"px, "+Ae+"px)":"translate3d("+Ee+"px, "+Ae+"px, 0)",Tn))}return Object.assign({},cn,(T={},T[ze]=$e?Ae+"px":"",T[an]=Ue?Ee+"px":"",T.transform="",T))}function no(M){var T=M.state,w=M.options,N=w.gpuAcceleration,B=N===void 0?!0:N,H=w.adaptive,te=H===void 0?!0:H,re=w.roundOffsets,ce=re===void 0?!0:re,se={placement:vt(T.placement),variation:xt(T.placement),popper:T.elements.popper,popperRect:T.rects.popper,gpuAcceleration:B,isFixed:T.options.strategy==="fixed"};T.modifiersData.popperOffsets!=null&&(T.styles.popper=Object.assign({},T.styles.popper,Bt(Object.assign({},se,{offsets:T.modifiersData.popperOffsets,position:T.options.strategy,adaptive:te,roundOffsets:ce})))),T.modifiersData.arrow!=null&&(T.styles.arrow=Object.assign({},T.styles.arrow,Bt(Object.assign({},se,{offsets:T.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ce})))),T.attributes.popper=Object.assign({},T.attributes.popper,{"data-popper-placement":T.placement})}var to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:no,data:{}};function ia(M){var T=M.state;Object.keys(T.elements).forEach(function(w){var N=T.styles[w]||{},B=T.attributes[w]||{},H=T.elements[w];!Y(H)||!le(H)||(Object.assign(H.style,N),Object.keys(B).forEach(function(te){var re=B[te];re===!1?H.removeAttribute(te):H.setAttribute(te,re===!0?"":re)}))})}function ro(M){var T=M.state,w={popper:{position:T.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(T.elements.popper.style,w.popper),T.styles=w,T.elements.arrow&&Object.assign(T.elements.arrow.style,w.arrow),function(){Object.keys(T.elements).forEach(function(N){var B=T.elements[N],H=T.attributes[N]||{},te=Object.keys(T.styles.hasOwnProperty(N)?T.styles[N]:w[N]),re=te.reduce(function(ce,se){return ce[se]="",ce},{});!Y(B)||!le(B)||(Object.assign(B.style,re),Object.keys(H).forEach(function(ce){B.removeAttribute(ce)}))})}}var io={name:"applyStyles",enabled:!0,phase:"write",fn:ia,effect:ro,requires:["computeStyles"]};function oo(M,T,w){var N=vt(M),B=[Le,He].indexOf(N)>=0?-1:1,H=typeof w=="function"?w(Object.assign({},T,{placement:M})):w,te=H[0],re=H[1];return te=te||0,re=(re||0)*B,[Le,Me].indexOf(N)>=0?{x:re,y:te}:{x:te,y:re}}function oe(M){var T=M.state,w=M.options,N=M.name,B=w.offset,H=B===void 0?[0,0]:B,te=Ge.reduce(function(de,je){return de[je]=oo(je,T.rects,H),de},{}),re=te[T.placement],ce=re.x,se=re.y;T.modifiersData.popperOffsets!=null&&(T.modifiersData.popperOffsets.x+=ce,T.modifiersData.popperOffsets.y+=se),T.modifiersData[N]=te}var Re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oe},nl={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(M){return M.replace(/left|right|bottom|top/g,function(T){return nl[T]})}var tl={start:"end",end:"start"};function ao(M){return M.replace(/start|end/g,function(T){return tl[T]})}function Va(M,T){var w=F(M),N=ue(M),B=w.visualViewport,H=N.clientWidth,te=N.clientHeight,re=0,ce=0;if(B){H=B.width,te=B.height;var se=U();(se||!se&&T==="fixed")&&(re=B.offsetLeft,ce=B.offsetTop)}return{width:H,height:te,x:re+ge(M),y:ce}}function so(M){var T,w=ue(M),N=ee(M),B=(T=M.ownerDocument)==null?void 0:T.body,H=Z(w.scrollWidth,w.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=Z(w.scrollHeight,w.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-N.scrollLeft+ge(M),ce=-N.scrollTop;return xe(B||w).direction==="rtl"&&(re+=Z(w.clientWidth,B?B.clientWidth:0)-H),{width:H,height:te,x:re,y:ce}}function Xa(M,T){var w=T.getRootNode&&T.getRootNode();if(M.contains(T))return!0;if(w&&q(w)){var N=T;do{if(N&&M.isSameNode(N))return!0;N=N.parentNode||N.host}while(N)}return!1}function lo(M){return Object.assign({},M,{left:M.x,top:M.y,right:M.x+M.width,bottom:M.y+M.height})}function co(M,T){var w=Q(M,!1,T==="fixed");return w.top=w.top+M.clientTop,w.left=w.left+M.clientLeft,w.bottom=w.top+M.clientHeight,w.right=w.left+M.clientWidth,w.width=M.clientWidth,w.height=M.clientHeight,w.x=w.left,w.y=w.top,w}function bt(M,T,w){return T===Ln?lo(Va(M,w)):G(T)?co(T,w):lo(so(ue(M)))}function rl(M){var T=nn(ye(M)),w=["absolute","fixed"].indexOf(xe(M).position)>=0,N=w&&Y(M)?un(M):M;return G(N)?T.filter(function(B){return G(B)&&Xa(B,N)&&le(B)!=="body"}):[]}function Mt(M,T,w,N){var B=T==="clippingParents"?rl(M):[].concat(T),H=[].concat(B,[w]),te=H[0],re=H.reduce(function(ce,se){var de=bt(M,se,N);return ce.top=Z(de.top,ce.top),ce.right=V(de.right,ce.right),ce.bottom=V(de.bottom,ce.bottom),ce.left=Z(de.left,ce.left),ce},bt(M,te,N));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Ga(){return{top:0,right:0,bottom:0,left:0}}function Ha(M){return Object.assign({},Ga(),M)}function Ya(M,T){return T.reduce(function(w,N){return w[N]=M,w},{})}function ur(M,T){T===void 0&&(T={});var w=T,N=w.placement,B=N===void 0?M.placement:N,H=w.strategy,te=H===void 0?M.strategy:H,re=w.boundary,ce=re===void 0?Cn:re,se=w.rootBoundary,de=se===void 0?Ln:se,je=w.elementContext,Oe=je===void 0?Mn:je,Ee=w.altBoundary,be=Ee===void 0?!1:Ee,Ae=w.padding,we=Ae===void 0?0:Ae,Ue=Ha(typeof we!="number"?we:Ya(we,Fe)),$e=Oe===Mn?Rn:Mn,an=M.rects.popper,ze=M.elements[be?$e:Oe],sn=Mt(G(ze)?ze:ze.contextElement||ue(M.elements.popper),ce,de,te),Ze=Q(M.elements.reference),ln=_r({reference:Ze,element:an,strategy:"absolute",placement:B}),hn=lo(Object.assign({},an,ln)),En=Oe===Mn?hn:Ze,qe={top:sn.top-En.top+Ue.top,bottom:En.bottom-sn.bottom+Ue.bottom,left:sn.left-En.left+Ue.left,right:En.right-sn.right+Ue.right},cn=M.modifiersData.offset;if(Oe===Mn&&cn){var tn=cn[B];Object.keys(qe).forEach(function(Tn){var Un=[Me,Ke].indexOf(Tn)>=0?1:-1,kn=[He,Ke].indexOf(Tn)>=0?"y":"x";qe[Tn]+=tn[kn]*Un})}return qe}function uo(M,T){T===void 0&&(T={});var w=T,N=w.placement,B=w.boundary,H=w.rootBoundary,te=w.padding,re=w.flipVariations,ce=w.allowedAutoPlacements,se=ce===void 0?Ge:ce,de=xt(N),je=de?re?gn:gn.filter(function(be){return xt(be)===de}):Fe,Oe=je.filter(function(be){return se.indexOf(be)>=0});Oe.length===0&&(Oe=je);var Ee=Oe.reduce(function(be,Ae){return be[Ae]=ur(M,{placement:Ae,boundary:B,rootBoundary:H,padding:te})[vt(Ae)],be},{});return Object.keys(Ee).sort(function(be,Ae){return Ee[be]-Ee[Ae]})}function Ii(M){if(vt(M)===De)return[];var T=Bn(M);return[ao(M),T,ao(T)]}function fo(M){var T=M.state,w=M.options,N=M.name;if(!T.modifiersData[N]._skip){for(var B=w.mainAxis,H=B===void 0?!0:B,te=w.altAxis,re=te===void 0?!0:te,ce=w.fallbackPlacements,se=w.padding,de=w.boundary,je=w.rootBoundary,Oe=w.altBoundary,Ee=w.flipVariations,be=Ee===void 0?!0:Ee,Ae=w.allowedAutoPlacements,we=T.options.placement,Ue=vt(we),$e=Ue===we,an=ce||($e||!be?[Bn(we)]:Ii(we)),ze=[we].concat(an).reduce(function(nr,tr){return nr.concat(vt(tr)===De?uo(T,{placement:tr,boundary:de,rootBoundary:je,padding:se,flipVariations:be,allowedAutoPlacements:Ae}):tr)},[]),sn=T.rects.reference,Ze=T.rects.popper,ln=new Map,hn=!0,En=ze[0],qe=0;qe=0,kn=Un?"width":"height",Nn=ur(T,{placement:cn,boundary:de,rootBoundary:je,altBoundary:Oe,padding:se}),Jn=Un?Tn?Me:Le:Tn?Ke:He;sn[kn]>Ze[kn]&&(Jn=Bn(Jn));var er=Bn(Jn),kt=[];if(H&&kt.push(Nn[tn]<=0),re&&kt.push(Nn[Jn]<=0,Nn[er]<=0),kt.every(function(nr){return nr})){En=cn,hn=!1;break}ln.set(cn,kt)}if(hn)for(var Vi=be?3:1,Xo=function(tr){var ui=ze.find(function(rr){var Er=ln.get(rr);if(Er)return Er.slice(0,tr).every(function(Wr){return Wr})});if(ui)return En=ui,"break"},kr=Vi;kr>0;kr--){var jr=Xo(kr);if(jr==="break")break}T.placement!==En&&(T.modifiersData[N]._skip=!0,T.placement=En,T.reset=!0)}}var il={name:"flip",enabled:!0,phase:"main",fn:fo,requiresIfExists:["offset"],data:{_skip:!1}};function ol(M){return M==="x"?"y":"x"}function br(M,T,w){return Z(M,V(T,w))}function Qa(M,T,w){var N=br(M,T,w);return N>w?w:N}function oa(M){var T=M.state,w=M.options,N=M.name,B=w.mainAxis,H=B===void 0?!0:B,te=w.altAxis,re=te===void 0?!1:te,ce=w.boundary,se=w.rootBoundary,de=w.altBoundary,je=w.padding,Oe=w.tether,Ee=Oe===void 0?!0:Oe,be=w.tetherOffset,Ae=be===void 0?0:be,we=ur(T,{boundary:ce,rootBoundary:se,padding:je,altBoundary:de}),Ue=vt(T.placement),$e=xt(T.placement),an=!$e,ze=cr(Ue),sn=ol(ze),Ze=T.modifiersData.popperOffsets,ln=T.rects.reference,hn=T.rects.popper,En=typeof Ae=="function"?Ae(Object.assign({},T.rects,{placement:T.placement})):Ae,qe=typeof En=="number"?{mainAxis:En,altAxis:En}:Object.assign({mainAxis:0,altAxis:0},En),cn=T.modifiersData.offset?T.modifiersData.offset[T.placement]:null,tn={x:0,y:0};if(Ze){if(H){var Tn,Un=ze==="y"?He:Le,kn=ze==="y"?Ke:Me,Nn=ze==="y"?"height":"width",Jn=Ze[ze],er=Jn+we[Un],kt=Jn-we[kn],Vi=Ee?-hn[Nn]/2:0,Xo=$e===Ne?ln[Nn]:hn[Nn],kr=$e===Ne?-hn[Nn]:-ln[Nn],jr=T.elements.arrow,nr=Ee&&jr?Ve(jr):{width:0,height:0},tr=T.modifiersData["arrow#persistent"]?T.modifiersData["arrow#persistent"].padding:Ga(),ui=tr[Un],rr=tr[kn],Er=br(0,ln[Nn],nr[Nn]),Wr=an?ln[Nn]/2-Vi-Er-ui-qe.mainAxis:Xo-Er-ui-qe.mainAxis,Wt=an?-ln[Nn]/2+Vi+Er+rr+qe.mainAxis:kr+Er+rr+qe.mainAxis,$r=T.elements.arrow&&un(T.elements.arrow),Xi=$r?ze==="y"?$r.clientTop||0:$r.clientLeft||0:0,Cr=(Tn=cn==null?void 0:cn[ze])!=null?Tn:0,Ra=Jn+Wr-Cr-Xi,di=Jn+Wt-Cr,Ba=br(Ee?V(er,Ra):er,Jn,Ee?Z(kt,di):kt);Ze[ze]=Ba,tn[ze]=Ba-Jn}if(re){var Go,wn=ze==="x"?He:Le,Ho=ze==="x"?Ke:Me,ir=Ze[sn],fi=sn==="y"?"height":"width",Gi=ir+we[wn],Yo=ir-we[Ho],or=[He,Le].indexOf(Ue)!==-1,Kn=(Go=cn==null?void 0:cn[sn])!=null?Go:0,Wn=or?Gi:ir-ln[fi]-hn[fi]-Kn+qe.altAxis,Vn=or?ir+ln[fi]+hn[fi]-Kn-qe.altAxis:Yo,Hi=Ee&&or?Qa(Wn,ir,Vn):br(Ee?Wn:Gi,ir,Ee?Vn:Yo);Ze[sn]=Hi,tn[sn]=Hi-ir}T.modifiersData[N]=tn}}var _i={name:"preventOverflow",enabled:!0,phase:"main",fn:oa,requiresIfExists:["offset"]},al=function(T,w){return T=typeof T=="function"?T(Object.assign({},w.rects,{placement:w.placement})):T,Ha(typeof T!="number"?T:Ya(T,Fe))};function aa(M){var T,w=M.state,N=M.name,B=M.options,H=w.elements.arrow,te=w.modifiersData.popperOffsets,re=vt(w.placement),ce=cr(re),se=[Le,Me].indexOf(re)>=0,de=se?"height":"width";if(!(!H||!te)){var je=al(B.padding,w),Oe=Ve(H),Ee=ce==="y"?He:Le,be=ce==="y"?Ke:Me,Ae=w.rects.reference[de]+w.rects.reference[ce]-te[ce]-w.rects.popper[de],we=te[ce]-w.rects.reference[ce],Ue=un(H),$e=Ue?ce==="y"?Ue.clientHeight||0:Ue.clientWidth||0:0,an=Ae/2-we/2,ze=je[Ee],sn=$e-Oe[de]-je[be],Ze=$e/2-Oe[de]/2+an,ln=br(ze,Ze,sn),hn=ce;w.modifiersData[N]=(T={},T[hn]=ln,T.centerOffset=ln-Ze,T)}}function _n(M){var T=M.state,w=M.options,N=w.element,B=N===void 0?"[data-popper-arrow]":N;B!=null&&(typeof B=="string"&&(B=T.elements.popper.querySelector(B),!B)||Xa(T.elements.popper,B)&&(T.elements.arrow=B))}var Za={name:"arrow",enabled:!0,phase:"main",fn:aa,effect:_n,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sa(M,T,w){return w===void 0&&(w={x:0,y:0}),{top:M.top-T.height-w.y,right:M.right-T.width+w.x,bottom:M.bottom-T.height+w.y,left:M.left-T.width-w.x}}function ho(M){return[He,Me,Ke,Le].some(function(T){return M[T]>=0})}function Ja(M){var T=M.state,w=M.name,N=T.rects.reference,B=T.rects.popper,H=T.modifiersData.preventOverflow,te=ur(T,{elementContext:"reference"}),re=ur(T,{altBoundary:!0}),ce=sa(te,N),se=sa(re,B,H),de=ho(ce),je=ho(se);T.modifiersData[w]={referenceClippingOffsets:ce,popperEscapeOffsets:se,isReferenceHidden:de,hasPopperEscaped:je},T.attributes.popper=Object.assign({},T.attributes.popper,{"data-popper-reference-hidden":de,"data-popper-escaped":je})}var qa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ja},es=[Ir,na,to,io,Re,il,_i,Za,qa],mo=Gr({defaultModifiers:es}),Yr=n(53833);function Pt(){return Pt=Object.assign||function(M){for(var T=1;T=0)&&(K[R]=_[R]);return K}var L=/-o$/,W=function(_){var b=_.name,K=_.size,U=_.spin,R=_.className,w=_.rotation,H=T(_,["name","size","spin","className","rotation"]),oe=H.style||{};K&&(oe.fontSize=K*100+"%"),w&&(oe.transform="rotate("+w+"deg)"),H.style=oe;var ae=(0,O.Fl)(H),re="";if(b.startsWith("tg-"))re=b;else{var ie=L.test(b),me=b.replace(L,""),Ce=!me.startsWith("fa-");re=ie?"far ":"fas ",Ce&&(re+="fa-"),re+=me,U&&(re+=" fa-spin")}return(0,e.jsx)("i",B({className:(0,E.Ly)(["Icon",re,R,(0,O.WP)(H)])},ae))},$=function(_){var b=_.className,K=_.children,U=T(_,["className","children"]);return(0,e.jsx)("span",B({className:(0,E.Ly)(["IconStack",b,(0,O.WP)(U)])},(0,O.Fl)(U),{children:K}))};W.Stack=$;function k(_){if(_==null)return window;if(_.toString()!=="[object Window]"){var b=_.ownerDocument;return b&&b.defaultView||window}return _}function z(_,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](_):_ instanceof b}function X(_){var b=k(_).Element;return z(_,b)||z(_,Element)}function G(_){var b=k(_).HTMLElement;return z(_,b)||z(_,HTMLElement)}function Q(_){if(typeof ShadowRoot=="undefined")return!1;var b=k(_).ShadowRoot;return z(_,b)||z(_,ShadowRoot)}var ee=Math.max,se=Math.min,ne=Math.round;function Y(){var _=navigator.userAgentData;return _!=null&&_.brands&&Array.isArray(_.brands)?_.brands.map(function(b){return b.brand+"/"+b.version}).join(" "):navigator.userAgent}function J(){return!/^((?!chrome|android).)*safari/i.test(Y())}function V(_,b,K){b===void 0&&(b=!1),K===void 0&&(K=!1);var U=_.getBoundingClientRect(),R=1,w=1;b&&G(_)&&(R=_.offsetWidth>0&&ne(U.width)/_.offsetWidth||1,w=_.offsetHeight>0&&ne(U.height)/_.offsetHeight||1);var H=X(_)?k(_):window,oe=H.visualViewport,ae=!J()&&K,re=(U.left+(ae&&oe?oe.offsetLeft:0))/R,ie=(U.top+(ae&&oe?oe.offsetTop:0))/w,me=U.width/R,Ce=U.height/w;return{width:me,height:Ce,top:ie,right:re+me,bottom:ie+Ce,left:re,x:re,y:ie}}function te(_){var b=k(_),K=b.pageXOffset,U=b.pageYOffset;return{scrollLeft:K,scrollTop:U}}function ce(_){return{scrollLeft:_.scrollLeft,scrollTop:_.scrollTop}}function le(_){return _===k(_)||!G(_)?te(_):ce(_)}function fe(_){return _?(_.nodeName||"").toLowerCase():null}function ge(_){return((X(_)?_.ownerDocument:_.document)||window.document).documentElement}function Ie(_){return V(ge(_)).left+te(_).scrollLeft}function Ee(_){return k(_).getComputedStyle(_)}function je(_){var b=Ee(_),K=b.overflow,U=b.overflowX,R=b.overflowY;return/auto|scroll|overlay|hidden/.test(K+R+U)}function Ne(_){var b=_.getBoundingClientRect(),K=ne(b.width)/_.offsetWidth||1,U=ne(b.height)/_.offsetHeight||1;return K!==1||U!==1}function on(_,b,K){K===void 0&&(K=!1);var U=G(b),R=G(b)&&Ne(b),w=ge(b),H=V(_,R,K),oe={scrollLeft:0,scrollTop:0},ae={x:0,y:0};return(U||!U&&!K)&&((fe(b)!=="body"||je(w))&&(oe=le(b)),G(b)?(ae=V(b,!0),ae.x+=b.clientLeft,ae.y+=b.clientTop):w&&(ae.x=Ie(w))),{x:H.left+oe.scrollLeft-ae.x,y:H.top+oe.scrollTop-ae.y,width:H.width,height:H.height}}function Xe(_){var b=V(_),K=_.offsetWidth,U=_.offsetHeight;return Math.abs(b.width-K)<=1&&(K=b.width),Math.abs(b.height-U)<=1&&(U=b.height),{x:_.offsetLeft,y:_.offsetTop,width:K,height:U}}function Pe(_){return fe(_)==="html"?_:_.assignedSlot||_.parentNode||(Q(_)?_.host:null)||ge(_)}function qe(_){return["html","body","#document"].indexOf(fe(_))>=0?_.ownerDocument.body:G(_)&&je(_)?_:qe(Pe(_))}function jn(_,b){var K;b===void 0&&(b=[]);var U=qe(_),R=U===((K=_.ownerDocument)==null?void 0:K.body),w=k(U),H=R?[w].concat(w.visualViewport||[],je(U)?U:[]):U,oe=b.concat(H);return R?oe:oe.concat(jn(Pe(H)))}function En(_){return["table","td","th"].indexOf(fe(_))>=0}function hn(_){return!G(_)||Ee(_).position==="fixed"?null:_.offsetParent}function Cn(_){var b=/firefox/i.test(Y()),K=/Trident/i.test(Y());if(K&&G(_)){var U=Ee(_);if(U.position==="fixed")return null}var R=Pe(_);for(Q(R)&&(R=R.host);G(R)&&["html","body"].indexOf(fe(R))<0;){var w=Ee(R);if(w.transform!=="none"||w.perspective!=="none"||w.contain==="paint"||["transform","perspective"].indexOf(w.willChange)!==-1||b&&w.willChange==="filter"||b&&w.filter&&w.filter!=="none")return R;R=R.parentNode}return null}function fn(_){for(var b=k(_),K=hn(_);K&&En(K)&&Ee(K).position==="static";)K=hn(K);return K&&(fe(K)==="html"||fe(K)==="body"&&Ee(K).position==="static")?b:K||Cn(_)||b}var tn="top",Se="bottom",Le="right",Oe="left",ke="auto",Qe=[tn,Se,Le,Oe],we="start",He="end",Kn="clippingParents",Un="viewport",In="popper",xn="reference",rn=Qe.reduce(function(_,b){return _.concat([b+"-"+we,b+"-"+He])},[]),$e=[].concat(Qe,[ke]).reduce(function(_,b){return _.concat([b,b+"-"+we,b+"-"+He])},[]),Fe="beforeRead",mn="read",_n="afterRead",Dt="beforeMain",rt="main",pt="afterMain",Jn="beforeWrite",dt="write",Nt="afterWrite",Qt=[Fe,mn,_n,Dt,rt,pt,Jn,dt,Nt];function ur(_){var b=new Map,K=new Set,U=[];_.forEach(function(w){b.set(w.name,w)});function R(w){K.add(w.name);var H=[].concat(w.requires||[],w.requiresIfExists||[]);H.forEach(function(oe){if(!K.has(oe)){var ae=b.get(oe);ae&&R(ae)}}),U.push(w)}return _.forEach(function(w){K.has(w.name)||R(w)}),U}function ti(_){var b=ur(_);return Qt.reduce(function(K,U){return K.concat(b.filter(function(R){return R.phase===U}))},[])}function ri(_){var b;return function(){return b||(b=new Promise(function(K){Promise.resolve().then(function(){b=void 0,K(_())})})),b}}function oi(_){var b=_.reduce(function(K,U){var R=K[U.name];return K[U.name]=R?Object.assign({},R,U,{options:Object.assign({},R.options,U.options),data:Object.assign({},R.data,U.data)}):U,K},{});return Object.keys(b).map(function(K){return b[K]})}var mo={placement:"bottom",modifiers:[],strategy:"absolute"};function vo(){for(var _=arguments.length,b=new Array(_),K=0;K<_;K++)b[K]=arguments[K];return!b.some(function(U){return!(U&&typeof U.getBoundingClientRect=="function")})}function xo(_){_===void 0&&(_={});var b=_,K=b.defaultModifiers,U=K===void 0?[]:K,R=b.defaultOptions,w=R===void 0?mo:R;return function(oe,ae,re){re===void 0&&(re=w);var ie={placement:"bottom",orderedModifiers:[],options:Object.assign({},mo,w),modifiersData:{},elements:{reference:oe,popper:ae},attributes:{},styles:{}},me=[],Ce=!1,ve={state:ie,setOptions:function(Ke){var ze=typeof Ke=="function"?Ke(ie.options):Ke;be(),ie.options=Object.assign({},w,ie.options,ze),ie.scrollParents={reference:X(oe)?jn(oe):oe.contextElement?jn(oe.contextElement):[],popper:jn(ae)};var en=ti(oi([].concat(U,ie.options.modifiers)));return ie.orderedModifiers=en.filter(function(_e){return _e.enabled}),Me(),ve.update()},forceUpdate:function(){if(!Ce){var Ke=ie.elements,ze=Ke.reference,en=Ke.popper;if(vo(ze,en)){ie.rects={reference:on(ze,fn(en),ie.options.strategy==="fixed"),popper:Xe(en)},ie.reset=!1,ie.placement=ie.options.placement,ie.orderedModifiers.forEach(function(Re){return ie.modifiersData[Re.name]=Object.assign({},Re.data)});for(var _e=0;_e=0?"x":"y"}function Ir(_){var b=_.reference,K=_.element,U=_.placement,R=U?jt(U):null,w=U?Et(U):null,H=b.x+b.width/2-K.width/2,oe=b.y+b.height/2-K.height/2,ae;switch(R){case tn:ae={x:H,y:b.y-K.height};break;case Se:ae={x:H,y:b.y+b.height};break;case Le:ae={x:b.x+b.width,y:oe};break;case Oe:ae={x:b.x-K.width,y:oe};break;default:ae={x:b.x,y:b.y}}var re=R?dr(R):null;if(re!=null){var ie=re==="y"?"height":"width";switch(w){case we:ae[re]=ae[re]-(b[ie]/2-K[ie]/2);break;case He:ae[re]=ae[re]+(b[ie]/2-K[ie]/2);break;default:}}return ae}function po(_){var b=_.state,K=_.name;b.modifiersData[K]=Ir({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var Z={name:"popperOffsets",enabled:!0,phase:"read",fn:po,data:{}},Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qs(_,b){var K=_.x,U=_.y,R=b.devicePixelRatio||1;return{x:ne(K*R)/R||0,y:ne(U*R)/R||0}}function fr(_){var b,K=_.popper,U=_.popperRect,R=_.placement,w=_.variation,H=_.offsets,oe=_.position,ae=_.gpuAcceleration,re=_.adaptive,ie=_.roundOffsets,me=_.isFixed,Ce=H.x,ve=Ce===void 0?0:Ce,Me=H.y,be=Me===void 0?0:Me,Be=typeof ie=="function"?ie({x:ve,y:be}):{x:ve,y:be};ve=Be.x,be=Be.y;var Ke=H.hasOwnProperty("x"),ze=H.hasOwnProperty("y"),en=Oe,_e=tn,We=window;if(re){var Ge=fn(K),gn="clientHeight",an="clientWidth";if(Ge===k(K)&&(Ge=ge(K),Ee(Ge).position!=="static"&&oe==="absolute"&&(gn="scrollHeight",an="scrollWidth")),Ge=Ge,R===tn||(R===Oe||R===Le)&&w===He){_e=Se;var cn=me&&Ge===We&&We.visualViewport?We.visualViewport.height:Ge[gn];be-=cn-U.height,be*=ae?1:-1}if(R===Oe||(R===tn||R===Se)&&w===He){en=Le;var Re=me&&Ge===We&&We.visualViewport?We.visualViewport.width:Ge[an];ve-=Re-U.width,ve*=ae?1:-1}}var sn=Object.assign({position:oe},re&&Ae),ln=ie===!0?Qs({x:ve,y:be},k(K)):{x:ve,y:be};if(ve=ln.x,be=ln.y,ae){var pn;return Object.assign({},sn,(pn={},pn[_e]=ze?"0":"",pn[en]=Ke?"0":"",pn.transform=(We.devicePixelRatio||1)<=1?"translate("+ve+"px, "+be+"px)":"translate3d("+ve+"px, "+be+"px, 0)",pn))}return Object.assign({},sn,(b={},b[_e]=ze?be+"px":"",b[en]=Ke?ve+"px":"",b.transform="",b))}function La(_){var b=_.state,K=_.options,U=K.gpuAcceleration,R=U===void 0?!0:U,w=K.adaptive,H=w===void 0?!0:w,oe=K.roundOffsets,ae=oe===void 0?!0:oe,re={placement:jt(b.placement),variation:Et(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:R,isFixed:b.options.strategy==="fixed"};b.modifiersData.popperOffsets!=null&&(b.styles.popper=Object.assign({},b.styles.popper,fr(Object.assign({},re,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:H,roundOffsets:ae})))),b.modifiersData.arrow!=null&&(b.styles.arrow=Object.assign({},b.styles.arrow,fr(Object.assign({},re,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ae})))),b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})}var Ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:La,data:{}};function Zs(_){var b=_.state;Object.keys(b.elements).forEach(function(K){var U=b.styles[K]||{},R=b.attributes[K]||{},w=b.elements[K];!G(w)||!fe(w)||(Object.assign(w.style,U),Object.keys(R).forEach(function(H){var oe=R[H];oe===!1?w.removeAttribute(H):w.setAttribute(H,oe===!0?"":oe)}))})}function Na(_){var b=_.state,K={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(b.elements.popper.style,K.popper),b.styles=K,b.elements.arrow&&Object.assign(b.elements.arrow.style,K.arrow),function(){Object.keys(b.elements).forEach(function(U){var R=b.elements[U],w=b.attributes[U]||{},H=Object.keys(b.styles.hasOwnProperty(U)?b.styles[U]:K[U]),oe=H.reduce(function(ae,re){return ae[re]="",ae},{});!G(R)||!fe(R)||(Object.assign(R.style,oe),Object.keys(w).forEach(function(ae){R.removeAttribute(ae)}))})}}var Wa={name:"applyStyles",enabled:!0,phase:"write",fn:Zs,effect:Na,requires:["computeStyles"]};function wa(_,b,K){var U=jt(_),R=[Oe,tn].indexOf(U)>=0?-1:1,w=typeof K=="function"?K(Object.assign({},b,{placement:_})):K,H=w[0],oe=w[1];return H=H||0,oe=(oe||0)*R,[Oe,Le].indexOf(U)>=0?{x:oe,y:H}:{x:H,y:oe}}function za(_){var b=_.state,K=_.options,U=_.name,R=K.offset,w=R===void 0?[0,0]:R,H=$e.reduce(function(ie,me){return ie[me]=wa(me,b.rects,w),ie},{}),oe=H[b.placement],ae=oe.x,re=oe.y;b.modifiersData.popperOffsets!=null&&(b.modifiersData.popperOffsets.x+=ae,b.modifiersData.popperOffsets.y+=re),b.modifiersData[U]=H}var Js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:za},qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(_){return _.replace(/left|right|bottom|top/g,function(b){return qs[b]})}var el={start:"end",end:"start"};function ii(_){return _.replace(/start|end/g,function(b){return el[b]})}function $a(_,b){var K=k(_),U=ge(_),R=K.visualViewport,w=U.clientWidth,H=U.clientHeight,oe=0,ae=0;if(R){w=R.width,H=R.height;var re=J();(re||!re&&b==="fixed")&&(oe=R.offsetLeft,ae=R.offsetTop)}return{width:w,height:H,x:oe+Ie(_),y:ae}}function ai(_){var b,K=ge(_),U=te(_),R=(b=_.ownerDocument)==null?void 0:b.body,w=ee(K.scrollWidth,K.clientWidth,R?R.scrollWidth:0,R?R.clientWidth:0),H=ee(K.scrollHeight,K.clientHeight,R?R.scrollHeight:0,R?R.clientHeight:0),oe=-U.scrollLeft+Ie(_),ae=-U.scrollTop;return Ee(R||K).direction==="rtl"&&(oe+=ee(K.clientWidth,R?R.clientWidth:0)-w),{width:w,height:H,x:oe,y:ae}}function ka(_,b){var K=b.getRootNode&&b.getRootNode();if(_.contains(b))return!0;if(K&&Q(K)){var U=b;do{if(U&&_.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function si(_){return Object.assign({},_,{left:_.x,top:_.y,right:_.x+_.width,bottom:_.y+_.height})}function li(_,b){var K=V(_,!1,b==="fixed");return K.top=K.top+_.clientTop,K.left=K.left+_.clientLeft,K.bottom=K.top+_.clientHeight,K.right=K.left+_.clientWidth,K.width=_.clientWidth,K.height=_.clientHeight,K.x=K.left,K.y=K.top,K}function St(_,b,K){return b===Un?si($a(_,K)):X(b)?li(b,K):si(ai(ge(_)))}function nl(_){var b=jn(Pe(_)),K=["absolute","fixed"].indexOf(Ee(_).position)>=0,U=K&&G(_)?fn(_):_;return X(U)?b.filter(function(R){return X(R)&&ka(R,U)&&fe(R)!=="body"}):[]}function bt(_,b,K,U){var R=b==="clippingParents"?nl(_):[].concat(b),w=[].concat(R,[K]),H=w[0],oe=w.reduce(function(ae,re){var ie=St(_,re,U);return ae.top=ee(ie.top,ae.top),ae.right=se(ie.right,ae.right),ae.bottom=se(ie.bottom,ae.bottom),ae.left=ee(ie.left,ae.left),ae},St(_,H,U));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe}function Fa(){return{top:0,right:0,bottom:0,left:0}}function Va(_){return Object.assign({},Fa(),_)}function Ga(_,b){return b.reduce(function(K,U){return K[U]=_,K},{})}function hr(_,b){b===void 0&&(b={});var K=b,U=K.placement,R=U===void 0?_.placement:U,w=K.strategy,H=w===void 0?_.strategy:w,oe=K.boundary,ae=oe===void 0?Kn:oe,re=K.rootBoundary,ie=re===void 0?Un:re,me=K.elementContext,Ce=me===void 0?In:me,ve=K.altBoundary,Me=ve===void 0?!1:ve,be=K.padding,Be=be===void 0?0:be,Ke=Va(typeof Be!="number"?Be:Ga(Be,Qe)),ze=Ce===In?xn:In,en=_.rects.popper,_e=_.elements[Me?ze:Ce],We=bt(X(_e)?_e:_e.contextElement||ge(_.elements.popper),ae,ie,H),Ge=V(_.elements.reference),gn=Ir({reference:Ge,element:en,strategy:"absolute",placement:R}),an=si(Object.assign({},en,gn)),cn=Ce===In?an:Ge,Re={top:We.top-cn.top+Ke.top,bottom:cn.bottom-We.bottom+Ke.bottom,left:We.left-cn.left+Ke.left,right:cn.right-We.right+Ke.right},sn=_.modifiersData.offset;if(Ce===In&&sn){var ln=sn[R];Object.keys(Re).forEach(function(pn){var An=[Le,Se].indexOf(pn)>=0?1:-1,et=[tn,Se].indexOf(pn)>=0?"y":"x";Re[pn]+=ln[et]*An})}return Re}function ci(_,b){b===void 0&&(b={});var K=b,U=K.placement,R=K.boundary,w=K.rootBoundary,H=K.padding,oe=K.flipVariations,ae=K.allowedAutoPlacements,re=ae===void 0?$e:ae,ie=Et(U),me=ie?oe?rn:rn.filter(function(Me){return Et(Me)===ie}):Qe,Ce=me.filter(function(Me){return re.indexOf(Me)>=0});Ce.length===0&&(Ce=me);var ve=Ce.reduce(function(Me,be){return Me[be]=hr(_,{placement:be,boundary:R,rootBoundary:w,padding:H})[jt(be)],Me},{});return Object.keys(ve).sort(function(Me,be){return ve[Me]-ve[be]})}function jo(_){if(jt(_)===ke)return[];var b=Ln(_);return[ii(_),b,ii(b)]}function ui(_){var b=_.state,K=_.options,U=_.name;if(!b.modifiersData[U]._skip){for(var R=K.mainAxis,w=R===void 0?!0:R,H=K.altAxis,oe=H===void 0?!0:H,ae=K.fallbackPlacements,re=K.padding,ie=K.boundary,me=K.rootBoundary,Ce=K.altBoundary,ve=K.flipVariations,Me=ve===void 0?!0:ve,be=K.allowedAutoPlacements,Be=b.options.placement,Ke=jt(Be),ze=Ke===Be,en=ae||(ze||!Me?[Ln(Be)]:jo(Be)),_e=[Be].concat(en).reduce(function(Mr,mt){return Mr.concat(jt(mt)===ke?ci(b,{placement:mt,boundary:ie,rootBoundary:me,padding:re,flipVariations:Me,allowedAutoPlacements:be}):mt)},[]),We=b.rects.reference,Ge=b.rects.popper,gn=new Map,an=!0,cn=_e[0],Re=0;Re<_e.length;Re++){var sn=_e[Re],ln=jt(sn),pn=Et(sn)===we,An=[tn,Se].indexOf(ln)>=0,et=An?"width":"height",Bn=hr(b,{placement:sn,boundary:ie,rootBoundary:me,altBoundary:Ce,padding:re}),kn=An?pn?Le:Oe:pn?Se:tn;We[et]>Ge[et]&&(kn=Ln(kn));var Gt=Ln(kn),On=[];if(w&&On.push(Bn[ln]<=0),oe&&On.push(Bn[kn]<=0,Bn[Gt]<=0),On.every(function(Mr){return Mr})){cn=sn,an=!1;break}gn.set(sn,On)}if(an)for(var wn=Me?3:1,Gn=function(mt){var to=_e.find(function(ro){var Sn=gn.get(ro);if(Sn)return Sn.slice(0,mt).every(function(oo){return oo})});if(to)return cn=to,"break"},Xn=wn;Xn>0;Xn--){var Xt=Gn(Xn);if(Xt==="break")break}b.placement!==cn&&(b.modifiersData[U]._skip=!0,b.placement=cn,b.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:ui,requiresIfExists:["offset"],data:{_skip:!1}};function rl(_){return _==="x"?"y":"x"}function Dr(_,b,K){return ee(_,se(b,K))}function Xa(_,b,K){var U=Dr(_,b,K);return U>K?K:U}function ki(_){var b=_.state,K=_.options,U=_.name,R=K.mainAxis,w=R===void 0?!0:R,H=K.altAxis,oe=H===void 0?!1:H,ae=K.boundary,re=K.rootBoundary,ie=K.altBoundary,me=K.padding,Ce=K.tether,ve=Ce===void 0?!0:Ce,Me=K.tetherOffset,be=Me===void 0?0:Me,Be=hr(b,{boundary:ae,rootBoundary:re,padding:me,altBoundary:ie}),Ke=jt(b.placement),ze=Et(b.placement),en=!ze,_e=dr(Ke),We=rl(_e),Ge=b.modifiersData.popperOffsets,gn=b.rects.reference,an=b.rects.popper,cn=typeof be=="function"?be(Object.assign({},b.rects,{placement:b.placement})):be,Re=typeof cn=="number"?{mainAxis:cn,altAxis:cn}:Object.assign({mainAxis:0,altAxis:0},cn),sn=b.modifiersData.offset?b.modifiersData.offset[b.placement]:null,ln={x:0,y:0};if(Ge){if(w){var pn,An=_e==="y"?tn:Oe,et=_e==="y"?Se:Le,Bn=_e==="y"?"height":"width",kn=Ge[_e],Gt=kn+Be[An],On=kn-Be[et],wn=ve?-an[Bn]/2:0,Gn=ze===we?gn[Bn]:an[Bn],Xn=ze===we?-an[Bn]:-gn[Bn],Xt=b.elements.arrow,Mr=ve&&Xt?Xe(Xt):{width:0,height:0},mt=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:Fa(),to=mt[An],ro=mt[et],Sn=Dr(0,gn[Bn],Mr[Bn]),oo=en?gn[Bn]/2-wn-Sn-to-Re.mainAxis:Gn-Sn-to-Re.mainAxis,Da=en?-gn[Bn]/2+wn+Sn+ro+Re.mainAxis:Xn+Sn+ro+Re.mainAxis,Ho=b.elements.arrow&&fn(b.elements.arrow),Ti=Ho?_e==="y"?Ho.clientTop||0:Ho.clientLeft||0:0,Ai=(pn=sn==null?void 0:sn[_e])!=null?pn:0,Nr=kn+oo-Ai-Ti,Wn=kn+Da-Ai,zn=Dr(ve?se(Gt,Nr):Gt,kn,ve?ee(On,Wn):On);Ge[_e]=zn,ln[_e]=zn-kn}if(oe){var Fn,Ri=_e==="x"?tn:Oe,Yo=_e==="x"?Se:Le,Kt=Ge[We],Bi=We==="y"?"height":"width",Qn=Kt+Be[Ri],Ki=Kt-Be[Yo],Qo=[tn,Oe].indexOf(Ke)!==-1,Li=(Fn=sn==null?void 0:sn[We])!=null?Fn:0,Lt=Qo?Qn:Kt-gn[Bi]-an[Bi]-Li+Re.altAxis,vt=Qo?Kt+gn[Bi]+an[Bi]-Li-Re.altAxis:Ki,io=ve&&Qo?Xa(Lt,Kt,vt):Dr(ve?Lt:Qn,Kt,ve?vt:Ki);Ge[We]=io,ln[We]=io-Kt}b.modifiersData[U]=ln}}var Eo={name:"preventOverflow",enabled:!0,phase:"main",fn:ki,requiresIfExists:["offset"]},ol=function(b,K){return b=typeof b=="function"?b(Object.assign({},K.rects,{placement:K.placement})):b,Va(typeof b!="number"?b:Ga(b,Qe))};function Fi(_){var b,K=_.state,U=_.name,R=_.options,w=K.elements.arrow,H=K.modifiersData.popperOffsets,oe=jt(K.placement),ae=dr(oe),re=[Oe,Le].indexOf(oe)>=0,ie=re?"height":"width";if(!(!w||!H)){var me=ol(R.padding,K),Ce=Xe(w),ve=ae==="y"?tn:Oe,Me=ae==="y"?Se:Le,be=K.rects.reference[ie]+K.rects.reference[ae]-H[ae]-K.rects.popper[ie],Be=H[ae]-K.rects.reference[ae],Ke=fn(w),ze=Ke?ae==="y"?Ke.clientHeight||0:Ke.clientWidth||0:0,en=be/2-Be/2,_e=me[ve],We=ze-Ce[ie]-me[Me],Ge=ze/2-Ce[ie]/2+en,gn=Dr(_e,Ge,We),an=ae;K.modifiersData[U]=(b={},b[an]=gn,b.centerOffset=gn-Ge,b)}}function Dn(_){var b=_.state,K=_.options,U=K.element,R=U===void 0?"[data-popper-arrow]":U;R!=null&&(typeof R=="string"&&(R=b.elements.popper.querySelector(R),!R)||ka(b.elements.popper,R)&&(b.elements.arrow=R))}var Ha={name:"arrow",enabled:!0,phase:"main",fn:Fi,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vi(_,b,K){return K===void 0&&(K={x:0,y:0}),{top:_.top-b.height-K.y,right:_.right-b.width+K.x,bottom:_.bottom-b.height+K.y,left:_.left-b.width-K.x}}function di(_){return[tn,Le,Se,Oe].some(function(b){return _[b]>=0})}function Ya(_){var b=_.state,K=_.name,U=b.rects.reference,R=b.rects.popper,w=b.modifiersData.preventOverflow,H=hr(b,{elementContext:"reference"}),oe=hr(b,{altBoundary:!0}),ae=Vi(H,U),re=Vi(oe,R,w),ie=di(ae),me=di(re);b.modifiersData[K]={referenceClippingOffsets:ae,popperEscapeOffsets:re,isReferenceHidden:ie,hasPopperEscaped:me},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":ie,"data-popper-escaped":me})}var Qa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ya},Za=[Pr,Z,Ua,Wa,Js,tl,Eo,Ha,Qa],fi=xo({defaultModifiers:Za}),zr=n(32394);function Tt(){return Tt=Object.assign||function(_){for(var b=1;b=0)&&(w[B]=M[B]);return w}function ca(M,T){var w,N,B,H,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return H={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function re(se){return function(de){return ce([se,de])}}function ce(se){if(w)throw new TypeError("Generator is already executing.");for(;te;)try{if(w=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 te.label++,{value:se[1],done:!1};case 5:te.label++,N=se[1],se=[0];continue;case 7:se=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(se[0]===6||se[0]===2)){te=0;continue}if(se[0]===3&&(!B||se[1]>B[0]&&se[1]=0)&&(K[R]=_[R]);return K}function Xi(_,b){var K,U,R,w,H={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ie){return ae([re,ie])}}function ae(re){if(K)throw new TypeError("Generator is already executing.");for(;H;)try{if(K=1,U&&(R=re[0]&2?U.return:re[0]?U.throw||((R=U.return)&&R.call(U),0):U.next)&&!(R=R.call(U,re[1])).done)return R;switch(U=0,R&&(re=[re[0]&2,R.value]),re[0]){case 0:case 1:R=re;break;case 4:return H.label++,{value:re[1],done:!1};case 5:H.label++,U=re[1],re=[0];continue;case 7:re=H.ops.pop(),H.trys.pop();continue;default:if(R=H.trys,!(R=R.length>0&&R[R.length-1])&&(re[0]===6||re[0]===2)){H=0;continue}if(re[0]===3&&(!R||re[1]>R[0]&&re[1]=T?(M.apply(null,te),w=ce):N=setTimeout(function(){return B.apply(void 0,[].concat(te))},T-(ce-(w!=null?w:0)))}},pc=function(M){return new Promise(function(T){return setTimeout(T,M)})},vo=n(92736);/** + */function hi(){return hi=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function kr(_,b){return kr=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},kr(_,b)}var br=(0,vr.h)("ByondUi"),xr=[],gr=function(_){var b=xr.length;xr.push(null);var K=_||"byondui_"+b;return br.log("allocated '"+K+"'"),{render:function(U){br.log("rendering '"+K+"'"),xr[b]=K,Byond.winset(K,U)},unmount:function(){br.log("unmounting '"+K+"'"),xr[b]=null,Byond.winset(K,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var _=0;_=0)&&(w[B]=M[B]);return w}function go(M,T){return go=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},go(M,T)}var gt=(0,vo.h)("ByondUi"),Gt=[],po=function(M){var T=Gt.length;Gt.push(null);var w=M||"byondui_"+T;return gt.log("allocated '"+w+"'"),{render:function(N){gt.log("rendering '"+w+"'"),Gt[T]=w,Byond.winset(w,N)},unmount:function(){gt.log("unmounting '"+w+"'"),Gt[T]=null,Byond.winset(w,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var M=0;M=0)&&(K[R]=_[R]);return K}function Er(_,b){return Er=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},Er(_,b)}var Yi=function(_,b,K,U){var R,w;if(_.length===0)return[];var H=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(_)),function(re){return(R=Math).min.apply(R,[].concat(re))}),oe=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(_)),function(re){return(w=Math).max.apply(w,[].concat(re))});K!==void 0&&(H[0]=K[0],oe[0]=K[1]),U!==void 0&&(H[1]=U[0],oe[1]=U[1]);var ae=(0,pr.Tj)(_,function(re){return(0,pr.Tj)((0,pr.yU)(re,H,oe,b),function(ie){var me=ie[0],Ce=ie[1],ve=ie[2],Me=ie[3];return(me-Ce)/(ve-Ce)*Me})});return ae},Po=function(_){for(var b="",K=0;K<_.length;K++){var U=_[K];b+=U[0]+","+U[1]+" "}return b},sl=function(_){"use strict";es(b,_);function b(U){var R;return R=_.call(this,U)||this,R.handleResize=function(){var w=R.ref.current;w&&R.setState({viewBox:[w.offsetWidth,w.offsetHeight]})},R.ref=(0,t.createRef)(),R.state={viewBox:[600,200]},R.handleResize=R.handleResize.bind(vi(R)),R}var K=b.prototype;return K.componentDidMount=function(){window.addEventListener("resize",this.handleResize),this.handleResize()},K.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},K.render=function(){var R=this.props,w=R.data,H=w===void 0?[]:w,oe=R.rangeX,ae=R.rangeY,re=R.fillColor,ie=re===void 0?"none":re,me=R.strokeColor,Ce=me===void 0?"#ffffff":me,ve=R.strokeWidth,Me=ve===void 0?2:ve,be=ft(R,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),Be=this.state.viewBox,Ke=Yi(H,Be,oe,ae);if(Ke.length>0){var ze=Ke[0],en=Ke[Ke.length-1];Ke.push([Be[0]+Me,en[1]]),Ke.push([Be[0]+Me,-Me]),Ke.push([-Me,-Me]),Ke.push([-Me,ze[1]])}var _e=Po(Ke),We=jr({},be,{className:"",ref:this.ref});return(0,e.jsx)(O.az,jr({position:"relative"},be,{children:(0,e.jsx)(O.az,jr({},We,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Be[0]+" "+Be[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, -"+Be[1]+")",fill:ie,stroke:Ce,strokeWidth:Me,points:_e})})}))}))},b}(t.Component),Qi={Line:sl};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function is(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Yn(){return Yn=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function Pr(M,T){return Pr=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Pr(M,T)}var os=void 0,fa=function(M,T,w,N){if(M.length===0)return[];var B=(0,Mr.OY)(Math.min).apply(os,[].concat(M)),H=(0,Mr.OY)(Math.max).apply(os,[].concat(M));w!==void 0&&(B[0]=w[0],H[0]=w[1]),N!==void 0&&(B[1]=N[0],H[1]=N[1]);var te=(0,Mr.Tj)(function(re){return(0,Mr.OY)(function(ce,se,de,je){return(ce-se)/(de-se)*je})(re,B,H,T)})(M);return te},ha=function(M){for(var T="",w=0;w0){var $e=Ue[0],an=Ue[Ue.length-1];Ue.push([we[0]+be,an[1]]),Ue.push([we[0]+be,-be]),Ue.push([-be,-be]),Ue.push([-be,$e[1]])}var ze=ha(Ue),sn=Yn({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(C.az,Yn({position:"relative"},Ae,{children:(0,e.jsx)(C.az,Yn({},sn,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+we[0]+" "+we[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, -"+we[1]+")",fill:de,stroke:Oe,strokeWidth:be,points:ze})})}))}))},T}(t.Component),Eo={Line:Ai};/** + */function Io(){return Io=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function xi(_){var b=_.children,K=_.color,U=_.title,R=_.buttons,w=_.icon,H=_.child_mt,oe=H===void 0?1:H,ae=Do(_,["children","color","title","buttons","icon","child_mt"]),re=(0,t.useState)(_.open),ie=re[0],me=re[1];return(0,e.jsxs)(O.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Yn,Io({fluid:!0,color:K,icon:w||(ie?"chevron-down":"chevron-right"),onClick:function(){return me(!ie)}},ae,{children:U}))}),R&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:R})]}),ie&&(0,e.jsx)(O.az,{mt:oe,children:b})]})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Co(){return Co=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function cl(M){var T=M.children,w=M.color,N=M.title,B=M.buttons,H=M.child_mt,te=H===void 0?1:H,re=ll(M,["children","color","title","buttons","child_mt"]),ce=(0,t.useState)(M.open),se=ce[0],de=ce[1];return(0,e.jsxs)(C.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Hn,Co({fluid:!0,color:w,icon:se?"chevron-down":"chevron-right",onClick:function(){return de(!se)}},re,{children:N}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),se&&(0,e.jsx)(C.az,{mt:te,children:T})]})}/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ma(){return ma=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function ul(M){var T=M.content,w=M.children,N=M.className,B=va(M,["content","children","className"]);return B.color=T?null:"default",B.backgroundColor=M.color||"default",(0,e.jsx)("div",ma({className:(0,E.Ly)(["ColorBox",N,(0,C.WP)(B)])},(0,C.Fl)(B),{children:T||"."}))}/** + */function gi(){return gi=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function cl(_){var b=_.content,K=_.children,U=_.className,R=ll(_,["content","children","className"]);return R.color=b?null:"default",R.backgroundColor=_.color||"default",(0,e.jsx)("div",gi({className:(0,E.Ly)(["ColorBox",U,(0,O.WP)(R)])},(0,O.Fl)(R),{children:b||"."}))}/** * @file * @copyright 2022 raffclar * @license MIT - */var as=function(M){var T=M.title,w=M.onClose,N=M.children,B=M.width,H=M.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(C.az,{className:"Dialog__content",width:B||"370px",height:H,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:T}),(0,e.jsx)(C.az,{mr:2,children:(0,e.jsx)(Hn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:w})})]}),N]})})},yo=function(M){var T=M.onClick,w=M.children;return(0,e.jsx)(Hn,{onClick:T,className:"Dialog__button",verticalAlignContent:"middle",children:w})};as.Button=yo;var jc=function(M){var T=M.documentName,w=M.onSave,N=M.onDiscard,B=M.onClose;return _jsxs(as,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",T,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(yo,{onClick:w,children:"Save"}),_jsx(yo,{onClick:N,children:"Don't Save"}),_jsx(yo,{onClick:B,children:"Cancel"})]})]})};/** + */var ns=function(_){var b=_.title,K=_.onClose,U=_.children,R=_.width,w=_.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(O.az,{className:"Dialog__content",width:R||"370px",height:w,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:b}),(0,e.jsx)(O.az,{mr:2,children:(0,e.jsx)(Yn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:K})})]}),U]})})},Fr=function(_){var b=_.onClick,K=_.children;return(0,e.jsx)(Yn,{onClick:b,className:"Dialog__button",verticalAlignContent:"middle",children:K})};ns.Button=Fr;var pc=function(_){var b=_.documentName,K=_.onSave,U=_.onDiscard,R=_.onClose;return _jsxs(ns,{title:"Notepad",onClose:R,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",b,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(Fr,{onClick:K,children:"Save"}),_jsx(Fr,{onClick:U,children:"Don't Save"}),_jsx(Fr,{onClick:R,children:"Cancel"})]})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function xa(){return xa=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function ls(M){var T=M.className,w=M.children,N=ss(M,["className","children"]);return(0,e.jsx)(C.az,xa({className:(0,E.Ly)(["Dimmer",T])},N,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:w})}))}/** + */function Zi(){return Zi=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function ts(_){var b=_.className,K=_.children,U=ul(_,["className","children"]);return(0,e.jsx)(O.az,Zi({className:(0,E.Ly)(["Dimmer",b])},U,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:K})}))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function cs(M){var T=M.hidden,w=M.vertical;return(0,e.jsx)("div",{className:(0,E.Ly)(["Divider",T&&"Divider--hidden",w?"Divider--vertical":"Divider--horizontal"])})}/** + */function rs(_){var b=_.hidden,K=_.vertical;return(0,e.jsx)("div",{className:(0,E.Ly)(["Divider",b&&"Divider--hidden",K?"Divider--vertical":"Divider--horizontal"])})}var os=n(31200),dl=n(77829);function is(_,b,K,U,R,w,H){try{var oe=_[w](H),ae=oe.value}catch(re){K(re);return}oe.done?b(ae):Promise.resolve(ae).then(U,R)}function fl(_){return function(){var b=this,K=arguments;return new Promise(function(U,R){var w=_.apply(b,K);function H(ae){is(w,U,R,H,oe,"next",ae)}function oe(ae){is(w,U,R,H,oe,"throw",ae)}H(void 0)})}}function Ji(){return Ji=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function hl(_,b){var K,U,R,w,H={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ie){return ae([re,ie])}}function ae(re){if(K)throw new TypeError("Generator is already executing.");for(;H;)try{if(K=1,U&&(R=re[0]&2?U.return:re[0]?U.throw||((R=U.return)&&R.call(U),0):U.next)&&!(R=R.call(U,re[1])).done)return R;switch(U=0,R&&(re=[re[0]&2,R.value]),re[0]){case 0:case 1:R=re;break;case 4:return H.label++,{value:re[1],done:!1};case 5:H.label++,U=re[1],re=[0];continue;case 7:re=H.ops.pop(),H.trys.pop();continue;default:if(R=H.trys,!(R=R.length>0&&R[R.length-1])&&(re[0]===6||re[0]===2)){H=0;continue}if(re[0]===3&&(!R||re[1]>R[0]&&re[1]0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},H))},B.handleDragStart=function(H){var te=B.props,re=te.value,ce=te.dragMatrix,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=H.target,B.setState({dragging:!1,origin:pa(H,ce),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var de=B.state,je=de.dragging,Oe=de.value,Ee=B.props.onDrag;je&&Ee&&Ee(H,Oe)},B.props.updateRate||fl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(H){var te=B.props,re=te.minValue,ce=te.maxValue,se=te.step,de=te.stepPixelSize,je=te.dragMatrix;B.setState(function(Oe){var Ee=ga({},Oe),be=pa(H,je)-Ee.origin;if(Oe.dragging){var Ae=Number.isFinite(re)?re%se:0;Ee.internalValue=(0,o.qE)(Ee.internalValue+be*se/de,re-se,ce+se),Ee.value=(0,o.qE)(Ee.internalValue-Ee.internalValue%se+Ae,re,ce),Ee.origin=pa(H,je)}else Math.abs(be)>4&&(Ee.dragging=!0);return Ee})},B.handleDragEnd=function(H){var te=B.props,re=te.onChange,ce=te.onDrag,se=B.state,de=se.dragging,je=se.value,Oe=se.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!de,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),de)B.suppressFlicker(),re&&re(H,je),ce&&ce(H,je);else if(B.inputRef){var Ee=B.inputRef.current;Ee.value=Oe;try{Ee.focus(),Ee.select()}catch(be){}}},B}var w=T.prototype;return w.render=function(){var B=this,H=this.state,te=H.dragging,re=H.editing,ce=H.value,se=H.suppressingFlicker,de=this.props,je=de.animated,Oe=de.value,Ee=de.unit,be=de.minValue,Ae=de.maxValue,we=de.unclamped,Ue=de.format,$e=de.onChange,an=de.onDrag,ze=de.children,sn=de.height,Ze=de.lineHeight,ln=de.fontSize,hn=Oe;(te||se)&&(hn=ce);var En=(0,e.jsxs)(e.Fragment,{children:[je&&!te&&!se?(0,e.jsx)(f,{value:hn,format:Ue}):Ue?Ue(hn):hn,Ee?" "+Ee:""]}),qe=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:sn,lineHeight:Ze,fontsize:ln},onBlur:function(cn){if(re){var tn;if(we?tn=parseFloat(cn.target.value):tn=(0,o.qE)(parseFloat(cn.target.value),be,Ae),Number.isNaN(tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:tn}),B.suppressFlicker(),$e&&$e(cn,tn),an&&an(cn,tn)}},onKeyDown:function(cn){if(cn.keyCode===13){var tn;if(we?tn=parseFloat(cn.target.value):tn=(0,o.qE)(parseFloat(cn.target.value),be,Ae),Number.isNaN(tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:tn}),B.suppressFlicker(),$e&&$e(cn,tn),an&&an(cn,tn);return}if(cn.keyCode===27){B.setState({editing:!1});return}}});return ze({dragging:te,editing:re,value:Oe,displayValue:hn,displayElement:En,inputElement:qe,handleDragStart:this.handleDragStart})},T}(t.Component);Oo.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var us=n(20878),hl=n.n(us),Ec=function(T){return Array.isArray(T)?T[0]:T},ml=function(T){if(typeof T=="function"){for(var w=arguments.length,N=new Array(w>1?w-1:0),B=1;B0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){R.setState({suppressingFlicker:!1})},w))},R.handleDragStart=function(w){var H=R.props,oe=H.value,ae=H.dragMatrix,re=R.state.editing;re||(document.body.style["pointer-events"]="none",R.ref=w.target,R.setState({dragging:!1,origin:ra(w,ae),value:oe,internalValue:oe}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var ie=R.state,me=ie.dragging,Ce=ie.value,ve=R.props.onDrag;me&&ve&&ve(w,Ce)},R.props.updateRate||xl),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(w){var H=R.props,oe=H.minValue,ae=H.maxValue,re=H.step,ie=H.stepPixelSize,me=H.dragMatrix;R.setState(function(Ce){var ve=na({},Ce),Me=ra(w,me)-ve.origin;if(Ce.dragging){var be=Number.isFinite(oe)?oe%re:0;ve.internalValue=(0,i.qE)(ve.internalValue+Me*re/ie,oe-re,ae+re),ve.value=(0,i.qE)(ve.internalValue-ve.internalValue%re+be,oe,ae),ve.origin=ra(w,me)}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(w){var H=R.props,oe=H.onChange,ae=H.onDrag,re=R.state,ie=re.dragging,me=re.value,Ce=re.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!ie,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),ie)R.suppressFlicker(),oe&&oe(w,me),ae&&ae(w,me);else if(R.inputRef){var ve=R.inputRef.current;ve.value=Ce,setTimeout(function(){ve.focus(),ve.select()},100)}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,H=w.dragging,oe=w.editing,ae=w.value,re=w.suppressingFlicker,ie=this.props,me=ie.animated,Ce=ie.value,ve=ie.unit,Me=ie.minValue,be=ie.maxValue,Be=ie.unclamped,Ke=ie.format,ze=ie.onChange,en=ie.onDrag,_e=ie.children,We=ie.height,Ge=ie.lineHeight,gn=ie.fontSize,an=Ce;(H||re)&&(an=ae);var cn=(0,e.jsxs)(e.Fragment,{children:[me&&!H&&!re?(0,e.jsx)(s,{value:an,format:Ke}):Ke?Ke(an):an,ve?" "+ve:""]}),Re=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:We,lineHeight:Ge,fontsize:gn},onBlur:function(sn){if(oe){var ln;if(Be?ln=parseFloat(sn.target.value):ln=(0,i.qE)(parseFloat(sn.target.value),Me,be),Number.isNaN(ln)){R.setState({editing:!1});return}R.setState({editing:!1,value:ln}),R.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln)}},onKeyDown:function(sn){if(sn.keyCode===13){var ln;if(Be?ln=parseFloat(sn.target.value):ln=(0,i.qE)(parseFloat(sn.target.value),Me,be),Number.isNaN(ln)){R.setState({editing:!1});return}R.setState({editing:!1,value:ln}),R.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln);return}if(sn.keyCode===27){R.setState({editing:!1});return}}});return _e({dragging:H,editing:oe,value:Ce,displayValue:an,displayElement:cn,inputElement:Re,handleDragStart:this.handleDragStart})},b}(t.Component);pi.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var gl=n(20878),oa=n.n(gl),ji=function(b){return Array.isArray(b)?b[0]:b},pl=function(b){if(typeof b=="function"){for(var K=arguments.length,U=new Array(K>1?K-1:0),R=1;R_e.length-3?_e.length-1:On-2;var Xn=(wn=et.current)==null?void 0:wn.children[Gn];Xn==null||Xn.scrollIntoView({block:"nearest"})}function Gt(On){if(!(_e.length<1||re)){var wn=0,Gn=_e.length-1,Xn;Bn<0?Xn=On==="next"?Gn:wn:On==="next"?Xn=Bn===Gn?wn:Bn+1:Xn=Bn===wn?Gn:Bn-1,ln&&K&&kn(Xn),ze==null||ze(So(_e[Xn]))}}return(0,t.useEffect)(function(){var On;ln&&(K&&Bn!==El&&kn(Bn),(On=et.current)==null||On.focus())},[ln]),(0,e.jsx)(cs,{isOpen:ln,onClickOutside:function(){return pn(!1)},placement:We?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:be},ref:et,children:[_e.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),_e.map(function(On,wn){var Gn=So(On);return(0,e.jsx)("div",{className:(0,E.Ly)(["Dropdown__menuentry",an===Gn&&"selected"]),onClick:function(){pn(!1),ze==null||ze(Gn)},children:typeof On=="string"?On:On.displayText},wn)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,O.zA)(Re)},children:[(0,e.jsxs)("div",{className:(0,E.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ae,re&&"Button--disabled",R]),onClick:function(On){re&&!ln||(pn(!ln),Ke==null||Ke(On))},children:[me&&(0,e.jsx)(W,{mr:1,name:me,rotation:Ce,spin:ve}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:H?"hidden":"visible"},children:ie||an&&So(an)||gn}),!Be&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:An?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-left",onClick:function(){Gt("previous")}}),(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-right",onClick:function(){Gt("next")}})]})]})})}function Ei(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function Vr(){return Vr=Object.assign||function(_){for(var b=1;b=0)&&(w[B]=M[B]);return w}var Ca=function(M){return(0,E.Ly)(["Flex",M.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&M.direction==="column"&&"Flex--iefix--column",(0,C.WP)(M)])},ei=function(M){var T=M.className,w=M.direction,N=M.wrap,B=M.align,H=M.justify,te=M.inline,re=Ri(M,["className","direction","wrap","align","justify","inline"]);return(0,C.Fl)(mr({style:mr({},re.style,{flexDirection:w,flexWrap:N===!0?"wrap":N,alignItems:B,justifyContent:H})},re))},pt=function(M){var T=M.className,w=Ri(M,["className"]);return(0,e.jsx)("div",mr({className:(0,E.Ly)([T,Ca(w)])},ei(w)))},ya=function(M){return(0,E.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,C.WP)(M)])},ni=function(M){var T=M.className,w=M.style,N=M.grow,B=M.order,H=M.shrink,te=M.basis,re=M.align,ce=Ri(M,["className","style","grow","order","shrink","basis","align"]),se,de=(se=te!=null?te:M.width)!=null?se:N!==void 0?0:void 0;return(0,C.Fl)(mr({style:mr({},w,{flexGrow:N!==void 0&&Number(N),flexShrink:H!==void 0&&Number(H),flexBasis:(0,C.zA)(de),order:B,alignSelf:re})},ce))},pl=function(M){var T=M.className,w=Ri(M,["className"]);return(0,e.jsx)("div",mr({className:(0,E.Ly)([T,ya(M)])},ni(w)))};pt.Item=pl;var Bi=n(19996);/** + */function zt(){return zt=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var sa=function(_){return(0,E.Ly)(["Flex",_.inline&&"Flex--inline",(0,O.WP)(_)])},la=function(_){var b=_.className,K=_.direction,U=_.wrap,R=_.align,w=_.justify,H=_.inline,oe=Xr(_,["className","direction","wrap","align","justify","inline"]);return(0,O.Fl)(zt({style:zt({},oe.style,{flexDirection:K,flexWrap:U===!0?"wrap":U,alignItems:R,justifyContent:w})},oe))},Jt=function(_){var b=_.className,K=Xr(_,["className"]);return(0,e.jsx)("div",zt({className:(0,E.Ly)([b,sa(K)])},la(K)))},ca=function(_){return(0,E.Ly)(["Flex__item",(0,O.WP)(_)])},ua=function(_){var b=_.className,K=_.style,U=_.grow,R=_.order,w=_.shrink,H=_.basis,oe=_.align,ae=Xr(_,["className","style","grow","order","shrink","basis","align"]),re,ie=(re=H!=null?H:_.width)!=null?re:U!==void 0?0:void 0;return(0,O.Fl)(zt({style:zt({},K,{flexGrow:U!==void 0&&Number(U),flexShrink:w!==void 0&&Number(w),flexBasis:(0,O.zA)(ie),order:R,alignSelf:oe})},ae))},Ol=function(_){var b=_.className,K=Xr(_,["className"]);return(0,e.jsx)("div",zt({className:(0,E.Ly)([b,ca(_)])},ua(K)))};Jt.Item=Ol;var Ci=n(19996);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Dr(){return Dr=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var vs=function(M){var T=M.children,w=_o(M,["children"]);return(0,e.jsx)(Bi.XI,Dr({},w,{children:(0,e.jsx)(Bi.XI.Row,{children:T})}))},xs=function(M){var T=M.size,w=T===void 0?1:T,N=M.style,B=_o(M,["size","style"]);return(0,e.jsx)(Bi.XI.Cell,Dr({style:Dr({width:w+"%"},N)},B))};vs.Column=xs;function Ki(){return Ki=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var El=function(M){var T=M.className,w=M.fixBlur,N=w===void 0?!0:w,B=M.objectFit,H=B===void 0?"fill":B,te=M.src,re=M.tooltip,ce=jl(M,["className","fixBlur","objectFit","src","tooltip"]),se=(0,C.Fl)(ce);se.style=Ki({},se.style,{"-ms-interpolation-mode":N?"nearest-neighbor":"auto",objectFit:H});var de=(0,e.jsx)("img",Ki({className:T,src:te},se));return re&&(de=(0,e.jsx)(rt,{content:re,children:de})),de},Cl=n(79500);/** + */function bo(){return bo=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function To(_){var b=_.children,K=Ct(_,["children"]);return vr.v.error("Grid component is deprecated. Use a Stack instead."),(0,e.jsx)(Ci.XI,bo({},K,{children:(0,e.jsx)(Ci.XI.Row,{children:b})}))}function fs(_){var b=_.size,K=b===void 0?1:b,U=_.style,R=Ct(_,["size","style"]);return(0,e.jsx)(Ci.XI.Cell,bo({style:bo({width:K+"%"},U)},R))}To.Column=fs;var hs=n(79500);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function bo(){return bo=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var St=function(M){var T=M.className,w=M.value,N=M.minValue,B=N===void 0?0:N,H=M.maxValue,te=H===void 0?1:H,re=M.color,ce=M.ranges,se=ce===void 0?{}:ce,de=M.children,je=yl(M,["className","value","minValue","maxValue","color","ranges","children"]),Oe=(0,o.hs)(w,B,te),Ee=de!==void 0,be=re||(0,o.TG)(w,se)||"default",Ae=(0,C.Fl)(je),we=["ProgressBar",T,(0,C.WP)(je)],Ue={width:(0,o.J$)(Oe)*100+"%"};return Cl.NE.includes(be)||be==="default"?we.push("ProgressBar--color--"+be):(Ae.style=bo({},Ae.style,{borderColor:be}),Ue.backgroundColor=be),(0,e.jsxs)("div",bo({className:(0,E.Ly)(we)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ue}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ee?de:(0,o.Mg)(Oe*100)+"%"})]}))};/** + */function Ao(){return Ao=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var da=function(_){var b=_.className,K=_.value,U=_.minValue,R=U===void 0?0:U,w=_.maxValue,H=w===void 0?1:w,oe=_.color,ae=_.ranges,re=ae===void 0?{}:ae,ie=_.children,me=ms(_,["className","value","minValue","maxValue","color","ranges","children"]),Ce=(0,i.hs)(K,R,H),ve=ie!==void 0,Me=oe||(0,i.TG)(K,re)||"default",be=(0,O.Fl)(me),Be=["ProgressBar",b,(0,O.WP)(me)],Ke={width:(0,i.J$)(Ce)*100+"%"};return hs.NE.includes(Me)||Me==="default"?Be.push("ProgressBar--color--"+Me):(be.style=Ao({},be.style,{borderColor:Me}),Ke.backgroundColor=Me),(0,e.jsxs)("div",Ao({className:(0,E.Ly)(Be)},be,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ke}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ve?ie:(0,i.Mg)(Ce*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function Lt(){return Lt=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var Po=function(M){var T=M.className,w=M.vertical,N=M.fill,B=M.zebra,H=Mo(M,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack",N&&"Stack--fill",w?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",T,Ca(M)])},ei(Lt({direction:w?"column":"row"},H))))},gs=function(M){var T=M.className,w=M.innerRef,N=Mo(M,["className","innerRef"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item",T,ya(N)]),ref:w},ni(N)))};Po.Item=gs;var ps=function(M){var T=M.className,w=M.hidden,N=Mo(M,["className","hidden"]);return(0,e.jsx)("div",Lt({className:(0,E.Ly)(["Stack__item","Stack__divider",w&&"Stack__divider--hidden",T,ya(N)])},ni(N)))};Po.Divider=ps;function js(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Es(){return Es=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function wi(M,T){return wi=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},wi(M,T)}var Do=.5,Cs=1.5,Ol=.1,Oa=null,jt=n(6544);/** + */function Hr(){return Hr=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var Cr=function(_){var b=_.className,K=_.vertical,U=_.fill,R=_.zebra,w=fa(_,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Hr({className:(0,E.Ly)(["Stack",U&&"Stack--fill",K?"Stack--vertical":"Stack--horizontal",R&&"Stack--zebra",b,sa(_)])},la(Hr({direction:K?"column":"row"},w))))},ha=function(_){var b=_.className,K=_.innerRef,U=fa(_,["className","innerRef"]);return(0,e.jsx)("div",Hr({className:(0,E.Ly)(["Stack__item",b,ca(U)]),ref:K},ua(U)))};Cr.Item=ha;var Ro=function(_){var b=_.className,K=_.hidden,U=fa(_,["className","hidden"]);return(0,e.jsx)("div",Hr({className:(0,E.Ly)(["Stack__item","Stack__divider",K&&"Stack__divider--hidden",b,ca(U)])},ua(U)))};Cr.Divider=Ro;function vs(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function ma(){return ma=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Ko(_,b){return Ko=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},Ko(_,b)}var yl=.5,xa=1.5,Ml=.1,_l=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ui(){return Ui=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function So(M,T){return So=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},So(M,T)}var Sr=function(M){return typeof M!="number"&&typeof M!="string"?"":String(M)},Os=function(M){"use strict";ys(T,M);function T(N){var B;return B=M.call(this,N)||this,B.inputRef=(0,t.createRef)(),B.state={editing:!1},B.handleInput=function(H){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(H,H.target.value)},B.handleFocus=function(H){var te=B.state.editing;te||B.setEditing(!0)},B.handleBlur=function(H){var te=B.state.editing,re=B.props.onChange;te&&(B.setEditing(!1),re&&re(H,H.target.value))},B.handleKeyDown=function(H){var te=B.props,re=te.onInput,ce=te.onChange,se=te.onEnter;if(H.keyCode===jt.Ri){B.setEditing(!1),ce&&ce(H,H.target.value),re&&re(H,H.target.value),se&&se(H,H.target.value),B.props.selfClear?H.target.value="":H.target.blur();return}if(H.keyCode===jt.s6){if(B.props.onEscape){B.props.onEscape(H);return}B.setEditing(!1),H.target.value=Sr(B.props.value),H.target.blur();return}},B}var w=T.prototype;return w.componentDidMount=function(){var B=this,H=this.props.value,te=this.inputRef.current;te&&(te.value=Sr(H)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},w.componentDidUpdate=function(B,H){var te=this.state.editing,re=B.value,ce=this.props.value,se=this.inputRef.current;se&&!te&&re!==ce&&(se.value=Sr(ce))},w.setEditing=function(B){this.setState({editing:B})},w.render=function(){var B=this.props,H=B.selfClear,te=B.onInput,re=B.onChange,ce=B.onEnter,se=B.value,de=B.maxLength,je=B.placeholder,Oe=Ni(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Ee=Oe.className,be=Oe.fluid,Ae=Oe.monospace,we=Ni(Oe,["className","fluid","monospace"]);return(0,e.jsxs)(C.az,Ui({className:(0,E.Ly)(["Input",be&&"Input--fluid",Ae&&"Input--monospace",Ee])},we,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:je,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:de})]}))},T}(t.Component),Il=n(52130);function _l(M,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(T&&T.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),T&&Ao(M,T)}function Ao(M,T){return Ao=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Ao(M,T)}var Ar=null;/** + */function Oi(){return Oi=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Lo(_){return typeof _!="number"&&typeof _!="string"?"":String(_)}var gs=(0,Sr.sg)(function(_){return _()},250);function Or(_){var b=_.autoFocus,K=_.autoSelect,U=_.className,R=_.disabled,w=_.expensive,H=_.fluid,oe=_.maxLength,ae=_.monospace,re=_.onChange,ie=_.onEnter,me=_.onEscape,Ce=_.onInput,ve=_.placeholder,Me=_.selfClear,be=_.value,Be=xs(_,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Ke=(0,t.useRef)(null);function ze(_e){var We;if(Ce){var Ge=(We=_e.currentTarget)==null?void 0:We.value;w?gs(function(){return Ce(_e,Ge)}):Ce(_e,Ge)}}function en(_e){if(_e.key===S._.Enter){ie==null||ie(_e,_e.currentTarget.value),Me?_e.currentTarget.value="":(_e.currentTarget.blur(),re==null||re(_e,_e.currentTarget.value));return}(0,S.K)(_e.key)&&(me==null||me(_e),_e.currentTarget.value=Lo(be),_e.currentTarget.blur())}return(0,t.useEffect)(function(){var _e=Ke.current;if(_e){var We=Lo(be);_e.value!==We&&(_e.value=We),!(!b&&!K)&&setTimeout(function(){_e.focus(),K&&_e.select()},1)}},[]),(0,e.jsxs)(O.az,Oi({className:(0,E.Ly)(["Input",H&&"Input--fluid",ae&&"Input--monospace",U])},Be,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:R,maxLength:oe,onBlur:function(_e){return re==null?void 0:re(_e,_e.target.value)},onChange:ze,onKeyDown:en,placeholder:ve,ref:Ke})]}))}var ps=n(52130);function js(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),b&&ga(_,b)}function ga(_,b){return ga=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},ga(_,b)}var Cc=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Tr(){return Tr=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var bl=function(M){var T=M.animated,w=M.format,N=M.maxValue,B=M.minValue,H=M.unclamped,te=M.onChange,re=M.onDrag,ce=M.step,se=M.stepPixelSize,de=M.suppressFlicker,je=M.unit,Oe=M.value,Ee=M.className,be=M.style,Ae=M.fillValue,we=M.color,Ue=M.ranges,$e=Ue===void 0?{}:Ue,an=M.size,ze=an===void 0?1:an,sn=M.bipolar,Ze=M.children,ln=Ia(M,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oo,{dragMatrix:[0,-1],animated:T,format:w,maxValue:N,minValue:B,unclamped:H,onChange:te,onDrag:re,step:ce,stepPixelSize:se,suppressFlicker:de,unit:je,value:Oe,children:function(hn){var En=hn.dragging,qe=hn.editing,cn=hn.value,tn=hn.displayValue,Tn=hn.displayElement,Un=hn.inputElement,kn=hn.handleDragStart,Nn=(0,o.hs)(Ae!=null?Ae:tn,B,N),Jn=(0,o.hs)(tn,B,N),er=we||(0,o.TG)(Ae!=null?Ae:cn,$e)||"default",kt=Math.min((Jn-.5)*270,225);return(0,e.jsxs)("div",Tr({className:(0,E.Ly)(["Knob","Knob--color--"+er,sn&&"Knob--bipolar",Ee,(0,C.WP)(ln)])},(0,C.Fl)(Tr({style:Tr({fontSize:ze+"em"},be)},ln)),{onMouseDown:kn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+kt+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),En&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Tn}),(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(((sn?2.75:2)-Nn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Un]}))}})};/** + */function qt(){return qt=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Es(_){var b=_.animated,K=_.format,U=_.maxValue,R=_.minValue,w=_.onChange,H=_.onDrag,oe=_.step,ae=_.stepPixelSize,re=_.suppressFlicker,ie=_.unclamped,me=_.unit,Ce=_.value,ve=_.bipolar,Me=_.children,be=_.className,Be=_.color,Ke=_.fillValue,ze=_.ranges,en=ze===void 0?{}:ze,_e=_.size,We=_e===void 0?1:_e,Ge=_.style,gn=Pl(_,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(pi,{dragMatrix:[0,-1],animated:b,format:K,maxValue:U,minValue:R,onChange:w,onDrag:H,step:oe,stepPixelSize:ae,suppressFlicker:re,unclamped:ie,unit:me,value:Ce,children:function(an){var cn=an.displayElement,Re=an.displayValue,sn=an.dragging,ln=an.handleDragStart,pn=an.inputElement,An=an.value,et=(0,i.hs)(Ke!=null?Ke:Re,R,U),Bn=(0,i.hs)(Re,R,U),kn=Be||(0,i.TG)(Ke!=null?Ke:An,en)||"default",Gt=Math.min((Bn-.5)*270,225);return(0,e.jsxs)("div",qt({className:(0,E.Ly)(["Knob","Knob--color--"+kn,ve&&"Knob--bipolar",be,(0,O.WP)(gn)])},(0,O.Fl)(qt({style:qt({fontSize:We+"em"},Ge)},gn)),{onMouseDown:ln,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Gt+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),sn&&(0,e.jsx)("div",{className:"Knob__popupValue",children:cn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((ve?2.75:2)-et*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),pn]}))}})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function To(){return To=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function Is(M){var T=M.children,w=M.wrap,N=ti(M,["children","wrap"]);return(0,e.jsx)(pt,To({mx:-.5,wrap:w,align:"stretch",justify:"space-between"},N,{children:T}))}function _s(M){var T=M.label,w=M.children,N=M.mx,B=N===void 0?1:N,H=ti(M,["label","children","mx"]);return(0,e.jsx)(pt.Item,{mx:B,children:(0,e.jsxs)(pt,To({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},H,{children:[(0,e.jsx)(pt.Item,{}),(0,e.jsx)(pt.Item,{children:w}),(0,e.jsx)(pt.Item,{color:"label",children:T})]}))})}Is.Item=_s;/** + */function Uo(){return Uo=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function yi(_){var b=_.children,K=_.wrap,U=Rn(_,["children","wrap"]);return(0,e.jsx)(Jt,Uo({mx:-.5,wrap:K,align:"stretch",justify:"space-between"},U,{children:b}))}function Mi(_){var b=_.label,K=_.children,U=_.mx,R=U===void 0?1:U,w=Rn(_,["label","children","mx"]);return(0,e.jsx)(Jt.Item,{mx:R,children:(0,e.jsxs)(Jt,Uo({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},w,{children:[(0,e.jsx)(Jt.Item,{}),(0,e.jsx)(Jt.Item,{children:K}),(0,e.jsx)(Jt.Item,{color:"label",children:b})]}))})}yi.Item=Mi;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var Rr=function(M){var T=M.children;return(0,e.jsx)("table",{className:"LabeledList",children:T})},Sn=function(M){var T=M.className,w=M.label,N=M.labelColor,B=N===void 0?"label":N,H=M.labelWrap,te=M.color,re=M.textAlign,ce=M.buttons,se=M.content,de=M.children,je=M.verticalAlign,Oe=je===void 0?"baseline":je,Ee=M.tooltip,be;w&&(be=w,typeof w=="string"&&(be+=":")),Ee!==void 0&&(be=(0,e.jsx)(rt,{content:Ee,children:(0,e.jsx)(C.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:be})}));var Ae=(0,e.jsx)(C.az,{as:"td",color:B,className:(0,E.Ly)(["LabeledList__cell",!H&&"LabeledList__label--nowrap"]),verticalAlign:Oe,children:be});return(0,e.jsxs)("tr",{className:(0,E.Ly)(["LabeledList__row",T]),children:[Ae,(0,e.jsxs)(C.az,{as:"td",color:te,textAlign:re,className:(0,E.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ce?void 0:2,verticalAlign:Oe,children:[se,de]}),ce&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ce})]})},_a=function(M){var T=M.size?(0,C.zA)(Math.max(0,M.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:T,paddingBottom:T},children:(0,e.jsx)(cs,{})})})};Rr.Item=Sn,Rr.Divider=_a;/** + */var $t=function(_){var b=_.children;return(0,e.jsx)("table",{className:"LabeledList",children:b})},Cs=function(_){var b=_.className,K=_.label,U=_.labelColor,R=U===void 0?"label":U,w=_.labelWrap,H=_.color,oe=_.textAlign,ae=_.buttons,re=_.content,ie=_.children,me=_.verticalAlign,Ce=me===void 0?"baseline":me,ve=_.tooltip,Me;K&&(Me=K,typeof K=="string"&&(Me+=":")),ve!==void 0&&(Me=(0,e.jsx)(st,{content:ve,children:(0,e.jsx)(O.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var be=(0,e.jsx)(O.az,{as:"td",color:R,className:(0,E.Ly)(["LabeledList__cell",!w&&"LabeledList__label--nowrap"]),verticalAlign:Ce,children:Me});return(0,e.jsxs)("tr",{className:(0,E.Ly)(["LabeledList__row",b]),children:[be,(0,e.jsxs)(O.az,{as:"td",color:H,textAlign:oe,className:(0,E.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ae?void 0:2,verticalAlign:Ce,children:[re,ie]}),ae&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ae})]})},pa=function(_){var b=_.size?(0,O.zA)(Math.max(0,_.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:b,paddingBottom:b},children:(0,e.jsx)(rs,{})})})};$t.Item=Cs,$t.Divider=pa;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT - */function ri(){return ri=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function ki(M,T){return ki=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},ki(M,T)}var Wi=function(M){"use strict";ii(T,M);function T(N){var B;return B=M.call(this,N)||this,B.handleClick=function(H){if(!B.props.menuRef.current){vo.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(H.target)?vo.v.log("Menu.handleClick(): Inside"):(vo.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var w=T.prototype;return w.componentWillMount=function(){window.addEventListener("click",this.handleClick)},w.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},w.render=function(){var B=this.props,H=B.width,te=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:H},children:te})},T}(t.Component),Ro=function(M){"use strict";ii(T,M);function T(N){var B;return B=M.call(this,N)||this,B.menuRef=(0,t.createRef)(),B}var w=T.prototype;return w.render=function(){var B=this.props,H=B.open,te=B.openWidth,re=B.children,ce=B.disabled,se=B.display,de=B.onMouseOver,je=B.onClick,Oe=B.onOutsideClick,Ee=ba(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),be=Ee.className,Ae=ba(Ee,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(C.az,ri({className:(0,E.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",be])},Ae,{onClick:ce?function(){return null}:je,onMouseOver:de,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:se})})),H&&(0,e.jsx)(Wi,{width:te,menuRef:this.menuRef,onOutsideClick:Oe,children:re})]})},T}(t.Component),Ht=function(M){var T=M.entry,w=M.children,N=M.openWidth,B=M.display,H=M.setOpenMenuBar,te=M.openMenuBar,re=M.setOpenOnHover,ce=M.openOnHover,se=M.disabled,de=M.className;return(0,e.jsx)(Ro,{openWidth:N,display:B,disabled:se,open:te===T,className:de,onClick:function(){var je=te===T?null:T;H(je),re(!ce)},onOutsideClick:function(){H(null),re(!1)},onMouseOver:function(){ce&&H(T)},children:w})},bs=function(M){var T=M.value,w=M.displayText,N=M.onClick,B=M.checked;return(0,e.jsxs)(C.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return N(T)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(L,{size:1.3,name:"check"})}),w]})};Ht.MenuItemToggle=bs;var Ml=function(M){var T=M.value,w=M.displayText,N=M.onClick;return(0,e.jsx)(C.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return N(T)},children:w})};Ht.MenuItem=Ml;var Pl=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Ht.Separator=Pl;var Ms=function(M){var T=M.children;return(0,e.jsx)(C.az,{className:"MenuBar",children:T})};Ms.Dropdown=Ht;/** + */function Tr(){return Tr=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function _i(_,b){return _i=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},_i(_,b)}var Il=function(_){"use strict";No(b,_);function b(U){var R;return R=_.call(this,U)||this,R.handleClick=function(w){if(!R.props.menuRef.current){vr.v.log("Menu.handleClick(): No ref");return}R.props.menuRef.current.contains(w.target)?vr.v.log("Menu.handleClick(): Inside"):(vr.v.log("Menu.handleClick(): Outside"),R.props.onOutsideClick())},R}var K=b.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var R=this.props,w=R.width,H=R.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:w},children:H})},b}(t.Component),Dl=function(_){"use strict";No(b,_);function b(U){var R;return R=_.call(this,U)||this,R.menuRef=(0,t.createRef)(),R}var K=b.prototype;return K.render=function(){var R=this.props,w=R.open,H=R.openWidth,oe=R.children,ae=R.disabled,re=R.display,ie=R.onMouseOver,me=R.onClick,Ce=R.onOutsideClick,ve=Ar(R,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ve.className,be=Ar(ve,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(O.az,Tr({className:(0,E.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},be,{onClick:ae?function(){return null}:me,onMouseOver:ie,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:re})})),w&&(0,e.jsx)(Il,{width:H,menuRef:this.menuRef,onOutsideClick:Ce,children:oe})]})},b}(t.Component),Wo=function(_){var b=_.entry,K=_.children,U=_.openWidth,R=_.display,w=_.setOpenMenuBar,H=_.openMenuBar,oe=_.setOpenOnHover,ae=_.openOnHover,re=_.disabled,ie=_.className;return(0,e.jsx)(Dl,{openWidth:U,display:R,disabled:re,open:H===b,className:ie,onClick:function(){var me=H===b?null:b;w(me),oe(!ae)},onOutsideClick:function(){w(null),oe(!1)},onMouseOver:function(){ae&&w(b)},children:K})},Pi=function(_){var b=_.value,K=_.displayText,U=_.onClick,R=_.checked;return(0,e.jsxs)(O.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(b)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:R&&(0,e.jsx)(W,{size:1.3,name:"check"})}),K]})};Wo.MenuItemToggle=Pi;var Ii=function(_){var b=_.value,K=_.displayText,U=_.onClick;return(0,e.jsx)(O.az,{className:(0,E.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(b)},children:K})};Wo.MenuItem=Ii;var ja=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Wo.Separator=ja;var Ea=function(_){var b=_.children;return(0,e.jsx)(O.az,{className:"MenuBar",children:b})};Ea.Dropdown=Wo;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function oi(){return oi=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var Ma=function(M){var T=M.className,w=M.children,N=M.onEnter,B=Bo(M,["className","children","onEnter"]),H;return N&&(H=function(te){var re=te.which||te.keyCode;re===13&&N(te)}),(0,e.jsx)(ls,{onKeyDown:H,children:(0,e.jsx)("div",oi({className:(0,E.Ly)(["Modal",T,(0,C.WP)(B)])},(0,C.Fl)(B),{children:w}))})},Pa=n(31200),Ko=n(7081);function $i(){return $i=Object.assign||function(M){for(var T=1;T500&&(Oe=500);var Ee=se.offsetY-256*je;return Ee<-200&&(Ee=-200),Ee>200&&(Ee=200),se.offsetX=Oe,se.offsetY=Ee,N.onZoom&&N.onZoom(se.zoom),se})},B}var w=T.prototype;return w.render=function(){var B=(0,Ko.Oc)().config,H=this.state,te=H.dragging,re=H.offsetX,ce=H.offsetY,se=H.zoom,de=se===void 0?1:se,je=this.props.children,Oe=(0,Pa.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),Ee=this.props.zoomScale*de+"px",be={width:Ee,height:Ee,"margin-top":ce+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+Oe+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:te?"move":"auto"};return(0,e.jsxs)(C.az,{className:"NanoMap__container",children:[(0,e.jsx)(C.az,{style:be,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(C.az,{children:je})}),(0,e.jsx)(Yt,{zoom:de,onZoom:this.handleZoom})]})},T}(t.Component),Sa=function(M){var T=M.x,w=M.y,N=M.zoom,B=N===void 0?1:N,H=M.icon,te=M.tooltip,re=M.color,ce=M.onClick,se=function(Oe){wo(Oe),ce&&ce(Oe)},de=T*2*B-B-3,je=w*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(C.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:je+"px",left:de+"px",onMouseDown:se,children:[(0,e.jsx)(L,{name:H,color:re,fontSize:"6px"}),(0,e.jsx)(rt,{content:te})]})})};Da.Marker=Sa;var Yt=function(M){var T=(0,Ko.Oc)(),w=T.act,N=T.config,B=T.data;return(0,e.jsx)(C.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Rr,{children:[(0,e.jsx)(Rr.Item,{label:"Zoom",children:(0,e.jsx)(zo,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(H){return H+"x"},value:M.zoom,onDrag:function(H,te){return M.onZoom(H,te)}})}),(0,e.jsx)(Rr.Item,{label:"Z-Level",children:B.map_levels.sort(function(H,te){return Number(H)-Number(te)}).map(function(H){return(0,e.jsx)(Hn,{selected:~~H===~~N.mapZLevel,onClick:function(){w("setZLevel",{mapZLevel:H})},children:H},H)})})]})})};Da.Zoomer=Yt;/** + */function wo(){return wo=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Sl(_){var b=_.className,K=_.children,U=_.onEnter,R=Ca(_,["className","children","onEnter"]),w;return U&&(w=function(H){H.key===S._.Enter&&U(H)}),(0,e.jsx)(ts,{onKeyDown:w,children:(0,e.jsx)("div",wo({className:(0,E.Ly)(["Modal",b,(0,O.WP)(R)])},(0,O.Fl)(R),{children:K}))})}var Oa=n(7081);function ya(){return ya=Object.assign||function(_){for(var b=1;b500&&(Ce=500);var ve=re.offsetY-256*me;return ve<-200&&(ve=-200),ve>200&&(ve=200),re.offsetX=Ce,re.offsetY=ve,U.onZoom&&U.onZoom(re.zoom),re})},R}var K=b.prototype;return K.render=function(){var R=(0,Oa.Oc)().config,w=this.state,H=w.dragging,oe=w.offsetX,ae=w.offsetY,re=w.zoom,ie=re===void 0?1:re,me=this.props.children,Ce=(0,os.l)(R.map+"_nanomap_z"+R.mapZLevel+".png"),ve=this.props.zoomScale*ie+"px",Me={width:ve,height:ve,"margin-top":ae+"px","margin-left":oe+"px",overflow:"hidden",position:"relative","background-image":"url("+Ce+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:H?"move":"auto"};return(0,e.jsxs)(O.az,{className:"NanoMap__container",children:[(0,e.jsx)(O.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(O.az,{children:me})}),(0,e.jsx)(Bt,{zoom:ie,onZoom:this.handleZoom})]})},b}(t.Component),Yr=function(_){var b=_.x,K=_.y,U=_.zoom,R=U===void 0?1:U,w=_.icon,H=_.tooltip,oe=_.color,ae=_.onClick,re=function(Ce){Rt(Ce),ae&&ae(Ce)},ie=b*2*R-R-3,me=K*2*R-R-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(O.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:me+"px",left:ie+"px",onMouseDown:re,children:[(0,e.jsx)(W,{name:w,color:oe,fontSize:"6px"}),(0,e.jsx)(st,{content:H})]})})};Di.Marker=Yr;var Bt=function(_){var b=(0,Oa.Oc)(),K=b.act,U=b.config,R=b.data;return(0,e.jsx)(O.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)($t,{children:[(0,e.jsx)($t.Item,{label:"Zoom",children:(0,e.jsx)(Lr,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(w){return w+"x"},value:_.zoom,onDrag:function(w,H){return _.onZoom(w,H)}})}),(0,e.jsx)($t.Item,{label:"Z-Level",children:R.map_levels.sort(function(w,H){return Number(w)-Number(H)}).map(function(w){return(0,e.jsx)(Yn,{selected:~~w===~~U.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:w})},children:w},w)})})]})})};Di.Zoomer=Bt;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Uo(){return Uo=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function wt(M){var T=M.className,w=M.color,N=M.info,B=M.success,H=M.danger,te=M.warning,re=ai(M,["className","color","info","success","danger","warning"]);return(0,e.jsx)(C.az,Uo({className:(0,E.Ly)(["NoticeBox",w&&"NoticeBox--color--"+w,N&&"NoticeBox--type--info",B&&"NoticeBox--type--success",te&&"NoticeBox--type--warning ",H&&"NoticeBox--type--danger",T])},re))}/** + */function Rr(){return Rr=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Ma(_){var b=_.className,K=_.color,U=_.info,R=_.success,w=_.danger,H=_.warning,oe=er(_,["className","color","info","success","danger","warning"]);return(0,e.jsx)(O.az,Rr({className:(0,E.Ly)(["NoticeBox",K&&"NoticeBox--color--"+K,U&&"NoticeBox--type--info",R&&"NoticeBox--type--success",H&&"NoticeBox--type--warning ",w&&"NoticeBox--type--danger",b])},oe))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Br(){return Br=Object.assign||function(M){for(var T=1;T0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,ce=B.state.editing;ce||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var se=B.state,de=se.dragging,je=se.value,Oe=B.props.onDrag;de&&Oe&&Oe(te,je)},B.props.updateRate||Sl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,ce=re.minValue,se=re.maxValue,de=re.step,je=re.stepPixelSize;B.setState(function(Oe){var Ee=Br({},Oe),be=Ee.origin-te.screenY;if(Oe.dragging){var Ae=Number.isFinite(ce)?ce%de:0;Ee.internalValue=(0,o.qE)(Ee.internalValue+be*de/je,ce-de,se+de),Ee.value=(0,o.qE)(Ee.internalValue-Ee.internalValue%de+Ae,ce,se),Ee.origin=te.screenY}else Math.abs(be)>4&&(Ee.dragging=!0);return Ee})},B.handleDragEnd=function(te){var re=B.props,ce=re.onChange,se=re.onDrag,de=B.state,je=de.dragging,Oe=de.value,Ee=de.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!je,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),je)B.suppressFlicker(),ce&&ce(te,Oe),se&&se(te,Oe);else if(B.inputRef){var be=B.inputRef.current;be.value=Ee;try{be.focus(),be.select()}catch(Ae){}}},B}var w=T.prototype;return w.render=function(){var B=this,H=this.state,te=H.dragging,re=H.editing,ce=H.value,se=H.suppressingFlicker,de=this.props,je=de.className,Oe=de.fluid,Ee=de.animated,be=de.value,Ae=de.unit,we=de.minValue,Ue=de.maxValue,$e=de.height,an=de.width,ze=de.lineHeight,sn=de.fontSize,Ze=de.format,ln=de.onChange,hn=de.onDrag,En=be;(te||se)&&(En=ce);var qe=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ee&&!te&&!se?(0,e.jsx)(f,{value:En,format:Ze}):Ze?Ze(En):En,Ae?" "+Ae:""]});return(0,e.jsxs)(C.az,{className:(0,E.Ly)(["NumberInput",Oe&&"NumberInput--fluid",je]),minWidth:an,minHeight:$e,lineHeight:ze,fontSize:sn,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,o.qE)((En-we)/(Ue-we)*100,0,100)+"%"}})}),qe,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:$e,lineHeight:ze,fontSize:sn},onBlur:function(cn){if(re){var tn=(0,o.qE)(parseFloat(cn.target.value),we,Ue);if(Number.isNaN(tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:tn}),B.suppressFlicker(),ln&&ln(cn,tn),hn&&hn(cn,tn)}},onKeyDown:function(cn){if(cn.keyCode===13){var tn=(0,o.qE)(parseFloat(cn.target.value),we,Ue);if(Number.isNaN(tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:tn}),B.suppressFlicker(),ln&&ln(cn,tn),hn&&hn(cn,tn);return}if(cn.keyCode===27){B.setState({editing:!1});return}}})]})},T}(t.Component);Ps.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Zt(){return Zt=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function si(M,T){return si=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},si(M,T)}var No=0,Lr=1e4,vr=function(M,T,w,N){var B=T||No,H=w||w===0?w:Lr,te=N?M.replace(/[^\-\d.]/g,""):M.replace(/[^\-\d]/g,"");return N&&(te=xr(te,B),te=Qn(".",te)),T<0?(te=Pn(te),te=Qn("-",te)):te=te.replaceAll("-",""),B<=1&&H>=0?An(te,B,H,N):te},An=function(M,T,w,N){var B=N?parseFloat(M):parseInt(M,10);if(!isNaN(B)&&(M.slice(-1)!=="."||B0?(M=M.replace("-",""),T="-".concat(M)):w===0&&M.indexOf("-",w+1)>0&&(T=M.replaceAll("-","")),T},xr=function(M,T){var w=M,N=Math.sign(T)*Math.floor(Math.abs(T));return M.indexOf(".")===0?w=String(N).concat(M):M.indexOf("-")===0&&M.indexOf(".")===1&&(w=N+".".concat(M.slice(2))),w},Qn=function(M,T){var w=T.indexOf(M),N=T.length,B=T;if(w!==-1&&w0&&(R.setState({suppressingFlicker:!0}),clearTimeout(R.flickerTimer),R.flickerTimer=setTimeout(function(){return R.setState({suppressingFlicker:!1})},ae))},R.handleDragStart=function(H){var oe=R.props,ae=oe.value,re=oe.disabled,ie=R.state.editing;re||ie||(document.body.style["pointer-events"]="none",R.ref=H.target,R.setState({dragging:!1,origin:H.screenY,value:ae,internalValue:ae}),R.timer=setTimeout(function(){R.setState({dragging:!0})},250),R.dragInterval=setInterval(function(){var me=R.state,Ce=me.dragging,ve=me.value,Me=R.props.onDrag;Ce&&Me&&Me(+ve)},R.props.updateRate||$o),document.addEventListener("mousemove",R.handleDragMove),document.addEventListener("mouseup",R.handleDragEnd))},R.handleDragMove=function(H){var oe=R.props,ae=oe.minValue,re=oe.maxValue,ie=oe.step,me=oe.stepPixelSize;R.setState(function(Ce){var ve=_a({},Ce),Me=ve.origin-H.screenY;if(Ce.dragging){var be=Number.isFinite(ae)?ae%ie:0;ve.internalValue=(0,i.qE)(Number(ve.internalValue)+Me*ie/(me||1),ae-ie,re+ie),ve.value=(0,i.qE)(Number(ve.internalValue)-Number(ve.internalValue)%ie+be,ae,re),ve.origin=H.screenY}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},R.handleDragEnd=function(H){var oe=R.props,ae=oe.onChange,re=oe.onDrag,ie=R.state,me=ie.dragging,Ce=ie.value,ve=ie.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(R.timer),clearInterval(R.dragInterval),R.setState({dragging:!1,editing:!me,origin:null}),document.removeEventListener("mousemove",R.handleDragMove),document.removeEventListener("mouseup",R.handleDragEnd),me)R.suppressFlicker(),ae&&ae(+Ce),re&&re(+Ce);else if(R.inputRef){var Me=R.inputRef.current;Me.value=String(ve),setTimeout(function(){Me.focus(),Me.select()},100)}},R}var K=b.prototype;return K.render=function(){var R=this,w=this.state,H=w.dragging,oe=w.editing,ae=w.value,re=w.suppressingFlicker,ie=this.props,me=ie.className,Ce=ie.fluid,ve=ie.animated,Me=ie.value,be=ie.unit,Be=ie.minValue,Ke=ie.maxValue,ze=ie.height,en=ie.width,_e=ie.lineHeight,We=ie.fontSize,Ge=ie.disabled,gn=ie.format,an=ie.onChange,cn=ie.onDrag,Re=Me;(H||re)&&(Re=ae);var sn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ve&&!H&&!re?(0,e.jsx)(s,{value:+Re,format:gn}):gn?gn(+Re):Re,be?" "+be:""]});return(0,e.jsxs)(O.az,{className:(0,E.Ly)(["NumberInput",Ce&&"NumberInput--fluid",me]),minWidth:en,minHeight:ze,lineHeight:_e,fontSize:We,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,i.qE)((+Re-Be)/(Ke-Be)*100,0,100)+"%"}})}),sn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:ze,lineHeight:_e,fontSize:We},onBlur:function(ln){if(oe){var pn=(0,i.qE)(parseFloat(ln.target.value),Be,Ke);if(Number.isNaN(pn)){R.setState({editing:!1});return}R.setState({editing:!1,value:pn}),R.suppressFlicker(),an&&an(pn),cn&&cn(pn)}},onKeyDown:function(ln){if(!Ge){if(ln.key===S._.Enter){var pn=ln.target,An=(0,i.qE)(parseFloat(pn.value),Be,Ke);if(Number.isNaN(An)){R.setState({editing:!1});return}R.setState({editing:!1,value:An}),R.suppressFlicker(),an&&an(An),cn&&cn(An);return}if((0,S.K)(ln.key)){R.setState({editing:!1});return}}}})]})},b}(t.Component),ko=n(6544);function Fo(){return Fo=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function bn(_,b){return bn=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},bn(_,b)}var Tn=0,rr=1e4,qn=function(_,b,K,U){var R=b||Tn,w=K||K===0?K:rr,H=U?_.replace(/[^\-\d.]/g,""):_.replace(/[^\-\d]/g,"");return U&&(H=Jr(H,R),H=ot(".",H)),b<0?(H=Br(H),H=ot("-",H)):H=H.replaceAll("-",""),R<=1&&w>=0?lt(H,R,w,U):H},lt=function(_,b,K,U){var R=U?parseFloat(_):parseInt(_,10);if(!isNaN(R)&&(_.slice(-1)!=="."||R0?(_=_.replace("-",""),b="-".concat(_)):K===0&&_.indexOf("-",K+1)>0&&(b=_.replaceAll("-","")),b},Jr=function(_,b){var K=_,U=Math.sign(b)*Math.floor(Math.abs(b));return _.indexOf(".")===0?K=String(U).concat(_):_.indexOf("-")===0&&_.indexOf(".")===1&&(K=U+".".concat(_.slice(2))),K},ot=function(_,b){var K=b.indexOf(_),U=b.length,R=b;if(K!==-1&&K=0)&&(w[B]=M[B]);return w}var Aa=function(M){var T=M.value,w=M.minValue,N=w===void 0?1:w,B=M.maxValue,H=B===void 0?1:B,te=M.ranges,re=M.alertAfter,ce=M.alertBefore,se=M.format,de=M.size,je=de===void 0?1:de,Oe=M.className,Ee=M.style,be=at(M,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(T,N,H),we=clamp01(Ae),Ue=te?{}:{primary:[0,1]};te&&Object.keys(te).forEach(function(ze){var sn=te[ze];Ue[ze]=[scale(sn[0],N,H),scale(sn[1],N,H)]});var $e=function(){if(re&&ce&&reT)return!0}else if(reT)return!0;return!1},an=$e()&&keyOfMatchingRange(we,Ue);return _jsxs(Box,{inline:!0,children:[_jsx("div",Ut({className:classes(["RoundGauge",Oe,computeBoxClassName(be)])},computeBoxProps(Ut({style:Ut({fontSize:je+"em"},Ee)},be)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(re||ce)&&_jsx("g",{className:classes(["RoundGauge__alert",an?"active RoundGauge__alert--"+an:""]),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(ze,sn){var Ze=Ue[ze];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+ze,style:{strokeDashoffset:Math.max((2-(Ze[1]-Ze[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Ze[0])+" 50 50)",cx:"50",cy:"50",r:"45"},sn)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(we*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:T,format:se,size:je})]})},Ta=n(37912);/** + */function qr(){return qr=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var Al=function(_){var b=_.value,K=_.minValue,U=K===void 0?1:K,R=_.maxValue,w=R===void 0?1:R,H=_.ranges,oe=_.alertAfter,ae=_.alertBefore,re=_.format,ie=_.size,me=ie===void 0?1:ie,Ce=_.className,ve=_.style,Me=Si(_,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),be=scale(b,U,w),Be=clamp01(be),Ke=H?{}:{primary:[0,1]};H&&Object.keys(H).forEach(function(_e){var We=H[_e];Ke[_e]=[scale(We[0],U,w),scale(We[1],U,w)]});var ze=function(){if(oe&&ae&&oeb)return!0}else if(oeb)return!0;return!1},en=ze()&&keyOfMatchingRange(Be,Ke);return _jsxs(Box,{inline:!0,children:[_jsx("div",qr({className:classes(["RoundGauge",Ce,computeBoxClassName(Me)])},computeBoxProps(qr({style:qr({fontSize:me+"em"},ve)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(oe||ae)&&_jsx("g",{className:classes(["RoundGauge__alert",en?"active RoundGauge__alert--"+en:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Ke).map(function(_e,We){var Ge=Ke[_e];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+_e,style:{strokeDashoffset:Math.max((2-(Ge[1]-Ge[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Ge[0])+" 50 50)",cx:"50",cy:"50",r:"45"},We)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Be*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:b,format:re,size:me})]})},kt=n(37912);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ko(){return ko=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var Ds=function(M){var T=M.buttons,w=M.children,N=M.className,B=M.fill,H=M.fitted,te=M.onScroll,re=M.scrollable,ce=M.scrollableHorizontal,se=M.title,de=M.container_id,je=M.flexGrow,Oe=M.noTopPadding,Ee=M.stretchContents,be=Wo(M,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,t.useRef)(null),we=(0,E.b5)(se)||(0,E.b5)(T);return(0,t.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!re&&!ce)){var Ue=Ae.current;return(0,Ta.tk)(Ue),function(){Ue&&(0,Ta.WK)(Ue)}}},[]),(0,e.jsxs)("div",ko({id:de||"",className:(0,E.Ly)(["Section",B&&"Section--fill",H&&"Section--fitted",re&&"Section--scrollable",ce&&"Section--scrollableHorizontal",je&&"Section--flex",N,(0,C.WP)(be)])},(0,C.Fl)(be),{children:[we&&(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:T})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,E.Ly)(["Section__content",!!Ee&&"Section__content--stretchContents",!!Oe&&"Section__content--noTopPadding"]),onScroll:te,ref:Ae,children:w})})]}))};/** + */function eo(){return eo=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var ys=function(_){var b=_.buttons,K=_.children,U=_.className,R=_.fill,w=_.fitted,H=_.onScroll,oe=_.scrollable,ae=_.scrollableHorizontal,re=_.title,ie=_.container_id,me=_.flexGrow,Ce=_.noTopPadding,ve=_.stretchContents,Me=Pa(_,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),be=(0,t.useRef)(null),Be=(0,E.b5)(re)||(0,E.b5)(b);return(0,t.useEffect)(function(){if(be!=null&&be.current&&!(!oe&&!ae)){var Ke=be.current;return(0,kt.tk)(Ke),function(){Ke&&(0,kt.WK)(Ke)}}},[]),(0,e.jsxs)("div",eo({id:ie||"",className:(0,E.Ly)(["Section",R&&"Section--fill",w&&"Section--fitted",oe&&"Section--scrollable",ae&&"Section--scrollableHorizontal",me&&"Section--flex",U,(0,O.WP)(Me)])},(0,O.Fl)(Me),{children:[Be&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:re}),(0,e.jsx)("div",{className:"Section__buttons",children:b})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,E.Ly)(["Section__content",!!ve&&"Section__content--stretchContents",!!Ce&&"Section__content--noTopPadding"]),onScroll:H,ref:be,children:K})})]}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function At(){return At=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var zo=function(M){var T=M.animated,w=M.format,N=M.maxValue,B=M.minValue,H=M.onChange,te=M.onDrag,re=M.step,ce=M.stepPixelSize,se=M.suppressFlicker,de=M.unit,je=M.value,Oe=M.className,Ee=M.fillValue,be=M.color,Ae=M.ranges,we=Ae===void 0?{}:Ae,Ue=M.children,$e=$o(M,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),an=Ue!==void 0;return(0,e.jsx)(Oo,{dragMatrix:[1,0],animated:T,format:w,maxValue:N,minValue:B,onChange:H,onDrag:te,step:re,stepPixelSize:ce,suppressFlicker:se,unit:de,value:je,children:function(ze){var sn=ze.dragging,Ze=ze.editing,ln=ze.value,hn=ze.displayValue,En=ze.displayElement,qe=ze.inputElement,cn=ze.handleDragStart,tn=Ee!=null,Tn=(0,o.hs)(ln,B,N),Un=(0,o.hs)(Ee!=null?Ee:hn,B,N),kn=(0,o.hs)(hn,B,N),Nn=be||(0,o.TG)(Ee!=null?Ee:ln,we)||"default";return(0,e.jsxs)("div",At({className:(0,E.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Nn,Oe,(0,C.WP)($e)])},(0,C.Fl)($e),{onMouseDown:cn,children:[(0,e.jsx)("div",{className:(0,E.Ly)(["ProgressBar__fill",tn&&"ProgressBar__fill--animated"]),style:{width:(0,o.J$)(Un)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,o.J$)(Math.min(Un,kn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,o.J$)(kn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),sn&&(0,e.jsx)("div",{className:"Slider__popupValue",children:En})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:an?Ue:En}),qe]}))}})},Al=function(M){return _jsxs(Box,{style:M.style,children:[_jsxs(Box,{className:"Section__title",style:M.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:M.textStyle,children:M.title}),_jsx("div",{className:"Section__buttons",children:M.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:M.children})})]})};/** + */function Ia(){return Ia=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}function Lr(_){var b=_.animated,K=_.format,U=_.maxValue,R=_.minValue,w=_.onChange,H=_.onDrag,oe=_.step,ae=_.stepPixelSize,re=_.suppressFlicker,ie=_.unit,me=_.value,Ce=_.className,ve=_.fillValue,Me=_.color,be=_.ranges,Be=be===void 0?{}:be,Ke=_.children,ze=yr(_,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),en=Ke!==void 0;return(0,e.jsx)(pi,{dragMatrix:[1,0],animated:b,format:K,maxValue:U,minValue:R,onChange:w,onDrag:H,step:oe,stepPixelSize:ae,suppressFlicker:re,unit:ie,value:me,children:function(_e){var We=_e.displayElement,Ge=_e.displayValue,gn=_e.dragging,an=_e.handleDragStart,cn=_e.inputElement,Re=_e.value,sn=ve!=null,ln=(0,i.hs)(ve!=null?ve:Ge,R,U),pn=(0,i.hs)(Ge,R,U),An=Me||(0,i.TG)(ve!=null?ve:Re,Be)||"default";return(0,e.jsxs)("div",Ia({className:(0,E.Ly)(["Slider","ProgressBar","ProgressBar--color--"+An,Ce,(0,O.WP)(ze)])},(0,O.Fl)(ze),{onMouseDown:an,children:[(0,e.jsx)("div",{className:(0,E.Ly)(["ProgressBar__fill",sn&&"ProgressBar__fill--animated"]),style:{width:(0,i.J$)(ln)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,i.J$)(Math.min(ln,pn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,i.J$)(pn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),gn&&(0,e.jsx)("div",{className:"Slider__popupValue",children:We})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:en?Ke:We}),cn]}))}})}var Vo=function(_){return _jsxs(Box,{style:_.style,children:[_jsxs(Box,{className:"Section__title",style:_.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:_.textStyle,children:_.title}),_jsx("div",{className:"Section__buttons",children:_.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:_.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Fo(){return Fo=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}var Ur=function(M){var T=M.className,w=M.vertical,N=M.fill,B=M.fluid,H=M.children,te=Jt(M,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Fo({className:(0,E.Ly)(["Tabs",w?"Tabs--vertical":"Tabs--horizontal",N&&"Tabs--fill",B&&"Tabs--fluid",T,(0,C.WP)(te)])},(0,C.Fl)(te),{children:H}))},li=function(M){var T=M.className,w=M.selected,N=M.color,B=M.icon,H=M.iconSpin,te=M.leftSlot,re=M.rightSlot,ce=M.children,se=M.onClick,de=Jt(M,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),je=function(Oe){se&&(se(Oe),Oe.target.blur())};return(0,e.jsxs)("div",Fo({className:(0,E.Ly)(["Tab","Tabs__Tab","Tab--color--"+N,w&&"Tab--selected",T,(0,C.WP)(de)]),onClick:je},(0,C.Fl)(de),{children:[(0,E.b5)(te)&&(0,e.jsx)("div",{className:"Tab__left",children:te})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(L,{name:B,spin:H})}),(0,e.jsx)("div",{className:"Tab__text",children:ce}),(0,E.b5)(re)&&(0,e.jsx)("div",{className:"Tab__right",children:re})]}))};Ur.Tab=li;/** + */function Ur(){return Ur=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var ht=function(_){var b=_.className,K=_.vertical,U=_.fill,R=_.fluid,w=_.children,H=Go(_,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Ur({className:(0,E.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",R&&"Tabs--fluid",b,(0,O.WP)(H)])},(0,O.Fl)(H),{children:w}))},Ot=function(_){var b=_.className,K=_.selected,U=_.color,R=_.icon,w=_.iconSpin,H=_.leftSlot,oe=_.rightSlot,ae=_.children,re=_.onClick,ie=Go(_,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),me=function(Ce){re&&(re(Ce),Ce.target.blur())};return(0,e.jsxs)("div",Ur({className:(0,E.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,K&&"Tab--selected",b,(0,O.WP)(ie)]),onClick:me},(0,O.Fl)(ie),{children:[(0,E.b5)(H)&&(0,e.jsx)("div",{className:"Tab__left",children:H})||!!R&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:R,spin:w})}),(0,e.jsx)("div",{className:"Tab__text",children:ae}),(0,E.b5)(oe)&&(0,e.jsx)("div",{className:"Tab__right",children:oe})]}))};ht.Tab=Ot;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT - */function ci(){return ci=Object.assign||function(M){for(var T=1;T=0)&&(w[B]=M[B]);return w}function st(M,T){return st=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},st(M,T)}var Nr=function(M){"use strict";Vo(T,M);function T(N){var B;B=M.call(this,N)||this,B.textareaRef=N.innerRef||(0,t.createRef)(),B.state={editing:!1,scrolledAmount:0};var H=N.dontUseTabForIndent,te=H===void 0?!1:H;return B.handleOnInput=function(re){var ce=B.state.editing,se=B.props.onInput;ce||B.setEditing(!0),se&&se(re,re.target.value)},B.handleOnChange=function(re){var ce=B.state.editing,se=B.props.onChange;ce&&B.setEditing(!1),se&&se(re,re.target.value)},B.handleKeyPress=function(re){var ce=B.state.editing,se=B.props.onKeyPress;ce||B.setEditing(!0),se&&se(re,re.target.value)},B.handleKeyDown=function(re){var ce=B.state.editing,se=B.props,de=se.onChange,je=se.onInput,Oe=se.onEnter,Ee=se.onKey;if(re.keyCode===jt.Ri){B.setEditing(!1),de&&de(re,re.target.value),je&&je(re,re.target.value),Oe&&Oe(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===jt.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Sr(B.props.value),re.target.blur());return}if(ce||B.setEditing(!0),Ee&&Ee(re,re.target.value),!te){var be=re.keyCode||re.which;if(be===jt.aW){re.preventDefault();var Ae=re.target,we=Ae.value,Ue=Ae.selectionStart,$e=Ae.selectionEnd;re.target.value=we.substring(0,Ue)+" "+we.substring($e),re.target.selectionEnd=Ue+1,je&&je(re,re.target.value)}}},B.handleFocus=function(re){var ce=B.state.editing;ce||B.setEditing(!0)},B.handleBlur=function(re){var ce=B.state.editing,se=B.props.onChange;ce&&(B.setEditing(!1),se&&se(re,re.target.value))},B.handleScroll=function(re){var ce=B.props.displayedValue,se=B.textareaRef.current;ce&&se&&B.setState({scrolledAmount:se.scrollTop})},B}var w=T.prototype;return w.componentDidMount=function(){var B=this,H=this.props.value,te=this.textareaRef.current;te&&(te.value=Sr(H)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},w.componentDidUpdate=function(B,H){var te=B.value,re=this.props.value,ce=this.textareaRef.current;ce&&typeof re=="string"&&te!==re&&(ce.value=Sr(re))},w.setEditing=function(B){this.setState({editing:B})},w.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},w.render=function(){var B=this.props,H=B.onChange,te=B.onKeyDown,re=B.onKeyPress,ce=B.onInput,se=B.onFocus,de=B.onBlur,je=B.onEnter,Oe=B.value,Ee=B.maxLength,be=B.placeholder,Ae=B.scrollbar,we=B.noborder,Ue=B.displayedValue,$e=ft(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),an=$e.className,ze=$e.fluid,sn=$e.nowrap,Ze=ft($e,["className","fluid","nowrap"]),ln=this.state.scrolledAmount;return(0,e.jsxs)(C.az,ci({className:(0,E.Ly)(["TextArea",ze&&"TextArea--fluid",we&&"TextArea--noborder",an])},Ze,{children:[!!Ue&&(0,e.jsx)(C.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,E.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+ln+"px)"},children:Ue})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,E.Ly)(["TextArea__textarea",Ae&&"TextArea__textarea--scrollable",sn&&"TextArea__nowrap"]),placeholder:be,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Ee,style:{color:Ue?"rgba(0, 0, 0, 0)":"inherit"}})]}))},T}(t.Component),gr=n(41242);function pr(M,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(T&&T.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),T&&qt(M,T)}function qt(M,T){return qt=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},qt(M,T)}var Tl=function(M){return typeof M=="number"&&Number.isFinite(M)&&!Number.isNaN(M)},Ss=null;function As(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Et(M,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(T&&T.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),T&&Dn(M,T)}function Ct(M,T){return T!=null&&typeof Symbol!="undefined"&&T[Symbol.hasInstance]?!!T[Symbol.hasInstance](M):M instanceof T}function Dn(M,T){return Dn=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},Dn(M,T)}var Nt=null,Rl=function(M){var T=M.children,w=useRef(null),N=useState(1),B=N[0],H=N[1],te=useState(0),re=te[0],ce=te[1],se=useCallback(function(){var de=w.current;if(!(!T||!Array.isArray(T)||!de||B>=T.length)){var je=document.body.offsetHeight-de.getBoundingClientRect().bottom,Oe=Math.ceil(de.offsetHeight/B);if(je>0){var Ee=Math.min(T.length,B+Math.max(1,Math.ceil(je/Oe)));H(Ee),ce((T.length-Ee)*Oe)}}},[w,B,H,ce]);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:w,children:Array.isArray(T)?T.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+re+"px"}})]})};/** + */function or(){return or=Object.assign||function(_){for(var b=1;b=0)&&(K[R]=_[R]);return K}var ir=(0,t.forwardRef)(function(_,b){var K=_.autoFocus,U=_.autoSelect,R=_.displayedValue,w=_.dontUseTabForIndent,H=_.maxLength,oe=_.noborder,ae=_.onChange,re=_.onEnter,ie=_.onEscape,me=_.onInput,Ce=_.placeholder,ve=_.scrollbar,Me=_.selfClear,be=_.value,Be=Ft(_,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Ke=Be.className,ze=Be.fluid,en=Be.nowrap,_e=Ft(Be,["className","fluid","nowrap"]),We=(0,t.useRef)(null),Ge=(0,t.useState)(0),gn=Ge[0],an=Ge[1],cn=function(Re){if(Re.key===S._.Enter){if(Re.shiftKey){Re.currentTarget.focus();return}re==null||re(Re,Re.currentTarget.value),Me&&(Re.currentTarget.value=""),Re.currentTarget.blur();return}if((0,S.K)(Re.key)){ie==null||ie(Re),Me?Re.currentTarget.value="":(Re.currentTarget.value=Lo(be),Re.currentTarget.blur());return}if(!w&&Re.key===S._.Tab){Re.preventDefault();var sn=Re.currentTarget,ln=sn.value,pn=sn.selectionStart,An=sn.selectionEnd;Re.currentTarget.value=ln.substring(0,pn)+" "+ln.substring(An),Re.currentTarget.selectionEnd=pn+1}};return(0,t.useImperativeHandle)(b,function(){return We.current}),(0,t.useEffect)(function(){if(!(!K&&!U)){var Re=We.current;Re&&(K||U)&&setTimeout(function(){Re.focus(),U&&Re.select()},1)}},[]),(0,t.useEffect)(function(){var Re=We.current;if(Re){var sn=Lo(be);Re.value!==sn&&(Re.value=sn)}},[be]),(0,e.jsxs)(O.az,or({className:(0,E.Ly)(["TextArea",ze&&"TextArea--fluid",oe&&"TextArea--noborder",Ke])},_e,{children:[!!R&&(0,e.jsx)("div",{style:{height:"100%",overflow:"hidden",position:"absolute",width:"100%"},children:(0,e.jsx)("div",{className:(0,E.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+gn+"px)"},children:R})}),(0,e.jsx)("textarea",{className:(0,E.Ly)(["TextArea__textarea",ve&&"TextArea__textarea--scrollable",en&&"TextArea__nowrap"]),maxLength:H,onBlur:function(Re){return ae==null?void 0:ae(Re,Re.target.value)},onChange:function(Re){return me==null?void 0:me(Re,Re.target.value)},onKeyDown:cn,onScroll:function(){R&&We.current&&an(We.current.scrollTop)},placeholder:Ce,ref:We,style:{color:R?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),no=n(41242);function Rl(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),b&&Xo(_,b)}function Xo(_,b){return Xo=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},Xo(_,b)}var Ms=function(_){return typeof _=="number"&&Number.isFinite(_)&&!Number.isNaN(_)},yt=null;function Mt(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function Nn(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),b&&bi(_,b)}function Vt(_,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](_):_ instanceof b}function bi(_,b){return bi=Object.setPrototypeOf||function(U,R){return U.__proto__=R,U},bi(_,b)}var Bl=null,_s=function(_){var b=_.children,K=useRef(null),U=useState(1),R=U[0],w=U[1],H=useState(0),oe=H[0],ae=H[1],re=useCallback(function(){var ie=K.current;if(!(!b||!Array.isArray(b)||!ie||R>=b.length)){var me=document.body.offsetHeight-ie.getBoundingClientRect().bottom,Ce=Math.ceil(ie.offsetHeight/R);if(me>0){var ve=Math.min(b.length,R+Math.max(1,Math.ceil(me/Ce)));w(ve),ae((b.length-ve)*Ce)}}},[K,R,b]);return useEffect(function(){re();var ie=setInterval(re,100);return function(){return clearInterval(ie)}},[re]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:K,children:Array.isArray(b)?b.slice(0,R):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+oe+"px"}})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},79500:function(I,g,n){"use strict";n.d(g,{Ai:function(){return e},Fo:function(){return x},KA:function(){return o},KS:function(){return r},NE:function(){return p},b_:function(){return c},bz:function(){return t},lm:function(){return d},wM:function(){return f}});/** + */},79500:function(y,h,n){"use strict";n.d(h,{Ai:function(){return e},Fo:function(){return u},KA:function(){return i},KS:function(){return r},NE:function(){return x},b_:function(){return a},bz:function(){return t},lm:function(){return g},wM:function(){return s}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,o=2,t=1,r=0,s=null,d={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"}},p=["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"}],a=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],f=function(v,u){if(!v)return u||"None";for(var h=v.toLowerCase(),j=v.replace(/(^\w{1})|(\s+\w{1})/g,function(C){return C.toUpperCase()}),E=0;E0&&ie[ie.length-1])&&(me[0]===6||me[0]===2)){ue=0;continue}if(me[0]===3&&(!ie||me[1]>ie[0]&&me[1]xe&&(ie[ue]=xe-Q[ue],le=!0)}return[le,ie]},Y=function(U){var Q;p.log("drag start"),c=!0,h=(0,o.Z4)([U.screenX,U.screenY],_()),(Q=U.target)==null||Q.focus(),document.addEventListener("mousemove",Z),document.addEventListener("mouseup",q),Z(U)},q=function(U){p.log("drag end"),Z(U),document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",q),c=!1,W()},Z=function(U){c&&(U.preventDefault(),D((0,o.Z4)([U.screenX,U.screenY],h)))},V=function(U,Q){return function(ee){var ne;j=[U,Q],p.log("resize start",j),l=!0,h=(0,o.Z4)([ee.screenX,ee.screenY],_()),E=b(),(ne=ee.target)==null||ne.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",z),X(ee)}},z=function(U){p.log("resize end",C),X(U),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",z),l=!1,W()},X=function(U){if(l){U.preventDefault();var Q=(0,o.Z4)([U.screenX,U.screenY],_()),ee=(0,o.Z4)(Q,h);C=(0,o.CO)(E,(0,o.tk)(j,ee),[1,1]),C[0]=Math.max(C[0],150*a),C[1]=Math.max(C[1],50*a),S(C)}}},37912:function(I,g,n){"use strict";n.d(g,{Nh:function(){return t},WK:function(){return E},tk:function(){return j},y4:function(){return s}});var e=n(3088),o=n(6544);/** + */function r(J,V,te,ce,le,fe,ge){try{var Ie=J[fe](ge),Ee=Ie.value}catch(je){te(je);return}Ie.done?V(Ee):Promise.resolve(Ee).then(ce,le)}function l(J){return function(){var V=this,te=arguments;return new Promise(function(ce,le){var fe=J.apply(V,te);function ge(Ee){r(fe,ce,le,ge,Ie,"next",Ee)}function Ie(Ee){r(fe,ce,le,ge,Ie,"throw",Ee)}ge(void 0)})}}function g(J,V){var te,ce,le,fe,ge={label:0,sent:function(){if(le[0]&1)throw le[1];return le[1]},trys:[],ops:[]};return fe={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Ie(je){return function(Ne){return Ee([je,Ne])}}function Ee(je){if(te)throw new TypeError("Generator is already executing.");for(;ge;)try{if(te=1,ce&&(le=je[0]&2?ce.return:je[0]?ce.throw||((le=ce.return)&&le.call(ce),0):ce.next)&&!(le=le.call(ce,je[1])).done)return le;switch(ce=0,le&&(je=[je[0]&2,le.value]),je[0]){case 0:case 1:le=je;break;case 4:return ge.label++,{value:je[1],done:!1};case 5:ge.label++,ce=je[1],je=[0];continue;case 7:je=ge.ops.pop(),ge.trys.pop();continue;default:if(le=ge.trys,!(le=le.length>0&&le[le.length-1])&&(je[0]===6||je[0]===2)){ge=0;continue}if(je[0]===3&&(!le||je[1]>le[0]&&je[1]Ee&&(le[ge]=Ee-V[ge],fe=!0)}return[fe,le]},G=function(J){var V;x.log("drag start"),a=!0,v=(0,i.Z4)([J.screenX,J.screenY],P()),(V=J.target)==null||V.focus(),document.addEventListener("mousemove",ee),document.addEventListener("mouseup",Q),ee(J)},Q=function(J){x.log("drag end"),ee(J),document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Q),a=!1,$()},ee=function(J){a&&(J.preventDefault(),S((0,i.Z4)([J.screenX,J.screenY],v)))},se=function(J,V){return function(te){var ce;j=[J,V],x.log("resize start",j),c=!0,v=(0,i.Z4)([te.screenX,te.screenY],P()),E=D(),(ce=te.target)==null||ce.focus(),document.addEventListener("mousemove",Y),document.addEventListener("mouseup",ne),Y(te)}},ne=function(J){x.log("resize end",O),Y(J),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",ne),c=!1,$()},Y=function(J){if(c){J.preventDefault();var V=(0,i.Z4)([J.screenX,J.screenY],P()),te=(0,i.Z4)(V,v);O=(0,i.CO)(E,(0,i.tk)(j,te),[1,1]),O[0]=Math.max(O[0],150*o),O[1]=Math.max(O[1],50*o),B(O)}}},37912:function(y,h,n){"use strict";n.d(h,{Nh:function(){return t},WK:function(){return E},tk:function(){return j},y4:function(){return l}});var e=n(47454),i=n(6544);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=new e.b,r=!1,s=function(b){b===void 0&&(b={}),r=!!b.ignoreWindowFocus},d,p=!0,x=function(b,D){if(r){p=!0;return}if(d&&(clearTimeout(d),d=null),D){d=setTimeout(function(){return x(b)});return}p!==b&&(p=b,t.emit(b?"window-focus":"window-blur"),t.emit("window-focus-change",b))},a=null,f=function(b){var D=String(b.tagName).toLowerCase();return D==="input"||D==="textarea"},c=function(b){l(),a=b,a.addEventListener("blur",l)},l=function(){a&&(a.removeEventListener("blur",l),a=null)},v=null,u=null,h=[],j=function(b){h.push(b)},E=function(b){var D=h.indexOf(b);D>=0&&h.splice(D,1)},C=function(b){if(!(a||!p))for(var D=document.body;b&&b!==D;){if(h.includes(b)){if(b.contains(v))return;v=b,b.focus();return}b=b.parentElement}};window.addEventListener("mousemove",function(b){var D=b.target;D!==u&&h.length<2&&(u=D,C(D))}),window.addEventListener("click",function(b){var D=b.target;D!==u&&(u=D,C(D))}),window.addEventListener("focusin",function(b){u=null,v=b.target,x(!0),f(b.target)&&c(b.target)}),window.addEventListener("focusout",function(b){u=null,x(!1,!0)}),window.addEventListener("blur",function(b){u=null,x(!1,!0)}),window.addEventListener("beforeunload",function(b){x(!1)});var O={},_=function(){"use strict";function b(S,A,R){this.event=S,this.type=A,this.code=S.keyCode,this.ctrl=S.ctrlKey,this.shift=S.shiftKey,this.alt=S.altKey,this.repeat=!!R}var D=b.prototype;return D.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},D.isModifierKey=function(){return this.code===o.Ss||this.code===o.re||this.code===o.cH},D.isDown=function(){return this.type==="keydown"},D.isUp=function(){return this.type==="keyup"},D.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=o.sV&&this.code<=o.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},b}();document.addEventListener("keydown",function(b){if(!f(b.target)){var D=b.keyCode,S=new _(b,"keydown",O[D]);t.emit("keydown",S),t.emit("key",S),O[D]=!0}}),document.addEventListener("keyup",function(b){if(!f(b.target)){var D=b.keyCode,S=new _(b,"keyup");t.emit("keyup",S),t.emit("key",S),O[D]=!1}})},49945:function(I,g,n){"use strict";n.d(g,{$:function(){return e}});/** + */var t=new e.b,r=!1,l=function(D){D===void 0&&(D={}),r=!!D.ignoreWindowFocus},g,x=!0,u=function(D,S){if(r){x=!0;return}if(g&&(clearTimeout(g),g=null),S){g=setTimeout(function(){return u(D)});return}x!==D&&(x=D,t.emit(D?"window-focus":"window-blur"),t.emit("window-focus-change",D))},o=null,s=function(D){var S=String(D.tagName).toLowerCase();return S==="input"||S==="textarea"},a=function(D){c(),o=D,o.addEventListener("blur",c)},c=function(){o&&(o.removeEventListener("blur",c),o=null)},f=null,m=null,v=[],j=function(D){v.push(D)},E=function(D){var S=v.indexOf(D);S>=0&&v.splice(S,1)},O=function(D){if(!(o||!x))for(var S=document.body;D&&D!==S;){if(v.includes(D)){if(D.contains(f))return;f=D,D.focus();return}D=D.parentElement}};window.addEventListener("mousemove",function(D){var S=D.target;S!==m&&v.length<2&&(m=S,O(S))}),window.addEventListener("click",function(D){var S=D.target;S!==m&&(m=S,O(S))}),window.addEventListener("focusin",function(D){m=null,f=D.target,u(!0),s(D.target)&&a(D.target)}),window.addEventListener("focusout",function(D){m=null,u(!1,!0)}),window.addEventListener("blur",function(D){m=null,u(!1,!0)}),window.addEventListener("beforeunload",function(D){u(!1)});var M={},P=function(){"use strict";function D(B,T,L){this.event=B,this.type=T,this.code=B.keyCode,this.ctrl=B.ctrlKey,this.shift=B.shiftKey,this.alt=B.altKey,this.repeat=!!L}var S=D.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===i.Ss||this.code===i.re||this.code===i.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=i.sV&&this.code<=i.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},D}();document.addEventListener("keydown",function(D){if(!s(D.target)){var S=D.keyCode,B=new P(D,"keydown",M[S]);t.emit("keydown",B),t.emit("key",B),M[S]=!0}}),document.addEventListener("keyup",function(D){if(!s(D.target)){var S=D.keyCode,B=new P(D,"keyup");t.emit("keyup",B),t.emit("key",B),M[S]=!1}})},49945:function(y,h,n){"use strict";n.d(h,{$:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},o=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(I,g,n){"use strict";n.d(g,{QL:function(){return t},d5:function(){return r},fU:function(){return a},qQ:function(){return f},up:function(){return s}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},i=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(y,h,n){"use strict";n.d(h,{QL:function(){return t},d5:function(){return r},fU:function(){return o},qQ:function(){return s},up:function(){return l}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],o=e.indexOf(" "),t=function(c,l,v){if(l===void 0&&(l=-o),v===void 0&&(v=""),!isFinite(c))return c.toString();var u=Math.floor(Math.log10(Math.abs(c))),h=Math.max(l*3,u),j=Math.floor(h/3),E=e[Math.min(j+o,e.length-1)],C=c/Math.pow(1e3,j),O=C.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+E.trim()+v).trim()},r=function(c,l){return l===void 0&&(l=0),t(c,l,"W")},s=function(c,l){if(l===void 0&&(l=0),!Number.isFinite(c))return String(c);var v=Number(c.toFixed(l)),u=v<0,h=Math.abs(v),j=h.toString().split(".");j[0]=j[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var E=j.join(".");return u?"-"+E:E},d=function(c){var l=20*Math.log10(c),v=l>=0?"+":"-",u=Math.abs(l);return u===1/0?u="Inf":u=u.toFixed(2),""+v+u+" dB"},p=null,x=function(c,l,v){if(l===void 0&&(l=0),v===void 0&&(v=""),!isFinite(c))return"NaN";var u=Math.floor(Math.log10(c)),h=Math.max(l*3,u),j=Math.floor(h/3),E=p[j],C=c/Math.pow(1e3,j),O=Math.max(0,2-h%3),_=C.toFixed(O);return(_+" "+E+" "+v).trim()},a=function(c,l){l===void 0&&(l="default");var v=Math.floor(c/10),u=Math.floor(v/3600),h=Math.floor(v%3600/60),j=v%60;if(l==="short"){var E=u>0?""+u+"h":"",C=h>0?""+h+"m":"",O=j>0?""+j+"s":"";return""+E+C+O}var _=String(u).padStart(2,"0"),b=String(h).padStart(2,"0"),D=String(j).padStart(2,"0");return _+":"+b+":"+D},f=function(c){if(!Number.isFinite(c))return c;var l=c.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},52130:function(I,g,n){"use strict";n.d(g,{Bm:function(){return E}});var e=n(6544),o=n(37912),t=n(92736);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=e.indexOf(" "),t=function(a,c,f){if(c===void 0&&(c=-i),f===void 0&&(f=""),!isFinite(a))return a.toString();var m=Math.floor(Math.log10(Math.abs(a))),v=Math.max(c*3,m),j=Math.floor(v/3),E=e[Math.min(j+i,e.length-1)],O=a/Math.pow(1e3,j),M=O.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+E.trim()+f).trim()},r=function(a,c){return c===void 0&&(c=0),t(a,c,"W")},l=function(a,c){if(c===void 0&&(c=0),!Number.isFinite(a))return String(a);var f=Number(a.toFixed(c)),m=f<0,v=Math.abs(f),j=v.toString().split(".");j[0]=j[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var E=j.join(".");return m?"-"+E:E},g=function(a){var c=20*Math.log10(a),f=c>=0?"+":"-",m=Math.abs(c);return m===1/0?m="Inf":m=m.toFixed(2),""+f+m+" dB"},x=null,u=function(a,c,f){if(c===void 0&&(c=0),f===void 0&&(f=""),!isFinite(a))return"NaN";var m=Math.floor(Math.log10(a)),v=Math.max(c*3,m),j=Math.floor(v/3),E=x[j],O=a/Math.pow(1e3,j),M=Math.max(0,2-v%3),P=O.toFixed(M);return(P+" "+E+" "+f).trim()},o=function(a,c){c===void 0&&(c="default");var f=Math.floor(a/10),m=Math.floor(f/3600),v=Math.floor(f%3600/60),j=f%60;if(c==="short"){var E=m>0?""+m+"h":"",O=v>0?""+v+"m":"",M=j>0?""+j+"s":"";return""+E+O+M}var P=String(m).padStart(2,"0"),D=String(v).padStart(2,"0"),S=String(j).padStart(2,"0");return P+":"+D+":"+S},s=function(a){if(!Number.isFinite(a))return a;var c=a.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},52130:function(y,h,n){"use strict";n.d(h,{Bm:function(){return E}});var e=n(6544),i=n(37912),t=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(O,_){(_==null||_>O.length)&&(_=O.length);for(var b=0,D=new Array(_);b<_;b++)D[b]=O[b];return D}function s(O,_){if(O){if(typeof O=="string")return r(O,_);var b=Object.prototype.toString.call(O).slice(8,-1);if(b==="Object"&&O.constructor&&(b=O.constructor.name),b==="Map"||b==="Set")return Array.from(b);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return r(O,_)}}function d(O,_){var b=typeof Symbol!="undefined"&&O[Symbol.iterator]||O["@@iterator"];if(b)return(b=b.call(O)).next.bind(b);if(Array.isArray(O)||(b=s(O))||_&&O&&typeof O.length=="number"){b&&(O=b);var D=0;return function(){return D>=O.length?{done:!0}:{done:!1,value:O[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 p=(0,t.h)("hotkeys"),x={},a=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],f={},c=[],l=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"."},v=function(O){var _=String(O);if(_==="Ctrl+F5"||_==="Ctrl+R"){location.reload();return}if(_!=="Ctrl+F"&&!(O.event.defaultPrevented||O.isModifierKey()||a.includes(O.code))){var b=l(O.code);if(b){var D=x[b];if(D)return p.debug("macro",D),Byond.command(D);if(O.isDown()&&!f[b]){f[b]=!0;var S='TguiKeyDown "'+b+'"';return p.debug(S),Byond.command(S)}if(O.isUp()&&f[b]){f[b]=!1;var A='TguiKeyUp "'+b+'"';return p.debug(A),Byond.command(A)}}}},u=function(O){a.push(O)},h=function(O){var _=a.indexOf(O);_>=0&&a.splice(_,1)},j=function(){for(var O=d(Object.keys(f)),_;!(_=O()).done;){var b=_.value;f[b]&&(f[b]=!1,p.log('releasing key "'+b+'"'),Byond.command('TguiKeyUp "'+b+'"'))}},E=function(){Byond.winget("default.*").then(function(O){for(var _={},b=d(Object.keys(O)),D;!(D=b()).done;){var S=D.value,A=S.split("."),R=A[1],L=A[2];R&&L&&(_[R]||(_[R]={}),_[R][L]=O[S])}for(var W=/\\"/g,F=function(V){return V.substring(1,V.length-1).replace(W,'"')},$=d(Object.keys(_)),G;!(G=$()).done;){var Y=G.value,q=_[Y],Z=F(q.name);x[Z]=F(q.command)}p.debug("loaded macros",x)}),o.Nh.on("window-blur",function(){j()}),o.Nh.on("key",function(O){for(var _=d(c),b;!(b=_()).done;){var D=b.value;D(O)}v(O)})},C=function(O){c.push(O);var _=!1;return function(){_||(_=!0,c.splice(c.indexOf(O),1))}}},20544:function(I,g,n){"use strict";n.r(g),n.d(g,{AICard:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.name,c=a.has_ai,l=a.integrity,v=a.backup_capacitor,u=a.flushing,h=a.has_laws,j=a.laws,E=a.wireless,C=a.radio;if(c){var O;l>=75?O="green":l>=25?O="yellow":O="red";var _;return v>=75&&(_="green"),v>=25?_="yellow":_="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,inline:!0,children:(0,e.jsx)("h3",{children:f})}),(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:O,value:l/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:_,value:v/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:u===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!h&&(0,e.jsx)(t.az,{children:j.map(function(b,D){return(0,e.jsx)(t.az,{inline:!0,children:b},D)})})||(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:E?"check":"times",color:E?"green":"red",onClick:function(){return x("wireless")},children:E?"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:u||l===0,confirmColor:"red",onClick:function(){return x("wipe")},children:"Shutdown"})})]})})]})})}else return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})})}},43252:function(I,g,n){"use strict";n.r(g),n.d(g,{APC:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(72859),d=n(98071),p=function(v){var u=(0,o.Oc)(),h=u.act,j=u.data,E=j.gridCheck,C=j.failTime,O=(0,e.jsx)(f,{});return E?O=(0,e.jsx)(c,{}):C&&(O=(0,e.jsx)(l,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:O})})},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"}},a={1:{icon:"terminal",content:"Override Programming",action:"hack"}},f=function(v){var u=(0,o.Oc)(),h=u.act,j=u.data,E=j.locked,C=j.siliconUser,O=j.externalPower,_=j.chargingStatus,b=j.powerChannels,D=j.powerCellStatus,S=j.emagged,A=j.isOperating,R=j.chargeMode,L=j.totalCharging,W=j.totalLoad,F=j.coverLocked,$=j.nightshiftSetting,G=j.emergencyLights,Y=E&&!C,q=x[O]||x[0],Z=x[_]||x[0],V=b||[],z=D/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.InterfaceLockNoticeBox,{deny:S,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:q.color,buttons:(0,e.jsx)(t.$n,{icon:A?"power-off":"times",selected:A&&!Y,color:A?"":"bad",disabled:Y,onClick:function(){return h("breaker")},children:A?"On":"Off"}),children:["[ ",q.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:z})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:Z.color,buttons:(0,e.jsx)(t.$n,{icon:R?"sync":"times",selected:R,disabled:Y,onClick:function(){return h("charge")},children:R?"Auto":"Off"}),children:["[ ",Z.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[V.map(function(X){var U=X.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:X.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:X.status>=2?"good":"bad",children:X.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!Y&&(X.status===1||X.status===3),disabled:Y,onClick:function(){return h("channel",U.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!Y&&X.status===2,disabled:Y,onClick:function(){return h("channel",U.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!Y&&X.status===0,disabled:Y,onClick:function(){return h("channel",U.off)},children:"Off"})]}),children:[X.powerLoad," W"]},X.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:L?(0,e.jsxs)("b",{children:[W," W (+ ",L," W charging)"]}):(0,e.jsxs)("b",{children:[W," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!j.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return h("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:F?"lock":"unlock",selected:F,disabled:Y,onClick:function(){return h("cover")},children:F?"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:$===2,onClick:function(){return h("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:$===1,onClick:function(){return h("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:$===3,onClick:function(){return h("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:G,onClick:function(){return h("emergency_lighting")},children:G?"Enabled":"Disabled"})})]})})]})},c=function(v){return(0,e.jsxs)(s.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},l=function(v){var u=(0,o.Oc)(),h=u.data,j=u.act,E=h.locked,C=h.siliconUser,O=h.failTime,_=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return j("reboot")},children:"Restart Now"});return E&&!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 ",O," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:_})]})}},77056:function(I,g,n){"use strict";n.r(g),n.d(g,{AccountsTerminal:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.id_inserted,h=v.id_card,j=v.access_level,E=v.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:E}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:u?"eject":"sign-in-alt",fluid:!0,onClick:function(){return l("insert_card")},children:h})})]})}),j>0&&(0,e.jsx)(d,{})]})})},d=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.creating_new_account,h=v.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:!u&&!h,icon:"home",onClick:function(){return l("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("create_account")},children:"New Account"}),u?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return l("print")},children:"Print"})]}),u&&(0,e.jsx)(p,{})||h&&(0,e.jsx)(x,{})||(0,e.jsx)(a,{})]})},p=function(f){var c=(0,o.Oc)().act,l=(0,o.QY)("holder",""),v=l[0],u=l[1],h=(0,o.QY)("money",""),j=h[0],E=h[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:v,fluid:!0,onInput:function(C,O){return u(O)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onInput:function(C,O){return E(O)}})})]}),(0,e.jsx)(t.$n,{disabled:!v||!j,mt:1,fluid:!0,icon:"plus",onClick:function(){return c("finalise_create_account",{holder_name:v,starting_funds:j})},children:"Create"})]})},x=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.access_level,h=v.station_account_number,j=v.account_number,E=v.owner_name,C=v.money,O=v.suspended,_=v.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:O,onClick:function(){return l("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",j]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[C,"\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",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:j===h,onClick:function(){return l("revoke_payroll")},children:"Revoke"})})})}),u>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),_.map(function(b,D){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[b.date," ",b.time]}),(0,e.jsx)(t.XI.Cell,{children:b.target_name}),(0,e.jsx)(t.XI.Cell,{children:b.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[b.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:b.source_terminal})]},D)})]})})]})},a=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:u.length&&(0,e.jsx)(t.Ki,{children:u.map(function(h){return(0,e.jsx)(t.Ki.Item,{label:h.owner_name+h.suspended,color:h.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return l("view_account_detail",{account_index:h.account_index})},children:"#"+h.account_number})},h.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(I,g,n){"use strict";n.r(g),n.d(g,{AdminShuttleController:function(){return d},ShuttleList:function(){return p}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(p,{})})})},p=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.shuttles,u=l.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(function(h){return h.name})(v).map(function(h){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 c("adminobserve",{ref:h.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return c("classicmove",{ref:h.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:h.name}),(0,e.jsx)(r.XI.Cell,{children:h.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(h.status)})]},h.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(function(h){var j;return((j=h.name)==null?void 0:j.toLowerCase())||h.name||h.ref})(u).map(function(h){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 c("adminobserve",{ref:h.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return c("overmap_control",{ref:h.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:h.name})]},h.ref)})})})]})},x=function(a){switch(a){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(I,g,n){"use strict";n.r(g),n.d(g,{AdminTicketPanel:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.id,v=c.title,u=c.name,h=c.state,j=c.opened_at,E=c.closed_at,C=c.opened_at_date,O=c.closed_at_date,_=c.actions,b=c.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return f("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return f("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:u}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:d[h]}),d[h]===d.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:C+" ("+(0,o.Mg)((0,o.LI)(j/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[O+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return f("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(b).map(function(D,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[D]}},S)})})]})})})})}},14415:function(I,g,n){"use strict";n.r(g),n.d(g,{AgentCard:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.entries,c=a.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:f.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return x(l.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsx)(t.XI.Cell,{children:l.value})]},l.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:c,onClick:function(){return x("electronic_warfare")},children:c?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(I,g,n){"use strict";n.r(g),n.d(g,{AiAirlock:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.power,l=f.wires,v=f.shock,u=f.shock_timeleft,h=f.id_scanner,j=f.lights,E=f.locked,C=f.safe,O=f.speed,_=f.opened,b=f.welded,D=s[c.main]||s[0],S=s[c.backup]||s[0],A=s[v]||s[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:D.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!c.main,onClick:function(){return a("disrupt-main")},children:"Disrupt"}),children:[c.main?"Online":"Offline"," ",(!l.main_1||!l.main_2)&&"[Wires have been cut!]"||c.main_timeleft>0&&"["+c.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:S.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!c.backup,onClick:function(){return a("disrupt-backup")},children:"Disrupt"}),children:[c.backup?"Online":"Offline"," ",(!l.backup_1||!l.backup_2)&&"[Wires have been cut!]"||c.backup_timeleft>0&&"["+c.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:A.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(l.shock&&v===0),onClick:function(){return a("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return a("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return a("shock-perm")},children:"Permanent"})]}),children:[v===2?"Safe":"Electrified"," ",!l.shock&&"[Wires have been cut!]"||u>0&&"["+u+"s]"||u===-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:h?"power-off":"times",selected:h,disabled:!l.id_scanner,onClick:function(){return a("idscan-toggle")},children:h?"Enabled":"Disabled"}),children:!l.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:E?"lock":"unlock",selected:E,disabled:!l.bolts,onClick:function(){return a("bolt-toggle")},children:E?"Lowered":"Raised"}),children:!l.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,disabled:!l.lights,onClick:function(){return a("light-toggle")},children:j?"Enabled":"Disabled"}),children:!l.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,disabled:!l.safe,onClick:function(){return a("safe-toggle")},children:C?"Enabled":"Disabled"}),children:!l.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:O?"power-off":"times",selected:O,disabled:!l.timing,onClick:function(){return a("speed-toggle")},children:O?"Enabled":"Disabled"}),children:!l.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:_?"sign-out-alt":"sign-in-alt",selected:_,disabled:E||b,onClick:function(){return a("open-close")},children:_?"Open":"Closed"}),children:!!(E||b)&&(0,e.jsxs)("span",{children:["[Door is ",E?"bolted":"",E&&b?" and ":"",b?"welded":"","!]"]})})]})})]})})}},89570:function(I,g,n){"use strict";n.r(g),n.d(g,{AiRestorer:function(){return s},AiRestorerContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.AI_present,l=f.error,v=f.name,u=f.laws,h=f.isDead,j=f.restoring,E=f.health,C=f.ejectable;return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(t.IC,{textAlign:"center",children:l}),!!C&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!c,onClick:function(){return a("PRG_eject")},children:c?v:"----------"}),!!c&&(0,e.jsxs)(t.wn,{title:C?"System Status":v,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:h?"bad":"good",children:h?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:E,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!j&&(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:j,mt:1,onClick:function(){return a("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:u.map(function(O){return(0,e.jsx)(t.az,{className:"candystripe",children:O},O)})})]})]})}},69622:function(I,g,n){"use strict";n.r(g),n.d(g,{AiSupermatter:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(72859),d=function(a){var f=(0,o.Oc)().data,c=f.detonating,l=(0,e.jsx)(x,{});return c&&(l=(0,e.jsx)(p,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:l})})},p=function(a){return(0,e.jsx)(s.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(a){var f=(0,o.Oc)().data,c=f.integrity_percentage,l=f.ambient_temp,v=f.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:c,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:l,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[l," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[v," kPa"]})]})})}},15991:function(I,g,n){"use strict";n.r(g),n.d(g,{AirAlarm:function(){return f}});var e=n(62161),o=n(4089),t=n(28277),r=n(7081),s=n(16754),d=n(79500),p=n(42103),x=n(26634),a=n(98071),f=function(_){var b=function(Z){G(Z)},D=(0,r.Oc)(),S=D.act,A=D.data,R=A.locked,L=A.siliconUser,W=A.remoteUser,F=(0,t.useState)(""),$=F[0],G=F[1],Y=R&&!L&&!W;return(0,e.jsx)(p.p8,{width:440,height:650,children:(0,e.jsxs)(p.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(0,e.jsx)(c,{}),(0,e.jsx)(l,{}),!Y&&(0,e.jsx)(u,{screen:$,onScreen:b})]})})},c=function(_){var b=(0,r.Oc)().data,D=b.environment_data,S=b.atmos_alarm,A=b.fire_alarm,R=b.emagged,L=(D||[]).filter(function($){return $.value>=.01}),W={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},F=W[b.danger_level]||W[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[L.length>0&&(0,e.jsxs)(e.Fragment,{children:[L.map(function($){var G=W[$.danger_level]||W[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,d.wM)($.name),color:G.color,children:[(0,o.Mg)($.value,2),$.unit]},$.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:F.color,children:F.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:S||A?"bad":"good",children:S&&"Atmosphere Alarm"||A&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!R&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},l=function(_){var b=(0,r.Oc)(),D=b.act,S=b.data,A=S.target_temperature,R=S.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:R===1,onClick:function(){return D("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(s.$n,{selected:R===2,onClick:function(){return D("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(s.$n,{selected:R===3,onClick:function(){return D("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{onClick:function(){return D("temperature")},children:A})})]})})},v={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return j}},scrubbers:{title:"Scrubber Controls",component:function(){return E}},modes:{title:"Operating Mode",component:function(){return C}},thresholds:{title:"Alarm Thresholds",component:function(){return O}}},u=function(_){var b=v[_.screen]||v.home,D=b.component();return(0,e.jsx)(s.wn,{title:b.title,buttons:_.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return _.onScreen()},children:"Back"}),children:(0,e.jsx)(D,{onScreen:_.onScreen})})},h=function(_){var b=(0,r.Oc)(),D=b.act,S=b.data,A=S.mode,R=S.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:R?"exclamation-triangle":"exclamation",color:R&&"caution",onClick:function(){return D(R?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:A===3?"exclamation-triangle":"exclamation",color:A===3&&"danger",onClick:function(){return D("mode",{mode:A===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",onClick:function(){return _.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",onClick:function(){return _.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",onClick:function(){return _.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",onClick:function(){return _.onScreen("thresholds")},children:"Alarm Thresholds"})]})},j=function(_){var b=(0,r.Oc)().data,D=b.vents;return!D||D.length===0?"Nothing to show":D.map(function(S){return(0,e.jsx)(x.Vent,{vent:S},S.id_tag)})},E=function(_){var b=(0,r.Oc)().data,D=b.scrubbers;return!D||D.length===0?"Nothing to show":D.map(function(S){return(0,e.jsx)(x.Scrubber,{scrubber:S},S.id_tag)})},C=function(_){var b=(0,r.Oc)(),D=b.act,S=b.data,A=S.modes;return!A||A.length===0?"Nothing to show":A.map(function(R){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(s.$n,{icon:R.selected?"check-square-o":"square-o",selected:R.selected,color:R.selected&&R.danger&&"danger",onClick:function(){return D("mode",{mode:R.mode})},children:R.name}),(0,e.jsx)(s.az,{mt:1})]},R.mode)})},O=function(_){var b=(0,r.Oc)(),D=b.act,S=b.data,A=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:A.map(function(R){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,d.b_)(R.name),children:(0,d.wM)(R.name)})}),R.settings.map(function(L){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{onClick:function(){return D("threshold",{env:L.env,var:L.val})},children:(0,o.Mg)(L.selected,2)})},L.val)})]},R.name)})})]})}},51225:function(I,g,n){"use strict";n.r(g),n.d(g,{AlertModal:function(){return f}});var e=n(62161),o=n(28277),t=n(6544),r=n(7081),s=n(16754),d=n(42103),p=n(44149),x=-1,a=1,f=function(v){var u=(0,r.Oc)(),h=u.act,j=u.data,E=j.autofocus,C=j.buttons,O=C===void 0?[]:C,_=j.large_buttons,b=j.message,D=b===void 0?"":b,S=j.timeout,A=j.title,R=(0,o.useState)(0),L=R[0],W=R[1],F=115+(D.length>30?Math.ceil(D.length/4):0)+(D.length&&_?5:0),$=325+(O.length>2?55:0),G=function(Y){L===0&&Y===x?W(O.length-1):L===O.length-1&&Y===a?W(0):W(L+Y)};return(0,e.jsxs)(d.p8,{height:F,title:A,width:$,children:[!!S&&(0,e.jsx)(p.Loader,{value:S}),(0,e.jsx)(d.p8.Content,{onKeyDown:function(Y){var q=window.event?Y.which:Y.keyCode;q===t.iy||q===t.Ri?h("choose",{choice:O[L]}):q===t.s6?h("cancel"):q===t.iU?(Y.preventDefault(),G(x)):(q===t.aW||q===t.zh)&&(Y.preventDefault(),G(a))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:D})}),(0,e.jsxs)(s.BJ.Item,{children:[!!E&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(c,{selected:L})]})]})})})]})},c=function(v){var u=(0,r.Oc)().data,h=u.buttons,j=h===void 0?[]:h,E=u.large_buttons,C=u.swapped_buttons,O=v.selected;return(0,e.jsx)(s.so,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:j==null?void 0:j.map(function(_,b){return E&&j.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(l,{button:_,id:b.toString(),selected:O===b})},b):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(l,{button:_,id:b.toString(),selected:O===b})},b)})})},l=function(v){var u=(0,r.Oc)(),h=u.act,j=u.data,E=j.large_buttons,C=v.button,O=v.selected,_=C.length>7?C.length:7;return(0,e.jsx)(s.$n,{fluid:!!E,height:!!E&&2,onClick:function(){return h("choose",{choice:C})},m:.5,pl:2,pr:2,pt:E?.33:0,selected:O,textAlign:"center",width:!E&&_,children:E?C.toUpperCase():C})}},20730:function(I,g,n){"use strict";n.r(g),n.d(g,{AlgaeFarm:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.usePower,l=f.materials,v=f.last_flow_rate,u=f.last_power_draw,h=f.inputDir,j=f.outputDir,E=f.input,C=f.output,O=f.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[O&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:O})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:c===2,onClick:function(){return a("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[v," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[u," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),l.map(function(_){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(_.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:_.qty,maxValue:_.max,children:[_.qty,"/",_.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return a("ejectMaterial",{mat:_.name})},children:"Eject"})]},_.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+h+")",children:E?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[E.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:E.name,children:[E.percent,"% (",E.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 ("+j+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},31607:function(I,g,n){"use strict";n.r(g),n.d(g,{AppearanceChangerEars:function(){return p},AppearanceChangerGender:function(){return d},AppearanceChangerSpecies:function(){return s},AppearanceChangerTails:function(){return x},AppearanceChangerWings:function(){return a}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.species,h=v.specimen,j=(0,o.Ul)(function(E){return E.specimen})(u||[]);return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:j.map(function(E){return(0,e.jsx)(r.$n,{selected:h===E.specimen,onClick:function(){return l("race",{race:E.specimen})},children:E.specimen},E.specimen)})})},d=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.gender,h=v.gender_id,j=v.genders,E=v.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:j.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===u,onClick:function(){return l("gender",{gender:C.gender_key})},children:C.gender_name},C.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:E.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===h,onClick:function(){return l("gender_id",{gender_id:C.gender_key})},children:C.gender_name},C.gender_key)})})]})})},p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.ear_style,h=v.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{clear:!0})},selected:u===null,children:"-- Not Set --"}),(0,o.Ul)(function(j){return j.name.toLowerCase()})(h).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{ref:j.instance})},selected:j.name===u,children:j.name},j.instance)})]})},x=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.tail_style,h=v.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{clear:!0})},selected:u===null,children:"-- Not Set --"}),(0,o.Ul)(function(j){return j.name.toLowerCase()})(h).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{ref:j.instance})},selected:j.name===u,children:j.name},j.instance)})]})},a=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.wing_style,h=v.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{clear:!0})},selected:u===null,children:"-- Not Set --"}),(0,o.Ul)(function(j){return j.name.toLowerCase()})(h).map(function(j){return(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{ref:j.instance})},selected:j.name===u,children:j.name},j.instance)})]})}},47565:function(I,g,n){"use strict";n.r(g),n.d(g,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.change_eye_color,c=a.change_skin_tone,l=a.change_skin_color,v=a.change_hair_color,u=a.change_facial_hair_color,h=a.eye_color,j=a.skin_color,E=a.hair_color,C=a.facial_hair_color,O=a.ears_color,_=a.ears2_color,b=a.tail_color,D=a.tail2_color,S=a.wing_color,A=a.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[f?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:h,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("eye_color")},children:"Change Eye Color"})]}):"",c?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return x("skin_tone")},children:"Change Skin Tone"})}):"",l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("skin_color")},children:"Change Skin Color"})]}):"",v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:O,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:_,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:b,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:D,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:S,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:A,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,u?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:C,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return x("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:f.map(function(c){return(0,e.jsxs)(t.Ki.Item,{label:c.marking_name,children:[(0,e.jsx)(t.BK,{color:c.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return x("marking",{todo:4,name:c.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return x("marking",{todo:0,name:c.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return x("marking",{todo:3,name:c.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return x("marking",{todo:2,name:c.marking_name})},children:"Move up"})]},c.marking_name)})})]})}},70972:function(I,g,n){"use strict";n.r(g),n.d(g,{AppearanceChangerFacialHair:function(){return s},AppearanceChangerHair:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.hair_style,c=a.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:c.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return x("hair",{hair:l.hairstyle})},selected:l.hairstyle===f,children:l.hairstyle},l.hairstyle)})})},s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.facial_hair_style,c=a.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:c.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return x("facial_hair",{facial_hair:l.facialhairstyle})},selected:l.facialhairstyle===f,children:l.facialhairstyle},l.facialhairstyle)})})}},66779:function(I,g,n){"use strict";n.r(g),n.d(g,{AppearanceChanger:function(){return f},AppearanceChangerDefaultError:function(){return c}});var e=n(62161),o=n(61282),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=n(31607),x=n(47565),a=n(70972),f=function(l){var v=(0,r.Oc)(),u=v.act,h=v.config,j=v.data,E=j.name,C=j.specimen,O=j.gender,_=j.gender_id,b=j.hair_style,D=j.facial_hair_style,S=j.ear_style,A=j.tail_style,R=j.wing_style,L=j.change_race,W=j.change_gender,F=j.change_eye_color,$=j.change_skin_tone,G=j.change_skin_color,Y=j.change_hair_color,q=j.change_facial_hair_color,Z=j.change_hair,V=j.change_facial_hair,z=j.mapRef,X=h.title,U=[],Q=F||$||G||Y||q,ee=(0,e.jsx)(s.az,{});U[-1]=(0,e.jsx)(c,{}),U[0]=L?(0,e.jsx)(p.AppearanceChangerSpecies,{}):(0,e.jsx)(c,{}),U[1]=W?(0,e.jsx)(p.AppearanceChangerGender,{}):(0,e.jsx)(c,{}),U[2]=Q?(0,e.jsx)(x.AppearanceChangerColors,{}):(0,e.jsx)(c,{}),U[3]=Z?(0,e.jsx)(a.AppearanceChangerHair,{}):(0,e.jsx)(c,{}),U[4]=V?(0,e.jsx)(a.AppearanceChangerFacialHair,{}):(0,e.jsx)(c,{}),U[5]=Z?(0,e.jsx)(p.AppearanceChangerEars,{}):(0,e.jsx)(c,{}),U[6]=Z?(0,e.jsx)(p.AppearanceChangerTails,{}):(0,e.jsx)(c,{}),U[7]=Z?(0,e.jsx)(p.AppearanceChangerWings,{}):(0,e.jsx)(c,{}),U[8]=Z?(0,e.jsx)(x.AppearanceChangerMarkings,{}):(0,e.jsx)(c,{});var ne=-1;L?ne=0:W?ne=1:Q?ne=2:Z?ne=4:V&&(ne=5);var ie=(0,t.useState)(ne),le=ie[0],ue=ie[1];return(0,e.jsx)(d.p8,{width:700,height:650,title:(0,o.jT)(X),children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Reflection",children:(0,e.jsxs)(s.so,{children:[(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:E}),(0,e.jsx)(s.Ki.Item,{label:"Species",color:L?void 0:"grey",children:C}),(0,e.jsx)(s.Ki.Item,{label:"Biological Sex",color:W?void 0:"grey",children:O?(0,o.ZH)(O):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Gender Identity",color:Q?void 0:"grey",children:_?(0,o.ZH)(_):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Hair Style",color:Z?void 0:"grey",children:b?(0,o.ZH)(b):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Facial Hair Style",color:V?void 0:"grey",children:D?(0,o.ZH)(D):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Ear Style",color:Z?void 0:"grey",children:S?(0,o.ZH)(S):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Tail Style",color:Z?void 0:"grey",children:A?(0,o.ZH)(A):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Wing Style",color:Z?void 0:"grey",children:R?(0,o.ZH)(R):"Not Set"})]})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.D1,{style:{width:"256px",height:"256px"},params:{id:z,type:"map"}})})]})}),(0,e.jsxs)(s.tU,{children:[L?(0,e.jsx)(s.tU.Tab,{selected:le===0,onClick:function(){return ue(0)},children:"Race"}):null,W?(0,e.jsx)(s.tU.Tab,{selected:le===1,onClick:function(){return ue(1)},children:"Gender & Sex"}):null,Q?(0,e.jsx)(s.tU.Tab,{selected:le===2,onClick:function(){return ue(2)},children:"Colors"}):null,Z?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.tU.Tab,{selected:le===3,onClick:function(){return ue(3)},children:"Hair"}),(0,e.jsx)(s.tU.Tab,{selected:le===5,onClick:function(){return ue(5)},children:"Ear"}),(0,e.jsx)(s.tU.Tab,{selected:le===6,onClick:function(){return ue(6)},children:"Tail"}),(0,e.jsx)(s.tU.Tab,{selected:le===7,onClick:function(){return ue(7)},children:"Wing"}),(0,e.jsx)(s.tU.Tab,{selected:le===8,onClick:function(){return ue(8)},children:"Markings"})]}):null,V?(0,e.jsx)(s.tU.Tab,{selected:le===4,onClick:function(){return ue(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(s.az,{height:"43%",children:U[le]})]})})},c=function(l){return(0,e.jsx)(s.az,{textColor:"red",children:"Disabled"})}},44212:function(I,g,n){"use strict";n.r(g)},8910:function(I,g,n){"use strict";n.r(g),n.d(g,{ArcadeBattle:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.temp,c=a.enemyAction,l=a.enemyName,v=a.playerHP,u=a.playerMP,h=a.enemyHP,j=a.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:l,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:f}),(0,e.jsx)(t.az,{children:!j&&c})]}),(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:v,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:u,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[u,"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:h,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h,"HP"]})})})})]}),j&&(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!"})})]})]})})})}},61968:function(I,g,n){"use strict";n.r(g),n.d(g,{AreaScrubberControl:function(){return p}});var e=n(62161),o=n(61282),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=function(a){var f=(0,r.Oc)(),c=f.act,l=f.data,v=(0,t.useState)(!1),u=v[0],h=v[1],j=l.scrubbers;return j?(0,e.jsx)(d.p8,{width:600,height:400,children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Scan"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:u,onClick:function(){return h(!u)},children:"Show Areas"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return c("allon")},children:"All On"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return c("alloff")},children:"All Off"})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:j.map(function(E){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:E,showArea:u})},E.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Scan"})]})},x=function(a){var f=(0,r.Oc)().act,c=a.scrubber,l=a.showArea;return(0,e.jsxs)(s.wn,{title:c.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",selected:c.on,onClick:function(){return f("toggle",{id:c.id})},children:c.on?"Enabled":"Disabled"}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[c.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[c.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[c.load," W"]}),l&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,o.Sn)(c.area)})]})]})}},29615:function(I,g,n){"use strict";n.r(g),n.d(g,{AssemblyInfrared:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:f,onClick:function(){return x("state")},children:f?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:c,onClick:function(){return x("visible")},children:c?"Able to be seen":"Invisible"})})]})})})})}},95027:function(I,g,n){"use strict";n.r(g),n.d(g,{AssemblyProx:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.timing,v=c.time,u=c.range,h=c.maxRange,j=c.scanning;return(0,e.jsx)(d.p8,{children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return f("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v,minValue:0,maxValue:600,format:function(E){return(0,s.fU)((0,o.LI)(E*10,0))},onDrag:function(E,C){return f("set_time",{time:C})}})})})}),(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:u,maxValue:h,onDrag:function(E,C){return f("range",{range:C})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:j?"lock":"lock-open",selected:j,onClick:function(){return f("scanning")},children:j?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(I,g,n){"use strict";n.r(g),n.d(g,{AssemblyTimer:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.timing,v=c.time;return(0,e.jsx)(d.p8,{children:(0,e.jsx)(d.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return f("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v,minValue:0,maxValue:600,format:function(u){return(0,s.fU)((0,o.LI)(u*10,0))},onDrag:function(u,h){return f("set_time",{time:h})}})})})})})})}},16561:function(I,g,n){"use strict";n.r(g),n.d(g,{AtmosAlertConsole:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.priority_alarms,c=f===void 0?[]:f,l=a.minor_alarms,v=l===void 0?[]:l;return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[c.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),c.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)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return x("clear",{ref:u.ref})},children:u.name})},u.name)})]})})})})}},74737:function(I,g,n){"use strict";n.r(g),n.d(g,{AtmosControl:function(){return p},AtmosControlContent:function(){return x}});var e=n(62161),o=n(7402),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=function(a){return(0,e.jsx)(d.p8,{width:600,height:440,children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var f=(0,r.Oc)(),c=f.act,l=f.data,v=f.config,u=(0,o.Ul)(function(D){return D.name})(l.alarms||[]),h=(0,t.useState)(0),j=h[0],E=h[1],C=(0,t.useState)(1),O=C[0],_=C[1],b;return j===0?b=(0,e.jsx)(s.wn,{title:"Alarms",children:u.map(function(D){return(0,e.jsx)(s.$n,{color:D.danger===2?"bad":D.danger===1?"average":"",onClick:function(){return c("alarm",{alarm:D.ref})},children:D.name},D.name)})}):j===1&&(b=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{zoomScale:l.zoomScale,onZoom:function(D){return _(D)},children:u.filter(function(D){return~~D.z===~~v.mapZLevel}).map(function(D){return(0,e.jsx)(s.tx.Marker,{x:D.x,y:D.y,zoom:O,icon:"bell",tooltip:D.name,color:D.danger?"red":"green",onClick:function(){return c("alarm",{alarm:D.ref})}},D.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:j===0,onClick:function(){return E(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:j===1,onClick:function(){return E(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:b})]})}},13238:function(I,g,n){"use strict";n.r(g),n.d(g,{AtmosFilter:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.rate,l=a.max_rate,v=a.last_flow_rate,u=a.filter_types,h=u===void 0?[]:u;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?"power-off":"times",selected:f,onClick:function(){return x("power")},children:f?"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:v,format:function(j){return j+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,value:c,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(j,E){return x("rate",{rate:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:c===l,onClick:function(){return x("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:h.map(function(j){return(0,e.jsx)(t.$n,{selected:j.selected,onClick:function(){return x("filter",{filterset:j.f_type})},children:j.name},j.name)})})]})})})})}},68541:function(I,g,n){"use strict";n.r(g),n.d(g,{AtmosMixer:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.set_pressure,l=a.max_pressure,v=a.node1_concentration,u=a.node2_concentration,h=a.node1_dir,j=a.node2_dir;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return x("power")},children:f?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:c,unit:"kPa",width:"75px",minValue:0,maxValue:l,step:10,onChange:function(E,C){return x("pressure",{pressure:C})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:c===l,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 ("+h+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:v,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E,C){return x("node1",{concentration:C})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+j+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:u,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(E,C){return x("node2",{concentration:C})}})})]})})})})}},43855:function(I,g,n){"use strict";n.r(g),n.d(g,{Autolathe:function(){return u}});var e=n(62161),o=n(7402),t=n(22071),r=n(61282),s=n(7081),d=n(16754),p=n(42103),x=n(23162);function a(h,j){(j==null||j>h.length)&&(j=h.length);for(var E=0,C=new Array(j);E=h.length?{done:!0}:{done:!1,value:h[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=function(h,j,E){var C=function(){var S=b.value,A=j.find(function(R){return R.name===S});if(!A)return"continue";if(A.amount=0)&&(E[O]=h[O]);return E}var a={Alphabetical:function(h,j){return h.name>j.name},"By availability":function(h,j){return-(h.affordable-j.affordable)},"By price":function(h,j){return h.price-j.price}},f=function(h){var j=function(z){W(z)},E=function(z){G(z)},C=function(z){Z(z)},O=(0,r.Oc)(),_=O.act,b=O.data,D=b.processing,S=b.points,A=b.beaker,R=(0,t.useState)(""),L=R[0],W=R[1],F=(0,t.useState)("Alphabetical"),$=F[0],G=F[1],Y=(0,t.useState)(!1),q=Y[0],Z=Y[1];return(0,e.jsx)(d.p8,{width:400,height:450,children:(0,e.jsx)(d.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:D&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[S," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return _("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!A,onClick:function(){return _("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(l,{searchText:L,sortOrder:$,descending:q,onSearchText:j,onSortOrder:E,onDescending:C}),(0,e.jsx)(c,{searchText:L,sortOrder:$,descending:q})]})})})},c=function(h){var j=(0,r.Oc)(),E=j.act,C=j.data,O=C.points,_=C.items,b=_===void 0?[]:_,D=C.build_eff,S=C.beaker,A=(0,o.XZ)(h.searchText,function(W){return W[0]}),R=!1,L=Object.entries(b).map(function(W){var F=Object.entries(W[1]).filter(A).map(function($){return $[1].affordable=+(O>=$[1].price/D),$[1]}).sort(a[h.sortOrder]);if(F.length!==0)return h.descending&&(F=F.reverse()),R=!0,(0,e.jsx)(u,{title:W[0],items:F,build_eff:D,beaker:S},W[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:R?L:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(h){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:h.searchText,width:"100%",onInput:function(j,E){return h.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:h.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(j){return h.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:h.descending?"arrow-down":"arrow-up",height:"19px",tooltip:h.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return h.onDescending(!h.descending)}})})]})})},v=function(h,j){return!(!h.affordable||h.reagent&&!j)},u=function(h){var j=(0,r.Oc)(),E=j.act,C=j.data,O=h.title,_=h.items,b=h.build_eff,D=h.beaker,S=x(h,["title","items","build_eff","beaker"]);return(0,e.jsx)(s.Nt,p({open:!0,title:O},S,{children:_.map(function(A){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:A.name}),(0,e.jsx)(s.$n,{disabled:!v(A,D),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return E("purchase",{cat:O,name:A.name})},children:(A.price/b).toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},A.name)})}))}},13469:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesignerBodyRecords:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)().act,p=s.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("menu",{menu:"Main"})},children:"Back"}),children:p?p.map(function(x){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("view_brec",{view_brec:x.recref})},children:x.name},x.name)}):""})}},17796:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesignerMain:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesignerOOCNotes:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)().act,p=s.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:p&&p.booc||"ERROR: Body record not found!"})}},54068:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesignerSpecificRecord:function(){return s}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=function(d){var p=(0,t.Oc)().act,x=d.activeBodyRecord,a=d.mapRef;return x?(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 p("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:x.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:x.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,o.ZH)(x.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:x.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[x.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!x.booc,onClick:function(){return p("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:a,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("href_conversion",{target_href:"size_multiplier",target_value:1})},children:x.scale})}),Object.keys(x.styles).map(function(f){var c=x.styles[f];return(0,e.jsxs)(r.Ki.Item,{label:f,children:[c.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("href_conversion",{target_href:c.styleHref,target_value:1})},children:c.style}):null,c.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("href_conversion",{target_href:c.colorHref,target_value:1})},children:c.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:c.color,style:{border:"1px solid #fff"}})]}):null,c.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("href_conversion",{target_href:c.colorHref2,target_value:1})},children:c.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:c.color2,style:{border:"1px solid #fff"}})]}):null]},f)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return p("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(x.markings).map(function(f){var c=x.markings[f];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 p("href_conversion",{target_href:"marking_remove",target_value:f})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:c,onClick:function(){return p("href_conversion",{target_href:"marking_color",target_value:f})},children:f})})]})},f)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesignerStockRecords:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)().act,p=s.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("menu",{menu:"Main"})},children:"Back"}),children:p.map(function(x){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return d("view_stock_brec",{view_stock_brec:x})},children:x},x)})})}},87706:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyDesigner:function(){return f}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(13469),d=n(17796),p=n(24983),x=n(54068),a=n(99123),f=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.menu,j=u.disk,E=u.diskStored,C=u.activeBodyRecord,O=u.stock_bodyrecords,_=u.bodyrecords,b=u.mapRef,D={Main:(0,e.jsx)(d.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(s.BodyDesignerBodyRecords,{bodyrecords:_}),"Stock Records":(0,e.jsx)(a.BodyDesignerStockRecords,{stock_bodyrecords:O}),"Specific Record":(0,e.jsx)(x.BodyDesignerSpecificRecord,{activeBodyRecord:C,mapRef:b}),"OOC Notes":(0,e.jsx)(p.BodyDesignerOOCNotes,{activeBodyRecord:C})},S=D[h];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[j?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return v("savetodisk")},disabled:!C,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return v("loadfromdisk")},disabled:!E,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return v("ejectdisk")},children:"Eject"})]}):"",S]})})}},25375:function(I,g,n){"use strict";n.r(g)},85168:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerEmpty:function(){return t}});var e=n(62161),o=n(16754),t=function(){return(0,e.jsx)(o.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(o.so,{height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerMain:function(){return a}});var e=n(62161),o=n(16754),t=n(49354),r=n(53187),s=n(81417),d=n(32915),p=n(73457),x=n(70765),a=function(f){var c=f.occupant;return(0,e.jsxs)(o.az,{children:[(0,e.jsx)(s.BodyScannerMainOccupant,{occupant:c}),(0,e.jsx)(x.BodyScannerMainReagents,{occupant:c}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:c}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:c}),(0,e.jsx)(d.BodyScannerMainOrgansExternal,{organs:c.extOrgan}),(0,e.jsx)(p.BodyScannerMainOrgansInternal,{organs:c.intOrgan})]})}},49354:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerMainAbnormalities:function(){return r}});var e=n(62161),o=n(16754),t=n(47710),r=function(s){var d=s.occupant,p=d.hasBorer||d.blind||d.colourblind||d.nearsighted||d.hasVirus;return p=p||d.humanPrey||d.livingPrey||d.objectPrey,p?(0,e.jsx)(o.wn,{title:"Abnormalities",children:t.abnormalities.map(function(x,a){if(d[x[0]])return(0,e.jsx)(o.az,{color:x[1],bold:x[1]==="bad",children:x[2](d)},a)})}):(0,e.jsx)(o.wn,{title:"Abnormalities",children:(0,e.jsx)(o.az,{color:"label",children:"No abnormalities found."})})}},53187:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerMainDamage:function(){return d}});var e=n(62161),o=n(4089),t=n(16754),r=n(47710),s=n(65518),d=function(x){var a=x.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,s.mapTwoByTwo)(r.damages,function(f,c,l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[f[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!c&&c[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(p,{value:a[f[1]],marginBottom:l0&&"0.5rem",value:a.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!a.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,o.Mg)(a.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!a.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,o.Mg)(a.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,o.Mg)(a.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([a.internalBleeding&&"Internal bleeding",!!a.status.bleeding&&"External bleeding",a.lungRuptured&&"Ruptured lung",a.status.destroyed&&"Destroyed",!!a.status.broken&&a.status.broken,(0,s.germStatus)(a.germ_level),!!a.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,s.reduceOrganStatus)([!!a.status.splinted&&"Splinted",!!a.status.robotic&&"Robotic",!!a.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,s.reduceOrganStatus)(a.implants.map(function(c){return c.known?c.name:"Unknown object"}))]})]})]},f)})]})})}},73457:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerMainOrgansInternal:function(){return d}});var e=n(62161),o=n(4089),t=n(16754),r=n(47710),s=n(65518),d=function(p){var x=p.organs;return x.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),x.map(function(a,f){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:a.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:a.maxHealth/100,value:a.damage/100,mt:f>0&&"0.5rem",ranges:r.damageRange,children:(0,o.Mg)(a.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([(0,s.germStatus)(a.germ_level),!!a.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,s.reduceOrganStatus)([a.robotic===1&&"Robotic",a.robotic===2&&"Assisted",!!a.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},f)})]})})}},70765:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScannerMainReagents:function(){return t}});var e=n(62161),o=n(16754),t=function(r){var s=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Blood Reagents",children:s.reagents?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.reagents.map(function(d){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:d.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[d.amount," Units"," ",d.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},d.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(o.wn,{title:"Stomach Reagents",children:s.ingested?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.ingested.map(function(d){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:d.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[d.amount," Units"," ",d.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},d.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(I,g,n){"use strict";n.r(g),n.d(g,{abnormalities:function(){return o},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["hasBorer","bad",function(s){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(s){return"Viral pathogen detected in blood stream."}],["blind","average",function(s){return"Cataracts detected."}],["colourblind","average",function(s){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(s){return"Retinal misalignment detected."}],["humanPrey","average",function(s){return"Foreign Humanoid(s) detected: "+s.humanPrey}],["livingPrey","average",function(s){return"Foreign Creature(s) detected: "+s.livingPrey}],["objectPrey","average",function(s){return"Foreign Object(s) detected: "+s.objectPrey}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(I,g,n){"use strict";n.r(g),n.d(g,{germStatus:function(){return s},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(62161),o=n(16754);function t(d,p){for(var x=[],a=0;a0?d.reduce(function(p,x){return p===null?x:(0,e.jsxs)(e.Fragment,{children:[p,!!x&&(0,e.jsx)(o.az,{children:x})]})}):null}function s(d){if(d>100){if(d<300)return"mild infection";if(d<400)return"mild infection+";if(d<500)return"mild infection++";if(d<700)return"acute infection";if(d<800)return"acute infection+";if(d<900)return"acute infection++";if(d>=900)return"septic"}return""}},9665:function(I,g,n){"use strict";n.r(g),n.d(g,{BodyScanner:function(){return d}});var e=n(62161),o=n(7081),t=n(42103),r=n(85168),s=n(43780),d=function(p){var x=(0,o.Oc)().data,a=x.occupied,f=x.occupant,c=f===void 0?{}:f,l=a?(0,e.jsx)(s.BodyScannerMain,{occupant:c}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})}},78006:function(I,g,n){"use strict";n.r(g)},11265:function(I,g,n){"use strict";n.r(g),n.d(g,{BombTester:function(){return a}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103);function d(){return d=Object.assign||function(c){for(var l=1;l.5,_=Math.random()>.5;return h.state={x:O?j:0,y:_?E:0,reverseX:!1,reverseY:!1},h.process=setInterval(function(){h.setState(function(b){var D=d({},b);return D.reverseX?D.x-C<-5?(D.reverseX=!1,D.x+=C):D.x-=C:D.x+C>j?(D.reverseX=!0,D.x-=C):D.x+=C,D.reverseY?D.y-C<-20?(D.reverseY=!1,D.y+=C):D.y-=C:D.y+C>E?(D.reverseY=!0,D.y-=C):D.y+=C,D})},1),h}var v=l.prototype;return v.componentWillUnmount=function(){clearInterval(this.process)},v.render=function(){var h=this.state,j=h.x,E=h.y,C={position:"relative",left:j+"px",top:E+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:C,name:"bomb",size:10,color:"red"})})})},l}(o.Component)},5536:function(I,g,n){"use strict";n.r(g),n.d(g,{BotanyEditor:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.activity,c=a.degradation,l=a.disk,v=a.sourceName,u=a.locus,h=a.loaded;return f?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:l&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:v}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[c,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:u})]}),(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:h&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:h})}),(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."})})]})})}},68734:function(I,g,n){"use strict";n.r(g),n.d(g,{BotanyIsolator:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.geneMasks,c=a.activity,l=a.degradation,v=a.disk,u=a.loaded,h=a.hasGenetics,j=a.sourceName;return c?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:h&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[l,"%"]}),v&&f.length&&f.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:E.tag})},children:"Extract"})},E.mask)})||null]}),v&&(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."}),v&&(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:u&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:u})}),(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."})})]})})}},46141:function(I,g,n){"use strict";n.r(g),n.d(g,{BrigTimer:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.time_left,v=c.max_time_left,u=c.timing,h=c.flash_found,j=c.flash_charging,E=c.preset_short,C=c.preset_medium,O=c.preset_long;return(0,e.jsx)(d.p8,{width:400,height:138,children:(0,e.jsx)(d.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:u,onClick:function(){return f(u?"stop":"start")},children:u?"Stop":"Start"}),h&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:j,onClick:function(){return f("flash")},children:j?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:l/10,minValue:0,maxValue:v/10,format:function(_){return(0,s.fU)((0,o.LI)(_*10,0))},onDrag:function(_,b){return f("time",{time:b})}}),(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 f("preset",{preset:"short"})},children:"Add "+(0,s.fU)(E)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return f("preset",{preset:"medium"})},children:"Add "+(0,s.fU)(C)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return f("preset",{preset:"long"})},children:"Add "+(0,s.fU)(O)})})]})]})})})}},18490:function(I,g,n){"use strict";n.r(g),n.d(g,{CameraConsole:function(){return v},CameraConsoleContent:function(){return u},prevNextCamera:function(){return f},selectCameras:function(){return l}});var e=n(62161),o=n(7402),t=n(22071),r=n(65380),s=n(61282),d=n(28277),p=n(7081),x=n(16754),a=n(42103),f=function(h,j){var E,C;if(!j)return[];var O=h.findIndex(function(_){return _.name===j.name});return[(E=h[O-1])==null?void 0:E.name,(C=h[O+1])==null?void 0:C.name]};function c(h){return h!=null}var l=function(h,j,E){j===void 0&&(j=""),E===void 0&&(E="");var C=(0,s.XZ)(j,function(O){return O.name});return(0,t.L)([(0,o.pb)(function(O){return c(O==null?void 0:O.name)}),j&&(0,o.pb)(C),E&&(0,o.pb)(function(O){return O.networks.includes(E)}),(0,o.Ul)(function(O){return O.name})])(h)},v=function(h){var j=(0,p.Oc)(),E=j.act,C=j.data,O=C.mapRef,_=C.activeCamera,b=C.cameras,D=l(b),S=f(D,_),A=S[0],R=S[1];return(0,e.jsxs)(a.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),_&&_.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!A,onClick:function(){return E("switch_camera",{name:A})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!R,onClick:function(){return E("switch_camera",{name:R})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return E("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return E("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return E("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return E("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:O,type:"map"}})]})]})},u=function(h){var j=(0,p.Oc)(),E=j.act,C=j.data,O=(0,d.useState)(""),_=O[0],b=O[1],D=(0,d.useState)(""),S=D[0],A=D[1],R=C.activeCamera,L=C.allNetworks,W=C.cameras;L.sort();var F=l(W,_,S);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($,G){return b(G)}})}),(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:S?"155px":"177px",displayText:S||"No Filter",options:L,onSelected:function($){return A($)}})}),S?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){A("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:F.map(function($){return(0,e.jsx)("div",{title:$.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",R&&$.name===R.name&&"Button--selected"]),onClick:function(){return E("switch_camera",{name:$.name})},children:$.name},$.name)})})})]})}},82195:function(I,g,n){"use strict";n.r(g),n.d(g,{Canister:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.connected,v=c.can_relabel,u=c.pressure,h=c.releasePressure,j=c.defaultReleasePressure,E=c.minReleasePressure,C=c.maxReleasePressure,O=c.valveOpen,_=c.holding;return(0,e.jsx)(d.p8,{width:360,height:242,children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!v,onClick:function(){return f("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:u,format:function(b){return b<1e4?(0,o.Mg)(b)+" kPa":(0,s.QL)(b*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:h,unit:"kPa",minValue:E,maxValue:C,stepPixelSize:1,onDrag:function(b,D){return f("pressure",{pressure:D})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return f("pressure",{pressure:C})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return f("pressure",{pressure:j})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:O?_?"caution":"danger":null,onClick:function(){return f("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:l?"plug":"times",color:l?"good":"bad"}),(0,e.jsx)(r.m_,{content:l?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!_&&(0,e.jsx)(r.$n,{icon:"eject",color:O&&"danger",onClick:function(){return f("eject")},children:"Eject"}),children:[!!_&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:_.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:_.pressure})," kPa"]})]}),!_&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(I,g,n){"use strict";n.r(g),n.d(g,{Canvas:function(){return v}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103);function d(){return d=Object.assign||function(u){for(var h=1;h=0)&&(j[C]=u[C]);return j}function a(u,h){return a=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},a(u,h)}var f=24,c=function(u){"use strict";p(h,u);function h(E){var C;return C=u.call(this,E)||this,C.canvasRef=(0,o.createRef)(),C.onCVClick=E.onCanvasClick,C}var j=h.prototype;return j.componentDidMount=function(){this.drawCanvas(this.props)},j.componentDidUpdate=function(){this.drawCanvas(this.props)},j.drawCanvas=function(C){var O=this.canvasRef.current,_=O.getContext("2d"),b=C.value;if(b){var D=b.length;if(D){var S=b[0].length,A=Math.round(O.width/D),R=Math.round(O.height/S);_.save(),_.scale(A,R);for(var L=0;L=0)&&(j[C]=u[C]);return j}var a={Alphabetical:function(u,h){return u.name>h.name},"By price":function(u,h){return u.price-h.price}},f=function(){var u=function(W){O(W)},h=function(W){D(W)},j=function(W){R(W)},E=(0,t.useState)(""),C=E[0],O=E[1],_=(0,t.useState)("Alphabetical"),b=_[0],D=_[1],S=(0,t.useState)(!1),A=S[0],R=S[1];return(0,e.jsx)(d.p8,{width:400,height:450,children:(0,e.jsx)(d.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{searchText:C,sortOrder:b,descending:A,onSearchText:u,onSortOrder:h,onDescending:j}),(0,e.jsx)(l,{searchText:C,sortOrder:b,descending:A})]})})})},c=function(u){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(h,j){return u.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:u.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(h){return u.onSortOrder(h)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:u.descending?"arrow-down":"arrow-up",height:"19px",tooltip:u.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return u.onDescending(!u.descending)}})})]})})},l=function(u){var h=(0,r.Oc)(),j=h.act,E=h.data,C=E.items,O=(0,o.XZ)(u.searchText,function(D){return D[0]}),_=!1,b=Object.entries(C).map(function(D){var S=Object.entries(D[1]).filter(O).map(function(A){return A[1]}).sort(a[u.sortOrder]);if(S.length!==0)return u.descending&&(S=S.reverse()),_=!0,(0,e.jsx)(v,{title:D[0],items:S},D[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:_?b:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(u){var h=(0,r.Oc)().act,j=u.title,E=u.items,C=x(u,["title","items"]);return(0,e.jsx)(s.Nt,p({open:!0,title:j},C,{children:E.map(function(O){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:O.name}),(0,e.jsx)(s.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return h("purchase",{cat:j,name:O.name,price:O.price,restriction:O.restriction})},children:O.price.toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},O.name)})}))}},43966:function(I,g,n){"use strict";n.r(g),n.d(g,{CharacterDirectory:function(){return p}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=function(c){switch(c){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"}},p=function(c){var l=function(L){b(L)},v=(0,t.Oc)(),u=v.act,h=v.data,j=h.personalVisibility,E=h.personalTag,C=h.personalErpTag,O=(0,o.useState)(null),_=O[0],b=O[1],D=(0,o.useState)(!1),S=D[0],A=D[1];return(0,e.jsx)(s.p8,{width:640,height:480,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:_&&(0,e.jsx)(x,{overlay:_,onOverlay:l})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return A(!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 u("setVisible",{overwrite_prefs:S})},children:j?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return u("setTag",{overwrite_prefs:S})},children:E})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return u("setErpTag",{overwrite_prefs:S})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return u("editAd",{overwrite_prefs:S})},children:"Edit Ad"})})]})}),(0,e.jsx)(a,{onOverlay:l})]})})})},x=function(c){return(0,e.jsxs)(r.wn,{title:c.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return c.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:c.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:d(c.overlay.tag),children:c.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:c.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:c.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:c.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:c.overlay.flavor_text||"Unset."})})]})},a=function(c){var l=function(R){_(R)},v=function(R){S(R)},u=(0,t.Oc)(),h=u.act,j=u.data,E=j.directory,C=(0,o.useState)("name"),O=C[0],_=C[1],b=(0,o.useState)("name"),D=b[0],S=b[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return h("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(f,{id:"name",sortId:O,sortOrder:D,onSortId:l,onSortOrder:v,children:"Name"}),(0,e.jsx)(f,{id:"species",sortId:O,sortOrder:D,onSortId:l,onSortOrder:v,children:"Species"}),(0,e.jsx)(f,{id:"tag",sortId:O,sortOrder:D,onSortId:l,onSortOrder:v,children:"Vore Tag"}),(0,e.jsx)(f,{id:"erptag",sortId:O,sortOrder:D,onSortId:l,onSortOrder:v,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),E.sort(function(A,R){var L=D?1:-1;return A[O].localeCompare(R[O])*L}).map(function(A,R){return(0,e.jsxs)(r.XI.Row,{backgroundColor:d(A.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:A.name}),(0,e.jsx)(r.XI.Cell,{children:A.species}),(0,e.jsx)(r.XI.Cell,{children:A.tag}),(0,e.jsx)(r.XI.Cell,{children:A.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return c.onOverlay(A)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},R)})]})})},f=function(c){var l=c.id,v=c.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:c.sortId!==l&&"transparent",onClick:function(){c.sortId===l?c.onSortOrder(!c.sortOrder):(c.onSortId(l),c.onSortOrder(!0))},children:[v,c.sortId===l&&(0,e.jsx)(r.In,{name:c.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(I,g,n){"use strict";n.r(g),n.d(g,{CheckboxInput:function(){return f}});var e=n(62161),o=n(61282),t=n(28277),r=n(7081),s=n(16754),d=n(19996),p=n(42103),x=n(5335),a=n(44149),f=function(c){var l=(0,r.Oc)().data,v=l.items,u=v===void 0?[]:v,h=l.min_checked,j=l.max_checked,E=l.message,C=l.timeout,O=l.title,_=(0,t.useState)([]),b=_[0],D=_[1],S=(0,t.useState)(""),A=S[0],R=S[1],L=(0,o.XZ)(A,function($){return $}),W=u.filter(L),F=function($){var G=b.includes($)?b.filter(function(Y){return Y!==$}):[].concat(b,[$]);D(G)};return(0,e.jsxs)(p.p8,{title:O,width:425,height:300,children:[!!C&&(0,e.jsx)(a.Loader,{value:C}),(0,e.jsx)(p.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,o.jT)(E)," ",h>0&&" (Min: "+h+")",j<50&&" (Max: "+j+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:W.map(function($,G){return(0,e.jsx)(d.Hj,{className:"candystripe",children:(0,e.jsx)(d.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:b.includes($),disabled:b.length>=j&&!b.includes($),fluid:!0,onClick:function(){return F($)},children:$})})},G)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:A,onInput:function($,G){return R(G)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(x.InputButtons,{input:b})})})]})})]})}},29361:function(I,g,n){"use strict";n.r(g),n.d(g,{ChemDispenserBeaker:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(78924),s=n(58820),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.isBeakerLoaded,l=f.beakerCurrentVolume,v=f.beakerMaxVolume,u=f.beakerContents,h=u===void 0?[]:u;return(0,e.jsx)(t.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.az,{children:[!!c&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return a("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:c,beakerContents:h,buttons:function(j){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return a("remove",{reagent:j.id,amount:-1})},children:"Isolate"}),s.removeAmounts.map(function(E,C){return(0,e.jsx)(t.$n,{onClick:function(){return a("remove",{reagent:j.id,amount:E})},children:E},C)}),(0,e.jsx)(t.$n,{onClick:function(){return a("remove",{reagent:j.id,amount:j.volume})},children:"ALL"})]})}})})}},64776:function(I,g,n){"use strict";n.r(g),n.d(g,{ChemDispenserChemicals:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){for(var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.chemicals,f=a===void 0?[]:a,c=[],l=0;l<(f.length+1)%3;l++)c.push(!0);return(0,e.jsx)(t.wn,{title:x.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,children:(0,e.jsxs)(t.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[f.map(function(v,u){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 p("dispense",{reagent:v.id})},children:v.name+" ("+v.volume+")"})},u)}),c.map(function(v,u){return(0,e.jsx)(t.so.Item,{grow:"1",basis:"25%",height:"20px"},u)})]})})}},38908:function(I,g,n){"use strict";n.r(g),n.d(g,{ChemDispenserSettings:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(58820),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.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:r.dispenseAmounts.map(function(c,l){return(0,e.jsx)(t.$n,{textAlign:"center",selected:f===c,m:"0",onClick:function(){return x("amount",{amount:c})},children:c+"u"},l)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:f,minValue:1,maxValue:120,onDrag:function(c,l){return x("amount",{amount:l})}})})]})})}},58820:function(I,g,n){"use strict";n.r(g),n.d(g,{dispenseAmounts:function(){return e},removeAmounts:function(){return o}});var e=[5,10,20,30,40,60],o=[1,5,10]},66119:function(I,g,n){"use strict";n.r(g),n.d(g,{ChemDispenser:function(){return d}});var e=n(62161),o=n(42103),t=n(29361),r=n(64776),s=n(38908),d=function(p){return(0,e.jsx)(o.p8,{width:390,height:655,children:(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(s.ChemDispenserSettings,{}),(0,e.jsx)(r.ChemDispenserChemicals,{}),(0,e.jsx)(t.ChemDispenserBeaker,{})]})})}},9136:function(I,g,n){"use strict";n.r(g)},16028:function(I,g,n){"use strict";n.r(g),n.d(g,{analyzeModalBodyOverride:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=s.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:x.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(a.desc||"").length>0?a.desc:"N/A"}),a.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:a.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:a.blood_dna})]}),!x.condi&&(0,e.jsx)(t.$n,{icon:x.printing?"spinner":"print",disabled:x.printing,iconSpin:!!x.printing,ml:"0.5rem",onClick:function(){return p("print",{idx:a.idx,beaker:s.args.beaker})},children:"Print"})]})})})}},88737:function(I,g,n){"use strict";n.r(g),n.d(g,{ChemMasterBeaker:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(78924),s=n(86471),d=n(16793),p=function(x){var a=(0,o.Oc)().act,f=x.beaker,c=x.beakerReagents,l=x.bufferNonEmpty,v=l?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!f,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!f,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:v,children:f?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(u,h){return(0,e.jsxs)(t.az,{mb:h0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:l,buttons:function(v,u){return(0,e.jsxs)(t.az,{mb:u0}),(0,e.jsx)(p.ChemMasterBuffer,{mode:C,bufferReagents:E}),(0,e.jsx)(x.ChemMasterProduction,{isCondiment:l,bufferNonEmpty:E.length>0,loaded_pill_bottle:O,loaded_pill_bottle_name:_||"",loaded_pill_bottle_contents_len:b||0,loaded_pill_bottle_storage_slots:D||0,pillsprite:S,bottlesprite:A})]})]})};(0,r.modalRegisterBodyOverride)("analyze",s.analyzeModalBodyOverride)},25453:function(I,g,n){"use strict";n.r(g)},42918:function(I,g,n){"use strict";n.r(g),n.d(g,{ClawMachine:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.wintick,c=a.instructions,l=a.gameStatus,v=a.winscreen,u;return l==="CLAWMACHINE_NEW"?u=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),c,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return x("newgame")},children:"Start"})]}):l==="CLAWMACHINE_END"?u=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),v,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return x("return")},children:"Close"})]}):l==="CLAWMACHINE_ON"&&(u=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:f,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),c,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return x("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return x("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return x("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return x("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:u})})}},76914:function(I,g,n){"use strict";n.r(g),n.d(g,{Cleanbot:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.open,l=a.locked,v=a.version,u=a.blood,h=a.vocal,j=a.wet_floors,E=a.spray_blood,C=a.rgbpanel,O=a.red_switch,_=a.green_switch,b=a.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Cleaner "+v,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return x("start")},children:f?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:c?"bad":"good",children:c?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){return x("blood")},children:u?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})})]})})||null,!l&&c&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:C&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:O?"toggle-on":"toggle-off",backgroundColor:O?"red":"maroon",onClick:function(){return x("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"green":"darkgreen",onClick:function(){return x("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"blue":"darkblue",onClick:function(){return x("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:j,onClick:function(){return x("wet_floors")},icon:"screwdriver",children:j?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:E,onClick:function(){return x("spray_blood")},icon:"screwdriver",children:E?"Yes":"No"})})]})})})||null]})})}},90307:function(I,g,n){"use strict";n.r(g),n.d(g,{viewRecordModalBodyOverride:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(79500),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.disk,c=a.podready,l=d.args,v=l.activerecord,u=l.realname,h=l.health,j=l.unidentity,E=l.strucenzymes,C=h.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:u}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:C.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:C[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:C[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:C[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:C[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:j}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f,icon:"arrow-circle-down",onClick:function(){return x("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!f,icon:"arrow-circle-up",onClick:function(){return x("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!f,icon:"arrow-circle-up",onClick:function(){return x("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!f,icon:"arrow-circle-up",onClick:function(){return x("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!c,icon:"user-plus",onClick:function(){return x("clone",{ref:v})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("del_rec")},children:"Delete"})]})]})})}},57981:function(I,g,n){"use strict";n.r(g),n.d(g,{CloningConsoleNavigation:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:a===1,icon:"home",onClick:function(){return p("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,icon:"folder",onClick:function(){return p("menu",{num:2})},children:"Records"})]})}},16981:function(I,g,n){"use strict";n.r(g),n.d(g,{CloningConsoleStatus:function(){return d},CloningConsoleTemp:function(){return s}});var e=n(62161),o=n(7081),t=n(16754);function r(){return r=Object.assign||function(p){for(var x=1;x=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:D.biomass>=150?"circle":"circle-o"}),"\xA0",D.biomass]}),A]},S)}):(0,e.jsx)(s.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},p=function(x){var a=(0,r.Oc)(),f=a.act,c=a.data,l=c.records;return l.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:l.map(function(v,u){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return f("view_rec",{ref:v.record})},children:v.realname},u)})}):(0,e.jsx)(s.so,{height:"100%",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(I,g,n){"use strict";n.r(g),n.d(g,{CloningConsole:function(){return f}});var e=n(62161),o=n(7081),t=n(16754),r=n(86471),s=n(42103),d=n(90307),p=n(57981),x=n(16981),a=n(37651),f=function(c){var l=(0,o.Oc)().data,v=l.menu,u=[];return u[1]=(0,e.jsx)(a.CloningConsoleMain,{}),u[2]=(0,e.jsx)(a.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",d.viewRecordModalBodyOverride),(0,e.jsxs)(s.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(x.CloningConsoleTemp,{}),(0,e.jsx)(x.CloningConsoleStatus,{}),(0,e.jsx)(p.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:u[v]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(I,g,n){"use strict";n.r(g)},61942:function(I,g,n){"use strict";n.r(g),n.d(g,{ColorMateHSV:function(){return d},ColorMateTint:function(){return s}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=function(p){var x=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return x("choose_color")},children:"Select new color"})},d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.buildhue,l=f.buildsat,v=f.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:c,format:function(u){return(0,o.Mg)(u)},onDrag:function(u,h){return a("set_hue",{buildhue:h})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:l,format:function(u){return(0,o.Mg)(u,2)},onDrag:function(u,h){return a("set_sat",{buildsat:h})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:v,format:function(u){return(0,o.Mg)(u,2)},onDrag:function(u,h){return a("set_val",{buildval:h})}})})]})]})}},17852:function(I,g,n){"use strict";n.r(g),n.d(g,{ColorMateMatrix:function(){return s}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=function(d){var p=(0,t.Oc)(),x=p.act,a=p.data,f=a.matrixcolors;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rr,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:1,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gr,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:4,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.br,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:7,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rg,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:2,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gg,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:5,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.bg,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:8,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rb,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:3,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gb,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:6,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.bb,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:9,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cr,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:10,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cg,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:11,value:l})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cb,format:function(c){return(0,o.Mg)(c,2)},onChange:function(c,l){return x("set_matrix_color",{color:12,value:l})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})}},11145:function(I,g,n){"use strict";n.r(g),n.d(g,{ColorMate:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(61942),d=n(17852),p=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.activemode,v=c.temp,u=c.item,h=[];return h[1]=(0,e.jsx)(s.ColorMateTint,{}),h[2]=(0,e.jsx)(s.ColorMateHSV,{}),h[3]=(0,e.jsx)(d.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[v?(0,e.jsx)(t.IC,{children:v}):null,u&&Object.keys(u).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+u.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+u.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:l===1,onClick:function(){return f("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:l===2,onClick:function(){return f("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:l===3,onClick:function(){return f("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",u.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 f("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return f("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return f("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:h[l]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(I,g,n){"use strict";n.r(g)},57925:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsoleAuth:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.authenticated,f=x.is_ai,c=x.esc_status,l=x.esc_callable,v=x.esc_recallable,u;return a?f?u="AI":a===1?u="Command":a===2?u="Site Director":u="ERROR: Report This Bug!":u="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:f&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:a?"sign-out-alt":"id-card",selected:a,onClick:function(){return p("auth")},children:a?"Log Out ("+u+")":"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}),!!l&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!a,onClick:function(){return p("callshuttle")},children:"Call Shuttle"})}),!!v&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!a||f,onClick:function(){return p("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsoleContent:function(){return x}});var e=n(62161),o=n(7081),t=n(16754),r=n(57925),s=n(73612),d=n(72298),p=n(19467),x=function(f){var c=(0,o.Oc)().data,l=c.menu_state,v=[];return v[1]=(0,e.jsx)(s.CommunicationsConsoleMain,{}),v[2]=(0,e.jsx)(p.CommunicationsConsoleStatusDisplay,{}),v[3]=(0,e.jsx)(d.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),v[l]||(0,e.jsx)(a,{menu_state:l})]})},a=function(f){var c=f.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",c,"Please report this to NT Technical Support."]})}},73612:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsoleMain:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.messages,f=x.msg_cooldown,c=x.emagged,l=x.cc_cooldown,v=x.str_security_level,u=x.levels,h=x.authmax,j=x.security_level,E=x.security_level_color,C=x.authenticated,O=x.atcsquelch,_=x.boss_short,b="View ("+a.length+")",D="Make Priority Announcement";f>0&&(D+=" ("+f+"s)");var S=c?"Message [UNKNOWN]":"Message "+_;l>0&&(S+=" ("+l+"s)");var A=v,R=u.map(function(L){return(0,e.jsx)(t.$n,{icon:L.icon,disabled:!C,selected:L.id===j,onClick:function(){return p("newalertlevel",{level:L.id})},children:L.name},L.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:!h||f>0,onClick:function(){return p("announce")},children:D})}),!!c&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!h||l>0,onClick:function(){return p("MessageSyndicate")},children:S}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!h,onClick:function(){return p("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!h||l>0,onClick:function(){return p("MessageCentCom")},children:S})})]})}),(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:E,children:A}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:R}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!C,onClick:function(){return p("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!C,onClick:function(){return p("messagelist")},children:b})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!C,selected:O,onClick:function(){return p("toggleatc")},children:O?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsoleMessage:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.message_current,f=x.message_deletion_allowed,c=x.authenticated,l=x.messages;if(a)return(0,e.jsx)(t.wn,{title:a.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!c,onClick:function(){return p("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:a.contents})});var v=l.map(function(u){return(0,e.jsxs)(t.Ki.Item,{label:u.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!c,onClick:function(){return p("messagelist",{msgid:u.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!c||!f,onClick:function(){return p("delmessage",{msgid:u.id})},children:"Delete"})]},u.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:l.length&&v||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.stat_display,f=x.authenticated,c=a.presets.map(function(l){return(0,e.jsx)(t.$n,{selected:l.name===a.type,disabled:!f,onClick:function(){return p("setstat",{statdisp:l.name})},children:l.label},l.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return p("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:!f,onClick:function(){return p("setmsg1")},children:a.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return p("setmsg2")},children:a.line_2})})]})})}},59421:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicationsConsole:function(){return r}});var e=n(62161),o=n(42103),t=n(34116),r=function(s){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(I,g,n){"use strict";n.r(g)},59546:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorContactTab:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(74293),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:c.length&&(0,e.jsx)(r.XI,{children:c.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,o.jT)(l.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){a("copy",{copy:l.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){a("dial",{dial:l.address}),a("copy",{copy:l.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){a("copy",{copy:l.address}),a("copy_name",{copy_name:l.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"Msg"})]})]})]},l.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorFooter:function(){return x},CommunicatorHeader:function(){return p},TemplateError:function(){return d},VideoComm:function(){return a}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(74293),d=function(f){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",f.currentTab,", but there was no template defined!"]})},p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.time,h=v.connectionStatus,j=v.owner,E=v.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:u}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:h===1?"good":"bad",name:h===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(j)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(E)})]})})},x=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.flashlight,h=f.videoSetting,j=f.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:h===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return l("switch_tab",{switch_tab:s.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:u,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return l("Light")}})}),h===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return j(1)}})})]})},a=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.mapRef,h=f.videoSetting,j=f.setVideoSetting;return h===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:u,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})]}):h===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return j(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return j(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:u,type:"map"}})]}):null}},46873:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorHomeTab:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:f.map(function(c){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return x("switch_tab",{switch_tab:c.number})},children:(0,e.jsx)(t.In,{spin:s(c.module),color:s(c.module)?"bad":null,name:c.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:c.module})]},c.number)})})},s=function(d){var p=(0,o.Oc)().data,x=p.voice_mobs,a=p.communicating,f=p.requestsReceived,c=p.invitesSent,l=p.video_comm;return!!(d==="Phone"&&(x.length||a.length||f.length||c.length||l))}},51445:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorMessageSubTab:function(){return s}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=a.clipboardMode,u=a.onClipboardMode,h=l.targetAddress,j=l.targetAddressName,E=l.imList;return v?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:p("Conversation with ",(0,o.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return u(!v)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(C,O){return(C.to_address===h||C.address===h)&&(0,e.jsxs)(r.az,{className:d(C,h)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[d(C,h)?"You":"Them",": ",C.im]},O)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return c("message",{message:h})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:p("Conversation with ",(0,o.jT)(j),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return u(!v)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:E.map(function(C,O,_){return(C.to_address===h||C.address===h)&&(0,e.jsx)(r.az,{textAlign:d(C,h)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:x(C,h,O-1,_),inline:!0,children:(0,o.jT)(C.im)})},O)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return c("message",{message:h})},children:"Message"})]})},d=function(a,f){return a.address!==f},p=function(a,f,c){return(a+f).length>c?f.length>c?f.slice(0,c)+"...":f:a+f},x=function(a,f,c,l){if(c<0||c>l.length)return d(a,f)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var v=d(a,f),u=d(l[c],f);return v&&u?"TinderMessage_Subsequent_Sent":!v&&!u?"TinderMessage_Subsequent_Received":v?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorMessageTab:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(74293),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:c.length&&(0,e.jsx)(r.XI,{children:c.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,o.jT)(l.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){a("copy",{copy:l.address}),a("copy_name",{copy_name:l.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"View Conversation"})})]})]},l.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return a("switch_tab",{switch_tab:s.CONTTAB})},children:"Contacts"})]})})}},28953:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorNewsTab:function(){return s}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=function(d){var p=(0,t.Oc)(),x=p.act,a=p.data,f=a.feeds,c=a.target_feed,l=a.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!f.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||c&&(0,e.jsx)(r.wn,{title:(0,o.jT)(c.name)+" by "+(0,o.jT)(c.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return x("newsfeed",{newsfeed:null})},children:"Back"}),children:c.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+v.img}),(0,o.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",v.message_type," by"," ",(0,o.jT)(v.author)," - ",v.time_stamp,"]"]})]},v.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:l.map(function(v){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(v.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return x("newsfeed",{newsfeed:v.index})},children:"Go to"})]}),"- ",(0,o.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",v.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",v.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:v.author})," ","- ",v.time_stamp,"]"]})]},v.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:f.map(function(v){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return x("newsfeed",{newsfeed:v.index})},children:v.name},v.index)})})]})})}},47106:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorNoteTab:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return p("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:a})})}},10674:function(I,g,n){"use strict";n.r(g),n.d(g,{CommunicatorPhoneTab:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(74293),d=function(c){for(var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.selfie_mode,j=u.targetAddress,E=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],C=E.map(function(b){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return v("add_hex",{add_hex:b})},children:b},b)}),O=[],_=0;_c?"average":x>l?"bad":"good"}},74293:function(I,g,n){"use strict";n.r(g),n.d(g,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return a},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return d},NOTETAB:function(){return p},PHONTAB:function(){return o},SETTTAB:function(){return f},WTHRTAB:function(){return x},notFound:function(){return l},tabs:function(){return c}});var e=1,o=2,t=3,r=4,s=40,d=5,p=6,x=7,a=8,f=9,c=[e,o,t,r,s,d,p,x,a,f];function l(v){return c.includes(v)}},42320:function(I,g,n){"use strict";n.r(g),n.d(g,{Communicator:function(){return C}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=n(58044),p=n(59546),x=n(28215),a=n(46873),f=n(51445),c=n(26217),l=n(28953),v=n(47106),u=n(10674),h=n(4435),j=n(81450),E=n(74293),C=function(){var O=function(Z){Y(Z)},_=(0,t.Oc)(),b=_.act,D=_.data,S=D.currentTab,A=D.video_comm,R=[],L=(0,o.useState)(0),W=L[0],F=L[1],$=(0,o.useState)(!1),G=$[0],Y=$[1];return R[E.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),R[E.tabs[1]]=(0,e.jsx)(u.CommunicatorPhoneTab,{}),R[E.tabs[2]]=(0,e.jsx)(p.CommunicatorContactTab,{}),R[E.tabs[3]]=(0,e.jsx)(c.CommunicatorMessageTab,{}),R[E.tabs[4]]=(0,e.jsx)(f.CommunicatorMessageSubTab,{clipboardMode:G,onClipboardMode:O}),R[E.tabs[5]]=(0,e.jsx)(l.CommunicatorNewsTab,{}),R[E.tabs[6]]=(0,e.jsx)(v.CommunicatorNoteTab,{}),R[E.tabs[7]]=(0,e.jsx)(j.CommunicatorWeatherTab,{}),R[E.tabs[8]]=(0,e.jsx)(d.CrewManifestContent,{}),R[E.tabs[9]]=(0,e.jsx)(h.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[A&&(0,e.jsx)(x.VideoComm,{videoSetting:W,setVideoSetting:F}),(!A||W!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:R[S]||(0,E.notFound)(S)&&(0,e.jsx)(x.TemplateError,{currentTab:S})}),(0,e.jsx)(x.CommunicatorFooter,{videoSetting:W,setVideoSetting:F})]})]})})}},96273:function(I,g,n){"use strict";n.r(g)},62311:function(I,g,n){"use strict";n.r(g),n.d(g,{CfStep1:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return d("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return d("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(I,g,n){"use strict";n.r(g),n.d(g,{CfStep2:function(){return v}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754);function s(u,h){return h||(h=u.slice(0)),u.raw=h,u}function d(){var u=s(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return d=function(){return u},u}function p(){var u=s(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return p=function(){return u},u}function x(){var u=s(["\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 x=function(){return u},u}function a(){var u=s(["\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 a=function(){return u},u}function f(){var u=s(["\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 f=function(){return u},u}function c(){var u=s(["\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 c=function(){return u},u}function l(){var u=s(["\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 l=function(){return u},u}var v=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.totalprice,O=E.hw_battery,_=E.hw_disk,b=E.hw_netcard,D=E.hw_nanoprint,S=E.hw_card,A=E.devtype,R=E.hw_cpu,L=E.hw_tesla;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:[C,"\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,o.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:O===1,onClick:function(){return j("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:O===2,onClick:function(){return j("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:O===3,onClick:function(){return j("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,o.c1)(p()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===1,onClick:function(){return j("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===2,onClick:function(){return j("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:_===3,onClick:function(){return j("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,o.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:b===0,onClick:function(){return j("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:b===1,onClick:function(){return j("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:b===2,onClick:function(){return j("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,o.c1)(a()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:D===0,onClick:function(){return j("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:D===1,onClick:function(){return j("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,o.c1)(f()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:S===0,onClick:function(){return j("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:S===1,onClick:function(){return j("hw_card",{card:"1"})},children:"Standard"})})]}),A!==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,o.c1)(c()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:R===1,onClick:function(){return j("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:R===2,onClick:function(){return j("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,o.c1)(l()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:L===0,onClick:function(){return j("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{selected:L===1,onClick:function(){return j("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 j("confirm_order")},children:"Confirm Order"})]})}},3777:function(I,g,n){"use strict";n.r(g),n.d(g,{CfStep3:function(){return t}});var e=n(62161),o=n(16754),t=function(r){var s=r.totalprice;return(0,e.jsxs)(o.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(o.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(o.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(o.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(o.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(I,g,n){"use strict";n.r(g),n.d(g,{CfStep4:function(){return t}});var e=n(62161),o=n(16754),t=function(r){return(0,e.jsxs)(o.wn,{minHeight:"282px",children:[(0,e.jsx)(o.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(o.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(I,g,n){"use strict";n.r(g),n.d(g,{ComputerFabricator:function(){return a}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(62311),d=n(78820),p=n(3777),x=n(44430),a=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.state,h=v.totalprice,j=[];return j[0]=(0,e.jsx)(s.CfStep1,{}),j[1]=(0,e.jsx)(d.CfStep2,{}),j[2]=(0,e.jsx)(p.CfStep3,{totalprice:h}),j[3]=(0,e.jsx)(x.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),u!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return l("clean_order")},children:"Clear Order"}),j[u]]})})}},75050:function(I,g,n){"use strict";n.r(g)},31681:function(I,g,n){"use strict";n.r(g),n.d(g,{CookingAppliance:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.temperature,c=a.optimalTemp,l=a.temperatureEnough,v=a.efficiency,u=a.containersRemovable,h=a.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:l?"good":"blue",value:f,maxValue:c,children:[(0,e.jsx)(t.zv,{value:f}),"\xB0C / ",c,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:v}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:h.map(function(j,E){return j.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+1),children:(0,e.jsx)(t.$n,{onClick:function(){return x("slot",{slot:E+1})},children:"Empty"})},E):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(E+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:!u,onClick:function(){return x("slot",{slot:E+1})},children:j.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:j.progressText[0],value:j.progress,maxValue:1,children:j.progressText[1]})})]})},E)})})})]})})}},58044:function(I,g,n){"use strict";n.r(g),n.d(g,{CrewManifest:function(){return p},CrewManifestContent:function(){return x}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(79500),d=n(42103),p=function(){return(0,e.jsx)(d.p8,{width:400,height:600,children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:v.map(function(u){return!!u.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[u.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:u.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"})]}),u.elems.map(function(h){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(h.name)}),(0,e.jsx)(r.XI.Cell,{children:h.rank}),(0,e.jsx)(r.XI.Cell,{children:h.active})]},h.name+h.rank)})]})},u.cat)})})}},70117:function(I,g,n){"use strict";n.r(g),n.d(g,{CrewMonitor:function(){return f},CrewMonitorContent:function(){return c}});var e=n(62161),o=n(7402),t=n(22071),r=n(28277),s=n(7081),d=n(16754),p=n(42103),x=function(u){return u.dead?"Deceased":u.stat===1?"Unconscious":"Living"},a=function(u){return u.dead?"red":u.stat===1?"orange":"green"},f=function(){var u=function(S){C(S)},h=function(S){b(S)},j=(0,r.useState)(0),E=j[0],C=j[1],O=(0,r.useState)(1),_=O[0],b=O[1];return(0,e.jsx)(p.p8,{width:800,height:600,children:(0,e.jsx)(p.p8.Content,{children:(0,e.jsx)(c,{tabIndex:E,zoom:_,onTabIndex:u,onZoom:h})})})},c=function(u){var h=(0,s.Oc)().data,j=h.crewmembers,E=j===void 0?[]:j,C=(0,t.L)([(0,o.Ul)(function(_){return _.name}),(0,o.Ul)(function(_){return _==null?void 0:_.x}),(0,o.Ul)(function(_){return _==null?void 0:_.y}),(0,o.Ul)(function(_){return _==null?void 0:_.realZ})])(E),O=[];return O[0]=(0,e.jsx)(l,{crew:C}),O[1]=(0,e.jsx)(v,{zoom:u.zoom,onZoom:u.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(d.tU,{children:[(0,e.jsxs)(d.tU.Tab,{selected:u.tabIndex===0,onClick:function(){return u.onTabIndex(0)},children:[(0,e.jsx)(d.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(d.tU.Tab,{selected:u.tabIndex===1,onClick:function(){return u.onTabIndex(1)},children:[(0,e.jsx)(d.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(d.az,{m:2,children:O[u.tabIndex]||(0,e.jsx)(d.az,{textColor:"red",children:"ERROR"})})]})},l=function(u){var h=(0,s.Oc)(),j=h.act,E=h.data,C=u.crew,O=E.isAI;return(0,e.jsxs)(d.XI,{children:[(0,e.jsxs)(d.XI.Row,{header:!0,children:[(0,e.jsx)(d.XI.Cell,{children:"Name"}),(0,e.jsx)(d.XI.Cell,{children:"Status"}),(0,e.jsx)(d.XI.Cell,{children:"Location"})]}),C.map(function(_){return(0,e.jsxs)(d.XI.Row,{children:[(0,e.jsxs)(d.XI.Cell,{children:[_.name," (",_.assignment,")"]}),(0,e.jsxs)(d.XI.Cell,{children:[(0,e.jsx)(d.az,{inline:!0,color:a(_),children:x(_)}),_.sensor_type>=2?(0,e.jsxs)(d.az,{inline:!0,children:["(",(0,e.jsx)(d.az,{inline:!0,color:"red",children:_.brute}),"|",(0,e.jsx)(d.az,{inline:!0,color:"orange",children:_.fire}),"|",(0,e.jsx)(d.az,{inline:!0,color:"green",children:_.tox}),"|",(0,e.jsx)(d.az,{inline:!0,color:"blue",children:_.oxy}),")"]}):null]}),(0,e.jsx)(d.XI.Cell,{children:_.sensor_type===3?O?(0,e.jsx)(d.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return j("track",{track:_.ref})},children:_.area+" ("+_.x+", "+_.y+")"}):_.area+" ("+_.x+", "+_.y+", "+_.z+")":"Not Available"})]},_.ref)})]})},v=function(u){var h=(0,s.Oc)(),j=h.config,E=h.data,C=E.zoomScale,O=E.crewmembers;return(0,e.jsx)(d.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(d.tx,{zoomScale:C,onZoom:function(_){return u.onZoom(_)},children:O.filter(function(_){return _.sensor_type===3&&~~_.realZ===~~j.mapZLevel}).map(function(_){return(0,e.jsx)(d.tx.Marker,{x:_.x,y:_.y,zoom:u.zoom,icon:"circle",tooltip:_.name+" ("+_.assignment+")",color:a(_)},_.ref)})})})}},67268:function(I,g,n){"use strict";n.r(g),n.d(g,{CryoStorage:function(){return d},CryoStorageCrew:function(){return p},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return x}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=function(f){var c=(0,t.Oc)().data,l=c.real_name,v=c.allow_items,u=(0,o.useState)(0),h=u[0],j=u[1],E=[];return E[0]=(0,e.jsx)(p,{}),E[1]=v?(0,e.jsx)(x,{}):(0,e.jsx)(a,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:h===0,onClick:function(){return j(0)},children:"Crew"}),!!v&&(0,e.jsx)(r.tU.Tab,{selected:h===1,onClick:function(){return j(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",l,"."]}),E[h]]})})},p=function(f){var c=(0,t.Oc)().data,l=c.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:l.length&&l.map(function(v){return(0,e.jsx)(r.az,{color:"label",children:v},v)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(f){var c=(0,t.Oc)().data,l=c.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:l.length&&l.map(function(v){return(0,e.jsx)(r.az,{color:"label",children:v},v)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(f){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(I,g,n){"use strict";n.r(g),n.d(g,{CryoContent:function(){return d}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(17639),d=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.isOperating,v=c.hasOccupant,u=c.occupant,h=c.cellTemperature,j=c.cellTemperatureStatus,E=c.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return f("ejectOccupant")},disabled:!v,children:"Eject"}),children:v?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:u.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:u.health/u.maxHealth,color:u.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:u.health,format:function(C){return(0,o.Mg)(C)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[u.stat][0],children:s.statNames[u.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:u.bodyTemperature,format:function(C){return(0,o.Mg)(C)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(C,O){return(0,e.jsx)(r.Ki.Item,{label:C.label,children:(0,e.jsx)(r.z2,{value:u[C.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:u[C.type],format:function(_){return(0,o.Mg)(_)}})})},O)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("ejectBeaker")},disabled:!E,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return f(l?"switchOff":"switchOn")},selected:l,children:l?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:j,children:[(0,e.jsx)(r.zv,{value:h})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(p,{})})]})})]})},p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.isBeakerLoaded,v=c.beakerLabel,u=c.beakerVolume;return l?(0,e.jsxs)(e.Fragment,{children:[v||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!u&&"bad",children:u?(0,e.jsx)(r.zv,{value:u,format:function(h){return(0,o.Mg)(h)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(I,g,n){"use strict";n.r(g),n.d(g,{damageTypes:function(){return e},statNames:function(){return o}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(I,g,n){"use strict";n.r(g),n.d(g,{Cryo:function(){return r}});var e=n(62161),o=n(42103),t=n(41628),r=function(s){return(0,e.jsx)(o.p8,{width:520,height:470,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(I,g,n){"use strict";n.r(g)},39699:function(I,g,n){"use strict";n.r(g),n.d(g,{DNAForensics:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.scan_progress,c=a.scanning,l=a.bloodsamp,v=a.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:c,disabled:!l,icon:"power-off",onClick:function(){return x("scanItem")},children:c?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!l,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:f,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:l&&(0,e.jsxs)(t.az,{children:[l,(0,e.jsx)(t.az,{color:"label",children:v})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(I,g,n){"use strict";n.r(g),n.d(g,{DNAModifierBlocks:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){for(var d=function(j){for(var E=function(b){var D=b+1;O.push((0,e.jsx)(t.$n,{selected:a===C&&f===D,mb:"0",onClick:function(){return p(l,{block:C,subblock:D})},children:v[j+b]}))},C=j/c+1,O=[],_=0;_E,icon:"syringe",onClick:function(){return u("injectRejuvenators",{amount:O})},children:O},_)}),(0,e.jsx)(t.$n,{disabled:E<=0,icon:"syringe",onClick:function(){return u("injectRejuvenators",{amount:E})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:C||"No label"}),E?(0,e.jsxs)(t.az,{color:"good",children:[E," unit",E===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(I,g,n){"use strict";n.r(g),n.d(g,{DNAModifierMainBuffers:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(p){var x=(0,o.Oc)().data,a=x.buffers,f=a.map(function(c,l){return(0,e.jsx)(s,{id:l+1,name:"Buffer "+(l+1),buffer:c},l)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:f}),(0,e.jsx)(d,{})]})},s=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=p.id,l=p.name,v=p.buffer,u=f.isInjectorReady,h=l+(v.data?" - "+v.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:h,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!v.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:c})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!v.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:c})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!v.data||!f.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:c})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:c})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:c})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:c})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!f.hasDisk||!f.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:c})},children:"From Disk"})]}),!!v.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:v.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[v.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!v.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:c})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:c,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:c})},children:"Subject"})]})]})]}),!v.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.hasDisk,l=f.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!c||!l.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:c?l.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:l.owner?l.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[l.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!l.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(I,g,n){"use strict";n.r(g),n.d(g,{DNAModifierOccupant:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(22724),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.locked,c=a.hasOccupant,l=a.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!c,selected:f,icon:f?"toggle-on":"toggle-off",onClick:function(){return x("toggleLock")},children:f?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!c||f,icon:"user-slash",onClick:function(){return x("ejectOccupant")},children:"Eject"})]}),children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:l.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.health/l.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[l.stat][0],children:r.stats[l.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),d.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:a.occupant.uniqueEnzymes?a.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(I,g,n){"use strict";n.r(g),n.d(g,{operations:function(){return o},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(I,g,n){"use strict";n.r(g),n.d(g,{DNAModifier:function(){return x}});var e=n(62161),o=n(7081),t=n(42103),r=n(86471),s=n(11619),d=n(89100),p=n(76282),x=function(a){var f=(0,o.Oc)().data,c=f.irradiating,l=f.occupant,v=!l.isViableSubject||!l.uniqueIdentity||!l.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),c&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:c}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(p.DNAModifierOccupant,{isDNAInvalid:v}),(0,e.jsx)(d.DNAModifierMain,{isDNAInvalid:v})]})]})}},14512:function(I,g,n){"use strict";n.r(g)},2984:function(I,g,n){"use strict";n.r(g),n.d(g,{DestinationTagger:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.currTag,c=a.taggerLevels,l=c===void 0?[]:c,v=a.taggerLocs,u=l.filter(function(h,j){return j===l.findIndex(function(E){return h.location===E.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:u.map(function(h){return(0,e.jsx)(t.wn,{title:h.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:v.map(function(j){return h.z===j.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:f===j.tag?"check-square-o":"square-o",selected:f===j.tag,onClick:function(){return x("set_tag",{tag:j.tag})},children:j.tag})},j.tag)})})},h.location)})})})})}},17956:function(I,g,n){"use strict";n.r(g),n.d(g,{DiseaseSplicer:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(p,{})]})})})},d=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.dish_inserted,v=c.effects,u=c.info,h=c.growth,j=c.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return f("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:h})})}),u?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:u})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:v&&v.map(function(E){return(0,e.jsxs)(t.az,{color:"label",children:["(",E.stage,") ",E.name," ",E.badness>1?"Dangerous!":null]},E.stage)})||(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),v&&v.map(function(E){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return f("grab",{grab:E.reference})},children:E.stage},E.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return f("affected_species")},children:"Species"})]})]})]})},p=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.buffer,v=c.species_buffer,u=c.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:l?(0,e.jsxs)(t.az,{children:[l.name," (",l.stage,")"]}):v?(0,e.jsx)(t.az,{children:v}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!l&&!v,onClick:function(){return f("disk")},children:"Save To Disk"}),l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>1,onClick:function(){return f("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>2,onClick:function(){return f("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>3,onClick:function(){return f("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>4,onClick:function(){return f("splice",{splice:4})},children:"Splice #4"})]}):v?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!v||!!u,onClick:function(){return f("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(I,g,n){"use strict";n.r(g),n.d(g,{DishIncubator:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(41242),s=n(42103),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.on,l=f.system_in_use,v=f.food_supply,u=f.radiation,h=f.growth,j=f.toxins,E=f.chemicals_inserted,C=f.can_breed_virus,O=f.chemical_volume,_=f.max_chemical_volume,b=f.dish_inserted,D=f.blood_already_infected,S=f.virus,A=f.analysed,R=f.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return a("power")},children:c?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return a("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!l,onClick:function(){return a("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:u>=50?"bad":h>=25?"average":"good",value:u,children:[(0,r.qQ)(u*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:j})})]})]}),(0,e.jsx)(t.wn,{title:C?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!E,onClick:function(){return a("ejectchem")},children:"Eject "+(C?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!C,onClick:function(){return a("virus")},children:"Breed Virus"})]}),children:E&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:_,value:O,children:[O,"/",_]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:C?"good":"average",children:[b?C?"Suitable":"No hemolytic samples detected":"N/A",D?(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:!b,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:b?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:h})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:A?R:"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(I,g,n){"use strict";n.r(g),n.d(g,{DisposalBin:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.mode,c=a.pressure,l=a.isAI,v=a.panel_open,u=a.flushing,h,j;return f===2?(h="good",j="Ready"):f<=0?(h="bad",j="N/A"):f===1?(h="average",j="Pressurizing"):(h="average",j="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:h,children:j}),(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:c,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l||v,selected:u?null:!0,onClick:function(){return x("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l||v,selected:u?!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:f===-1,selected:f?null:!0,onClick:function(){return x("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:f===-1,selected:f?!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:l,onClick:function(){return x("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(I,g,n){"use strict";n.r(g),n.d(g,{DroneConsole:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.drones,c=a.areas,l=a.selected_area,v=a.fabricator,u=a.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!v,selected:u,icon:"power-off",onClick:function(){return x("toggle_fab")},children:u?"Enabled":"Disabled"}),children:v?(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:c?c.sort():[],selected:l,width:"100%",onSelected:function(h){return x("set_dcall_area",{area:h})}}),(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:f&&f.length?(0,e.jsx)(t.Ki,{children:f.map(function(h){return(0,e.jsx)(t.Ki.Item,{label:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return x("resync",{ref:h.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return x("shutdown",{ref:h.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:h.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[h.charge," / ",h.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:h.active?"Yes":"No"})]})},h.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(I,g,n){"use strict";n.r(g),n.d(g,{AirlockConsoleAdvanced:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=function(C){return C<80||C>120?"bad":C<95||C>110?"average":"good"},x=(0,o.Oc)(),a=x.act,f=x.data,c=f.external_pressure,l=f.chamber_pressure,v=f.internal_pressure,u=f.processing,h={external_pressure:c,internal_pressure:v,chamber_pressure:l},j=[{minValue:0,maxValue:202,value:c,label:"External Pressure",textValue:c+" kPa",color:p},{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:p},{minValue:0,maxValue:202,value:v,label:"Internal Pressure",textValue:v+" kPa",color:p}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:h}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return a("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!u,icon:"ban",color:"bad",onClick:function(){return a("abort")},children:"Abort"})})]})]})}},34012:function(I,g,n){"use strict";n.r(g),n.d(g,{AirlockConsoleDocking:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.interior_status,c=a.exterior_status,l=a.chamber_pressure,v=a.airlock_disabled,u=a.override_enabled,h=a.docking_status,j=a.processing,E={interior_status:f,exterior_status:c},C=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:v||u?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:u?"red":"",onClick:function(){return x("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:h,override_enabled:u})}),(0,e.jsx)(r.StatusDisplay,{bars:C}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:E}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!j,icon:"ban",color:"bad",onClick:function(){return x("abort")},children:"Abort"})})]})]})}},29935:function(I,g,n){"use strict";n.r(g),n.d(g,{AirlockConsolePhoron:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.chamber_pressure,c=a.chamber_phoron,l=a.interior_status,v=a.exterior_status,u=a.processing,h={interior_status:l,exterior_status:v},j=[{minValue:0,maxValue:202,value:f,label:"Chamber Pressure",textValue:f+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}},{minValue:0,maxValue:100,value:c,label:"Chamber Phoron",textValue:c+" mol",color:function(E){return E>5?"bad":E>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:j}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:h}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!u,icon:"ban",color:"bad",onClick:function(){return x("abort")},children:"Abort"})})]})]})}},32965:function(I,g,n){"use strict";n.r(g),n.d(g,{AirlockConsoleSimple:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.exterior_status,c=a.chamber_pressure,l=a.processing,v=a.interior_status,u={interior_status:v,exterior_status:f},h=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:h}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:u}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!l,icon:"ban",color:"bad",onClick:function(){return x("abort")},children:"Abort"})})]})]})}},74390:function(I,g,n){"use strict";n.r(g),n.d(g,{DockingConsoleMulti:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)().data,x=p.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:x,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:p.airlocks.length?(0,e.jsx)(t.Ki,{children:p.airlocks.map(function(a){return(0,e.jsx)(t.Ki.Item,{color:a.override_enabled?"bad":"good",label:a.name,children:a.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},a.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(I,g,n){"use strict";n.r(g),n.d(g,{DockingConsoleSimple:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.exterior_status,c=a.override_enabled,l=a.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!c,onClick:function(){return x("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:c?"red":"",onClick:function(){return x("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:l,override_enabled:c})}),(0,e.jsx)(r.DockingStatus,{state:f.state})]})})}},77506:function(I,g,n){"use strict";n.r(g),n.d(g,{DoorAccessConsole:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(s){var d=(0,o.Oc)(),p=d.act,x=d.data,a=x.interior_status,f=x.exterior_status,c=a.state==="open"||f.state==="closed",l=f.state==="open"||a.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:c?"arrow-left":"exclamation-triangle",onClick:function(){p(c?"cycle_ext_door":"force_ext")},children:c?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:l?"arrow-right":"exclamation-triangle",onClick:function(){p(l?"cycle_int_door":"force_int")},children:l?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:f.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:a.state==="closed"?"Locked":"Open"})]})})}},64894:function(I,g,n){"use strict";n.r(g),n.d(g,{DockStatus:function(){return f},DockingStatus:function(){return p},EscapePodControls:function(){return a},EscapePodStatus:function(){return d},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(62161),o=n(7081),t=n(16754),r=function(c){var l=c.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:l.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.label,children:(0,e.jsx)(t.z2,{color:v.color(v.value),minValue:v.minValue,maxValue:v.maxValue,value:v.value,children:v.textValue})},v.label)})})})},s=function(c){var l=(0,o.Oc)().act,v=c.status_range,u=c.pressure_range,h=c.airlock_disabled,j=v||{},E=j.interior_status,C=j.exterior_status,O=u||{},_=O.external_pressure,b=O.internal_pressure,D=O.chamber_pressure,S=!0;E&&E.state==="open"?S=!1:_&&D&&(S=!(Math.abs(_-D)>5));var A=!0;return C&&C.state==="open"?A=!1:b&&D&&(A=!(Math.abs(b-D)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:h,icon:"arrow-left",onClick:function(){return l("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:h,icon:"arrow-right",onClick:function(){return l("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:h,color:S?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:h,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_int")},children:"Force Interior Door"})]})]})},d=function(c){var l=c.exterior_status,v=c.docking_status,u=c.armed,h={docked:(0,e.jsx)(x,{armed: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..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:h[v]}),(0,e.jsx)(p,{state:l.state})]})})},p=function(c){var l=c.state,v=[];return v.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),v.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),v.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:v[l]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},x=function(c){var l=c.armed;return l?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(c){var l=(0,o.Oc)().act,v=c.docking_status,u=c.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!u,icon:"exclamation-triangle",color:v!=="docked"?"bad":"",onClick:function(){return l("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:u,color:v!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return l("toggle_override")},children:"Override"})]})},f=function(c){var l=c.docking_status,v=c.override_enabled,u={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"})},h=u[l];return v&&(h=(0,e.jsxs)(t.az,{color:"bad",children:[l.toUpperCase(),"-OVERRIDE ENABLED"]})),h}},83783:function(I,g,n){"use strict";n.r(g),n.d(g,{EscapePodBerthConsole:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)().data,x=p.exterior_status,a=p.docking_status,f=p.armed,c=p.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:x,docking_status:a,armed:f}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:c})})]})}},13802:function(I,g,n){"use strict";n.r(g),n.d(g,{EscapePodConsole:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(64894),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.exterior_status,c=a.docking_status,l=a.override_enabled,v=a.armed,u=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:f,docking_status:c,armed:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:c,override_enabled:l}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:v,color:v?"bad":"average",onClick:function(){return x("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!u,color:"bad",onClick:function(){return x("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(I,g,n){"use strict";n.r(g),n.d(g,{EmbeddedController:function(){return v}});var e=n(62161),o=n(7081),t=n(42103),r=n(27133),s=n(34012),d=n(29935),p=n(32965),x=n(74390),a=n(75355),f=n(77506),c=n(83783),l=n(13802),v=function(u){var h=(0,o.Oc)().data,j=h.internalTemplateName,E={};E.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),E.AirlockConsoleSimple=(0,e.jsx)(p.AirlockConsoleSimple,{}),E.AirlockConsolePhoron=(0,e.jsx)(d.AirlockConsolePhoron,{}),E.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),E.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),E.DockingConsoleMulti=(0,e.jsx)(x.DockingConsoleMulti,{}),E.DoorAccessConsole=(0,e.jsx)(f.DoorAccessConsole,{}),E.EscapePodConsole=(0,e.jsx)(l.EscapePodConsole,{}),E.EscapePodBerthConsole=(0,e.jsx)(c.EscapePodBerthConsole,{});var C=E[j];if(!C)throw Error("Unable to find Component for template name: "+j);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:C})})}},2076:function(I,g,n){"use strict";n.r(g)},26356:function(I,g,n){"use strict";n.r(g),n.d(g,{DisplayDetails:function(){return x},EntityNarrate:function(){return d},EntitySelection:function(){return p},ModeSelector:function(){return a},NarrationInput:function(){return f}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(p,{})})}),(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)(a,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(f,{})})]})})})]})})})})},p=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.selection_mode,j=u.multi_id_selection,E=u.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:h,onClick:function(){return v("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:E.map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:j.includes(C),onClick:function(){return v("select_entity",{id_selected:C})},children:(0,e.jsx)(r.az,{inline:!0,children:C})},C)})})})})})},x=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.selection_mode,j=u.number_mob_selected,E=u.selected_id,C=u.selected_name,O=u.selected_type;return h?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",j]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",E," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",O," ",(0,e.jsx)("br",{})]})},a=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.privacy_select,j=u.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 v("change_mode_privacy")},selected:h,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(h?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:h?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return v("change_mode_narration")},selected:j,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(j?"Click here to emote visibly.":"Click here to talk audiably."),children:j?"Currently: Emoting":"Currently: Talking"})})]})},f=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=(0,o.useState)(""),j=h[0],E=h[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return v("narrate",{message:j})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(C,O){return E(O)},value:j||""})})})})}},63183:function(I,g,n){"use strict";n.r(g),n.d(g,{ExonetNode:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.allowPDAs,l=a.allowCommunicators,v=a.allowNewscasters,u=a.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return x("toggle_power")},children:"Power "+(f?"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:c,onClick:function(){return x("toggle_PDA_port")},children:c?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return x("toggle_communicator_port")},children:l?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_newscaster_port")},children:v?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[u.map(function(h,j){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:j%2,children:h},j)}),!u||u.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},23162:function(I,g,n){"use strict";n.r(g),n.d(g,{ExosuitFabricator:function(){return R},Materials:function(){return W}});var e=n(62161),o=n(7402),t=n(4089),r=n(65380),s=n(61282),d=n(28277),p=n(7081),x=n(16754),a=n(41242),f=n(42103);function c(X,U){(U==null||U>X.length)&&(U=X.length);for(var Q=0,ee=new Array(U);Q=X.length?{done:!0}:{done:!1,value:X[ee++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u={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"},h=0,j=1,E=2,C,O=(C={},C[h]=!1,C[j]="average",C[E]="bad",C),_=function(X){var U={};return X.forEach(function(Q){U[Q.name]=Q.amount}),U},b=function(X,U,Q){return X>Q?{color:E,deficit:X-Q}:U>Q?{color:j,deficit:X}:X+U>Q?{color:j,deficit:X+U-Q}:{color:h,deficit:0}},D=function(X,U,Q){var ee={textColor:h};return Object.keys(Q.cost).forEach(function(ne){ee[ne]=b(Q.cost[ne],U[ne],X[ne]),ee[ne].color>ee.textColor&&(ee.textColor=ee[ne].color)}),ee},S=function(X,U){var Q={},ee={},ne={},ie={};return U.forEach(function(le,ue){ie[ue]=h,Object.keys(le.cost).forEach(function(ge){Q[ge]=Q[ge]||0,ne[ge]=ne[ge]||0,ee[ge]=b(le.cost[ge],Q[ge],X[ge]),ee[ge].color!==h?ie[ue]1&&ie0});return le.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:le.map(function(ue){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(F,{name:ue.name,amount:ue.amount,formatsi:!0}),!ne&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(L,{material:ue})})]},ue.name)||null})})},F=function(X){var U=X.name,Q=X.amount,ee=X.formatsi,ne=X.formatmoney,ie=X.color,le=X.style,ue="0";return Q<1&&Q>0?ue=(0,t.Mg)(Q,2):ee?ue=(0,a.QL)(Q,0):ne?ue=(0,a.up)(Q):ue=Q,(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,s.Sn)(U),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",u[U]]),position:"relative",style:le})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ie,style:{"text-align":"center"},children:ue})})]})},$=function(X){var U=(0,p.Oc)().data,Q=U.partSets||[],ee=U.buildableParts||{},ne=(0,p.QY)("part_tab",Q.length?ee[0]:""),ie=ne[0],le=ne[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Q.map(function(ue){return!!ee[ue]&&(0,e.jsx)(x.tU.Tab,{selected:ue===ie,disabled:!ee[ue],onClick:function(){return le(ue)},children:ue},ue)})})},G=function(X){var U=(0,p.Oc)().data,Q=function(Pe){for(var nn=v(Pe),dn;!(dn=nn()).done;){var mn=dn.value;if(ne[mn])return mn}return null},ee=U.partSets||[],ne=U.buildableParts||[],ie=X.queueMaterials,le=X.materials,ue=(0,p.QY)("part_tab",Q(ee)),ge=ue[0],xe=ue[1],me=(0,p.QY)("search_text",""),_e=me[0],We=me[1];if(!ge||!ne[ge]){var Ve=Q(ee);if(Ve)xe(Ve);else return}var ye;return _e?(ye=[],A(_e,ne).forEach(function(Pe){Pe.format=D(le,ie,Pe),ye.push(Pe)})):(ye={Parts:[]},ne[ge].forEach(function(Pe){if(Pe.format=D(le,ie,Pe),!Pe.subCategory){ye.Parts.push(Pe);return}Pe.subCategory in ye||(ye[Pe.subCategory]=[]),ye[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:_e,onInput:function(Pe,nn){return We(nn)}})})]})}),!!_e&&(0,e.jsx)(Y,{name:"Search Results",parts:ye,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ye).map(function(Pe){return(0,e.jsx)(Y,{name:Pe,parts:ye[Pe]},Pe)})]})},Y=function(X){var U=(0,p.Oc)(),Q=U.act,ee=U.data,ne=ee.buildingPart,ie=X.parts,le=X.name,ue=X.forceShow,ge=X.placeholder,xe=(0,p.QY)("display_mats",!1),me=xe[0];return(!!ie.length||ue)&&(0,e.jsxs)(x.wn,{title:le,buttons:(0,e.jsx)(x.$n,{disabled:!ie.length,color:"good",icon:"plus-circle",onClick:function(){return Q("add_queue_set",{part_list:ie.map(function(_e){return _e.id})})},children:"Queue All"}),children:[!ie.length&&ge,ie.map(function(_e){return(0,e.jsxs)(d.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:ne||_e.format.textColor===E,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Q("build_part",{id:_e.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 Q("add_queue_part",{id:_e.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[_e.format.textColor],children:_e.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: "+_e.printTime+"s. "+(_e.desc||""),tooltipPosition:"left"})})]}),me&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(_e.cost).map(function(We){return(0,e.jsx)(x.so.Item,{width:"50px",color:O[_e.format[We].color],children:(0,e.jsx)(F,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:We,amount:_e.cost[We]})},We)})})]},_e.name)})]})},q=function(X){var U=(0,p.Oc)(),Q=U.act,ee=U.data,ne=ee.isProcessingQueue,ie=ee.queue||[],le=X.queueMaterials,ue=X.missingMaterials,ge=X.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ie.length,color:"bad",icon:"minus-circle",onClick:function(){return Q("clear_queue")},children:"Clear Queue"}),!!ne&&(0,e.jsx)(x.$n,{disabled:!ie.length,icon:"stop",onClick:function(){return Q("stop_queue")},children:"Stop"})||(0,e.jsx)(x.$n,{disabled:!ie.length,icon:"play",onClick:function(){return Q("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)(V,{textColors:ge})})]})})}),!!ie.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(Z,{queueMaterials:le,missingMaterials:ue})})})]})},Z=function(X){var U=X.queueMaterials,Q=X.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(U).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(F,{formatmoney:!0,name:ee,amount:U[ee]}),!!Q[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,a.up)(Q[ee])})]},ee)})})},V=function(X){var U=(0,p.Oc)(),Q=U.act,ee=U.data,ne=X.textColors,ie=ee.queue||[];return ie.length?ie.map(function(le,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 Q("del_queue_part",{index:ue+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[ne[ue]],children:le.name})})]})},le.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},z=function(X){var U=(0,p.Oc)().data,Q=U.buildingPart,ee=U.storedPart;if(ee){var ne=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Q){var ie=Q.name,le=Q.duration,ue=Q.printTime,ge=Math.ceil(le/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ue,value:le,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:ge>=0&&ge+"s"||"Dispensing..."})]})})})}}},40505:function(I,g,n){"use strict";n.r(g),n.d(g,{Farmbot:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.locked,l=a.tank,v=a.tankVolume,u=a.tankMaxVolume,h=a.waters_trays,j=a.refills_water,E=a.uproots_weeds,C=a.replaces_nutriment,O=a.collects_produce,_=a.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:f,onClick:function(){return x("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Water Tank",children:l&&(0,e.jsxs)(t.z2,{value:v,maxValue:u,children:[v," / ",u]})||(0,e.jsx)(t.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsxs)(t.wn,{title:"Behavior Controls",children:[(0,e.jsx)(t.wn,{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:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("water")},children:h?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("refill")},children:j?"Yes":"No"})})]})}),(0,e.jsx)(t.wn,{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:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return x("weed")},children:E?"Yes":"No"})})})}),(0,e.jsx)(t.wn,{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:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("replacenutri")},children:C?"Yes":"No"})})})})]})||null]})})}},27955:function(I,g,n){"use strict";n.r(g),n.d(g,{Fax:function(){return p},FaxContent:function(){return x}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(35069),d=n(97049),p=function(c){var l=(0,o.Oc)().data,v=l.authenticated,u=l.copyItem,h=340;return u&&(h=358),v?(0,e.jsx)(r.p8,{width:600,height:h,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(a,{}),(0,e.jsx)(s.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)(a,{}),(0,e.jsx)(d.LoginScreen,{machineType:"Fax"})]})})},x=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.bossName,j=u.copyItem,E=u.cooldown,C=u.destination;return(0,e.jsxs)(t.wn,{children:[!!E&&(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:[h," Quantum Entanglement Network"]})}),j&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Currently Sending",children:[j," ",(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return v("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 v("dept")},children:C})})]}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return v("send")},fluid:!0,children:"Send"})]})||(0,e.jsx)(t.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(f,{})]})},a=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.copyItem;return h?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return v("remove")},children:"Remove Item"})}):null},f=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.adminDepartments,j=u.destination,E=u.copyItem,C=new Set(h),O="1rem";return E&&(O="1.5rem"),!E||E&&C.has(j)?(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 v("send_automated_staff_request")},fluid:!0,children:"Send Automated Staff Request"})})]}):null}},54392:function(I,g,n){"use strict";n.r(g),n.d(g,{FileCabinet:function(){return d}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.contents,l=(0,o.Ul)(function(v){return v.name})(c||[]);return(0,e.jsx)(s.p8,{width:350,height:300,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:l.map(function(v){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",onClick:function(){return a("retrieve",{ref:v.ref})},children:v.name},v.ref)})})})})}},40669:function(I,g,n){"use strict";n.r(g),n.d(g,{Floorbot:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.open,l=a.locked,v=a.vocal,u=a.amount,h=a.possible_bmode,j=a.improvefloors,E=a.eattiles,C=a.maketiles,O=a.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:f,onClick:function(){return x("start")},children:f?"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:u})}),(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:c?"bad":"good",children:c?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("vocal")},children:v?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("improve")},children:j?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return x("tiles")},children:E?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(t.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("make")},children:C?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(t.ms,{over:!0,width:"100%",selected:O||"Disabled",options:h,onSelected:function(_){return x("bridgemode",{dir:_})}})})]})})||null]})})}},2079:function(I,g,n){"use strict";n.r(g),n.d(g,{GasPump:function(){return d}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.on,l=f.pressure_set,v=f.last_flow_rate,u=f.last_power_draw,h=f.max_power_draw;return(0,e.jsx)(s.p8,{width:470,height:290,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Flow Rate",children:(0,e.jsx)(r.zv,{value:v/10,format:function(j){return(0,o.Mg)(j,1)+" L/s"}})}),(0,e.jsx)(r.Ki.Item,{label:"Load",children:(0,e.jsx)(r.z2,{value:u,minValue:0,maxValue:h,color:u=100?l="Running":!f&&c>0&&(l="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:f?"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:f?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",l]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[c,"%"]})]})})})})}},88941:function(I,g,n){"use strict";n.r(g),n.d(g,{GuestPass:function(){return d}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.area,l=f.giver,v=f.giveName,u=f.reason,h=f.duration,j=f.mode,E=f.log,C=f.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:j===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return a("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:E.length&&E.map(function(O){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}},O)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+C,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return a("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return a("id")},children:l||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:v})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:u})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:h})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return a("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,o.Ul)(function(O){return O.area_name})(c).map(function(O){return(0,e.jsx)(r.$n.Checkbox,{checked:O.on,onClick:function(){return a("access",{access:O.area})},children:O.area_name},O.area)})})]})})})}},52149:function(I,g,n){"use strict";n.r(g),n.d(g,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return a("toggle_active",{gyro:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(v,u){return a("set_rate",{gyro:l.ref,rate:u})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(v,u){return a("set_str",{gyro:l.ref,str:u})}})})]},l.name)})]})})}},44791:function(I,g,n){"use strict";n.r(g),n.d(g,{Holodeck:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.supportedPrograms,c=a.restrictedPrograms,l=a.currentProgram,v=a.isSilicon,u=a.safetyDisabled,h=a.emagged,j=a.gravity,E=f;return u&&(E=E.concat(c)),(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:E.map(function(C){return(0,e.jsx)(t.$n,{color:c.indexOf(C)!==-1?"bad":null,icon:"eye",selected:l===C,fluid:!0,onClick:function(){return x("program",{program:C})},children:C},C)})}),!!v&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:h,color:u?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!h&&"Error, unable to control. ",u?"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:u?(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:j,onClick:function(){return x("gravity")},children:j?"Enabled":"Disabled"})})]})})]})})}},83860:function(I,g,n){"use strict";n.r(g),n.d(g,{ICAssembly:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(a){var f=(0,t.Oc)().data,c=f.total_parts,l=f.max_components,v=f.total_complexity,u=f.max_complexity,h=f.battery_charge,j=f.battery_max,E=f.net_power,C=f.unremovable_circuits,O=f.removable_circuits;return(0,e.jsx)(d.p8,{width:600,height:380,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:c/l,maxValue:1,children:c+" / "+l+" ("+(0,o.Mg)(c/l*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:v/u,maxValue:1,children:v+" / "+u+" ("+(0,o.Mg)(v/u*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:h&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/j,maxValue:1,children:h+" / "+j+" ("+(0,o.Mg)(h/j*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:E===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:E,format:function(_){return"-"+(0,s.d5)(Math.abs(_))+"/s"}})})]})}),C.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:C})||null,O.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:O})||null]})})},x=function(a){var f=(0,t.Oc)().act,c=a.title,l=a.circuits;return(0,e.jsx)(r.wn,{title:c,children:(0,e.jsx)(r.Ki,{children:l.map(function(v){return(0,e.jsxs)(r.Ki.Item,{label:v.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("open_circuit",{ref:v.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("rename_circuit",{ref:v.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("scan_circuit",{ref:v.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("remove_circuit",{ref:v.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("bottom_circuit",{ref:v.ref})},children:"Move to Bottom"})]},v.ref)})})})}},23343:function(I,g,n){"use strict";n.r(g),n.d(g,{ICCircuit:function(){return p}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.desc,h=v.displayed_name,j=v.complexity,E=v.power_draw_idle,C=v.power_draw_per_use,O=v.extended_desc,_=v.inputs,b=v.outputs,D=v.activators;return(0,e.jsx)(d.p8,{width:600,height:400,title:h,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return l("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return l("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return l("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),E&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(E)})||null,C&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(C)})||null]}),O]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&b.length?"33%":_.length||b.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:h,mb:1,children:(0,e.jsx)(r.az,{children:u})})}),b.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:b})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:D.map(function(S){return(0,e.jsxs)(r.Ki.Item,{label:S.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("pin_name",{pin:S.ref})},children:S.pulse_out?"":""}),(0,e.jsx)(a,{pin:S})]},S.name)})})]})]})})},x=function(f){var c=(0,t.Oc)().act,l=f.list;return l.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return c("pin_name",{pin:v.ref})},children:[(0,o.jT)(v.type),": ",v.name]}),(0,e.jsx)(r.$n,{onClick:function(){return c("pin_data",{pin:v.ref})},children:v.data}),(0,e.jsx)(a,{pin:v})]},v.ref)})},a=function(f){var c=(0,t.Oc)().act,l=f.pin;return l.linked.map(function(v){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("pin_unwire",{pin:l.ref,link:v.ref})},children:v.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return c("examine",{ref:v.holder_ref})},children:v.holder_name})]},v.ref)})}},87134:function(I,g,n){"use strict";n.r(g),n.d(g,{ICDetailer:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.detail_color,l=f.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(l).map(function(v,u){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(v),tooltipPosition:u%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:v})},style:l[v]===c?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:l[v]},v)})})})})}},92306:function(I,g,n){"use strict";n.r(g),n.d(g,{ICPrinter:function(){return d}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(a){var f=(0,t.Oc)().data,c=f.metal,l=f.max_metal,v=f.metal_per_sheet,u=f.upgraded,h=f.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:c,maxValue:l,children:[c/v," / ",l/v," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:u?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:h?"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,{})]})})};function p(a,f){return!(!a.can_build||a.cost>f.metal)}var x=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.categories,u=(0,t.QY)("categoryTarget",""),h=u[0],j=u[1],E=(0,o.pb)(function(C){return C.name===h})(v)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,o.Ul)(function(C){return C.name})(v).map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:h===C.name,onClick:function(){return j(C.name)},children:C.name},C.name)})})}),(0,e.jsx)(r.BJ.Item,{children:E?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,o.Ul)(function(C){return C.name})(E.items).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,labelColor:C.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!p(C,l),icon:"print",onClick:function(){return c("build",{build:C.path})},children:"Print"}),children:C.desc},C.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(I,g,n){"use strict";n.r(g),n.d(g,{IDCard:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(10921),d=function(p){var x=(0,o.Oc)().data,a=x.registered_name,f=x.sex,c=x.species,l=x.age,v=x.assignment,u=x.fingerprint_hash,h=x.blood_type,j=x.dna_hash,E=x.photo_front,C=[{name:"Sex",val:f},{name:"Species",val:c},{name:"Age",val:l},{name:"Blood Type",val:h},{name:"Fingerprint",val:u},{name:"DNA Hash",val:j}];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:E&&(0,e.jsx)(t._V,{src:E.substring(1,E.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:C.map(function(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:a})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:v})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:v})})]})]})})})}},39841:function(I,g,n){"use strict";n.r(g),n.d(g,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return l},IdentificationComputerContent:function(){return f},IdentificationComputerPrinting:function(){return c},IdentificationComputerRegions:function(){return v}});var e=n(62161),o=n(7402),t=n(61282),r=n(28277),s=n(7081),d=n(16754),p=n(42103),x=n(58044),a=function(){return(0,e.jsx)(p.p8,{width:600,height:700,children:(0,e.jsx)(p.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(u){var h=(0,s.Oc)(),j=h.act,E=h.data,C=u.ntos,O=E.mode,_=E.has_modify,b=E.printing,D=E.have_id_slot,S=E.have_printer,A=(0,e.jsx)(l,{ntos:C});return C&&!D?A=(0,e.jsx)(x.CrewManifestContent,{}):b?A=(0,e.jsx)(c,{}):O===1&&(A=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(d.tU,{children:[(!C||!!D)&&(0,e.jsx)(d.tU.Tab,{icon:"home",selected:O===0,onClick:function(){return j("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(d.tU.Tab,{icon:"home",selected:O===1,onClick:function(){return j("mode",{mode_target:1})},children:"Crew Manifest"}),!C||!!S&&(0,e.jsx)(d.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(O||_)&&j("print")},color:!O&&!_?"transparent":"",children:"Print"})]}),A]})},c=function(u){return(0,e.jsx)(d.wn,{title:"Printing",children:"Please wait..."})},l=function(u){var h=(0,s.Oc)(),j=h.act,E=h.data,C=u.ntos,O=E.station_name,_=E.target_name,b=E.target_owner,D=E.scan_name,S=E.authenticated,A=E.has_modify,R=E.account_number,L=E.centcom_access,W=E.all_centcom_access,F=E.id_rank,$=E.departments;return(0,e.jsxs)(d.wn,{title:"Access Modification",children:[!S&&(0,e.jsx)(d.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(d.$n,{icon:"eject",fluid:!0,onClick:function(){return j("modify")},children:_})}),!C&&(0,e.jsx)(d.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(d.$n,{icon:"eject",fluid:!0,onClick:function(){return j("scan")},children:D})})]}),!!S&&!!A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.wn,{title:"Details",children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(d.pd,{value:b,fluid:!0,onInput:function(G,Y){return j("reg",{reg:Y})}})}),(0,e.jsx)(d.Ki.Item,{label:"Account Number",children:(0,e.jsx)(d.pd,{value:R,fluid:!0,onInput:function(G,Y){return j("account",{account:Y})}})}),(0,e.jsx)(d.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(d.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+b+", confirm?",onClick:function(){return j("terminate")},children:"Dismiss "+b})})]})}),(0,e.jsx)(d.wn,{title:"Assignment",children:(0,e.jsxs)(d.XI,{children:[$.map(function(G){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(d.XI.Row,{children:[(0,e.jsx)(d.XI.Cell,{header:!0,verticalAlign:"middle",children:G.department_name}),(0,e.jsx)(d.XI.Cell,{children:G.jobs.map(function(Y){return(0,e.jsx)(d.$n,{selected:Y.job===F,onClick:function(){return j("assign",{assign_target:Y.job})},children:(0,t.jT)(Y.display_name)},Y.job)})})]}),(0,e.jsx)(d.az,{mt:-1,children:"\xA0"})," "]},G.department_name)}),(0,e.jsxs)(d.XI.Row,{children:[(0,e.jsx)(d.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(d.XI.Cell,{children:(0,e.jsx)(d.$n,{onClick:function(){return j("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!L&&(0,e.jsx)(d.wn,{title:"Central Command",children:W.map(function(G){return(0,e.jsx)(d.az,{children:(0,e.jsx)(d.$n,{fluid:!0,selected:G.allowed,onClick:function(){return j("access",{access_target:G.ref,allowed:G.allowed})},children:(0,t.jT)(G.desc)})},G.ref)})})||(0,e.jsx)(d.wn,{title:O,children:(0,e.jsx)(v,{actName:"access"})})]})]})},v=function(u){var h=(0,s.Oc)(),j=h.act,E=h.data,C=u.actName,O=E.regions;return(0,e.jsx)(d.so,{wrap:"wrap",spacing:1,children:O&&(0,o.Ul)(function(_){return _.name})(O).map(function(_){return(0,e.jsx)(d.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(d.wn,{title:_.name,height:"100%",children:(0,o.Ul)(function(b){return b.desc})(_.accesses).map(function(b){return(0,e.jsx)(d.az,{children:(0,e.jsx)(d.$n,{fluid:!0,selected:b.allowed,onClick:function(){return j(C,{access_target:b.ref,allowed:b.allowed})},children:(0,t.jT)(b.desc)})},b.ref)})})},_.name)})})}},15450:function(I,g,n){"use strict";n.r(g),n.d(g,{InventoryPanel:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.slots,c=a.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:f&&f.length&&f.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:l.item?"hand-paper":"gift",onClick:function(){return x(l.act)},children:l.item||"Nothing"})},l.name)})})}),c&&(0,e.jsx)(t.wn,{title:"Actions",children:c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(I,g,n){"use strict";n.r(g),n.d(g,{InventoryPanelHuman:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.slots,c=a.specialSlots,l=a.internalsValid,v=a.sensors,u=a.handcuffed,h=a.handcuffedParams,j=a.legcuffed,E=a.legcuffedParams,C=a.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[f&&f.length&&f.map(function(O){return(0,e.jsx)(t.Ki.Item,{label:O.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.name)}),(0,e.jsx)(t.Ki.Divider,{}),c&&c.length&&c.map(function(O){return(0,e.jsx)(t.Ki.Item,{label:O.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:O.item?"hand-paper":"gift",onClick:function(){return x(O.act,O.params)},children:O.item||"Nothing"})},O.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"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return x("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),l&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,v&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,u&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",h)},children:"Handcuffed"})||null,j&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",E)},children:"Legcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(I,g,n){"use strict";n.r(g),n.d(g,{IsolationCentrifuge:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.busy,c=a.antibodies,l=a.pathogens,v=a.is_antibody_sample,u=a.sample_inserted,h=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return u&&(!c&&!l?h=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):h=(0,e.jsxs)(e.Fragment,{children:[c?(0,e.jsx)(t.wn,{title:"Antibodies",children:c}):"",l.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:l.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.name,children:j.spread_type},j.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f?(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:f})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:v?"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:!c&&!l.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:!u,onClick:function(){return x("sample")},children:"Eject Vial"})})]}),h]}),c&&!v||l.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[c&&!v?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("antibody")},children:c})}):"",l.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:l.map(function(j){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("isolate",{isolate:j.reference})},children:j.name},j.name)})}):""]})}):""]})})})}},40939:function(I,g,n){"use strict";n.r(g),n.d(g,{JanitorCart:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.mybag,v=c.mybucket,u=c.mymop,h=c.myspray,j=c.myreplacer,E=c.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:l||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?void 0:"2px solid grey"},onClick:function(){return f("bag")},children:(0,e.jsx)(p,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Bucket Slot",tooltipPosition:"bottom",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return f("bucket")},children:(0,e.jsx)(p,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Mop Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?void 0:"2px solid grey"},onClick:function(){return f("mop")},children:(0,e.jsx)(p,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Spray Slot",tooltipPosition:"top-end",color:h?"grey":"transparent",style:{border:h?void 0:"2px solid grey"},onClick:function(){return f("spray")},children:(0,e.jsx)(p,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Light Replacer Slot",tooltipPosition:"top",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return f("replacer")},children:(0,e.jsx)(p,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Signs Slot",tooltipPosition:"top-start",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return f("sign")},children:(0,e.jsx)(p,{iconkey:"signs"})})]})})},d={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},p=function(x){var a=(0,o.Oc)().data,f=x.iconkey,c=a.icons;return f in c?(0,e.jsx)(t._V,{src:c[f].substr(1,c[f].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:d[f]})}},25244:function(I,g,n){"use strict";n.r(g),n.d(g,{Jukebox:function(){return a}});var e=n(62161),o=n(4089),t=n(61282),r=n(28277),s=n(7081),d=n(16754),p=n(41242),x=n(42103),a=function(f){var c=function(){We&&ne("Admin"),Ve(!We)},l=(0,s.Oc)(),v=l.act,u=l.data,h=u.playing,j=u.loop_mode,E=u.volume,C=u.current_track_ref,O=u.current_track,_=u.current_genre,b=u.percent,D=u.tracks,S=u.admin,A=D.length&&D.reduce(function(ye,Pe){var nn=Pe.genre||"Uncategorized";return ye[nn]||(ye[nn]=[]),ye[nn].push(Pe),ye},{}),R=h&&(_||"Uncategorized"),L=(0,r.useState)("Unknown"),W=L[0],F=L[1],$=(0,r.useState)(""),G=$[0],Y=$[1],q=(0,r.useState)(0),Z=q[0],V=q[1],z=(0,r.useState)("Unknown"),X=z[0],U=z[1],Q=(0,r.useState)("Admin"),ee=Q[0],ne=Q[1],ie=(0,r.useState)(!1),le=ie[0],ue=ie[1],ge=(0,r.useState)(!1),xe=ge[0],me=ge[1],_e=(0,r.useState)(!1),We=_e[0],Ve=_e[1];return(0,e.jsx)(x.p8,{width:450,height:600,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.wn,{title:"Currently Playing",children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Title",children:h&&O&&(0,e.jsxs)(d.az,{children:[O.title," by ",O.artist||"Unkown"]})||(0,e.jsx)(d.az,{children:"Stopped"})}),(0,e.jsxs)(d.Ki.Item,{label:"Controls",children:[(0,e.jsx)(d.$n,{icon:"play",disabled:h,onClick:function(){return v("play")},children:"Play"}),(0,e.jsx)(d.$n,{icon:"stop",disabled:!h,onClick:function(){return v("stop")},children:"Stop"})]}),(0,e.jsxs)(d.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(d.$n,{icon:"play",onClick:function(){return v("loopmode",{loopmode:1})},selected:j===1,children:"Next"}),(0,e.jsx)(d.$n,{icon:"random",onClick:function(){return v("loopmode",{loopmode:2})},selected:j===2,children:"Shuffle"}),(0,e.jsx)(d.$n,{icon:"redo",onClick:function(){return v("loopmode",{loopmode:3})},selected:j===3,children:"Repeat"}),(0,e.jsx)(d.$n,{icon:"step-forward",onClick:function(){return v("loopmode",{loopmode:4})},selected:j===4,children:"Once"})]}),(0,e.jsx)(d.Ki.Item,{label:"Progress",children:(0,e.jsx)(d.z2,{value:b,maxValue:1,color:"good"})}),(0,e.jsx)(d.Ki.Item,{label:"Volume",children:(0,e.jsx)(d.Ap,{minValue:0,step:1,value:E*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(ye){return(0,o.Mg)(ye,1)+"%"},onChange:function(ye,Pe){return v("volume",{val:(0,o.LI)(Pe/100,2)})}})})]})}),(0,e.jsx)(d.wn,{title:"Available Tracks",children:D.length&&Object.keys(A).sort().map(function(ye){return(0,t.ZH)(ye)!=="Admin"&&(0,e.jsx)(d.Nt,{title:ye,color:R===ye?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:A[ye].map(function(Pe){return(0,e.jsx)(d.$n,{fluid:!0,icon:"play",selected:C===Pe.ref,onClick:function(){return v("change_track",{change_track:Pe.ref})},children:Pe.title},Pe.ref)})})},ye)})||(0,e.jsx)(d.az,{color:"bad",children:"Error: No songs loaded."})}),S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.wn,{title:"Admin Tracks",children:D.length&&Object.keys(A).sort().map(function(ye){return(0,t.ZH)(ye)==="Admin"&&(0,e.jsx)(d.Nt,{title:ye,color:R===ye?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:A[ye].map(function(Pe){return(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{grow:1,children:(0,e.jsx)(d.$n,{fluid:!0,icon:"play",selected:C===Pe.ref,onClick:function(){return v("change_track",{change_track:Pe.ref})},children:Pe.title},Pe.ref)}),(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n.Confirm,{icon:"trash",onClick:function(){return v("remove_new_track",{ref:Pe.ref})}})})]},Pe.ref)})})},ye)})||(0,e.jsx)(d.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(d.wn,{title:"Admin Options",children:(0,e.jsxs)(d.Nt,{title:"Add Track",children:[(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Title",children:(0,e.jsx)(d.pd,{width:"100%",value:W,onChange:function(ye,Pe){return F(Pe)}})}),(0,e.jsx)(d.Ki.Item,{label:"URL",children:(0,e.jsx)(d.pd,{width:"100%",value:G,onChange:function(ye,Pe){return Y(Pe)}})}),(0,e.jsx)(d.Ki.Item,{label:"Playtime",children:(0,e.jsx)(d.Q7,{value:Z,minValue:0,maxValue:3600,onChange:function(ye,Pe){return V(Pe)},format:function(ye){return(0,p.fU)((0,o.LI)(ye*10,0))}})}),(0,e.jsx)(d.Ki.Item,{label:"Artist",children:(0,e.jsx)(d.pd,{width:"100%",value:X,onChange:function(ye,Pe){return U(Pe)}})}),(0,e.jsx)(d.Ki.Item,{label:"Genre",children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{grow:1,children:We?(0,e.jsx)(d.pd,{width:"100%",value:ee,onChange:function(ye,Pe){return ne(Pe)}}):(0,e.jsx)(d.az,{children:ee})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n.Checkbox,{icon:We?"lock-open":"lock",color:We?"good":"bad",onClick:function(){return c()}})})]})}),(0,e.jsx)(d.Ki.Item,{label:"Secret",children:(0,e.jsx)(d.$n.Checkbox,{checked:le,onClick:function(){return ue(!le)}})}),(0,e.jsx)(d.Ki.Item,{label:"Lobby",children:(0,e.jsx)(d.$n.Checkbox,{checked:xe,onClick:function(){return me(!xe)}})})]}),(0,e.jsx)(d.cG,{}),(0,e.jsx)(d.$n,{disabled:!(W&&G&&Z&&X&&ee),onClick:function(){return v("add_new_track",{title:W,url:G,duration:Z,artist:X,genre:ee,secret:le,lobby:xe})},children:"Add new Track"})]})})]})]})})}},7881:function(I,g,n){"use strict";n.r(g),n.d(g,{LawManager:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103);function s(){return s=Object.assign||function(l){for(var v=1;v=0)&&(u[j]=l[j]);return u}var p=function(l){var v=(0,o.Oc)().data,u=v.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",u]}):"",(0,e.jsx)(x,{})]})})},x=function(l){var v=(0,o.QY)("lawsTabIndex",0),u=v[0],h=v[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(c,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:u===0,onClick:function(){return h(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:u===1,onClick:function(){return h(1)},children:"Law Sets"})]}),j[u]]})},a=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.ion_law_nr,E=h.ion_law,C=h.zeroth_law,O=h.inherent_law,_=h.supplied_law,b=h.supplied_law_position,D=h.zeroth_laws,S=h.has_zeroth_laws,A=h.ion_laws,R=h.has_ion_laws,L=h.inherent_laws,W=h.has_inherent_laws,F=h.supplied_laws,$=h.has_supplied_laws,G=h.isAI,Y=h.isMalf,q=h.isAdmin,Z=h.channel,V=h.channels,z=D.map(function(X){return X.zero=!0,X}).concat(L);return(0,e.jsxs)(t.wn,{children:[R?(0,e.jsx)(f,{laws:A,title:j+" Laws:",mt:-2}):"",S||W?(0,e.jsx)(f,{laws:z,title:"Inherent Laws",mt:-2}):"",$?(0,e.jsx)(f,{laws:F,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:V.map(function(X){return(0,e.jsx)(t.$n,{selected:Z===X.channel,onClick:function(){return u("law_channel",{law_channel:X.channel})},children:X.channel},X.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return u("state_laws")},children:"State Laws"})}),G?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return u("notify_laws")},children:"Notify"})}):""]})}),Y?(0,e.jsx)(t.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),q&&!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:C,fluid:!0,onChange:function(X,U){return u("change_zeroth_law",{val:U})}})}),(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 u("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onChange:function(X,U){return u("change_ion_law",{val:U})}})}),(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 u("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(X,U){return u("change_inherent_law",{val:U})}})}),(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 u("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:_,fluid:!0,onChange:function(X,U){return u("change_supplied_law",{val:U})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("change_supplied_law_position")},children:b})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return u("add_supplied_law")},children:"Add"})})]})]})}):""]})},f=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.isMalf,E=h.isAdmin,C=l.laws,O=l.title,_=l.noButtons,b=d(l,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:O},b,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),j&&!_?(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"})]}):""]}),C.map(function(D){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[D.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:D.zero?"bad":void 0,children:D.law}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:D.state,onClick:function(){return u("state_law",{ref:D.ref,state_law:!D.state})},children:D.state?"Yes":"No"})}),j&&!_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:D.zero&&!E,icon:"pen",onClick:function(){return u("edit_law",{edit_law:D.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:D.zero&&!E,color:"bad",icon:"trash",onClick:function(){return u("delete_law",{delete_law:D.ref})},children:"Delete"})})]}):""]},D.index)})]})}))},c=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.isMalf,E=h.law_sets,C=h.ion_law_nr;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),E.length?E.map(function(O){return(0,e.jsxs)(t.wn,{title:O.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!j,icon:"sync",onClick:function(){return u("transfer_laws",{transfer_laws:O.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return u("state_law_set",{state_law_set:O.ref})},children:"State Laws"})]}),children:[O.laws.has_ion_laws?(0,e.jsx)(f,{noButtons:!0,laws:O.laws.ion_laws,title:C+" Laws:"}):"",O.laws.has_zeroth_laws||O.laws.has_inherent_laws?(0,e.jsx)(f,{noButtons:!0,laws:O.laws.zeroth_laws.concat(O.laws.inherent_laws),title:O.header}):"",O.laws.has_supplied_laws?(0,e.jsx)(f,{noButtons:!0,laws:O.laws.supplied_laws,title:"Supplied Laws"}):""]},O.name)}):""]})}},94979:function(I,g,n){"use strict";n.r(g),n.d(g,{ListInputModal:function(){return a}});var e=n(62161),o=n(28277),t=n(6544),r=n(7081),s=n(16754),d=n(42103),p=n(5335),x=n(44149),a=function(l){var v=(0,r.Oc)(),u=v.act,h=v.data,j=h.items,E=j===void 0?[]:j,C=h.message,O=C===void 0?"":C,_=h.init_value,b=h.large_buttons,D=h.timeout,S=h.title,A=(0,o.useState)(E.indexOf(_)),R=A[0],L=A[1],W=(0,o.useState)(E.length>9),F=W[0],$=W[1],G=(0,o.useState)(""),Y=G[0],q=G[1],Z=function(ie){var le=ee.length-1;if(ie===t.R)if(R===null||R===le){var ue;L(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var ge;L(R+1),(ge=document.getElementById((R+1).toString()))==null||ge.scrollIntoView()}else if(ie===t.gf)if(R===null||R===0){var xe;L(le),(xe=document.getElementById(le.toString()))==null||xe.scrollIntoView()}else{var me;L(R-1),(me=document.getElementById((R-1).toString()))==null||me.scrollIntoView()}},V=function(ie){ie!==R&&L(ie)},z=function(){$(!1),$(!0)},X=function(ie){var le=String.fromCharCode(ie),ue=E.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(ue){var ge,xe=E.indexOf(ue);L(xe),(ge=document.getElementById(xe.toString()))==null||ge.scrollIntoView()}},U=function(ie){var le;ie!==Y&&(q(ie),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())},Q=function(){$(!F),q("")},ee=E.filter(function(ie){return ie==null?void 0:ie.toLowerCase().includes(Y.toLowerCase())}),ne=325+Math.ceil(O.length/3)+(b?5:0);return F||setTimeout(function(){var ie;return(ie=document.getElementById(R.toString()))==null?void 0:ie.focus()},1),(0,e.jsxs)(d.p8,{title:S,width:325,height:ne,children:[D&&(0,e.jsx)(x.Loader,{value:D}),(0,e.jsx)(d.p8.Content,{onKeyDown:function(ie){var le=window.event?ie.which:ie.keyCode;(le===t.R||le===t.gf)&&(ie.preventDefault(),Z(le)),le===t.Ri&&(ie.preventDefault(),u("submit",{entry:ee[R]})),!F&&le>=t.W8&&le<=t.bh&&(ie.preventDefault(),X(le)),le===t.s6&&(ie.preventDefault(),u("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:F?"search":"font",selected:!0,tooltip:F?"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 Q()}}),className:"ListInput__Section",fill:!0,title:O,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(f,{filteredItems:ee,onClick:V,onFocusSearch:z,searchBarVisible:F,selected:R})}),F&&(0,e.jsx)(c,{filteredItems:ee,onSearch:U,searchQuery:Y,selected:R}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(p.InputButtons,{input:ee[R]})})]})})})]})},f=function(l){var v=(0,r.Oc)().act,u=l.filteredItems,h=l.onClick,j=l.onFocusSearch,E=l.searchBarVisible,C=l.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),u.map(function(O,_){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return h(_)},onDoubleClick:function(b){b.preventDefault(),v("submit",{entry:u[C]})},onKeyDown:function(b){var D=window.event?b.which:b.keyCode;E&&D>=t.W8&&D<=t.bh&&(b.preventDefault(),j())},selected:_===C,style:{animation:"none",transition:"none"},children:O.replace(/^\w/,function(b){return b.toUpperCase()})},_)})]})},c=function(l){var v=(0,r.Oc)().act,u=l.filteredItems,h=l.onSearch,j=l.searchQuery,E=l.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(C){C.preventDefault(),v("submit",{entry:u[E]})},onInput:function(C,O){return h(O)},placeholder:"Search...",value:j})}},30373:function(I,g,n){"use strict";n.r(g),n.d(g,{LookingGlass:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.supportedPrograms,c=a.currentProgram,l=a.immersion,v=a.gravity,u=Math.min(180+f.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:u,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:f.map(function(h){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:h===c,onClick:function(){return x("program",{program:h})},children:h},h)})}),(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:v,onClick:function(){return x("gravity")},children:v?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:l,onClick:function(){return x("immersion")},children:l?"Enabled":"Disabled"})})]})})]})})}},88504:function(I,g,n){"use strict";n.r(g),n.d(g,{MechaControlConsole:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.beacons,l=c===void 0?[]:c,v=f.stored_data,u=v===void 0?[]:v;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[u.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return a("clear_log")}}),children: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,o.jT)(h.message)})]},h.time)})})}):"",l.length&&l.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 a("send_message",{mt:h.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:h.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("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,o.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})}):""]})},h.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(I,g,n){"use strict";n.r(g),n.d(g,{Medbot:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.open,l=a.beaker,v=a.beaker_total,u=a.beaker_max,h=a.locked,j=a.heal_threshold,E=a.heal_threshold_max,C=a.injection_amount_min,O=a.injection_amount,_=a.injection_amount_max,b=a.use_beaker,D=a.declare_treatment,S=a.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return x("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:c?"bad":"good",children:c?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:l&&(0,e.jsxs)(t.z2,{value:v,maxValue:u,children:[v," / ",u]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:h?"good":"bad",children:h?"Locked":"Unlocked"})]})}),!h&&(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:E,value:j,onDrag:function(A,R){return x("adj_threshold",{val:R})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,minValue:C,maxValue:_,value:O,onDrag:function(A,R){return x("adj_inject",{val:R})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return x("use_beaker")},children:b?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return x("declaretreatment")},children:D?"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(I,g,n){"use strict";n.r(g),n.d(g,{MedicalRecords:function(){return v}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(86471),d=n(42103),p=n(35069),x=n(97049),a=n(3751),f={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},c=function(D){(0,s.modalOpen)("edit",{field:D.edit,value:D.value})},l=function(D){var S=(0,t.Oc)().act,A=D.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:A.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:[A.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:A.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:A.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[A.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:A.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:A.symptoms.map(function(R){return(0,e.jsxs)(r.Ki.Item,{label:R.stage+". "+R.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",R.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",R.aggressiveness]},R.stage)})})})]})})})},v=function(D){var S=(0,t.Oc)().data,A=S.authenticated,R=S.screen;if(!A)return(0,e.jsx)(d.p8,{width:800,height:380,children:(0,e.jsx)(d.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var L;return R===2?L=(0,e.jsx)(u,{}):R===3?L=(0,e.jsx)(h,{}):R===4?L=(0,e.jsx)(j,{}):R===5?L=(0,e.jsx)(O,{}):R===6&&(L=(0,e.jsx)(_,{})),(0,e.jsxs)(d.p8,{width:800,height:380,children:[(0,e.jsx)(s.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(d.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(p.LoginInfo,{}),(0,e.jsx)(a.TemporaryNotice,{}),(0,e.jsx)(b,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:L})]})]})},u=function(D){var S=(0,t.Oc)(),A=S.act,R=S.data,L=R.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(W,F){return A("search",{t1:F})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:L.map(function(W,F){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",onClick:function(){return A("d_rec",{d_rec:W.ref})},children:W.id+": "+W.name},F)})})]})},h=function(D){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"})]})},j=function(D){var S=(0,t.Oc)(),A=S.act,R=S.data,L=R.medical,W=R.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(E,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(C,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!L.empty,color:"bad",onClick:function(){return A("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(r.$n,{icon:W?"spinner":"print",disabled:W,iconSpin:!!W,ml:"0.5rem",onClick:function(){return A("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return A("screen",{screen:2})},children:"Back"})]})]})},E=function(D){var S=(0,t.Oc)().data,A=S.general;return!A||!A.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:A.fields.map(function(R,L){return(0,e.jsxs)(r.Ki.Item,{label:R.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:R.value}),!!R.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return c(R)}})]},L)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!A.has_photos&&A.photos.map(function(R,L){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:R.substr(1,R.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",L+1]},L)})})]})},C=function(D){var S=(0,t.Oc)(),A=S.act,R=S.data,L=R.medical;return!L||!L.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 A("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:L.fields.map(function(W,F){return(0,e.jsx)(r.Ki.Item,{label:W.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[W.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:W.line_break?"1rem":"initial",onClick:function(){return c(W)}})]})},F)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[L.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):L.comments.map(function(W,F){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:W.header}),(0,e.jsx)("br",{}),W.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return A("del_c",{del_c:F+1})}})]},F)}),(0,e.jsx)(r.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,s.modalOpen)("add_c")},children:"Add Entry"})]})]})},O=function(D){var S=(0,t.Oc)(),A=S.act,R=S.data,L=R.virus;return L.sort(function(W,F){return W.name>F.name?1:-1}),L.map(function(W,F){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return A("vir",{vir:W.D})},children:W.name}),(0,e.jsx)("br",{})]},F)})},_=function(D){var S=(0,t.Oc)().data,A=S.medbots;return A.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):A.map(function(R,L){return(0,e.jsx)(r.Nt,{open:!0,title:R.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:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:R.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:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},L)})},b=function(D){var S=(0,t.Oc)(),A=S.act,R=S.data,L=R.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:L===2,onClick:function(){return A("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:L===5,onClick:function(){return A("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:L===6,onClick:function(){return A("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:L===3,onClick:function(){return A("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,s.modalRegisterBodyOverride)("virus",l)},4477:function(I,g,n){"use strict";n.r(g),n.d(g,{MentorTicketPanel:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d={open:"Open",resolved:"Resolved",unknown:"Unknown"},p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.id,v=c.name,u=c.state,h=c.opened_at,j=c.closed_at,E=c.opened_at_date,C=c.closed_at_date,O=c.actions,_=c.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return f("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return f("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:d[u]}),d[u]===d.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:E+" ("+(0,o.Mg)((0,o.LI)(h/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[C+" ("+(0,o.Mg)((0,o.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return f("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(b,D){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[b]}},D)})})]})})})})}},26948:function(I,g,n){"use strict";n.r(g),n.d(g,{MessageMonitorContent:function(){return d}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(5871),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.linkedServer,l=(0,o.useState)(0),v=l[0],u=l[1],h=[];return h[0]=(0,e.jsx)(s.MessageMonitorMain,{}),h[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:c.pda_msgs,pda:!0}),h[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:c.rc_msgs,rc:!0}),h[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),h[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:v===0,onClick:function(){return u(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:v===1,onClick:function(){return u(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:v===2,onClick:function(){return u(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:v===3,onClick:function(){return u(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:v===4,onClick:function(){return u(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return a("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:h[v]})]})}},9760:function(I,g,n){"use strict";n.r(g),n.d(g,{MessageMonitorHack:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(72859),s=function(d){var p=(0,o.Oc)().data,x=p.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:x?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(I,g,n){"use strict";n.r(g),n.d(g,{MessageMonitorLogin:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(72859),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(c,l){return x("auth",{key:l})}})]}),!!f&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return x("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(I,g,n){"use strict";n.r(g),n.d(g,{MessageMonitorAdmin:function(){return p},MessageMonitorLogs:function(){return d},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return x}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return c("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:v.active,onClick:function(){return c("active")},children:"Server "+(v.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return c("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},d=function(a){var f=(0,t.Oc)().act,c=a.logs,l=a.pda,v=a.rc;return(0,e.jsx)(r.wn,{title:l?"PDA Logs":v?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return f(l?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:c.map(function(u,h){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:h%2,children:(0,e.jsx)(r.wn,{title:u.sender+" -> "+u.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return f("delete",{id:u.ref,type:v?"rc":"pda"})}}),children:v?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:u.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:u.id_auth==="Unauthenticated"?"bad":"good",children:(0,o.jT)(u.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:u.stamp})]}):u.message})},u.ref)})})})},p=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.possibleRecipients,u=l.customsender,h=l.customrecepient,j=l.customjob,E=l.custommessage,C=Object.keys(v);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:u,onChange:function(O,_){return c("set_sender",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:j,onChange:function(O,_){return c("set_sender_job",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{selected:h,options:C,width:"100%",mb:-.7,onSelected:function(O){return c("set_recipient",{val:v[O]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:E,onChange:function(O,_){return c("set_message",{val:_})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return c("send_message")},children:"Send Message"})]})},x=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:v.spamFilter.map(function(u){return(0,e.jsx)(r.Ki.Item,{label:u.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return c("deltoken",{deltoken:u.index})},children:"Delete"}),children:u.token},u.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return c("addtoken")},children:"Add New Entry"})]})}},34692:function(I,g,n){"use strict";n.r(g),n.d(g,{MessageMonitor:function(){return a}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(3751),d=n(26948),p=n(9760),x=n(38860),a=function(f){var c=(0,o.Oc)().data,l=c.auth,v=c.linkedServer,u=c.hacking,h=c.emag,j;return u||h?j=(0,e.jsx)(p.MessageMonitorHack,{}):l?v?j=(0,e.jsx)(d.MessageMonitorContent,{}):j=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):j=(0,e.jsx)(x.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),j]})})}},25029:function(I,g,n){"use strict";n.r(g)},41785:function(I,g,n){"use strict";n.r(g),n.d(g,{Microwave:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.config,f=p.data,c=f.broken,l=f.operating,v=f.dirty,u=f.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||l&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||v&&(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!"]})})||u.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return 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:u.map(function(h){return(0,e.jsxs)(t.Ki.Item,{label:h.name,children:[h.amt," ",h.extra]},h.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[a.title," is empty."]})})})})}},10844:function(I,g,n){"use strict";n.r(g),n.d(g,{MiningOreProcessingConsole:function(){return p}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=n(22588),p=function(l){var v=(0,t.Oc)(),u=v.act,h=v.data,j=h.unclaimedPoints,E=h.power,C=h.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(d.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return u("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:C,onClick:function(){return u("speed_toggle")},children:C?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:E,onClick:function(){return u("power")},children:E?"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:j<1,icon:"download",onClick:function(){return u("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:j})})})}),(0,e.jsx)(c,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],f=function(l,v){return a.indexOf(l.ore)===-1||a.indexOf(v.ore)===-1?l.ore-v.ore:a.indexOf(v.ore)-a.indexOf(l.ore)},c=function(l){var v=(0,t.Oc)(),u=v.act,h=v.data,j=h.ores,E=h.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return u("showAllOres")},children:E?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:j.length&&j.sort(f).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(C.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:C.processing===0&&"red"||C.processing===1&&"green"||C.processing===2&&"blue"||C.processing===3&&"yellow"||void 0,options:x,selected:x[C.processing],onSelected:function(O){return u("toggleSmelting",{ore:C.ore,set:x.indexOf(O)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:C.amount})})},C.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(I,g,n){"use strict";n.r(g),n.d(g,{MiningStackingConsole:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.stacktypes,l=f.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:l,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(v,u){return a("change_stack",{amt:u})}})}),(0,e.jsx)(r.Ki.Divider,{}),c.length&&c.sort().map(function(v){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(v.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:v.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:v.amt})},v.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(I,g,n){"use strict";n.r(g),n.d(g,{MiningVendor:function(){return c}});var e=n(62161),o=n(61282),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=n(22588);function x(){return x=Object.assign||function(h){for(var j=1;j=0)&&(E[O]=h[O]);return E}var f={Alphabetical:function(h,j){return h.name>j.name},"By availability":function(h,j){return-(h.affordable-j.affordable)},"By price":function(h,j){return h.price-j.price}},c=function(h){var j=function($){b($)},E=function($){A($)},C=function($){W($)},O=(0,t.useState)(""),_=O[0],b=O[1],D=(0,t.useState)("Alphabetical"),S=D[0],A=D[1],R=(0,t.useState)(!1),L=R[0],W=R[1];return(0,e.jsx)(d.p8,{width:400,height:450,children:(0,e.jsxs)(d.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(p.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(v,{searchText:_,sortOrder:S,descending:L,onSearchText:j,onSortOrder:E,onDescending:C}),(0,e.jsx)(l,{searchText:_,sortOrder:S,descending:L})]})})},l=function(h){var j=(0,r.Oc)(),E=j.act,C=j.data,O=C.has_id,_=C.id,b=C.items,D=(0,o.XZ)(h.searchText,function(R){return R[0]}),S=!1,A=Object.entries(b).map(function(R,L){var W=Object.entries(R[1]).filter(D).map(function(F){return F[1].affordable=+(O&&_.points>=F[1].price),F[1]}).sort(f[h.sortOrder]);if(W.length!==0)return h.descending&&(W=W.reverse()),S=!0,(0,e.jsx)(u,{title:R[0],items:W},R[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:S?A:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(h){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:h.searchText,width:"100%",onInput:function(j,E){return h.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:h.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(j){return h.onSortOrder(j)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:h.descending?"arrow-down":"arrow-up",height:"19px",tooltip:h.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return h.onDescending(!h.descending)}})})]})})},u=function(h){var j=(0,r.Oc)(),E=j.act,C=j.data,O=C.has_id,_=C.id,b=h.title,D=h.items,S=a(h,["title","items"]);return(0,e.jsx)(s.Nt,x({open:!0,title:b},S,{children:D.map(function(A){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:A.name}),(0,e.jsx)(s.$n,{disabled:!O||_.points=450?"Overcharged":j>=250?"Good Charge":"Low Charge":j>=250?"NIF Power Requirement met.":j>=150?"Fluctuations in available power.":"Power failure imminent."},u=function(j){var E=(0,t.Oc)(),C=E.act,O=E.config,_=E.data,b=_.nif_percent,D=_.nif_stat,S=_.nutrition,A=_.isSynthetic,R=_.modules,L=j.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:b,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[l(D,b)," (",(0,e.jsx)(r.zv,{value:b}),"%)"]})}),(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:v(S,A)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:R.map(function(W){return(0,e.jsx)(r.Ki.Item,{label:W.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 C("uninstall",{module:W.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return L(W)},tooltip:"View Information",tooltipPosition:"left"})]}),children:W.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:W.active,content:W.stat_text,onClick:function(){return C("toggle_module",{module:W.ref})}})||(0,e.jsx)(r.az,{children:W.stat_text})},W.ref)})})})]})},h=function(j){var E=(0,t.Oc)(),C=E.act,O=E.data,_=O.valid_themes,b=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:b||"default",options:_,onSelected:function(D){return C("setTheme",{theme:D})}})}),b?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){C("setTheme",{theme:null})}})}):""]})})})}},14910:function(I,g,n){"use strict";n.r(g),n.d(g,{NTNetRelay:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(72859),d=function(a){var f=(0,o.Oc)().data,c=f.dos_crashed,l=(0,e.jsx)(p,{});return c&&(l=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:c?700:500,height:c?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l})})},p=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.enabled,u=l.dos_overload,h=l.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return c("toggle")},children:"Relay "+(v?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[u," / ",h," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return c("purge")},children:"Purge network blacklist"})})]})})},x=function(a){var f=(0,o.Oc)().act;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return f("restart")},children:"Purge buffered traffic"})})]})}},26511:function(I,g,n){"use strict";n.r(g),n.d(g,{Newscaster:function(){return h}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=n(3751),p="Main Menu",x="New Channel",a="View List",f="New Story",c="Print",l="New Wanted",v="View Wanted",u="View Selected Channel",h=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.screen,Y=$.user;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.TemporaryNotice,{decode:!0}),(0,e.jsx)(j,{})]})})},j=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.user,Y=(0,t.QY)("screen",p),q=Y[0],Z=Y[1],V=R[q];return(0,e.jsx)(r.az,{children:(0,e.jsx)(V,{setScreen:Z})})},E=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.securityCaster,Y=$.wanted_issue,q=L.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[Y&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return q(v)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return q(a)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return q(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return q(f)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return q(c)},children:"Print Newspaper"})]}),!!G&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return q(l)},children:'Manage "Wanted" Issue'})})]})},C=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.channel_name,Y=$.c_locked,q=$.user,Z=L.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(p)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(G),onInput:function(V,z){return F("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:q}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:Y?"lock":"lock-open",selected:!Y,onClick:function(){return F("set_channel_lock")},children:Y?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return F("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(p)},children:"Cancel"})]})},O=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.channels,Y=L.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Y(p)},children:"Back"}),children:G.map(function(q){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:q.admin?"good":q.censored?"bad":"",onClick:function(){F("show_channel",{show_channel:q.ref}),Y(u)},children:(0,o.jT)(q.name)},q.name)})})},_=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.channel_name,Y=$.user,q=$.title,Z=$.msg,V=$.photo_data,z=L.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return z(p)},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 F("set_channel_receiving")},children:G||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:Y}),(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:q||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return F("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:Z||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return F("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 F("set_attachment")},children:V?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return F("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return z(p)},children:"Cancel"})]})},b=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.total_num,Y=$.active_num,q=$.message_num,Z=$.paper_remaining,V=L.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return V(p)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",G," Feed channels,"," ",Y," of which are active, and a total of ",q," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[Z*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return F("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return V(p)},children:"Cancel"})]})},D=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.channel_name,Y=$.msg,q=$.photo_data,Z=$.user,V=$.wanted_issue,z=L.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return z(p)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!V&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(G),onInput:function(X,U){return F("set_channel_name",{val:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(Y),onInput:function(X,U){return F("set_wanted_desc",{val:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return F("set_attachment")},children:q?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:Z})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return F("submit_wanted")},children:"Submit Wanted Issue"}),!!V&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return F("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return z(p)},children:"Cancel"})]})},S=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.wanted_issue,Y=L.setScreen;return G?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Y(p)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,o.jT)(G.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,o.jT)(G.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,o.jT)(G.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:G.img&&(0,e.jsx)("img",{src:G.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Y(p)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},A=function(L){var W=(0,t.Oc)(),F=W.act,$=W.data,G=$.viewing_channel,Y=$.securityCaster,q=$.company,Z=L.setScreen;return G?(0,e.jsxs)(r.wn,{title:(0,o.jT)(G.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!Y&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return F("toggle_d_notice",{ref:G.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(a)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:Y&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return F("censor_channel_author",{ref:G.ref})},children:(0,o.jT)(G.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(G.author)})})}),!!G.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 ",q," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!G.messages.length&&G.messages.map(function(V){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(V.body),!!V.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+V.img}),(0,o.jT)(V.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(V.author)," -"," ",V.timestamp,"]"]}),!!Y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return F("censor_channel_story_body",{ref:V.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return F("censor_channel_story_author",{ref:V.ref})},children:"Censor Author"})]})]},V.ref)})||!G.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 Z(a)},children:"Back"}),children:"The channel you were looking for no longer exists."})},R={};R[p]=E,R[x]=C,R[a]=O,R[f]=_,R[c]=b,R[l]=D,R[v]=S,R[u]=A},4418:function(I,g,n){"use strict";n.r(g),n.d(g,{NoticeBoard:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:f.length?(0,e.jsx)(t.Ki,{children:f.map(function(c,l){return(0,e.jsxs)(t.Ki.Item,{label:c.name,children:[c.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return x("look",{ref:c.ref})},children:"Look"})||c.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return x("read",{ref:c.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("write",{ref:c.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return x("remove",{ref:c.ref})},children:"Remove"})]},l)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosAccessDecrypter:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(39841),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.message,l=f.running,v=f.rate,u=f.factor,h=f.regions,j=function(C){for(var O="";O.lengthu?O+="0":O+="1";return O},E=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:c&&(0,e.jsx)(t.IC,{children:c})||l&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",v," PHash/s",(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.az,{children:j(E)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return a("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:h.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosArcade:function(){return d}});var e=n(62161),o=n(31200),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.PlayerHitpoints,l=f.PlayerMP,v=f.PauseState,u=f.Status,h=f.Hitpoints,j=f.BossID,E=f.GameActive,C=f.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value: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)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:l,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:v===1?"#1b3622":"#471915",children:u})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:h,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:h}),"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,o.l)(j)})})]})]})}),(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:E===0||v===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:E===0||v===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:E===0||v===1,onClick:function(){return a("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:E===1,onClick:function(){return a("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:E===1,onClick:function(){return a("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:C>=1?"good":"normal",children:["Earned Tickets: ",C]})]})})})}},98669:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosAtmosControl:function(){return r}});var e=n(62161),o=n(42103),t=n(74737),r=function(){return(0,e.jsx)(o.Zm,{width:870,height:708,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosCameraConsole:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(18490),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.mapRef,l=f.activeCamera,v=f.cameras,u=(0,s.selectCameras)(v),h=(0,s.prevNextCamera)(u,l),j=h[0],E=h[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),l&&l.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!j,onClick:function(){return a("switch_camera",{name:j})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!E,onClick:function(){return a("switch_camera",{name:E})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return a("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return a("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return a("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return a("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:c,type:"map"}})]})]})})}},77580:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosCommunicationsConsole:function(){return r}});var e=n(62161),o=n(42103),t=n(34116),r=function(){return(0,e.jsx)(o.Zm,{width:400,height:600,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},50902:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosConfiguration:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.PC_device_theme,c=a.power_usage,l=a.battery_exists,v=a.battery,u=v===void 0?{}:v,h=a.disk_size,j=a.disk_used,E=a.hardware,C=E===void 0?[]:E;return(0,e.jsx)(r.Zm,{theme:f,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: ",c,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!l&&"average",children:l?(0,e.jsxs)(t.z2,{value:u.charge,minValue:0,maxValue:u.max,ranges:{good:[u.max/2,1/0],average:[u.max/4,u.max/2],bad:[-1/0,u.max/4]},children:[u.charge," / ",u.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:j,minValue:0,maxValue:h,color:"good",children:[j," GQ / ",h," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:C.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(I,g,n){"use strict";n.r(g),n.d(g,{NtosCrewManifest:function(){return r}});var e=n(62161),o=n(42103),t=n(58044),r=function(){return(0,e.jsx)(o.Zm,{width:800,height:600,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosCrewMonitor:function(){return s}});var e=n(62161),o=n(28277),t=n(42103),r=n(70117),s=function(){var d=function(h){f(h)},p=function(h){v(h)},x=(0,o.useState)(0),a=x[0],f=x[1],c=(0,o.useState)(1),l=c[0],v=c[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:a,zoom:l,onTabIndex:d,onZoom:p})})})}},31765:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosDigitalWarrant:function(){return d}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.warrantname,h=v.warrantcharges,j=v.warrantauth,E=v.type,C=v.allwarrants,O=(0,e.jsx)(p,{});return j&&(O=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:O})})},p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return l("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(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=f.type,h=v.allwarrants,j=(0,o.pb)(function(E){return E.arrestsearch===u})(h);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:u==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:u==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),j.length&&j.map(function(E){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:E.warrantname}),(0,e.jsx)(r.XI.Cell,{children:E.charges}),(0,e.jsx)(r.XI.Cell,{children:E.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrant",{id:E.id})}})})]},E.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",u," warrants found."]})})]})},a=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.warrantname,h=v.warrantcharges,j=v.warrantauth,E=v.type,C=E==="arrest",O=E==="arrest"?"Name":"Location",_=E==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return l("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,buttons:C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}}),children:u}),(0,e.jsx)(r.Ki.Item,{label:_,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantcharges")}}),children:h}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return l("editwarrantauth")}}),children:j})]})})}},99538:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosEmailAdministration:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(46189),d=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.error,j=u.cur_title,E=u.current_account,C=(0,e.jsx)(p,{});return h?C=(0,e.jsx)(x,{}):j?C=(0,e.jsx)(a,{}):E&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:C})})},p=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.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 v("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),h.map(function(j){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return v("viewaccount",{viewaccount:j.uid})},children:j.login},j.uid)})]})},x=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("back")},children:"Back"}),children:h})},a=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data;return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},f=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.error,j=u.msg_title,E=u.msg_body,C=u.msg_timestamp,O=u.msg_source,_=u.current_account,b=u.cur_suspended,D=u.messages,S=u.accounts;return(0,e.jsxs)(t.wn,{title:"Viewing "+_+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("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:b?"bad":"",icon:"ban",tooltip:(b?"Uns":"S")+"uspend Account?",onClick:function(){return v("ban")},children:b?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return v("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{level:2,title:"Messages",children:D.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"})]}),D.map(function(A){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:A.source}),(0,e.jsx)(t.XI.Cell,{children:A.title}),(0,e.jsx)(t.XI.Cell,{children:A.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return v("viewmail",{viewmail:A.uid})},children:"View"})})]},A.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},46189:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosEmailClient:function(){return d},NtosEmailClientViewMessage:function(){return f}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.PC_device_theme,_=C.error,b=C.downloading,D=C.current_account,S=(0,e.jsx)(u,{});return _?S=(0,e.jsx)(v,{error:_}):b?S=(0,e.jsx)(p,{}):D&&(S=(0,e.jsx)(x,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:O,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:S})})},p=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.down_filename,_=C.down_progress,b=C.down_size,D=C.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," (",b," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:D})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:_,maxValue:b,children:_+"/"+b+" ("+(0,o.Mg)(_/b*100,1)+"%)"})})]})})},x=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.current_account,_=C.addressbook,b=C.new_message,D=C.cur_title,S=(0,e.jsx)(a,{});return _?S=(0,e.jsx)(c,{}):b?S=(0,e.jsx)(l,{}):D&&(S=(0,e.jsx)(f,{})),(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 E("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return E("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return E("logout")}})]}),children:S})},a=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.current_account,_=C.folder,b=C.messagecount,D=C.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:_==="Inbox",onClick:function(){return E("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:_==="Spam",onClick:function(){return E("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:_==="Deleted",onClick:function(){return E("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),b&&(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"})]}),D.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 E("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return E("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return E("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",_,"."]})]})},f=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=h.administrator,_=C.cur_title,b=C.cur_source,D=C.cur_timestamp,S=C.cur_body,A=C.cur_hasattachment,R=C.cur_attachment_filename,L=C.cur_attachment_size,W=C.cur_uid;return(0,e.jsx)(r.wn,{title:_,buttons:O?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return E("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return E("reply",{reply:W})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return E("delete",{delete:W})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return E("save",{save:W})}}),A&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return E("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return E("cancel",{cancel:W})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:b}),(0,e.jsx)(r.Ki.Item,{label:"At",children:D}),A&&!O&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[R," (",L,"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}})})})]})})},c=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.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 E("set_recipient",{set_recipient:null})}}),children:O.map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:_.login})},children:_.login},_.login)})})},l=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.current_account,_=C.msg_title,b=C.msg_recipient,D=C.msg_body,S=C.msg_hasattachment,A=C.msg_attachment_filename,R=C.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 E("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function(L,W){return E("edit_title",{val:W})}})}),(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:b,onInput:function(L,W){return E("edit_recipient",{val:W})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return E("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 E("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return E("addattachment")},children:"Add Attachment"}),children:S&&(0,e.jsxs)(r.az,{inline:!0,children:[A," (",R,"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:D}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return E("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},v=function(h){var j=(0,t.Oc)().act,E=h.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return j("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:E})})},u=function(h){var j=(0,t.Oc)(),E=j.act,C=j.data,O=C.stored_login,_=C.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(b,D){return E("edit_login",{val:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function(b,D){return E("edit_password",{val:D})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return E("login")},children:"Log In"})]})}},77127:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosFileManager:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.PC_device_theme,l=f.usbconnected,v=f.filename,u=f.filedata,h=f.error,j=f.files,E=j===void 0?[]:j,C=f.usbfiles,O=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{resizable:!0,theme:c,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[v&&(0,e.jsx)(t.wn,{title:"Viewing File "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return a("PRG_closefile")},children:"Close"})]}),children:u&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:u}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(d,{files:E,usbconnected:l,onUpload:function(_){return a("PRG_copytousb",{uid:_})},onDelete:function(_){return a("PRG_deletefile",{uid:_})},onOpen:function(_){return a("PRG_openfile",{uid:_})},onRename:function(_,b){return a("PRG_rename",{uid:_,new_name:b})},onDuplicate:function(_){return a("PRG_clone",{uid:_})}})}),l&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(d,{usbmode:!0,files:O,usbconnected:l,onUpload:function(_){return a("PRG_copyfromusb",{uid:_})},onDelete:function(_){return a("PRG_deletefile",{uid:_})},onOpen:function(_){return a("PRG_openfile",{uid:_})},onRename:function(_,b){return a("PRG_rename",{uid:_,new_name:b})},onDuplicate:function(_){return a("PRG_clone",{uid:_})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),h&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return a("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:h})})]})]})})},d=function(p){var x=p.files,a=x===void 0?[]:x,f=p.usbconnected,c=p.usbmode,l=p.onUpload,v=p.onDelete,u=p.onRename,h=p.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"})]}),a.map(function(j){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:j.undeletable?j.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:j.name,tooltip:"Rename",onCommit:function(E,C){return u(j.uid,C)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return h(j.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:j.type}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!j.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return v(j.uid)}}),!!f&&(c?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return l(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return l(j.uid)}}))]})})]},j.name)})]})}},39925:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosIdentificationComputer:function(){return r}});var e=n(62161),o=n(42103),t=n(39841),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},97357:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosMain:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.device_theme,l=f.programs,v=l===void 0?[]:l,u=f.has_light,h=f.light_on,j=f.comp_light_color,E=f.removable_media,C=E===void 0?[]:E,O=f.login,_=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{title:c==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:c,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!u&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:h,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",h?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return a("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:j})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_.IDName,onClick:function(){return a("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",_.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",_.IDJob]})]})}),!!C.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:C.map(function(b){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return a("PC_Eject_Disk",{name:b})},children:b})})},b)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:v.map(function(b){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:s[b.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:b.name})},children:b.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!b.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:b.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:b.autorun,onClick:function(){return a("PC_setautorun",{name:b.name})},children:"AR"})})]},b.name)})})})]})})}},12171:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNetChat:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.can_admin,c=a.adminmode,l=a.authed,v=a.username,u=a.active_channel,h=a.is_operator,j=a.all_channels,E=j===void 0?[]:j,C=a.clients,O=C===void 0?[]:C,_=a.messages,b=_===void 0?[]:_,D=u!==null,S=l||c;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(A,R){return x("PRG_newchannel",{new_channel_name:R})},children:"New Channel..."}),E.map(function(A){return(0,e.jsx)(t.$n,{fluid:!0,selected:A.id===u,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:A.id})},children:A.chan},A.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:v,onCommit:function(A,R){return x("PRG_changename",{new_name:R})},children:v+"..."}),!!f&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:c?"bad":"good",onClick:function(){return x("PRG_toggleadmin")},children:"ADMIN MODE: "+(c?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:D&&(S?b.map(function(A){return(0,e.jsx)(t.az,{children:A.msg},A.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(A,R){return x("PRG_speak",{message:R})}})]}),(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(A){return(0,e.jsx)(t.az,{children:A.name},A.name)})}),D&&S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(A,R){return x("PRG_savelog",{log_name:R})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return x("PRG_leavechannel")},children:"Leave Channel"})]}),!!h&&l&&(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(A,R){return x("PRG_renamechannel",{new_name:R})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(A,R){return x("PRG_setpassword",{new_password:R})},children:"Set Password..."})]})]})]})})})})})}},18515:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.relays,l=c===void 0?[]:c,v=f.focus,u=f.target,h=f.speed,j=f.overload,E=f.capacity,C=f.error;if(C)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:C}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var O=function(b){for(var D="",S=j/E;D.lengthS?D+="0":D+="1";return D},_=45;return u?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",h," GQ/s"]}),(0,e.jsx)(t.az,{children:O(_)}),(0,e.jsx)(t.az,{children:O(_)}),(0,e.jsx)(t.az,{children:O(_)}),(0,e.jsx)(t.az,{children:O(_)}),(0,e.jsx)(t.az,{children:O(_)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:l.map(function(b){return(0,e.jsx)(t.$n,{selected:v===b.id,onClick:function(){return a("PRG_target_relay",{targid:b.id})},children:b.id},b.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!v,mt:1,onClick:function(){return a("PRG_execute")},children:"EXECUTE"})]})}},74988:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNetDownloader:function(){return d}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.PC_device_theme,v=c.disk_size,u=c.disk_used,h=c.downloadable_programs,j=h===void 0?[]:h,E=c.error,C=c.hacked_programs,O=C===void 0?[]:C,_=c.hackedavailable;return(0,e.jsx)(s.Zm,{theme:l,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:E}),(0,e.jsx)(r.$n,{onClick:function(){return f("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:u,minValue:0,maxValue:v,children:u+" GQ / "+v+" GQ"})})})}),(0,e.jsx)(r.wn,{children:j.map(function(b){return(0,e.jsx)(p,{program:b},b.filename)})}),!!_&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),O.map(function(b){return(0,e.jsx)(p,{program:b},b.filename)})]})]})})},p=function(x){var a=x.program,f=(0,t.Oc)(),c=f.act,l=f.data,v=l.disk_size,u=l.disk_used,h=l.downloadcompletion,j=l.downloading,E=l.downloadname,C=l.downloadsize,O=l.downloadspeed,_=l.downloads_queue,b=v-u;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:a.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[a.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:a.filename===E&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:C,value:h,children:[(0,o.Mg)(h/C*100,1),"%\xA0","("+O+"GQ/s)"]})||_.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return c("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>b,onClick:function(){return c("PRG_downloadfile",{filename:a.filename})},children:"Download"})})]}),a.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),a.size>b&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:a.fileinfo})]})}},69955:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNetMonitor:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.ntnetrelays,c=a.ntnetstatus,l=a.config_softwaredownload,v=a.config_peertopeer,u=a.config_communication,h=a.config_systemcontrol,j=a.idsalarm,E=a.idsstatus,C=a.ntnetmaxlogs,O=a.maxlogs,_=a.minlogs,b=a.banned_nids,D=a.ntnetlogs,S=D===void 0?[]:D;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:c?"power-off":"times",selected:c,onClick:function(){return x("toggleWireless")},children:c?"ENABLED":"DISABLED"}),children:f?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:f})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return x("toggle_function",{id:"1"})},children:l?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return x("toggle_function",{id:"2"})},children:v?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:u?"power-off":"times",selected:u,onClick:function(){return x("toggle_function",{id:"3"})},children:u?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:h?"power-off":"times",selected:h,onClick:function(){return x("toggle_function",{id:"4"})},children:h?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!j&&(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:b.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,onClick:function(){return x("toggleIDS")},children:E?"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:C,minValue:_,maxValue:O,width:"39px",onChange:function(A,R){return x("updatemaxlogs",{new_number:R})}})})]}),(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(A){return(0,e.jsx)(t.az,{className:"candystripe",children:A.entry},A.entry)})})]})]})})}},60056:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNetTransfer:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.error,j=u.downloading,E=u.uploading,C=u.upload_filelist,O=(0,e.jsx)(f,{});return h?O=(0,e.jsx)(d,{}):j?O=(0,e.jsx)(p,{}):E?O=(0,e.jsx)(x,{}):C.length&&(O=(0,e.jsx)(a,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:O})})},d=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.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 v("PRG_reset")},children:"Reset"}),children:["Additional Information: ",h]})},p=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.download_name,j=u.download_progress,E=u.download_size,C=u.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:h}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:j,maxValue:E,children:[j," / ",E," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return v("PRG_reset")},children:"Cancel Download"})})]})})},x=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.upload_clients,j=u.upload_filename,E=u.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:h}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:j}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:E?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return v("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return v("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return v("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",level:2,children:h.map(function(j){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return v("PRG_uploadfile",{uid:j.uid})},children:[j.filename," (",j.size,"GQ)"]},j.uid)})})]})},f=function(c){var l=(0,o.Oc)(),v=l.act,u=l.data,h=u.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return v("PRG_uploadmenu")},children:"Send File"}),children:h.length&&(0,e.jsx)(t.Ki,{children:h.map(function(j){return(0,e.jsxs)(t.Ki.Item,{label:j.uid,children:[!!j.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),j.filename,"\xA0 (",j.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return v("PRG_downloadfile",{uid:j.uid})},children:"Download"})]},j.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},95799:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosNewsBrowser:function(){return d}});var e=n(62161),o=n(31200),t=n(7081),r=n(16754),s=n(42103),d=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.article,h=v.download,j=v.message,E=(0,e.jsx)(x,{});return u?E=(0,e.jsx)(p,{}):h&&(E=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[j," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_clearmessage")}})]}),E]})})},p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.article;if(!u)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var h=u.title,j=u.cover,E=u.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"})]}),children:[!!j&&(0,e.jsx)("img",{src:(0,o.l)(j)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}})]})},x=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.showing_archived,h=v.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:u,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:h.length&&h.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:j.uid})}}),children:[j.size," GQ"]},j.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},a=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.download,h=u.download_progress,j=u.download_maxprogress,E=u.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:h,maxValue:j,children:[h," / ",j," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[E," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return l("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosOvermapNavigation:function(){return r}});var e=n(62161),o=n(42103),t=n(65912),r=function(){return(0,e.jsx)(o.Zm,{width:380,height:530,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosPowerMonitor:function(){return r}});var e=n(62161),o=n(42103),t=n(30889),r=function(){return(0,e.jsx)(o.Zm,{width:550,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosRCON:function(){return r}});var e=n(62161),o=n(42103),t=n(40932),r=function(){return(0,e.jsx)(o.Zm,{width:630,height:440,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosRevelation:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(c,l){return x("PRG_obfuscate",{new_name:l})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:f?"bad":"average",onClick:function(){return x("PRG_arm")},children:f?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!f,children:"ACTIVATE"})]})})})}},79389:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosShutoffMonitor:function(){return r}});var e=n(62161),o=n(42103),t=n(20563),r=function(){return(0,e.jsx)(o.Zm,{width:627,height:700,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosStationAlertConsole:function(){return r}});var e=n(62161),o=n(42103),t=n(20717),r=function(){return(0,e.jsx)(o.Zm,{width:315,height:500,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosSupermatterMonitor:function(){return r}});var e=n(62161),o=n(42103),t=n(18766),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:400,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},46756:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosUAV:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.current_uav,c=a.signal_strength,l=a.in_use,v=a.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:f&&f.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:f&&c||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:f&&(0,e.jsx)(t.$n,{icon:"power-off",selected:f.power,onClick:function(){return x("power_uav")},children:f.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:f&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:!f.power,onClick:function(){return x("view_uav")},children:f.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:v.length&&v.map(function(u){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:u.uavref})},children:u.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:u.uavref})}})})]},u.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},25268:function(I,g,n){"use strict";n.r(g),n.d(g,{NtosWordProcessor:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.PC_device_theme,c=a.error,l=a.browsing,v=a.files,u=a.usbconnected,h=a.usbfiles,j=a.filename,E=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:f,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:c&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",c,"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"})]})||l&&(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})]}),v.map(function(C,O){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:C.name}),(0,e.jsx)(t.XI.Cell,{children:C.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:C.name})},children:"Open"})})]},O)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+j,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:!E,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}})})]})})})}},46836:function(I,g,n){"use strict";n.r(g),n.d(g,{NumberInputModal:function(){return a}});var e=n(62161),o=n(87239),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=n(5335),x=n(44149),a=function(c){var l=(0,r.Oc)(),v=l.act,u=l.data,h=u.init_value,j=u.large_buttons,E=u.message,C=E===void 0?"":E,O=u.timeout,_=u.title,b=(0,t.useState)(h),D=b[0],S=b[1],A=function(L){L!==D&&S(L)},R=140+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&j?5:0);return(0,e.jsxs)(d.p8,{title:_,width:270,height:R,children:[O&&(0,e.jsx)(x.Loader,{value:O}),(0,e.jsx)(d.p8.Content,{onKeyDown:function(L){L.key===o._.Enter&&v("submit",{entry:D}),L.key===o._.Escape&&v("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:C})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(f,{input:D,onClick:A,onChange:A,onBlur:A})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(p.InputButtons,{input:D})})]})})})]})},f=function(c){var l=(0,r.Oc)(),v=l.act,u=l.data,h=u.min_value,j=u.max_value,E=u.init_value,C=u.round_value,O=c.input,_=c.onClick,b=c.onChange,D=c.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===h,icon:"angle-double-left",onClick:function(){return _(h)},tooltip:h?"Min ("+h+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:h,maxValue:j,onChange:function(S,A){return b(A)},onBlur:function(S,A){return D(A)},onEnter:function(S,A){return v("submit",{entry:A})},value:O})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===j,icon:"angle-double-right",onClick:function(){return _(j)},tooltip:j?"Max ("+j+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===E,icon:"redo",onClick:function(){return _(E)},tooltip:E?"Reset ("+E+")":"Reset"})})]})}},12333:function(I,g,n){"use strict";n.r(g),n.d(g,{OmniFilter:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){return p.input?"Input":p.output?"Output":p.f_type?p.f_type:"Disabled"},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.power,l=f.config,v=f.ports,u=f.set_flow_rate,h=f.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:l,onClick:function(){return a("power")},children:c?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:l,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:v?v.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.dir+" Port",children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:j.input,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:"in",dir:j.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:j.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:j.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:j.input||j.output,onClick:function(){return a("switch_filter",{mode:j.f_type,dir:j.dir})},children:j.f_type||"None"})]}):s(j)},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:u+" L/s"}):u+" L/s"})]})})]})})}},60780:function(I,g,n){"use strict";n.r(g),n.d(g,{OmniMixer:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},d=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.power,v=c.config,u=c.ports,h=c.set_flow_rate,j=c.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:v?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:v,onClick:function(){return f("power")},children:l?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:v,onClick:function(){return f("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"}),v?(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"}),v?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),u?u.map(function(E){return(0,e.jsx)(p,{port:E,config:v},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[j," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:v?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return f("set_flow_rate")},children:h+" L/s"}):h+" L/s"})]})})]})})},p=function(x){var a=(0,o.Oc)().act,f=x.port,c=x.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:c?(0,e.jsx)(t.$n,{selected:f.input,disabled:f.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:f.input?"none":"in",dir:f.dir})},children:"IN"}):s(f)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:c?(0,e.jsx)(t.$n,{selected:f.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:f.dir})},children:"OUT"}):f.concentration*100+"%"}),c?(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:!f.input,onClick:function(){return a("switch_con",{dir:f.dir})},children:f.input?f.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:f.con_lock?"lock":"lock-open",disabled:!f.input,selected:f.con_lock,onClick:function(){return a("switch_conlock",{dir:f.dir})},children:f.f_type||"None"})})]}):null]})}},51498:function(I,g,n){"use strict";n.r(g),n.d(g,{OperatingComputer:function(){return f}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],p=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},a=["bad","average","average","good","average","average","bad"],f=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.hasOccupant,O=E.choice,_;return O?_=(0,e.jsx)(v,{}):_=C?(0,e.jsx)(c,{}):(0,e.jsx)(l,{}),(0,e.jsx)(s.p8,{width:650,height:455,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!O,icon:"user",onClick:function(){return j("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!O,icon:"cog",onClick:function(){return j("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:_})]})})},c=function(u){var h=(0,t.Oc)().data,j=h.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:j.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:d[j.stat][0],children:d[j.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:j.maxHealth,value:j.health/j.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),p.map(function(E,C){return(0,e.jsx)(r.Ki.Item,{label:E[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:j[E[1]]/100,ranges:x,children:(0,o.Mg)(j[E[1]])},C)},C)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:j.maxTemp,value:j.bodyTemperature/j.maxTemp,color:a[j.temperatureSuitability+3],children:[(0,o.Mg)(j.btCelsius),"\xB0C, ",(0,o.Mg)(j.btFaren),"\xB0F"]})}),!!j.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:j.bloodMax,value:j.bloodLevel/j.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[j.bloodPercent,"%, ",j.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[j.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:j.surgery&&j.surgery.length?(0,e.jsx)(r.Ki,{children:j.surgery.map(function(E){return(0,e.jsx)(r.Ki.Item,{label:E.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:E.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:E.nextSteps.map(function(C){return(0,e.jsx)("div",{children:C},C)})})]})},E.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},l=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."]})})},v=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.verbose,O=E.health,_=E.healthAlarm,b=E.oxy,D=E.oxyAlarm,S=E.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:C,icon:C?"toggle-on":"toggle-off",onClick:function(){return j(C?"verboseOff":"verboseOn")},children:C?"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 j(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:_,stepPixelSize:"5",ml:"0",format:function(A){return A+"%"},onChange:function(A,R){return j("health_adj",{new:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:b,icon:b?"toggle-on":"toggle-off",onClick:function(){return j(b?"oxyOff":"oxyOn")},children:b?"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:D,stepPixelSize:"5",ml:"0",onChange:function(A,R){return j("oxy_adj",{new:R})}})}),(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 j(S?"critOff":"critOn")},children:S?"On":"Off"})})]})}},16371:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapDisperser:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(91198),d=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.faillink,v=c.calibration,u=c.overmapdir,h=c.cal_accuracy,j=c.strength,E=c.range,C=c.next_shot,O=c.nopower,_=c.skill,b=c.chargeload;return l?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(D){return D===u}})})}),(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:b}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:C===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||C>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:C})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||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:h}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return f("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:v.map(function(D,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return f("calibration",{calibration:S})},children:D.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 f("strength")},children:j})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return f("range")},children:E})})]})})}),(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 f("fire")},children:"Fire ORB"})})]})}},73847:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.global_state,l=f.global_limit,v=f.engines_info,u=f.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:c,onClick:function(){return a("global_toggle")},children:c?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_global_limit")},children:[l,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:u})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:v.map(function(h,j){return(0,e.jsxs)(t.so,{spacing:1,mt:j!==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 #",j+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:h.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:h.eng_thrust_limiter,format:function(E){return E+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:h.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:h.eng_on?h.eng_on===1?"good":"average":"bad",children:h.eng_on?h.eng_on===1?"Online":"Booting":"Offline"}),h.eng_status.map(function(E,C){return Array.isArray(E)?(0,e.jsx)(t.az,{color:E[1],children:E[0]},C):(0,e.jsx)(t.az,{children:E},C)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:h.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:-.1,engine:h.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:h.eng_reference})},children:[h.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:h.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:h.eng_on===-1,color:h.eng_on===-1?"purple":null,selected:h.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:h.eng_reference})},children:h.eng_on?h.eng_on===1?"Shutoff":"Booting":"Startup"})})]},j)})})]})}},61321:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapFull:function(){return x}});var e=n(62161),o=n(28277),t=n(16754),r=n(42103),s=n(73847),d=n(95828),p=n(40489),x=function(a){var f=(0,o.useState)(0),c=f[0],l=f[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:c===0,onClick:function(){return l(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return l(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return l(2)},children:"Sensors"})]}),c===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),c===1&&(0,e.jsx)(d.OvermapHelmContent,{}),c===2&&(0,e.jsx)(p.OvermapShipSensorsContent,{})]})})}},95828:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return d},OvermapHelmContent:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(91198),d=function(l){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(f,{})})]}),(0,e.jsx)(c,{})]})},x=function(l){var v=(0,o.Oc)(),u=v.act,h=v.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)(s.OvermapFlightData,{})]})},a=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.canburn,E=h.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!j,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:E,onClick:function(){return u("manual")},icon:"compass",children:E?"Enabled":"Disabled"})]})]})},f=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.dest,E=h.d_x,C=h.d_y,O=h.speedlimit,_=h.autopilot,b=h.autopilot_disabled;return b?(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 u("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:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return u("setcoord",{setx:!0})},children:E}),(0,e.jsx)(t.$n,{onClick:function(){return u("setcoord",{sety:!0})},children:C})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return u("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 u("speedlimit")},children:[O," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:_,disabled:!j,icon:"robot",onClick:function(){return u("apilot")},children:_?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return u("apilot_lock")},children:"Lock Autopilot"})]})},c=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.sector,E=h.s_x,C=h.s_y,O=h.sector_info,_=h.landed,b=h.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:j}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[E," : ",C]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:O}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:_})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return u("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 u("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"})]}),b.map(function(D){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:D.name}),(0,e.jsxs)(t.XI.Cell,{children:[D.x," : ",D.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return u("setds",{x:D.x,y:D.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return u("remove",{remove:D.reference})},children:"Remove"})]})]},D.name)})]})})]})}},65912:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapNavigation:function(){return d},OvermapNavigationContent:function(){return p}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(91198),d=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.sector,v=c.s_x,u=c.s_y,h=c.sector_info,j=c.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:j,onClick:function(){return f("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:l}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[v," : ",u]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:h})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},3500:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapShieldGenerator:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(a){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.modes,u=l.offline_for;return u?(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: ",u," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(x,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:v.map(function(h){return(0,e.jsxs)(t.wn,{title:h.name,level:2,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h.status,onClick:function(){return c("toggle_mode",{toggle_mode:h.flag})},children:h.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:h.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",h.multiplier]})]},h.name)})})]})},p=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.running,u=l.overloaded,h=l.mitigation_max,j=l.mitigation_physical,E=l.mitigation_em,C=l.mitigation_heat,O=l.field_integrity,_=l.max_energy,b=l.current_energy,D=l.percentage_energy,S=l.total_segments,A=l.functional_segments,R=l.field_radius,L=l.target_radius,W=l.input_cap_kw,F=l.upkeep_power_usage,$=l.power_usage,G=l.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:v===1&&(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"})||v===2&&(u&&(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(t.az,{color:"good",children:"Running"}))||v===3&&(0,e.jsx)(t.az,{color:"average",children:"Inactive"})||v===4&&(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",L!==R&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[G*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:b,maxValue:_,children:[b," / ",_," MJ (",D,"%)"]})}),(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:[E,"% EM / ",j,"% PH / ",C,"% HE / ",h,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:F})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:W&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:$,maxValue:W,children:[$," / ",W," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:$})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:A}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:S})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:R}),", target"," ",(0,e.jsx)(t.zv,{value:L}),")"]})]})})},x=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.running,u=l.hacked,h=l.idle_multiplier,j=l.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[v>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return c("begin_shutdown")},selected:!0,children:"Turn off"}),v===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return c("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return c("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return c("start_generator")},children:"Turn on"}),v&&u&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return c("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return c("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return c("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:j.map(function(E){return(0,e.jsx)(t.$n,{selected:E===h,disabled:v===4,onClick:function(){return c("switch_idle",{switch_idle:E})},children:E},E)})})})]})}},40489:function(I,g,n){"use strict";n.r(g),n.d(g,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.viewing,l=f.on,v=f.range,u=f.health,h=f.max_health,j=f.heat,E=f.critical_heat,C=f.status,O=f.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:c,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return a("toggle_sensor")},children:l?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[h*.75,1/0],average:[h*.25,h*.75],bad:[-1/0,h*.25]},value:u,maxValue:h,children:[u," / ",h]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[E*.75,1/0],average:[E*.5,E*.75],good:[-1/0,E*.5]},value:j,maxValue:E,children:j0||!j)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return f("cancel",{cancel:b+1})},children:"Cancel"})||null]},_)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(_){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("queue",{queue:_.type})},children:(0,o.Sn)(_.name)})},_.name)})})]})})}},14889:function(I,g,n){"use strict";n.r(g),n.d(g,{PathogenicIsolator:function(){return x}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(86471),d=n(42103),p=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.can_print,j=c.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:j.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!h,icon:"print",onClick:function(){return v("print",{type:"virus_record",vir:j.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return v("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:[j.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:j.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:j.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[j.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:j.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:j.symptoms.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.stage+". "+E.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",E.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",E.aggressiveness]})]},E.stage)})})})]})})})},x=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.isolating,j=(0,o.useState)(0),E=j[0],C=j[1],O=null;return E===0?O=(0,e.jsx)(a,{}):E===1&&(O=(0,e.jsx)(f,{})),(0,s.modalRegisterBodyOverride)("virus",p),(0,e.jsxs)(d.p8,{height:500,width:520,children:[(0,e.jsx)(s.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[h&&(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:E===0,onClick:function(){return C(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:E===1,onClick:function(){return C(1)},children:"Database"})]}),O]})]})},a=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.syringe_inserted,j=u.pathogen_pool,E=u.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:!E,onClick:function(){return v("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!h,onClick:function(){return v("eject")},children:"Eject Syringe"})]}),children:j.length&&j.map(function(C){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",C.unique_id]}),C.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return v("isolate",{isolate:C.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!C.is_in_database,onClick:function(){return v("view_entry",{vir:C.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:C.name}),C.dna]})]},C.unique_id)})||(h?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},f=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.database,j=u.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return v("print",{type:"virus_list"})},children:"Print"}),children:h.length&&h.map(function(E){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return v("view_entry",{vir:E.record})},children:E.name},E.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},90945:function(I,g,n){"use strict";n.r(g),n.d(g,{Pda:function(){return a}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=n(15857),p=n(37865),x=function(v){var u;try{u=p("./"+v+".tsx")}catch(j){if(j.code==="MODULE_NOT_FOUND")return(0,d.z)("notFound",v);throw j}var h=u[v];return h||(0,d.z)("missingExport",v)},a=function(v){var u=function(L){A(L)},h=(0,t.Oc)(),j=h.act,E=h.data,C=E.app,O=E.owner,_=E.useRetro;if(!O)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var b=x(C.template),D=(0,o.useState)(!1),S=D[0],A=D[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:_?"pda-retro":null,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(f,{settingsMode:S,onSettingsMode:u}),S&&(0,e.jsx)(c,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:C.icon,mr:1}),C.name]}),p:1,children:(0,e.jsx)(b,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(l,{onSettingsMode:u})]})})},f=function(v){var u=(0,t.Oc)(),h=u.act,j=u.data,E=j.idInserted,C=j.idLink,O=j.cartridge_name,_=j.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!E&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return h("Authenticate")},children:C})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:_}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:v.settingsMode,onClick:function(){return v.onSettingsMode(!v.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return h("Retro")},icon:"adjust"})]})]})})},c=function(v){var u=(0,t.Oc)(),h=u.act,j=u.data,E=j.idInserted,C=j.idLink,O=j.cartridge_name,_=j.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 h("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!_,onClick:function(){return h("TouchSounds")},children:_?"Disabled":"Enabled"})}),!!O&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return h("Eject")},children:O})}),!!E&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return h("Authenticate")},children:C})})]})})},l=function(v){var u=(0,t.Oc)(),h=u.act,j=u.data,E=j.app,C=j.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:E.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return h("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:E.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){v.onSettingsMode(!1),h("Home")}})})]})})}},21104:function(I,g,n){"use strict";n.r(g),n.d(g,{PersonalCrafting:function(){return f}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103);function d(l,v){(v==null||v>l.length)&&(v=l.length);for(var u=0,h=new Array(v);u=l.length?{done:!0}:{done:!1,value:l[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(l){for(var v,u=(0,t.Oc)(),h=u.act,j=u.data,E=j.busy,C=j.display_craftable_only,O=j.display_compact,_=j.crafting_recipes||{},b=[],D=[],S=a(Object.keys(_)),A;!(A=S()).done;){var R=A.value,L=_[R];if("has_subcats"in L){for(var W=a(Object.keys(L)),F;!(F=W()).done;){var $=F.value;if($!=="has_subcats"){b.push({name:$,category:R,subcategory:$});for(var G=L[$],Y=a(G),q;!(q=Y()).done;){var Z=q.value;D.push(p({},Z,{category:$}))}}}continue}b.push({name:R,category:R});for(var V=_[R],z=a(V),X;!(X=z()).done;){var U=X.value;D.push(p({},U,{category:R}))}}var Q=(0,o.useState)((v=b[0])==null?void 0:v.name),ee=Q[0],ne=Q[1],ie=D.filter(function(le){return le.category===ee});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!E&&(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 h("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:C,onClick:function(){return h("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:b.map(function(le){return(0,e.jsx)(r.tU.Tab,{selected:le.name===ee,onClick:function(){ne(le.name),h("set_category",{category:le.category,subcategory:le.subcategory})},children:le.name},le.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(c,{craftables:ie})})]})})]})})},c=function(l){var v=l.craftables,u=v===void 0?[]:v,h=(0,t.Oc)(),j=h.act,E=h.data,C=E.craftability,O=C===void 0?{}:C,_=E.display_compact,b=E.display_craftable_only;return u.map(function(D){return b&&!O[D.ref]?null:_?(0,e.jsx)(r.Ki.Item,{label:D.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[D.ref],tooltip:D.tool_text&&"Tools needed: "+D.tool_text,tooltipPosition:"left",onClick:function(){return j("make",{recipe:D.ref})},children:"Craft"}),children:D.req_text},D.name):(0,e.jsx)(r.wn,{title:D.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!O[D.ref],onClick:function(){return j("make",{recipe:D.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!D.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:D.req_text}),!!D.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:D.catalyst_text}),!!D.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:D.tool_text})]})},D.name)})}},29281:function(I,g,n){"use strict";n.r(g),n.d(g,{Phorochem:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.intensity,c=a.phoron,l=a.message,v=a.timeLeft,u=a.timeLeftMax;return(0,e.jsx)(r.p8,{width:425,height:270,resizable:!0,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Phorochemistry Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{content:"Recalibrate",onClick:function(){return x("recalibrate")}}),(0,e.jsx)(t.$n,{content:"Begin Test",onClick:function(){return x("beginTest")}}),(0,e.jsx)(t.$n,{content:"Abort Test",onClick:function(){return x("abortTest")}})]}),(0,e.jsxs)(t.Ki.Item,{label:"Intensity",children:[(0,e.jsx)(t.$n,{icon:"backward",onClick:function(){return x("remove_intensity")}}),(0,e.jsx)(t.$n,{content:"1",disabled:f!==1,selected:f===1}),(0,e.jsx)(t.$n,{content:"2",disabled:f!==2,selected:f===2}),(0,e.jsx)(t.$n,{content:"3",disabled:f!==3,selected:f===3}),(0,e.jsx)(t.$n,{content:"4",disabled:f!==4,selected:f===4}),(0,e.jsx)(t.$n,{content:"5",disabled:f!==5,selected:f===5}),(0,e.jsx)(t.$n,{icon:"forward",onClick:function(){return x("add_intensity")}})]})]})}),(0,e.jsxs)(t.wn,{title:"Information",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",children:(0,e.jsx)(t.z2,{value:c,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c+" Moles"})}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{value:v,maxValue:u,ranges:{},children:v+"/"+u+" Seconds"})})]}),(0,e.jsx)(t.wn,{children:l})]})]})})}},56430:function(I,g,n){"use strict";n.r(g),n.d(g,{Photocopier:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(a){var f=(0,o.Oc)().data,c=f.isAI,l=f.has_toner,v=f.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:c?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[l?(0,e.jsx)(d,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),v?(0,e.jsx)(p,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!c&&(0,e.jsx)(x,{})]})})},d=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.max_toner,u=l.current_toner,h=v*.66,j=v*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[h,v],average:[j,h],bad:[0,j]},value:u,minValue:0,maxValue:v})})},p=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.num_copies,u=l.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:v,onDrag:function(h,j){return c("set_copies",{num_copies:j})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return c("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return c("remove")},children:"Remove item"})]})},x=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!v,onClick:function(){return c("ai_photo")},children:"Print photo from database"})})})}},11727:function(I,g,n){"use strict";n.r(g),n.d(g,{PipeDispenser:function(){return p}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=n(8313),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.disposals,v=c.p_layer,u=c.pipe_layers,h=c.categories,j=h===void 0?[]:h,E=(0,o.useState)("categoryName"),C=E[0],O=E[1],_=j.find(function(b){return b.cat_name===C})||j[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!l&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(u).map(function(b){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:u[b]===v,onClick:function(){return f("p_layer",{p_layer:u[b]})},children:b},b)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:j.map(function(b){return(0,e.jsx)(r.tU.Tab,{icon:d.ICON_BY_CATEGORY_NAME[b.cat_name],selected:b.cat_name===_.cat_name,onClick:function(){return O(b.cat_name)},children:b.cat_name},b.cat_name)})}),_==null?void 0:_.recipes.map(function(b){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return f("dispense_pipe",{ref:b.ref,bent:b.bent,category:_.cat_name})},children:b.pipe_name},b.pipe_name)})]})]})})}},28291:function(I,g,n){"use strict";n.r(g),n.d(g,{PlantAnalyzer:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,o.Oc)().data,a=x.seed,f=x.reagents,c=250;return a&&(c+=18*a.trait_info.length),f&&f.length&&(c+=55,c+=20*f.length),(0,e.jsx)(r.p8,{width:400,height:c,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.no_seed,l=f.seed,v=f.reagents;return c?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return a("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[l.name,"#",l.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:l.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:l.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:l.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:l.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:l.potency})]}),v.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:v.map(function(u){return(0,e.jsxs)(t.Ki.Item,{label:u.name,children:[u.volume," unit(s)."]},u.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:l.trait_info.map(function(u){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:u},u)})})]})}},12588:function(I,g,n){"use strict";n.r(g),n.d(g,{PlayerNotes:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.device_theme,c=a.filter,l=a.pages,v=a.ckeys,u=function(h){return h()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:f,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(h,j){return x("show_player_info",{name:j})},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:c}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:v.map(function(h){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:h.name})},children:h.name})})},h.name)})}),(0,e.jsx)(t.cG,{}),u(function(){for(var h=function(C){j.push((0,e.jsx)(t.$n,{onClick:function(){return x("set_page",{index:C})},children:C},C))},j=[],E=1;E=.5&&"good"||L>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!v&&(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:u?"power-off":"times",onClick:function(){return a("toggle_power")},selected:u,disabled:!h,children:u?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:c>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:u,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:W,children:[c,"cm\xB3 ",j]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:c/l,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[c,"cm\xB3 / ",l,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[E," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:C,maxValue:O+30,color:_?"bad":"good",children:[(0,o.Mg)(C),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:b?"bad":void 0,children:D}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return a("lower_power")},children:S}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("higher_power")},children:S})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!A&&"bad",children:A?R:"Unconnected"})})]})})]})})}},31991:function(I,g,n){"use strict";n.r(g),n.d(g,{PortablePump:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(95823),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.direction,l=f.target_pressure,v=f.default_pressure,u=f.min_pressure,h=f.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:c?"sign-in-alt":"sign-out-alt",selected:c,onClick:function(){return a("direction")},children:c?"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:u,maxValue:h,value:l,unit:"kPa",stepPixelSize:.3,onChange:function(j,E){return a("pressure",{pressure:E})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:l===u,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:l===v,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:l===h,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(I,g,n){"use strict";n.r(g),n.d(g,{PortableScrubber:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(95823),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.rate,l=f.minrate,v=f.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:l,maxValue:v,value:c,unit:"L/s",onChange:function(u,h){return a("volume_adj",{vol:h})}})})})})]})})}},96527:function(I,g,n){"use strict";n.r(g),n.d(g,{PortableTurret:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.locked,c=a.on,l=a.lethal,v=a.lethal_is_configurable,u=a.targetting_is_configurable,h=a.check_weapons,j=a.neutralize_noaccess,E=a.neutralize_norecord,C=a.neutralize_criminals,O=a.neutralize_all,_=a.neutralize_nonsynth,b=a.neutralize_unidentified,D=a.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",f?"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:c?"power-off":"times",selected:c,disabled:f,onClick:function(){return x("power")},children:c?"On":"Off"})}),!!v&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:l?"exclamation-triangle":"times",color:l?"bad":"",disabled:f,onClick:function(){return x("lethal")},children:l?"On":"Off"})})]})}),!!u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:f,onClick:function(){return x("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:f,onClick:function(){return x("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:h,disabled:f,onClick:function(){return x("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:f,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:b,disabled:f,onClick:function(){return x("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:f,onClick:function(){return x("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:D,disabled:f,onClick:function(){return x("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:O,disabled:f,onClick:function(){return x("authall")},children:"All Entities"})]})]})]})})}},30889:function(I,g,n){"use strict";n.r(g),n.d(g,{AreaCharge:function(){return h},PowerMonitor:function(){return l},PowerMonitorContent:function(){return v},PowerMonitorFocus:function(){return u},powerRank:function(){return c}});var e=n(62161),o=n(7402),t=n(22071),r=n(4089),s=n(28277),d=n(7081),p=n(16754),x=n(42103);function a(){return a=Object.assign||function(E){for(var C=1;C50?"battery-half":"battery-quarter")||C===1&&"bolt"||C===2&&"battery-full",color:C===0&&(O>50?"yellow":"red")||C===1&&"yellow"||C===2&&"green"}),(0,e.jsx)(p.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(O)+"%"})]})},j=function(E){var C=E.status,O=!!(C&2),_=!!(C&1),b=(O?"On":"Off")+(" ["+(_?"auto":"manual")+"]");return(0,e.jsx)(p.BK,{color:O?"good":"bad",content:_?void 0:"M",title:b})}},57787:function(I,g,n){"use strict";n.r(g),n.d(g,{PrecisionEditor:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.screenstate;return(0,e.jsx)(r.p8,{resizable:!0,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Seed status",children:[v==="main"&&(0,e.jsx)(d,{}),v==="colors"&&(0,e.jsx)(p,{}),v==="reagents"&&(0,e.jsx)(x,{})]})})})},d=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.health,u=l.plantcolor,h=l.fruitcolor,j=l.chems,E=l.seedname;return(0,e.jsx)(t.Ki,{children:j?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:E}),v<100?(0,e.jsx)(t.Ki.Item,{label:"Genetic Integrity",children:100-v+"%"}):(0,e.jsx)(t.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsx)(t.Ki.Item,{label:"Plant Color",children:u}),(0,e.jsx)(t.Ki.Item,{label:"Fruit Color",children:h}),(0,e.jsx)(t.Ki.Divider,{size:2}),(0,e.jsx)(t.Ki.Item,{label:"Chems produced in fruit (click to splice out)",children:j.map(function(C){return(0,e.jsx)(t.$n,{fluid:!0,content:C.displayname,onClick:function(){return c("prune",{gene_name:C.name})}},C.displayname)})}),(0,e.jsx)(t.$n,{content:"Edit Colors",onClick:function(){return c("change_focus",{window:"colors"})}}),(0,e.jsx)(t.$n,{content:"Add Reagents",onClick:function(){return c("change_focus",{window:"reagents"})}}),(0,e.jsx)(t.Ki.Divider,{size:2}),(0,e.jsx)(t.$n,{content:"Eject Seed",onClick:function(){return c("eject")}})]}):(0,e.jsx)(t.Ki.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},p=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.plantcolor,u=l.fruitcolor;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Plant Color",children:v}),(0,e.jsx)(t.BK,{color:v}),(0,e.jsx)(t.Ki.Item,{label:"Fruit Color",children:u}),(0,e.jsx)(t.BK,{color:u}),(0,e.jsx)(t.$n,{content:"Change plant color",onClick:function(){return c("change_color",{option:0})}}),(0,e.jsx)(t.$n,{content:"Change fruit color",onClick:function(){return c("change_color",{option:1})}}),(0,e.jsx)(t.Ki.Divider,{size:2}),(0,e.jsx)(t.$n,{content:"Return",onClick:function(){return c("change_focus",{window:"main"})}})]})},x=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.beakerchems,u=l.health;return(0,e.jsxs)(t.Ki,{children:[u<100?(0,e.jsx)(t.Ki.Item,{label:"Genetic Integrity",children:100-u+"%"}):(0,e.jsx)(t.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsxs)(t.IC,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.jsx)(t.az,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.jsxs)(t.az,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),v?(0,e.jsxs)(e.Fragment,{children:[u<100?(0,e.jsx)(t.Ki.Item,{label:"Available reagents",children:v.map(function(h){return(0,e.jsx)(t.$n,{fluid:!0,content:h.name,onClick:function(){return c("add_chem",{target_chem:h.id})}},h.name)})}):(0,e.jsx)(t.IC,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.jsx)(t.$n,{content:"Eject Beaker",onClick:function(){return c("eject_beaker")}})]}):(0,e.jsx)(t.Ki.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.jsx)(t.$n,{content:"Return",onClick:function(){return c("change_focus",{window:"main"})}})]})}},84818:function(I,g,n){"use strict";n.r(g),n.d(g,{PressureRegulator:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.pressure_set,l=a.max_pressure,v=a.input_pressure,u=a.output_pressure,h=a.regulate_mode,j=a.set_flow_rate,E=a.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:v/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:u/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:E/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return x("toggle_valve")},children:f?"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:h===0,onClick:function(){return x("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:h===1,onClick:function(){return x("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:h===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:[c/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:[j/10," L/s"]})]})})]})})}},11747:function(I,g,n){"use strict";n.r(g),n.d(g,{PrisonerManagement:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.locked,c=a.chemImplants,l=a.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f&&(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:c.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"})]}),c.map(function(v){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:v.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[v.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return x("inject",{imp:v.ref,val:10})},children:"(10)"})]})]},v.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:l.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),l.map(function(v){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[v.host," (",v.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:v.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return x("warn",{imp:v.ref})},children:"Message"})})]},v.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},40932:function(I,g,n){"use strict";n.r(g),n.d(g,{RCON:function(){return f},RCONContent:function(){return c}});var e=n(62161),o=n(4089),t=n(61282),r=n(28277),s=n(7081),d=n(16754),p=n(41242),x=n(42103),a=1e3,f=function(j){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(c,{})})})},c=function(j){var E=(0,r.useState)(0),C=E[0],O=E[1],_;return C===0?_=(0,e.jsx)(l,{}):C===1&&(_=(0,e.jsx)(h,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(d.tU,{children:[(0,e.jsxs)(d.tU.Tab,{selected:C===0,onClick:function(){return O(0)},children:[(0,e.jsx)(d.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(d.tU.Tab,{selected:C===1,onClick:function(){return O(1)},children:[(0,e.jsx)(d.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(d.az,{m:2,children:_})]})},l=function(j){var E=(0,s.Oc)(),C=E.act,O=E.data,_=O.smes_info,b=O.pages,D=O.current_page,S=function(A){return A()};return(0,e.jsxs)(d.wn,{title:"SMESs (Page "+D+")",children:[(0,e.jsx)(d.BJ,{vertical:!0,children:_.map(function(A){return(0,e.jsx)(d.BJ.Item,{children:(0,e.jsx)(v,{smes:A})},A.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),S(function(){for(var A=function(W){R.push((0,e.jsx)(d.$n,{selected:D===W,onClick:function(){return C("set_smes_page",{index:W})},children:W},W))},R=[],L=1;L=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: ",C.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",C.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",C.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:C.desc})]}),C.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,o.ZH)(C.chargetype)}),C.charges.map(function(_,b){return(0,e.jsx)(r.Ki.Item,{label:(0,o.ZH)(_.caption),children:(0,e.jsx)(r.$n,{selected:C.realchargetype===_.index,icon:"arrow-right",onClick:function(){return l("interact_module",{module:C.index,module_mode:"select_charge_type",charge_type:_.index})}})},_.caption)})]})})}):null]},C.name)})]})}},62325:function(I,g,n){"use strict";n.r(g),n.d(g,{Radio:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(79500),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.rawfreq,v=c.minFrequency,u=c.maxFrequency,h=c.listening,j=c.broadcasting,E=c.subspace,C=c.subspaceSwitchable,O=c.chan_list,_=c.loudspeaker,b=c.mic_cut,D=c.spk_cut,S=c.useSyndMode,A=s.Fo.find(function(L){return L.freq===Number(l)}),R=156;return O&&O.length>0?R+=O.length*28+6:R+=24,C&&(R+=38),(0,e.jsx)(d.p8,{width:310,height:R,resizable:!0,theme:S?"syndicate":"",children:(0,e.jsxs)(d.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:v/10,maxValue:u/10,value:l/10,format:function(L){return(0,o.Mg)(L,1)},onDrag:function(L,W){return f("setFrequency",{freq:(0,o.LI)(W*10)})}}),A&&(0,e.jsxs)(r.az,{inline:!0,color:A.color,ml:2,children:["[",A.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:h?"volume-up":"volume-mute",selected:h,disabled:D,onClick:function(){return f("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:j?"microphone":"microphone-slash",selected:j,disabled:b,onClick:function(){return f("broadcast")}}),!!C&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:E,onClick:function(){return f("subspace")},children:"Subspace Tx "+(E?"ON":"OFF")})}),!!C&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:_?"volume-up":"volume-mute",selected:_,onClick:function(){return f("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(L){var W=s.Fo.find(function($){return $.freq===Number(L.freq)}),F="default";return W&&(F=W.color),(0,e.jsx)(r.Ki.Item,{label:L.display_name,labelColor:F,textAlign:"right",children:L.secure_channel&&E?(0,e.jsx)(r.$n,{icon:L.sec_channel_listen?"square-o":"check-square-o",selected:!L.sec_channel_listen,onClick:function(){return f("channel",{channel:L.chan})},children:L.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:L.chan===l,onClick:function(){return f("specFreq",{channel:L.chan})},children:"Switch"})},L.chan)}):null})]})]})})}},8313:function(I,g,n){"use strict";n.r(g),n.d(g,{ICON_BY_CATEGORY_NAME:function(){return a},RapidPipeDispenser:function(){return u}});var e=n(62161),o=n(65380),t=n(61282),r=n(28277),s=n(7081),d=n(16754),p=n(42103),x=["Atmospherics","Disposals"],a={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"},f=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],c=function(h){var j=(0,s.Oc)(),E=j.act,C=j.data,O=C.category,_=C.selected_color,b=C.mode;return(0,e.jsx)(d.wn,{children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Category",children:x.map(function(D,S){return(0,e.jsx)(d.$n,{selected:O===S,icon:a[D],color:"transparent",onClick:function(){return E("category",{category:S})},children:D},D)})}),(0,e.jsx)(d.Ki.Item,{label:"Modes",children:(0,e.jsx)(d.BJ,{fill:!0,children:f.map(function(D){return(0,e.jsx)(d.BJ.Item,{grow:!0,children:(0,e.jsx)(d.$n.Checkbox,{checked:b&D.bitmask,fluid:!0,onClick:function(){return E("mode",{mode:D.bitmask})},children:D.name})},D.bitmask)})})}),(0,e.jsxs)(d.Ki.Item,{label:"Color",children:[(0,e.jsx)(d.az,{inline:!0,width:"64px",color:C.paint_colors[_],children:(0,t.ZH)(_)}),Object.keys(C.paint_colors).map(function(D){return(0,e.jsx)(d.BK,{ml:1,color:C.paint_colors[D],onClick:function(){return E("color",{paint_color:D})}},D)})]})]})})},l=function(h){var j=(0,s.Oc)(),E=j.act,C=j.data,O=C.category,_=C.piping_layer,b=C.pipe_layers,D=C.preview_rows.flatMap(function(S){return S.previews});return(0,e.jsxs)(d.wn,{fill:!0,width:7.5,children:[O===0&&(0,e.jsx)(d.BJ,{vertical:!0,mb:1,children:Object.keys(b).map(function(S){return(0,e.jsx)(d.BJ.Item,{my:0,children:(0,e.jsx)(d.$n.Checkbox,{checked:b[S]===_,onClick:function(){return E("piping_layer",{piping_layer:b[S]})},children:S})},S)})}),(0,e.jsx)(d.az,{width:"120px",children:D.map(function(S){return(0,e.jsx)(d.$n,{ml:0,title:S.dir_name,selected:S.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return E("setdir",{dir:S.dir,flipped:S.flipped})},children:(0,e.jsx)(d.az,{className:(0,o.Ly)(["pipes32x32",S.dir+"-"+S.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},S.dir)})})]})},v=function(h){var j=(0,s.Oc)(),E=j.act,C=j.data,O=C.categories,_=O===void 0?[]:O,b=(0,r.useState)("categoryName"),D=b[0],S=b[1],A=_.find(function(R){return R.cat_name===D})||_[0];return(0,e.jsxs)(d.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(d.tU,{children:_.map(function(R,L){return(0,e.jsx)(d.tU.Tab,{fluid:!0,icon:a[R.cat_name],selected:R.cat_name===A.cat_name,onClick:function(){return S(R.cat_name)},children:R.cat_name},R.cat_name)})}),A==null?void 0:A.recipes.map(function(R){return(0,e.jsx)(d.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:R.selected,title:R.pipe_name,onClick:function(){return E("pipe_type",{pipe_type:R.pipe_index,category:A.cat_name})},children:R.pipe_name},R.pipe_index)})]})},u=function(h){var j=(0,s.Oc)(),E=j.act,C=j.data,O=C.category;return(0,e.jsx)(p.p8,{width:550,height:570,children:(0,e.jsx)(p.p8.Content,{children:(0,e.jsxs)(d.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(d.BJ.Item,{children:(0,e.jsx)(c,{})}),(0,e.jsx)(d.BJ.Item,{grow:!0,children:(0,e.jsxs)(d.BJ,{fill:!0,children:[(0,e.jsx)(d.BJ.Item,{children:(0,e.jsx)(d.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(d.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{})})})}),(0,e.jsx)(d.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{})})]})})]})})})}},27412:function(I,g,n){"use strict";n.r(g),n.d(g,{RequestConsole:function(){return L}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=0,p=1,x=2,a=3,f=4,c=5,l=6,v=7,u=8,h=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!Y,icon:Y?"volume-mute":"volume-up",onClick:function(){return $("toggleSilent")},children:["Speaker ",Y?"OFF":"ON"]})})},j=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.department,q=G.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(O,{dept_list:q,department:Y})})},E=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.department,q=G.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(O,{dept_list:q,department:Y})})},C=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.department,q=G.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(O,{dept_list:q,department:Y})})},O=function(W){var F=(0,t.Oc)().act,$=W.dept_list,G=W.department;return(0,e.jsx)(r.Ki,{children:$.sort().map(function(Y){return Y!==G&&(0,e.jsx)(r.Ki.Item,{label:Y,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return F("write",{write:Y,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return F("write",{write:Y,priority:2})},children:"High Priority"})]})})||null})})},_=function(W){var F=(0,t.Oc)(),$=F.act,G=F.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 $("setScreen",{setScreen:d})},children:"Continue"})})]})},b=function(W){var F=(0,t.Oc)(),$=F.act,G=F.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 $("setScreen",{setScreen:d})},children:"Continue"})})]})},D=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:Y.length&&Y.map(function(q,Z){return(0,e.jsx)(r.Ki.Item,{label:(0,o.jT)(q[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return $("print",{print:Z+1})},children:"Print"}),children:(0,o.jT)(q[1])},Z)})||(0,e.jsx)(r.az,{children:"No messages."})})},S=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.message,q=G.recipient,Z=G.priority,V=G.msgStamped,z=G.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 "+q,children:Y}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:Z===2?"High Priority":Z===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:z?"good":"bad",children:(0,o.jT)(z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:V?"good":"bad",children:(0,o.jT)(V)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return $("department",{department:q})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return $("setScreen",{setScreen:d})},children:"Back"})]})},A=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.department,q=G.screen,Z=G.message_log,V=G.newmessagepriority,z=G.silent,X=G.announcementConsole,U=G.assist_dept,Q=G.supply_dept,ee=G.info_dept,ne=G.message,ie=G.recipient,le=G.priority,ue=G.msgStamped,ge=G.msgVerified,xe=G.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 $("writeAnnouncement")},children:"Edit"}),children:ne||"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:!ne||!xe,icon:"share",onClick:function(){return $("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return $("setScreen",{setScreen:d})},children:"Back"})]})},R={};R[d]=h,R[p]=E,R[x]=j,R[a]=C,R[f]=_,R[c]=b,R[l]=D,R[v]=S,R[u]=A;var L=function(W){var F=(0,t.Oc)(),$=F.act,G=F.data,Y=G.screen,q=G.newmessagepriority,Z=G.announcementConsole,V=R[Y];return(0,e.jsx)(s.p8,{width:520,height:410,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:Y===l,onClick:function(){return $("setScreen",{setScreen:l})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:Y===p,onClick:function(){return $("setScreen",{setScreen:p})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:Y===x,onClick:function(){return $("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:Y===a,onClick:function(){return $("setScreen",{setScreen:a})},icon:"share-square-o",children:"Report"}),Z&&(0,e.jsx)(r.tU.Tab,{selected:Y===u,onClick:function(){return $("setScreen",{setScreen:u})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:Y===d,onClick:function(){return $("setScreen",{setScreen:d})},icon:"cog"})]}),q&&(0,e.jsx)(r.wn,{title:q>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:q>1?"bad":"average",bold:q>1})||null,(0,e.jsx)(V,{})]})})}},99930:function(I,g,n){"use strict";n.r(g),n.d(g,{PaginationChevrons:function(){return p},ResearchConsoleBuildMenu:function(){return d}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(69358),d=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=x.target,v=x.designs,u=x.buildName,h=x.buildFiveName;return l?(0,e.jsxs)(r.wn,{title:(0,s.paginationTitle)("Designs",c.builder_page),buttons:(0,e.jsx)(p,{target:"builder_page"}),children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:c.search,onInput:function(j,E){return f("search",{search:E})},mb:1}),v&&v.length?v.map(function(j){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:j.name}),(0,e.jsxs)(r.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(r.$n,{mb:-1,icon:"wrench",onClick:function(){return f(u,{build:j.id,imprint:j.id})},children:"Build"}),h&&(0,e.jsx)(r.$n,{mb:-1,onClick:function(){return f(h,{build:j.id,imprint:j.id})},children:"x5"})]}),(0,e.jsxs)(r.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:j.mat_list.join(" ")}),(0,e.jsx)(r.az,{inline:!0,color:"average",ml:1,children:j.chem_list.join(" ")})]})]}),(0,e.jsx)(r.cG,{})]},j.id)}):(0,e.jsx)(r.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(r.az,{color:"bad",children:"Error"})},p=function(x){var a=(0,t.Oc)().act,f=x.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a(f,{reset:!0})}}),(0,e.jsx)(r.$n,{icon:"chevron-left",onClick:function(){return a(f,{reverse:-1})}}),(0,e.jsx)(r.$n,{icon:"chevron-right",onClick:function(){return a(f,{reverse:1})}})]})}},23119:function(I,g,n){"use strict";n.r(g),n.d(g,{ResearchConsoleConstructor:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(95411),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=d.name,c=d.matsStates,l=d.onMatsState,v=d.protoTab,u=d.onProtoTab,h=d.linked,j=d.designs;if(!h||!h.present)return(0,e.jsxs)(t.wn,{title:f,children:["No ",f," found."]});var E=h.total_materials,C=h.max_materials,O=h.total_volume,_=h.max_volume,b=h.busy,D=h.mats,S=h.reagents,A=h.queue,R="transparent",L=!1,W="layer-group";b?(W="hammer",R="average",L=!0):A&&A.length&&(W="sync",R="green",L=!0);var F=[];return F[0]=(0,e.jsx)(r.ResearchConsoleConstructorMenue,{name:f,linked:h,designs:j}),F[1]=(0,e.jsx)(r.ResearchConsoleConstructorQueue,{name:f,busy:b,queue:A}),F[2]=(0,e.jsx)(r.ResearchConsoleConstructorMats,{name:f,mats:D,matsStates:c,onMatsState:l}),F[3]=(0,e.jsx)(r.ResearchConsoleConstructorChems,{name:f,reagents:S}),(0,e.jsxs)(t.wn,{title:f,buttons:b&&(0,e.jsx)(t.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Materials",children:(0,e.jsxs)(t.z2,{value:E,maxValue:C,children:[E," cm\xB3 / ",C," cm\xB3"]})}),(0,e.jsx)(t.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(t.z2,{value:O,maxValue:_,children:[O,"u / ",_,"u"]})})]}),(0,e.jsxs)(t.tU,{mt:1,children:[(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:v===0,onClick:function(){return u(0)},children:"Build"}),(0,e.jsx)(t.tU.Tab,{icon:W,iconSpin:L,color:R,selected:v===1,onClick:function(){return u(1)},children:"Queue"}),(0,e.jsx)(t.tU.Tab,{icon:"cookie-bite",selected:v===2,onClick:function(){return u(2)},children:"Mat Storage"}),(0,e.jsx)(t.tU.Tab,{icon:"flask",selected:v===3,onClick:function(){return u(3)},children:"Chem Storage"})]}),F[v]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})]})}},95411:function(I,g,n){"use strict";n.r(g),n.d(g,{ResearchConsoleConstructorChems:function(){return f},ResearchConsoleConstructorMats:function(){return a},ResearchConsoleConstructorMenue:function(){return p},ResearchConsoleConstructorQueue:function(){return x}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(99930);function d(){return d=Object.assign||function(c){for(var l=1;l=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:Z.biomass>=150?"circle":"circle-o"}),"\xA0",Z.biomass]}),z]},V)}):null},b=function(L){var W=(0,r.Oc)(),F=W.act,$=W.data,G=$.sleevers,Y=$.spods,q=$.selected_sleever;return G&&G.length?G.map(function(Z,V){return(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("sleeve_"+(Z.occupied?"occupied":"empty")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(s.az,{color:Z.occupied?"label":"bad",children:Z.name}),(0,e.jsx)(s.$n,{selected:q===Z.sleever,icon:q===Z.sleever&&"check",mt:Y&&Y.length?"3rem":"1.5rem",onClick:function(){return F("selectsleever",{ref:Z.sleever})},children:"Select"})]},V)}):null},D=function(L){var W=(0,r.Oc)(),F=W.act,$=W.data,G=$.spods,Y=$.selected_printer;return G&&G.length?G.map(function(q,Z){var V;return q.status==="cloning"?V=(0,e.jsx)(s.z2,{min:"0",max:"100",value:q.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(s.az,{textAlign:"center",children:(0,o.Mg)(q.progress)+"%"})}):q.status==="mess"?V=(0,e.jsx)(s.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):V=(0,e.jsx)(s.$n,{selected:Y===q.spod,icon:Y===q.spod&&"check",mt:"0.5rem",onClick:function(){return F("selectprinter",{ref:q.spod})},children:"Select"}),(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:(0,t.l)("synthprinter"+(q.busy?"_working":"")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(s.az,{color:"label",children:q.name}),(0,e.jsxs)(s.az,{bold:!0,color:q.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:q.steel>=15e3?"circle":"circle-o"}),"\xA0",q.steel]}),(0,e.jsxs)(s.az,{bold:!0,color:q.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:q.glass>=15e3?"circle":"circle-o"}),"\xA0",q.glass]}),V]},Z)}):null},S=function(L){var W=(0,r.Oc)().act,F=L.records,$=L.actToDo;return F.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:F.map(function(G,Y){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return W($,{ref:G.recref})},children:G.name},Y)})}):(0,e.jsx)(s.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},A=function(L){var W=(0,r.Oc)(),F=W.act,$=W.data,G=$.temp;if(!(!G||!G.text||G.text.length<=0)){var Y,q=(Y={},Y[G.style]=!0,Y);return(0,e.jsxs)(s.IC,x({},q,{children:[(0,e.jsx)(s.az,{display:"inline-block",verticalAlign:"middle",children:G.text}),(0,e.jsx)(s.$n,{icon:"times-circle",float:"right",onClick:function(){return F("cleartemp")}}),(0,e.jsx)(s.az,{clear:"both"})]}))}},R=function(L){var W=(0,r.Oc)(),F=W.act,$=W.data,G=$.pods,Y=$.spods,q=$.sleevers,Z=$.autoallowed,V=$.autoprocess,z=$.disk;return(0,e.jsx)(s.wn,{title:"Status",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Pods",children:G&&G.length?(0,e.jsxs)(s.az,{color:"good",children:[G.length," connected"]}):(0,e.jsx)(s.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(s.Ki.Item,{label:"SynthFabs",children:Y&&Y.length?(0,e.jsxs)(s.az,{color:"good",children:[Y.length," connected"]}):(0,e.jsx)(s.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(s.Ki.Item,{label:"Sleevers",children:q&&q.length?(0,e.jsxs)(s.az,{color:"good",children:[q.length," Connected"]}):(0,e.jsx)(s.az,{color:"bad",children:"None connected!"})})]})})}},75099:function(I,g,n){"use strict";n.r(g),n.d(g,{ResleevingPod:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)().data,x=p.occupied,a=p.name,f=p.health,c=p.maxHealth,l=p.stat,v=p.mindStatus,u=p.mindName,h=p.resleeveSick,j=p.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:a}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:l===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):l===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:f/c,children:[f,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:v?"Present":"Missing"}),v?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:u}):""]}),h?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",j?(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(I,g,n){"use strict";n.r(g),n.d(g,{RoboticsControlConsole:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.can_hack,l=f.safety,v=f.show_detonate_all,u=f.cyborgs,h=u===void 0?[]:u;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:l?"lock":"unlock",selected:l,children:l?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:l,color:"bad",onClick:function(){return a("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(d,{cyborgs:h,can_hack:c})]})})},d=function(p){var x=p.cyborgs,a=p.can_hack,f=(0,o.Oc)(),c=f.act,l=f.data;return x.length?x.map(function(v){return(0,e.jsx)(t.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!v.hackable&&!v.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return c("hackbot",{ref:v.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:v.locked_down?"unlock":"lock",color:v.locked_down?"good":"default",disabled:!l.auth,onClick:function(){return c("stopbot",{ref:v.ref})},children:v.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{ref:v.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:v.status?"bad":v.locked_down?"average":"good",children:v.status?"Not Responding":v.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:v.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:v.health>50?"good":"bad",value:v.health/100})}),typeof v.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:v.charge>30?"good":"bad",value:v.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:v.cell_capacity<3e4?"average":"good",children:v.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!v.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:v.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:v.synchronization?"default":"average",children:v.synchronization||"None"})})]})},v.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},28341:function(I,g,n){"use strict";n.r(g),n.d(g,{RogueZones:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.timeout_percent,c=a.diffstep,l=a.difficulty,v=a.occupied,u=a.scanning,h=a.updated,j=a.debug,E=a.shuttle_location,C=a.shuttle_at_station,O=a.scan_ready,_=a.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:_&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:E}),v&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",v," 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:f,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),u&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,h&&!u&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,j&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",f]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",c]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",l]}),(0,e.jsxs)(t.az,{children:["Occupied: ",v]}),(0,e.jsxs)(t.az,{children:["Debug: ",j]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",E]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",C]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",O]})]})||null]})})]})})}},1249:function(I,g,n){"use strict";n.r(g),n.d(g,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return a("toggle_active",{core:l.ref})},children:l.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return a("toggle_reactantdump",{core:l.ref})},children:l.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:l.field_instability}),(0,e.jsx)(t.XI.Cell,{children:l.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.has_field&&"yellow",value:l.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(v,u){return a("set_fieldstr",{core:l.ref,fieldstr:u})}})}),(0,e.jsx)(t.XI.Cell,{})]},l.name)})]})})}},27095:function(I,g,n){"use strict";n.r(g),n.d(g,{RustFuelContent:function(){return d},RustFuelControl:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return a("toggle_active",{fuel:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_type})]},l.name)})]})})}},23316:function(I,g,n){"use strict";n.r(g),n.d(g,{Secbot:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.on,c=a.open,l=a.locked,v=a.idcheck,u=a.check_records,h=a.check_arrest,j=a.arrest_type,E=a.declare_arrests,C=a.bot_patrolling,O=a.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return x("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:c?"bad":"good",children:c?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("idcheck")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){return x("ignorerec")},children:u?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("ignorearr")},children:h?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("switchmode")},children:j?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return x("declarearrests")},children:E?"Yes":"No"})}),!!C&&(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(I,g,n){"use strict";n.r(g),n.d(g,{SecureSafe:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],l=f.locked,v=f.l_setshort,u=f.code,h=f.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:c.map(function(j){return(0,e.jsx)(t.XI.Cell,{children:j.map(function(E){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!h||!!v&&1||E!=="R"&&!l||u==="ERROR"&&E!=="R"&&1,onClick:function(){return a("type",{digit:E})},children:E},E)})},j[0])})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.code,l=f.l_setshort,v=f.l_set,u=f.emagged,h=f.locked,j=!(v||l);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.az,{m:"6px",children:[j&&(0,e.jsx)(t.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!u&&(0,e.jsx)(t.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!l&&(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:c&&c||(0,e.jsx)(t.az,{textColor:h?"red":"green",children:h?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},51412:function(I,g,n){"use strict";n.r(g),n.d(g,{SecurityRecords:function(){return f}});var e=n(62161),o=n(7081),t=n(16754),r=n(86471),s=n(42103),d=n(35069),p=n(97049),x=n(3751),a=function(E){(0,r.modalOpen)("edit",{field:E.edit,value:E.value})},f=function(E){var C=(0,o.Oc)().data,O=C.authenticated,_=C.screen;if(!O)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(p.LoginScreen,{})})});var b;return _===2?b=(0,e.jsx)(c,{}):_===3?b=(0,e.jsx)(l,{}):_===4&&(b=(0,e.jsx)(v,{})),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(j,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:b})]})]})},c=function(E){var C=(0,o.Oc)(),O=C.act,_=C.data,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(D,S){return O("search",{t1:S})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:b.map(function(D,S){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:D.color,onClick:function(){return O("d_rec",{d_rec:D.ref})},children:D.id+": "+D.name+" (Criminal Status: "+D.criminal+")"},S)})})]})},l=function(E){var C=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return C("del_all")},children:"Delete All Security Records"})]})},v=function(E){var C=(0,o.Oc)(),O=C.act,_=C.data,b=_.security,D=_.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(u,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(h,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!b.empty,color:"bad",onClick:function(){return O("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!b.empty,color:"bad",onClick:function(){return O("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:D?"spinner":"print",disabled:D,iconSpin:!!D,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"})]})]})},u=function(E){var C=(0,o.Oc)(),O=C.act,_=C.data,b=_.general;return!b||!b.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:b.fields.map(function(D,S){return(0,e.jsxs)(t.Ki.Item,{label:D.field,children:[(0,e.jsx)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:D.value}),!!D.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a(D)}})]},S)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!b.has_photos&&b.photos.map(function(D,S){return(0,e.jsxs)(t.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:D.substr(1,D.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"})]})]})]})},h=function(E){var C=(0,o.Oc)(),O=C.act,_=C.data,b=_.security;return!b||!b.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:b.fields.map(function(D,S){return(0,e.jsx)(t.Ki.Item,{label:D.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[D.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:D.line_break?"1rem":"initial",onClick:function(){return a(D)}})]})},S)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[b.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):b.comments.map(function(D,S){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:D.header}),(0,e.jsx)("br",{}),D.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"})]})]})},j=function(E){var C=(0,o.Oc)(),O=C.act,_=C.data,b=_.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:b===2,icon:"list",onClick:function(){return O("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:b===3,onClick:function(){return O("screen",{screen:3})},children:"Record Maintenance"})]})}},81190:function(I,g,n){"use strict";n.r(g),n.d(g,{SeedStorage:function(){return p}});var e=n(62161),o=n(7402),t=n(61282),r=n(7081),s=n(16754),d=n(42103),p=function(x){var a=(0,r.Oc)(),f=a.act,c=a.data,l=c.scanner,v=c.seeds,u=(0,o.Ul)(function(h){return h.name.toLowerCase()})(v);return(0,e.jsx)(d.p8,{width:600,height:760,children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:u.map(function(h){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,t.Sn)(h.name)+" #"+h.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(h.traits).map(function(j){return(0,e.jsx)(s.Ki.Item,{label:(0,t.Sn)(j),children:h.traits[j]},j)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[h.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return f("vend",{id:h.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return f("purge",{id:h.id})},children:"Purge"})})]},h.name+h.uid)})})})})}},88309:function(I,g,n){"use strict";n.r(g),n.d(g,{ShieldCapacitor:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.active,v=c.time_since_fail,u=c.stored_charge,h=c.max_charge,j=c.charge_rate,E=c.max_charge_rate;return(0,e.jsx)(d.p8,{width:500,height:400,children:(0,e.jsx)(d.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:l,onClick:function(){return f("toggle")},children:l?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:v>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:u,format:function(C){return(0,s.QL)(C,0,"J")}}),(0,e.jsx)(r.zv,{value:100*(0,o.LI)(u/h,1),format:function(C){return" ("+(0,o.Mg)(C,1)+"%)"}})]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:j,step:100,stepPixelSize:.2,minValue:1e4,maxValue:E,format:function(C){return(0,s.d5)(C)},onDrag:function(C,O){return f("charge_rate",{rate:O})}})})]})})})})}},56686:function(I,g,n){"use strict";n.r(g),n.d(g,{ShieldGenerator:function(){return x}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=n(72859),x=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.locked;return(0,e.jsx)(d.p8,{width:500,height:400,children:(0,e.jsx)(d.p8.Content,{children:h?(0,e.jsx)(a,{}):(0,e.jsx)(f,{})})})},a=function(c){return(0,e.jsxs)(p.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."})]})},f=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.lockedData,j=h.capacitors,E=h.active,C=h.failing,O=h.radius,_=h.max_radius,b=h.z_range,D=h.max_z_range,S=h.average_field_strength,A=h.target_field_strength,R=h.max_field_strength,L=h.shields,W=h.upkeep,F=h.strengthen_rate,$=h.max_strengthen_rate,G=h.gen_power,Y=(j||[]).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:C?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsx)(r.Ki.Item,{label:"Overall Field Strength",children:(0,o.Mg)(S,2)+" Renwick ("+(A&&(0,o.Mg)(100*S/A,1)+"%)")||"NA)"}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)(W)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(G)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[L," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:Y?j.map(function(q,Z){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+Z,children:[q.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge",children:(0,s.QL)(q.stored_charge,0,"J")+" ("+(0,o.Mg)(100*(q.stored_charge/q.max_charge),2)+"%)"}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:q.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},Z)}):(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:E,onClick:function(){return v("toggle")},children:E?"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:_,value:O,unit:"m",onDrag:function(q,Z){return v("change_radius",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:D,value:b,unit:"vertical range",onDrag:function(q,Z){return v("z_range",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:$,value:F,format:function(q){return(0,o.Mg)(q,1)},unit:"Renwick/s",onDrag:function(q,Z){return v("strengthen_rate",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:R,value:A,unit:"Renwick",onDrag:function(q,Z){return v("target_field_strength",{val:Z})}})})]})})]})}},20563:function(I,g,n){"use strict";n.r(g),n.d(g,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.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"})]}),c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:l.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:l.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l.open,disabled:!l.enabled,onClick:function(){return a("toggle_open",{valve:l.ref})},children:l.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l.enabled,onClick:function(){return a("toggle_enable",{valve:l.ref})},children:l.enabled?"Auto":"Manual"})]})]},l.name)})]})})}},90868:function(I,g,n){"use strict";n.r(g),n.d(g,{ShuttleControl:function(){return v}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(u,h){var j="ERROR",E="bad",C=!1;return u==="docked"?(j="DOCKED",E="good"):u==="docking"?(j="DOCKING",E="average",C=!0):u==="undocking"?(j="UNDOCKING",E="average",C=!0):u==="undocked"&&(j="UNDOCKED",E="#676767"),C&&h&&(j=j+"-MANUAL"),(0,e.jsx)(r.az,{color:E,children:j})},p=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=u.engineName,O=C===void 0?"Bluespace Drive":C,_=E.shuttle_status,b=E.shuttle_state,D=E.has_docking,S=E.docking_status,A=E.docking_override,R=E.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:_}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,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"})}),D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:d(S,A)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return j("set_codes")},children:R||"Not Set"})})]})||null]})]})},x=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.can_launch,O=E.can_cancel,_=E.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 j("move")},disabled:!C,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return j("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 j("force")},color:"bad",disabled:!_,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},a=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(x,{})]})},f=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.can_cloak,O=E.can_pick,_=E.legit,b=E.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[C&&(0,e.jsx)(r.Ki.Item,{label:_?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:b,icon:b?"eye":"eye-o",onClick:function(){return j("toggle_cloaked")},children:b?"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 j("pick")},children:u.destination_name})})]})}),(0,e.jsx)(x,{})]})},c=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.can_pick,O=E.destination_name,_=E.fuel_usage,b=E.fuel_span,D=E.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p,{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:!C,onClick:function(){return j("pick")},children:O})}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:b,children:[D," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[_," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},l=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.autopilot,O=E.can_rename,_=E.shuttle_state,b=E.is_moving,D=E.skip_docking,S=E.docking_status,A=E.docking_override,R=E.shuttle_location,L=E.can_cloak,W=E.cloaked,F=E.can_autopilot,$=E.routes,G=E.is_in_transit,Y=E.travel_progress,q=E.time_left,Z=E.doors,V=E.sensors;return(0,e.jsxs)(e.Fragment,{children:[C&&(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 j("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:_==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||_==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||_==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,o.Sn)(R)}),!D&&(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 j("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:S==="undocked",disabled:S!=="docked"&&S!=="undocked",onClick:function(){return j("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:d(S,A)})})||null,L&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:W,icon:W?"eye":"eye-o",onClick:function(){return j("toggle_cloaked")},children:W?"Enabled":"Disabled"})})||null,F&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:C,icon:C?"eye":"eye-o",onClick:function(){return j("toggle_autopilot")},children:C?"Enabled":"Disabled"})})||null]})||null]}),!b&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:$.length&&$.map(function(z){return(0,e.jsx)(r.Ki.Item,{label:z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return j("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]}),G&&(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:Y,children:[q,"s"]})})})})||null,Object.keys(Z).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(Z).map(function(z){var X=Z[z];return(0,e.jsxs)(r.Ki.Item,{label:z,children:[X.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",X.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},z)})})})||null,Object.keys(V).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(V).map(function(z,X){var U=V[z];return U.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:z,color:"bad",children:"Unable to get sensor air reading."},X):(0,e.jsx)(r.Ki.Item,{label:z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[U.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[U.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[U.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[U.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[U.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[U.phoron,"%"]}),U.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[U.other,"%"]})||null]})},z)})})})||null]})},v=function(u){var h=(0,t.Oc)(),j=h.act,E=h.data,C=E.subtemplate,O=E.destination_name;return(0,e.jsx)(s.p8,{width:470,height:C==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(s.p8.Content,{children:C==="ShuttleControlConsoleDefault"&&(0,e.jsx)(a,{})||C==="ShuttleControlConsoleMulti"&&(0,e.jsx)(f,{destination_name:O})||C==="ShuttleControlConsoleExploration"&&(0,e.jsx)(c,{})||C==="ShuttleControlConsoleWeb"&&(0,e.jsx)(l,{})})})}},46321:function(I,g,n){"use strict";n.r(g),n.d(g,{Signaler:function(){return d},SignalerContent:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(p,{})})})},p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.code,v=c.frequency,u=c.minFrequency,h=c.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:u/10,maxValue:h/10,value:v/10,format:function(j){return(0,o.Mg)(j,1)},width:"80px",onDrag:function(j,E){return f("freq",{freq:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return f("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:l,width:"80px",onDrag:function(j,E){return f("code",{code:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return f("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 f("signal")},children:"Send Signal"})})})]})})}},79608:function(I,g,n){"use strict";n.r(g),n.d(g,{Sleeper:function(){return f}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],p=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},a=["bad","average","average","good","average","average","bad"],f=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,b=_.hasOccupant,D=b?(0,e.jsx)(c,{}):(0,e.jsx)(j,{});return(0,e.jsx)(s.p8,{width:550,height:760,children:(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:D})})},c=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,b=_.occupant,D=_.dialysis,S=_.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{}),(0,e.jsx)(v,{}),(0,e.jsx)(u,{title:"Dialysis",active:D,actToDo:"togglefilter"}),(0,e.jsx)(u,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.jsx)(h,{})]})},l=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,b=_.occupant,D=_.auto_eject_dead,S=_.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:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return O("auto_eject_dead_"+(D?"off":"on"))},children:D?"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:b.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,o.Mg)(b.health)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:d[b.stat][0],children:d[b.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:a[b.temperatureSuitability+3],children:[(0,o.Mg)(b.btCelsius),"\xB0C,",(0,o.Mg)(b.btFaren),"\xB0F"]})}),!!b.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:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})]})]})})},v=function(E){var C=(0,t.Oc)().data,O=C.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:p.map(function(_,b){return(0,e.jsx)(r.Ki.Item,{label:_[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:O[_[1]]/100,ranges:x,children:(0,o.Mg)(O[_[1]])},b)},b)})})})},u=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,b=_.isBeakerLoaded,D=_.beakerMaxSpace,S=_.beakerFreeSpace,A=E.active,R=E.actToDo,L=E.title,W=A&&S>0;return(0,e.jsx)(r.wn,{title:L,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!b||S<=0,selected:W,icon:W?"toggle-on":"toggle-off",onClick:function(){return O(R)},children:W?"Active":"Inactive"}),(0,e.jsx)(r.$n,{disabled:!b,icon:"eject",onClick:function(){return O("removebeaker")},children:"Eject"})]}),children:b?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:D,value:S/D,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."})})},h=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,b=_.occupant,D=_.chemicals,S=_.maxchem,A=_.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:D.map(function(R,L){var W="",F;return R.overdosing?(W="bad",F=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):R.od_warning&&(W="average",F=(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:R.title,level:"3",mx:"0",lineHeight:"18px",buttons:F,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:S,value:R.occ_amount/S,color:W,mr:"0.5rem",children:[R.pretty_amount,"/",S,"u"]}),A.map(function($,G){return(0,e.jsx)(r.$n,{disabled:!R.injectable||R.occ_amount+$>S||b.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return O("chemical",{chemid:R.id,amount:$})},children:$},G)})]})})},L)})})},j=function(E){var C=(0,t.Oc)(),O=C.act,_=C.data,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.",b&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return O("removebeaker")},children:"Remove Beaker"})})||null]})})})}},37746:function(I,g,n){"use strict";n.r(g),n.d(g,{SmartVend:function(){return d}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.config,c=x.data;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[c.secure&&(0,e.jsx)(r.IC,{danger:c.locked===-1,info:c.locked!==-1,children:c.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,c.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",f.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,o.Tj)(function(l,v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:l.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:l.amount<1,onClick:function(){return a("Release",{index:l.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:l.amount<5,onClick:function(){return a("Release",{index:l.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:l.amount<25,onClick:function(){return a("Release",{index:l.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:l.amount<50,onClick:function(){return a("Release",{index:l.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:l.amount<1,onClick:function(){return a("Release",{index:l.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:l.amount<1,onClick:function(){return a("Release",{index:l.index,amount:l.amount})},children:"All"})]})]},v)})(c.contents)]})]})})})}},65554:function(I,g,n){"use strict";n.r(g),n.d(g,{Smes:function(){return x}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=1e3,x=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.capacityPercent,u=l.capacity,h=l.charge,j=l.inputAttempt,E=l.inputting,C=l.inputLevel,O=l.inputLevelMax,_=l.inputAvailable,b=l.outputAttempt,D=l.outputting,S=l.outputLevel,A=l.outputLevelMax,R=l.outputUsed,L=v>=100&&"good"||E&&"average"||"bad",W=D&&"good"||h>0&&"average"||"bad";return(0,e.jsx)(d.p8,{width:400,height:350,children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsx)(r.z2,{value:v*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,o.Mg)(h/(1e3*60),1)+" kWh / "+(0,o.Mg)(u/(1e3*60))+" kWh ("+v+"%)"})}),(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:j?"sync-alt":"times",selected:j,onClick:function(){return c("tryinput")},children:j?"On":"Off"}),children:(0,e.jsx)(r.az,{color:L,children:v>=100&&"Fully Charged"||E&&"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:C===0,onClick:function(){return c("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:C===0,onClick:function(){return c("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:C/p,fillValue:_/p,minValue:0,maxValue:O/p,step:5,stepPixelSize:4,format:function(F){return(0,s.d5)(F*p,1)},onDrag:function(F,$){return c("input",{target:$*p})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:C===O,onClick:function(){return c("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:C===O,onClick:function(){return c("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(_)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:b?"power-off":"times",selected:b,onClick:function(){return c("tryoutput")},children:b?"On":"Off"}),children:(0,e.jsx)(r.az,{color:W,children:D?"Sending":h>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 c("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:S===0,onClick:function(){return c("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:S/p,minValue:0,maxValue:A/p,step:5,stepPixelSize:4,format:function(F){return(0,s.d5)(F*p,1)},onDrag:function(F,$){return c("output",{target:$*p})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:S===A,onClick:function(){return c("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:S===A,onClick:function(){return c("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(R)})]})})]})})}},60836:function(I,g,n){"use strict";n.r(g),n.d(g,{SolarControl:function(){return d}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.generated,l=f.generated_ratio,v=f.sun_angle,u=f.array_angle,h=f.rotation_rate,j=f.max_rotation_rate,E=f.tracking_state,C=f.connected_panels,O=f.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return a("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:O?"good":"bad",children:O?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:l,children:c+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[v,"\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:E===0,onClick:function(){return a("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:E===1,onClick:function(){return a("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:E===2,disabled:!O,onClick:function(){return a("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(E===0||E===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:u,format:function(_){var b=Math.sign(_)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(_))+b},onDrag:function(_,b){return a("azimuth",{value:b})}}),E===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-j-.01,maxValue:j+.01,value:h,format:function(_){var b=Math.sign(_)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(_))+b},onDrag:function(_,b){return a("azimuth_rate",{value:b})}}),E===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[u+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(I,g,n){"use strict";n.r(g),n.d(g,{SpaceHeater:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(79500),s=n(42103),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.temp,l=f.minTemp,v=f.maxTemp,u=f.cell,h=f.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[c," K (",c-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[h,"% ",!u&&"(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:c-r.Ai,minValue:l-r.Ai,maxValue:v-r.Ai,unit:"C",onChange:function(j,E){return a("temp",{newtemp:E+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:u?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return a("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return a("cellinstall")},children:"Insert Cell"})})]})})]})})}},39064:function(I,g,n){"use strict";n.r(g),n.d(g,{Stack:function(){return x}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103);function s(v,u){(u==null||u>v.length)&&(u=v.length);for(var h=0,j=new Array(u);h=v.length?{done:!0}:{done:!1,value:v[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(v){var u=(0,o.Oc)(),h=u.act,j=u.data,E=j.amount,C=j.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: "+E,children:(0,e.jsx)(a,{recipes:C})})})})},a=function(v){var u=(0,o.Oc)(),h=u.act,j=u.data,E=v.recipes,C=Object.keys(E).sort();return C.map(function(O,_){var b=E[O];return b.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)(a,{recipes:b})})},_):(0,e.jsx)(l,{title:O,recipe:b},_)})},f=function(v,u){return v.req_amount>u?0:Math.floor(u/v.req_amount)},c=function(v){for(var u=function(){var R=A.value;_>=R&&D.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:C.ref,multiplier:R})},children:R*C.res_amount+"x"}))},h=(0,o.Oc)(),j=h.act,E=h.data,C=v.recipe,O=v.maxMultiplier,_=Math.min(O,Math.floor(C.max_res_amount/C.res_amount)),b=[5,10,25],D=[],S=p(b),A;!(A=S()).done;)u();return b.indexOf(_)===-1&&D.push((0,e.jsx)(t.$n,{onClick:function(){return j("make",{ref:C.ref,multiplier:_})},children:_*C.res_amount+"x"})),D},l=function(v){var u=(0,o.Oc)(),h=u.act,j=u.data,E=j.amount,C=v.recipe,O=v.title,_=C.res_amount,b=C.max_res_amount,D=C.req_amount,S=C.ref,A=O;A+=" (",A+=D+" ",A+="sheet"+(D>1?"s":""),A+=")",_>1&&(A=_+"x "+A);var R=f(C,E);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:!R,icon:"wrench",onClick:function(){return h("make",{ref:C.ref,multiplier:1})},children:A})}),b>1&&R>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(c,{recipe:C,maxMultiplier:R})})]})})})}},20717:function(I,g,n){"use strict";n.r(g),n.d(g,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.categories,l=c===void 0?[]:c;return l.map(function(v){return(0,e.jsx)(t.wn,{title:v.category,children:(0,e.jsxs)("ul",{children:[v.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),v.alarms.map(function(u){var h="";return u.has_cameras?h=(0,e.jsx)(t.wn,{children:u.cameras.map(function(j){return(0,e.jsx)(t.$n,{disabled:j.deact,icon:"video",onClick:function(){return a("switchTo",{camera:j.camera})},children:j.name+(j.deact?" (deactived)":"")},j.name)})}):u.lost_sources&&(h=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",u.lost_sources]})),(0,e.jsxs)("li",{children:[u.name,u.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",h]},u.name)})]})},v.category)})}},76064:function(I,g,n){"use strict";n.r(g),n.d(g,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(d,{})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=x.config,l=f.mapRef,v=f.areas,u=f.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:l,type:"map"}})})]})}},1867:function(I,g,n){"use strict";n.r(g),n.d(g,{StationBoiler:function(){return d}});var e=n(62161),o=n(61282),t=n(7081),r=n(16754),s=n(42103),d=function(p){var x=(0,t.Oc)(),a=x.act,f=x.data,c=f.input,l=f.output,v=f.materials,u=f.timeleft;return(0,e.jsx)(s.p8,{width:600,height:200,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Station Boiler",children:(0,e.jsxs)(r.BJ,{nowrap:!0,children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Input Pipe",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:"Temperature",children:[c.temp,"C"]})]}):(0,e.jsx)(r.so,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Wood",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Divider,{size:1}),v.map(function(h){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(h.display),children:[(0,e.jsxs)(r.z2,{width:"70%",value:h.qty,maxValue:h.max,children:[h.qty,"/",h.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return a("ejectMaterial",{mat:h.name})}})]},h.name)}),(0,e.jsx)(r.Ki.Item,{label:"Time Left",children:(0,e.jsx)(r.zv,{value:u})}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)(r.$n,{content:"Ignite",onClick:function(){return a("ignite")}})})]})})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.wn,{title:"Output Pipe",children:l?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[l.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[l.temp,"C"]})]}):(0,e.jsx)(r.so,{color:"bad",children:"No connection detected."})})})]})})})})}},97073:function(I,g,n){"use strict";n.r(g),n.d(g,{StockExchange:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.screen,E=h.stationName,C;return j==="stocks"?C=(0,e.jsx)(d,{}):j==="logs"?C=(0,e.jsx)(a,{}):j==="archive"?C=(0,e.jsx)(f,{}):j==="graph"&&(C=(0,e.jsx)(c,{})),(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:""+E+" Stock Exchange",children:C})})})},d=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.balance,E=h.stationName,C=h.viewMode,O=(0,e.jsx)(p,{});return C==="Full"?O=(0,e.jsx)(p,{}):C==="Compressed"&&(O=(0,e.jsx)(x,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[E," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",j]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_cycle_view")},children:C}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return u("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})]})},p=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.stocks,E=j===void 0?[]:j;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,{}),E.map(function(C){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:C.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return u("stocks_buy",{share:C.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return u("stocks_sell",{share:C.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_archive",{share:C.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_history",{share:C.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},C.ID)})]})]})},x=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.stocks,E=j===void 0?[]:j;return(0,e.jsx)(t.az,{children:E.map(function(C){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:C.name})," ",(0,e.jsx)("span",{children:C.ID}),C.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",C.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",C.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_history",{share:C.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:C.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",C.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),C.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 u("stocks_buy",{share:C.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_sell",{share:C.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:C.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_archive",{share:C.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},C.ID)})})},a=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.logs,E=j===void 0?[]:j;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 u("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:E.map(function(C){return(0,e.jsxs)(t.az,{children:[C.type!=="borrow"?(0,e.jsxs)("div",{children:[C.time," | ",(0,e.jsx)("b",{children:C.user_name}),C.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:C.stocks})," stocks at ",C.shareprice," a share for",(0,e.jsx)("b",{children:C.money})," total credits",C.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:C.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[C.time," | ",(0,e.jsx)("b",{children:C.user_name})," borrowed ",(0,e.jsx)("b",{children:C.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:C.money})," credits in",(0,e.jsx)("b",{children:C.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},C.time)})})]})},f=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.name,E=h.events,C=E===void 0?[]:E,O=h.articles,_=O===void 0?[]:O;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",j]}),(0,e.jsx)(t.$n,{onClick:function(){return u("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:C.map(function(b){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:b.current_title}),(0,e.jsx)("br",{}),b.current_desc]}),(0,e.jsx)(t.cG,{})]},b.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:_.map(function(b){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:b.headline}),(0,e.jsx)("i",{children:b.subtitle}),(0,e.jsx)("br",{}),b.article,(0,e.jsx)("br",{}),"- ",b.author,", ",b.spacetime," (via",(0,e.jsx)("i",{children:b.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},b.headline)})})]})},c=function(l){var v=(0,o.Oc)(),u=v.act,h=v.data,j=h.name,E=h.maxValue,C=h.values,O=C===void 0?[]:C;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return u("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,E],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[j," share value per share"]})]})}},6085:function(I,g,n){"use strict";n.r(g),n.d(g,{SuitCycler:function(){return d}});var e=n(62161),o=n(28277),t=n(7081),r=n(16754),s=n(42103),d=function(c){var l=function(G){A(G)},v=function(G){W(G)},u=(0,t.Oc)(),h=u.act,j=u.data,E=j.active,C=j.locked,O=j.uv_active,_=j.species,b=j.departments,D=(0,o.useState)(!!b&&b[0]||null),S=D[0],A=D[1],R=(0,o.useState)(!!_&&_[0]||null),L=R[0],W=R[1],F=(0,e.jsx)(p,{selectedDepartment:S,selectedSpecies:L,onSelectedDepartment:l,onSelectedSpecies:v});return O?F=(0,e.jsx)(x,{}):C?F=(0,e.jsx)(a,{}):E&&(F=(0,e.jsx)(f,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:F})})},p=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.safeties,j=u.occupied,E=u.suit,C=u.helmet,O=u.departments,_=u.species,b=u.uv_level,D=u.max_uv_level,S=u.can_repair,A=u.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 v("lock")},children:"Lock"}),children:[!!(j&&h)&&(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 v("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:C?"square":"square-o",disabled:!C,onClick:function(){return v("dispense",{item:"helmet"})},children:C||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:E?"square":"square-o",disabled:!E,onClick:function(){return v("dispense",{item:"suit"})},children:E||"Empty"})}),S&&A?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[A,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return v("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:c.selectedDepartment,onSelected:function(R){c.onSelectedDepartment(R),v("department",{department:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:_,selected:c.selectedSpecies,onSelected:function(R){c.onSelectedSpecies(R),v("species",{species:R})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return v("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:b,minValue:1,maxValue:D,stepPixelSize:30,onChange:function(R,L){return v("radlevel",{radlevel:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:j&&h,textAlign:"center",onClick:function(){return v("uv")}})})]})})]})},x=function(c){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(c){var l=(0,t.Oc)(),v=l.act,u=l.data,h=u.model_text,j=u.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",h," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!j,onClick:function(){return v("lock")},children:"[Unlock]"})})]})},f=function(c){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},33364:function(I,g,n){"use strict";n.r(g),n.d(g,{SuitStorageUnit:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.panelopen,h=v.uv_active,j=v.broken,E=(0,e.jsx)(d,{});return u?E=(0,e.jsx)(p,{}):h?E=(0,e.jsx)(x,{}):j&&(E=(0,e.jsx)(a,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:E})})},d=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.locked,h=v.open,j=v.safeties,E=v.occupied,C=v.suit,O=v.helmet,_=v.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!h&&(0,e.jsx)(t.$n,{icon:u?"unlock":"lock",onClick:function(){return l("lock")},children:u?"Unlock":"Lock"}),!u&&(0,e.jsx)(t.$n,{icon:h?"sign-out-alt":"sign-in-alt",onClick:function(){return l("door")},children:h?"Close":"Open"})]}),children:[!!(E&&j)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return l("eject_guy")},children:"Eject Entity"})]}),u&&(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"})]})||h&&(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 l("dispense",{item:"helmet"})},children:O||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:C?"square":"square-o",disabled:!C,onClick:function(){return l("dispense",{item:"suit"})},children:C||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:_?"square":"square-o",disabled:!_,onClick:function(){return l("dispense",{item:"mask"})},children:_||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:E&&j,textAlign:"center",onClick:function(){return l("uv")},children:"Decontaminate"})]})},p=function(f){var c=(0,o.Oc)(),l=c.act,v=c.data,u=v.safeties,h=v.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 ",h?"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:h,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:h?"red":"green",format:function(j){return j?"15nm":"185nm"},onChange:function(j,E){return l("toggleUV")}})}),(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",u?(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 l("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:u?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:u?"green":"black"})]})]})]})]})},x=function(f){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(f){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(I,g,n){"use strict";n.r(g),n.d(g,{SupermatterMonitor:function(){return p},SupermatterMonitorContent:function(){return x}});var e=n(62161),o=n(4089),t=n(61282),r=n(7081),s=n(16754),d=n(42103),p=function(c){return(0,e.jsx)(d.p8,{width:600,height:400,children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(c){var l=(0,r.Oc)(),v=l.act,u=l.data,h=u.active;return h?(0,e.jsx)(f,{}):(0,e.jsx)(a,{})},a=function(c){var l=(0,r.Oc)(),v=l.act,u=l.data,h=u.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:h.map(function(j,E){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:E%2,children:(0,e.jsx)(s.wn,{title:j.area_name+" (#"+j.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[j.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",onClick:function(){return v("set",{set:j.uid})},children:"View Details"})})]})})},E)})})})},f=function(c){var l=(0,r.Oc)(),v=l.act,u=l.data,h=u.SM_area,j=u.SM_integrity,E=u.SM_power,C=u.SM_ambienttemp,O=u.SM_ambientpressure,_=u.SM_EPR,b=u.SM_gas_O2,D=u.SM_gas_CO2,S=u.SM_gas_N2,A=u.SM_gas_PH,R=u.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,t.Sn)(h),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return v("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{animated:!0,value:j,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:E>300&&"bad"||E>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(L){return(0,o.Mg)(L,2)+" MeV/cm\xB3"},value:E})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:C>5e3&&"bad"||C>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(L){return(0,o.Mg)(L,2)+" K"},value:C})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:O>1e4&&"bad"||O>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(L){return(0,o.Mg)(L,2)+" kPa"},value:O})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:_>4&&"bad"||_>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(L){return(0,o.Mg)(L,2)},value:_})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:b}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:D}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:S}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:A}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:R}),"%"]})]})})]})})}},11296:function(I,g,n){"use strict";n.r(g),n.d(g,{SupplyConsole:function(){return c}});var e=n(62161),o=n(7402),t=n(22071),r=n(28277),s=n(7081),d=n(16754),p=n(41242),x=n(86471),a=n(42103),f=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=_.supply_points,D=E.args,S=D.name,A=D.cost,R=D.manifest,L=D.ref,W=D.random;return(0,e.jsx)(d.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:S,buttons:(0,e.jsx)(d.$n,{icon:"shopping-cart",disabled:A>b,onClick:function(){return O("request_crate",{ref:L})},children:"Buy - "+A+" points"}),children:(0,e.jsx)(d.wn,{title:"Contains"+(W?" any "+W+" of:":""),scrollable:!0,height:"200px",children:R.map(function(F){return(0,e.jsx)(d.az,{children:F},F)})})})},c=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data;return(0,x.modalRegisterBodyOverride)("view_crate",f),(0,e.jsx)(a.p8,{width:700,height:620,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(d.wn,{title:"Supply Records",children:[(0,e.jsx)(l,{}),(0,e.jsx)(v,{})]})]})})},l=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=_.supply_points,D=_.shuttle,S=_.shuttle_auth,A=null,R=!1;return S&&(D.launch===1&&D.mode===0?A=(0,e.jsx)(d.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_away"})},children:"Send Away"}):D.launch===2&&(D.mode===3||D.mode===1)?A=(0,e.jsx)(d.$n,{icon:"ban",onClick:function(){return O("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):D.launch===1&&D.mode===5&&(A=(0,e.jsx)(d.$n,{icon:"rocket",onClick:function(){return O("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),D.force&&(R=!0)),(0,e.jsxs)(d.wn,{children:[(0,e.jsx)(d.Ki,{children:(0,e.jsx)(d.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(d.zv,{value:b})})}),(0,e.jsx)(d.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[A,R?(0,e.jsx)(d.$n,{icon:"exclamation-triangle",onClick:function(){return O("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):null]}),children:D.location}),(0,e.jsx)(d.Ki.Item,{label:"Engine",children:D.engine}),D.mode===4?(0,e.jsx)(d.Ki.Item,{label:"ETA",children:D.time>1?(0,p.fU)(D.time):"LATE"}):null]})})]})},v=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=_.order_auth,D=(0,r.useState)(0),S=D[0],A=D[1];return(0,e.jsxs)(d.wn,{title:"Menu",children:[(0,e.jsxs)(d.tU,{children:[(0,e.jsx)(d.tU.Tab,{icon:"box",selected:S===0,onClick:function(){return A(0)},children:"Request"}),(0,e.jsx)(d.tU.Tab,{icon:"check-circle-o",selected:S===1,onClick:function(){return A(1)},children:"Accepted"}),(0,e.jsx)(d.tU.Tab,{icon:"circle-o",selected:S===2,onClick:function(){return A(2)},children:"Requests"}),(0,e.jsx)(d.tU.Tab,{icon:"book",selected:S===3,onClick:function(){return A(3)},children:"Order history"}),(0,e.jsx)(d.tU.Tab,{icon:"book",selected:S===4,onClick:function(){return A(4)},children:"Export history"})]}),S===0?(0,e.jsx)(u,{}):null,S===1?(0,e.jsx)(h,{mode:"Approved"}):null,S===2?(0,e.jsx)(h,{mode:"Requested"}):null,S===3?(0,e.jsx)(h,{mode:"All"}):null,S===4?(0,e.jsx)(j,{}):null]})},u=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=_.categories,D=_.supply_packs,S=_.contraband,A=_.supply_points,R=(0,r.useState)(null),L=R[0],W=R[1],F=(0,t.L)([(0,o.pb)(function($){return $.group===L}),(0,o.pb)(function($){return!$.contraband||S}),(0,o.Ul)(function($){return $.name}),(0,o.Ul)(function($){return $.cost>A})])(D);return(0,e.jsx)(d.wn,{level:2,children:(0,e.jsxs)(d.BJ,{children:[(0,e.jsx)(d.BJ.Item,{basis:"25%",children:(0,e.jsx)(d.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:b.map(function($){return(0,e.jsx)(d.$n,{fluid:!0,selected:$===L,onClick:function(){return W($)},children:$},$)})})}),(0,e.jsx)(d.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(d.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:F.map(function($){return(0,e.jsx)(d.az,{children:(0,e.jsxs)(d.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(d.BJ.Item,{basis:"70%",children:(0,e.jsx)(d.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:$.cost>A?"red":null,onClick:function(){return O("request_crate",{ref:$.ref})},children:$.name})}),(0,e.jsx)(d.BJ.Item,{children:(0,e.jsx)(d.$n,{color:$.cost>A?"red":null,onClick:function(){return O("request_crate_multi",{ref:$.ref})},children:"#"})}),(0,e.jsx)(d.BJ.Item,{children:(0,e.jsx)(d.$n,{color:$.cost>A?"red":null,onClick:function(){return O("view_crate",{crate:$.ref})},children:"C"})}),(0,e.jsxs)(d.BJ.Item,{grow:1,children:[$.cost," points"]})]})},$.name)})})})]})})},h=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=E.mode,D=_.orders,S=_.order_auth,A=_.supply_points,R=D.filter(function(L){return L.status===b||b==="All"});return R.length?(0,e.jsxs)(d.wn,{level:2,children:[b==="Requested"&&S?(0,e.jsx)(d.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return O("clear_all_requests")},children:"Clear all requests"}):null,R.map(function(L,W){return(0,e.jsxs)(d.wn,{title:"Order "+(W+1),buttons:b==="All"&&S?(0,e.jsx)(d.$n,{color:"red",icon:"trash",onClick:function(){return O("delete_order",{ref:L.ref})},children:"Delete Record"}):null,children:[(0,e.jsxs)(d.Ki,{children:[L.entries.map(function(F,$){return F.entry?(0,e.jsx)(d.Ki.Item,{label:F.field,buttons:S?(0,e.jsx)(d.$n,{icon:"pen",onClick:function(){O("edit_order_value",{ref:L.ref,edit:F.field,default:F.entry})},children:"Edit"}):null,children:F.entry},$):null}),b==="All"?(0,e.jsx)(d.Ki.Item,{label:"Status",children:L.status}):null]}),S&&b==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{icon:"check",disabled:L.cost>A,onClick:function(){return O("approve_order",{ref:L.ref})},children:"Approve"}),(0,e.jsx)(d.$n,{icon:"times",onClick:function(){return O("deny_order",{ref:L.ref})},children:"Deny"})]}):null]},W)})]}):(0,e.jsx)(d.wn,{level:2,children:"No orders found."})},j=function(E){var C=(0,s.Oc)(),O=C.act,_=C.data,b=_.receipts,D=_.order_auth;return b.length?(0,e.jsx)(d.wn,{level:2,children:b.map(function(S,A){return(0,e.jsxs)(d.wn,{children:[(0,e.jsxs)(d.Ki,{children:[S.title.map(function(R){return(0,e.jsx)(d.Ki.Item,{label:R.field,buttons:D?(0,e.jsx)(d.$n,{icon:"pen",onClick:function(){return O("export_edit",{ref:S.ref,edit:R.field,default:R.entry})},children:"Edit"}):null,children:R.entry},R.field)}),S.error?(0,e.jsx)(d.Ki.Item,{labelColor:"red",label:"Error",children:S.error}):S.contents.map(function(R,L){return(0,e.jsxs)(d.Ki.Item,{label:R.object,buttons:D?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{icon:"pen",onClick:function(){return O("export_edit_field",{ref:S.ref,index:L+1,edit:"meow",default:R.object})},children:"Edit"}),(0,e.jsx)(d.$n,{icon:"trash",color:"red",onClick:function(){return O("export_delete_field",{ref:S.ref,index:L+1})},children:"Delete"})]}):null,children:[R.quantity,"x -> ",R.value," points"]},L)})]}),D?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{mt:1,icon:"plus",onClick:function(){return O("export_add_field",{ref:S.ref})},children:"Add Item To Record"}),(0,e.jsx)(d.$n,{icon:"trash",onClick:function(){return O("export_delete",{ref:S.ref})},children:"Delete Record"})]}):null]},A)})}):(0,e.jsx)(d.wn,{level:2,children:"No receipts found."})}},76786:function(I,g,n){"use strict";n.r(g),n.d(g,{TEGenerator:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(41242),d=n(42103),p=function(a){var f=(0,t.Oc)().data,c=f.totalOutput,l=f.maxTotalOutput,v=f.thermalOutput,u=f.primary,h=f.secondary;return(0,e.jsx)(d.p8,{width:550,height:310,children:(0,e.jsxs)(d.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:c,maxValue:l,children:(0,s.d5)(c)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(v)})]})}),u&&h?(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:u})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:h})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(a){var f=a.name,c=a.values,l=c.dir,v=c.output,u=c.flowCapacity,h=c.inletPressure,j=c.inletTemperature,E=c.outletPressure,C=c.outletTemperature;return(0,e.jsx)(r.wn,{title:f+" ("+l+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(v)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,o.Mg)(u,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(h*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,o.Mg)(j,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(E*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,o.Mg)(C,2)," K"]})]})})}},27136:function(I,g,n){"use strict";n.r(g),n.d(g,{Tank:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.connected,c=a.showToggle,l=c===void 0?!0:c,v=a.maskConnected,u=a.tankPressure,h=a.releasePressure,j=a.defaultReleasePressure,E=a.minReleasePressure,C=a.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!l&&(0,e.jsx)(t.$n,{icon:f?"air-freshener":"lock-open",selected:f,disabled:!v,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:v?"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:u/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:a.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:h===E,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,value:h,width:"65px",unit:"kPa",minValue:E,maxValue:C,onChange:function(O,_){return x("pressure",{pressure:_})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:h===C,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:h===j,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(I,g,n){"use strict";n.r(g),n.d(g,{TankDispenser:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.plasma,c=a.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:f?"square":"square-o",disabled:!f,onClick:function(){return x("plasma")},children:"Dispense"}),children:f}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:c?"square":"square-o",disabled:!c,onClick:function(){return x("oxygen")},children:"Dispense"}),children:c})]})})})})}},91765:function(I,g,n){"use strict";n.r(g),n.d(g,{TelecommsLogBrowser:function(){return d}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=v.universal_translate,h=v.network,j=v.temp,E=v.servers,C=v.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[j?(0,e.jsxs)(r.IC,{danger:j.color==="bad",warning:j.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:j.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return l("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 l("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:E.length===0,onClick:function(){return l("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("network")},children:h})})})}),C?(0,e.jsx)(x,{network:h,server:C,universal_translate:u}):(0,e.jsx)(p,{network:h,servers:E})]})})},p=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=f.network,h=f.servers;return!h||!h.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 l("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:h.map(function(j){return(0,e.jsx)(r.Ki.Item,{label:j.name+" ("+j.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("view",{id:j.id})},children:"View"})},j.id)})})})},x=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=f.network,h=f.server,j=f.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+h.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("mainmenu")},children:"Return"}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:h.totalTraffic>=1024?(0,o.Mg)(h.totalTraffic/1024)+" Terrabytes":h.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!h.logs||!h.logs.length?"No Logs Detected.":h.logs.map(function(E){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:E.id%2,children:(0,e.jsx)(r.wn,{title:j||E.parameters.uspeech||E.parameters.intelligible||E.input_type==="Execution Error"?E.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:E.id})}}),children:E.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:E.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return l("delete",{id:E.id})}})})]}):j||E.parameters.uspeech||E.parameters.intelligible?(0,e.jsx)(a,{log:E}):(0,e.jsx)(a,{error:!0})})},E.id)})})})]})},a=function(f){var c=(0,t.Oc)(),l=c.act,v=c.data,u=f.log,h=f.error,j=u&&u.parameters||{none:"none"},E=j.timecode,C=j.name,O=j.race,_=j.job,b=j.message;return h?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:E}),(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:E}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[C," (Job: ",_,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:b})]})}},67702:function(I,g,n){"use strict";n.r(g),n.d(g,{TelecommsMachineBrowser:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.network,l=f.temp,v=f.machinelist,u=f.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[l?(0,e.jsxs)(t.IC,{danger:l.color==="bad",warning:l.color!=="bad",children:[(0,e.jsx)(t.az,{display:"inline-box",verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",float:"right",onClick:function(){return a("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 a("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:v.length===0,onClick:function(){return a("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("network")},children:c})})})}),v&&v.length?(0,e.jsx)(d,{title:u?u.name+" ("+u.id+")":"Detected Network Entities",list:u?u.links:v,showBack:u}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return a("scan")},children:"Probe Network"})})]})})},d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=p.list,l=p.title,v=p.showBack;return(0,e.jsxs)(t.wn,{title:l,buttons:v&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return a("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:c.length?c.map(function(u){return(0,e.jsx)(t.Ki.Item,{label:u.name+" ("+u.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return a("view",{id:u.id})},children:"View"})},u.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},42639:function(I,g,n){"use strict";n.r(g),n.d(g,{TelecommsMultitoolMenu:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=n(3751),d=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.temp,u=l.on,h=l.id,j=l.network,E=l.autolinkers,C=l.shadowlink,O=l.options,_=l.linked,b=l.filter,D=l.multitool,S=l.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)(s.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(x,{options:O})]})})},p=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=l.temp,u=l.on,h=l.id,j=l.network,E=l.autolinkers,C=l.shadowlink,O=l.options,_=l.linked,b=l.filter,D=l.multitool,S=l.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:u,onClick:function(){return c("toggle")},children:u?"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 c("id")},children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("network")},children:j})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:E?"TRUE":"FALSE"}),C?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):null,D?(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 c("link")}:function(){return c("buffer")},children:S?"Link ("+S.id+")":"Add Machine"}),S?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return c("flush")},children:"Flush"}):null]}):null]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:_.map(function(A){return(0,e.jsx)(t.Ki.Item,{label:A.ref+" "+A.name+" ("+A.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return c("unlink",{unlink:A.index})}})},A.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return c("freq")},children:"Add Frequency"}),children:[b.map(function(A){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return c("delete",{delete:A.freq})},children:A.name+" GHz"},A.index)}),!b||b.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):null]})]})},x=function(a){var f=(0,o.Oc)(),c=f.act,l=f.data,v=a.options,u=v.use_listening_level,h=v.use_broadcasting,j=v.use_receiving,E=v.listening_level,C=v.broadcasting,O=v.receiving,_=v.use_change_freq,b=v.change_freq,D=v.use_broadcast_range,S=v.use_receive_range,A=v.range,R=v.minRange,L=v.maxRange;return!u&&!h&&!j&&!_&&!D&&!S?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[u?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:E?"lock-closed":"lock-open",onClick:function(){return c("change_listening")},children:E?"Yes":"No"})}):null,h?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:C,onClick:function(){return c("broadcast")},children:C?"Yes":"No"})}):null,j?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:O,onClick:function(){return c("receive")},children:O?"Yes":"No"})}):null,_?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!b,onClick:function(){return c("change_freq")},children:b?"Yes ("+b+")":"No"})}):null,D||S?(0,e.jsx)(t.Ki.Item,{label:(D?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{value:A,minValue:R,maxValue:L,unit:"gigameters",stepPixelSize:4,format:function(W){return W+1},onDrag:function(W,F){return c("range",{range:F})}})}):null]})})}},50624:function(I,g,n){"use strict";n.r(g),n.d(g,{Teleporter:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.locked_name,c=a.station_connected,l=a.hub_connected,v=a.calibrated,u=a.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,color:v?"good":"bad",onClick:function(){return x("test_fire")},children:v?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:u,color:u?"good":"bad",onClick:function(){return x("toggle_on")},children:u?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:c?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:l?"Connected":"Not Connected"})]})})})})}},680:function(I,g,n){"use strict";n.r(g),n.d(g,{TelesciConsole:function(){return d},TelesciConsoleContent:function(){return x}});var e=n(62161),o=n(7402),t=n(7081),r=n(16754),s=n(42103),d=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(p,{})||(0,e.jsx)(x,{})})})},p=function(a){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(a){var f=(0,t.Oc)(),c=f.act,l=f.data,v=l.insertedGps,u=l.rotation,h=l.currentZ,j=l.cooldown,E=l.crystalCount,C=l.maxCrystals,O=l.maxPossibleDistance,_=l.maxAllowedDistance,b=l.distance,D=l.tempMsg,S=l.sectorOptions,A=l.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return c("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:j&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:j})," seconds."]})||(0,e.jsx)(r.az,{children:D})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,format:function(R){return R+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(R,L){return c("setrotation",{val:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:b,format:function(R){return R+"/"+_+" m"},minValue:0,maxValue:_,step:1,stepPixelSize:4,onDrag:function(R,L){return c("setdistance",{val:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,o.Ul)(function(R){return Number(R)})(S).map(function(R){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:h===R,onClick:function(){return c("setz",{setz:R})},children:R},R)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return c("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return c("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return c("recal")},children:"Recalibrate"})]})]}),A&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[A.src_x,", ",A.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[A.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[A.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",E," / ",C]})]})}},17654:function(I,g,n){"use strict";n.r(g),n.d(g,{TextInputModal:function(){return c},removeAllSkiplines:function(){return f},sanitizeMultiline:function(){return a}});var e=n(62161),o=n(87239),t=n(28277),r=n(7081),s=n(16754),d=n(42103),p=n(5335),x=n(44149),a=function(v){return v.replace(/(\n|\r\n){3,}/,"\n\n")},f=function(v){return v.replace(/[\r\n]+/,"")},c=function(v){var u=(0,r.Oc)(),h=u.act,j=u.data,E=j.large_buttons,C=j.max_length,O=j.message,_=O===void 0?"":O,b=j.multiline,D=j.placeholder,S=D===void 0?"":D,A=j.timeout,R=j.title,L=(0,t.useState)(S||""),W=L[0],F=L[1],$=function(q){if(q!==W){var Z=b?a(q):f(q);F(Z)}},G=b||W.length>=30,Y=135+(_.length>30?Math.ceil(_.length/4):0)+(G?75:0)+(_.length&&E?5:0);return(0,e.jsxs)(d.p8,{title:R,width:325,height:Y,children:[A&&(0,e.jsx)(x.Loader,{value:A}),(0,e.jsx)(d.p8.Content,{onKeyDown:function(q){q.key===o._.Enter&&(!G||!q.shiftKey)&&h("submit",{entry:W}),q.key===o._.Escape&&h("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:_})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{input:W,onType:$},R)}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(p.InputButtons,{input:W,message:W.length+"/"+C})})]})})})]})},l=function(v){var u=(0,r.Oc)(),h=u.act,j=u.data,E=j.max_length,C=j.multiline,O=v.input,_=v.onType,b=C||O.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:C||O.length>=30?"100%":"1.8rem",maxLength:E,onEscape:function(){return h("cancel")},onEnter:function(D){b&&D.shiftKey||(D.preventDefault(),h("submit",{entry:O}))},onChange:function(D,S){return _(S)},onInput:function(D,S){return _(S)},placeholder:"Type something...",value:O})}},66307:function(I,g,n){"use strict";n.r(g),n.d(g,{TimeClock:function(){return p}});var e=n(62161),o=n(4089),t=n(7081),r=n(16754),s=n(42103),d=n(10921),p=function(x){var a=(0,t.Oc)(),f=a.act,c=a.data,l=c.department_hours,v=c.user_name,u=c.card,h=c.assignment,j=c.job_datum,E=c.allow_change_job,C=c.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+v,children:(0,e.jsx)(r.Ki,{children:Object.keys(l).map(function(O){return(0,e.jsxs)(r.Ki.Item,{label:O,color:l[O]>6?"good":l[O]>1?"average":"bad",children:[(0,o.Mg)(l[O],1)," ",l[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 f("id")},children:u||"Insert ID"})}),!!j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:j.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)(d.RankIcon,{color:"white",rank:j.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:j.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:j.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:j.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:j.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",j.pto_department]})||j.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",j.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(E&&j&&j.timeoff_factor!==0&&h!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:j.timeoff_factor>0&&(l[j.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return f("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(C).length&&Object.keys(C).map(function(O){var _=C[O];return _.map(function(b){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return f("switch-to-onduty-rank",{"switch-to-onduty-rank":O,"switch-to-onduty-assignment":b})},children:b},b)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(I,g,n){"use strict";n.r(g),n.d(g,{TraitDescription:function(){return p},TraitSelection:function(){return d},TraitTutorial:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(d,{})})})})},d=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=c.names,v=c.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:l.map(function(u){return(0,e.jsx)(t.tU.Tab,{selected:u===v,onClick:function(){return f("select_trait",{name:u})},children:(0,e.jsx)(t.az,{inline:!0,children:u})},u)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:v&&(0,e.jsx)(t.wn,{title:v,children:(0,e.jsx)(p,{name:v})})})]})},p=function(x){var a=(0,o.Oc)(),f=a.act,c=a.data,l=x.name,v=c.descriptions,u=c.categories,h=c.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",l,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",u[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",v[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h[l]}})]})}},67159:function(I,g,n){"use strict";n.r(g),n.d(g,{TransferValve:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.tank_one,c=a.tank_two,l=a.attached_device,v=a.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:v?"unlock":"lock",disabled:!f||!c,onClick:function(){return x("toggle")},children:v?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!l,onClick:function(){return x("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:l?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return x("remove_device")},children:l})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:f?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!f,onClick:function(){return x("tankone")},children:f})}):(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:c?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return x("tanktwo")},children:c})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},76992:function(I,g,n){"use strict";n.r(g),n.d(g,{TurbineControl:function(){return d}});var e=n(62161),o=n(7081),t=n(16754),r=n(41242),s=n(42103),d=function(p){var x=(0,o.Oc)(),a=x.act,f=x.data,c=f.compressor_broke,l=f.turbine_broke,v=f.broken,u=f.door_status,h=f.online,j=f.power,E=f.rpm,C=f.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:v&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:h?"good":"bad",children:h&&!c&&!l?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:c&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||l&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:h,onClick:function(){return a(h?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:u,onClick:function(){return a("doors")},children:u?"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:[v?"--":(0,e.jsx)(t.zv,{value:E})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[v?"--":(0,e.jsx)(t.zv,{value:C})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:v?"--":(0,e.jsx)(t.zv,{format:function(O){return(0,r.d5)(O)},value:Number(j)})})]})})]})})}},61063:function(I,g,n){"use strict";n.r(g),n.d(g,{Turbolift:function(){return s}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s=function(d){var p=(0,o.Oc)(),x=p.act,a=p.data,f=a.floors,c=a.doors_open,l=a.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+l*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:l?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:c?"door-open":"door-closed",selected:c&&!l,color:l?"red":null,onClick:function(){return x("toggle_doors")},children:c?l?"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:[!l||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:f.map(function(v){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:v.label||"Floor #"+v.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:v.current?"red":v.target?"green":v.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:v.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:v.name})]})},v.id)})})]})})})}},28657:function(I,g,n){"use strict";n.r(g),n.d(g,{GenericUplink:function(){return v},Uplink:function(){return f}});var e=n(62161),o=n(61282),t=n(28277),r=n(7081),s=n(16754),d=n(41242),p=n(42103);function x(){return x=Object.assign||function(h){for(var j=1;j").map(function(b){return(0,e.jsx)(s.az,{children:b},b)})})]})})||_.map(function(b){return(0,e.jsx)(s.$n,{icon:"eye",fluid:!0,onClick:function(){return E("view_exploits",{id:b.id})},children:b.name},b.id)})})},v=function(h){var j,E,C=h.currencyAmount,O=C===void 0?0:C,_=h.currencySymbol,b=_===void 0?"\u20AE":_,D=(0,r.Oc)(),S=D.act,A=D.data,R=A.compactMode,L=A.lockable,W=A.categories,F=W===void 0?[]:W,$=(0,t.useState)(""),G=$[0],Y=$[1],q=(0,t.useState)((j=F[0])==null?void 0:j.name),Z=q[0],V=q[1],z=(0,o.XZ)(G,function(U){return U.name+U.desc}),X=G.length>0&&F.flatMap(function(U){return U.items||[]}).filter(z).filter(function(U,Q){return Q0?"good":"bad",children:[(0,d.up)(O)," ",b]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:G,onInput:function(U,Q){return Y(Q)},mx:1}),(0,e.jsx)(s.$n,{icon:R?"list":"info",onClick:function(){return S("compact_toggle")},children:R?"Compact":"Detailed"}),!!L&&(0,e.jsx)(s.$n,{icon:"lock",onClick:function(){return S("lock")},children:"Lock"})]}),children:(0,e.jsxs)(s.so,{children:[G.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:F.map(function(U){var Q;return(0,e.jsxs)(s.tU.Tab,{selected:U.name===Z,onClick:function(){return V(U.name)},children:[U.name," (",((Q=U.items)==null?void 0:Q.length)||0,")"]},U.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[X.length===0&&(0,e.jsx)(s.IC,{children:G.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(u,{compactMode:G.length>0||R,currencyAmount:O,currencySymbol:b,items:X})]})]})})},u=function(h){var j=h.compactMode,E=h.currencyAmount,C=h.currencySymbol,O=(0,r.Oc)().act,_=(0,t.useState)({}),b=_[0],D=_[1],S=b&&b.cost||0,A=h.items.map(function(R){var L=b&&b.name!==R.name,W=E-S=0)&&(z[U]=Z[U]);return z}var f=[null,"average","bad"],c={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"},l={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."},v=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=(0,r.useState)(0),Q=U[0],ee=U[1],ne=[];return ne[0]=(0,e.jsx)(h,{}),ne[1]=(0,e.jsx)(Y,{}),(0,e.jsx)(p.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(p.p8.Content,{scrollable:!0,children:[X.unsaved_changes&&(0,e.jsx)(d.IC,{danger:!0,children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{icon:"save",onClick:function(){return z("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{icon:"download",onClick:function(){z("saveprefs"),z("exportpanel")},children:"Save Prefs & Export Selected Belly"})})]})})||null,(0,e.jsx)(u,{}),(0,e.jsxs)(d.tU,{children:[(0,e.jsxs)(d.tU.Tab,{selected:Q===0,onClick:function(){return ee(0)},children:["Bellies",(0,e.jsx)(d.In,{name:"list",ml:.5})]}),(0,e.jsxs)(d.tU.Tab,{selected:Q===1,onClick:function(){return ee(1)},children:["Preferences",(0,e.jsx)(d.In,{name:"user-cog",ml:.5})]})]}),ne[Q]||"Error"]})})},u=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.inside,Q=U.absorbed,ee=U.belly_name,ne=U.belly_mode,ie=U.desc,le=U.pred,ue=U.contents,ge=U.ref;return ee?(0,e.jsxs)(d.wn,{title:"Inside",children:[(0,e.jsxs)(d.az,{color:"green",inline:!0,children:["You are currently ",Q?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(d.az,{color:"yellow",inline:!0,children:[le,"'s"]}),"\xA0",(0,e.jsx)(d.az,{color:"red",inline:!0,children:ee}),"\xA0",(0,e.jsx)(d.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(d.az,{color:c[ne],inline:!0,children:l[ne]}),"\xA0",(0,e.jsx)(d.az,{color:"label",children:ie}),ue.length&&(0,e.jsx)(d.Nt,{title:"Belly Contents",children:(0,e.jsx)(G,{contents:ue,belly:ge})})||"There is nothing else around you."]}):(0,e.jsx)(d.wn,{title:"Inside",children:"You aren't inside anyone."})},h=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.our_bellies,Q=X.selected;return(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{shrink:!0,children:(0,e.jsx)(d.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(d.tU,{vertical:!0,children:[(0,e.jsxs)(d.tU.Tab,{onClick:function(){return z("newbelly")},children:["New",(0,e.jsx)(d.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(d.tU.Tab,{onClick:function(){return z("exportpanel")},children:["Export",(0,e.jsx)(d.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(d.cG,{}),U.map(function(ee){return(0,e.jsx)(d.tU.Tab,{selected:ee.selected,textColor:c[ee.digest_mode],onClick:function(){return z("bellypick",{bellypick:ee.ref})},children:(0,e.jsxs)(d.az,{inline:!0,textColor:ee.selected&&c[ee.digest_mode]||null,children:[ee.name," (",ee.contents,")"]})},ee.name)})]})})}),(0,e.jsx)(d.so.Item,{grow:!0,children:Q&&(0,e.jsx)(d.wn,{title:Q.belly_name,children:(0,e.jsx)(j,{belly:Q})})})]})},j=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.contents,U=(0,r.useState)(0),Q=U[0],ee=U[1],ne=[];return ne[0]=(0,e.jsx)(E,{belly:z}),ne[1]=(0,e.jsx)(C,{belly:z}),ne[2]=(0,e.jsx)(R,{belly:z}),ne[3]=(0,e.jsx)(W,{belly:z}),ne[4]=(0,e.jsx)(F,{belly:z}),ne[5]=(0,e.jsx)($,{belly:z}),ne[6]=(0,e.jsx)(G,{outside:!0,contents:X}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(d.tU,{children:[(0,e.jsx)(d.tU.Tab,{selected:Q===0,onClick:function(){return ee(0)},children:"Controls"}),(0,e.jsx)(d.tU.Tab,{selected:Q===1,onClick:function(){return ee(1)},children:"Descriptions"}),(0,e.jsx)(d.tU.Tab,{selected:Q===2,onClick:function(){return ee(2)},children:"Options"}),(0,e.jsx)(d.tU.Tab,{selected:Q===3,onClick:function(){return ee(3)},children:"Sounds"}),(0,e.jsx)(d.tU.Tab,{selected:Q===4,onClick:function(){return ee(4)},children:"Visuals"}),(0,e.jsx)(d.tU.Tab,{selected:Q===5,onClick:function(){return ee(5)},children:"Interactions"}),(0,e.jsxs)(d.tU.Tab,{selected:Q===6,onClick:function(){return ee(6)},children:["Contents (",X.length,")"]})]}),ne[Q]||"Error"]})},E=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.belly_name,U=z.mode,Q=z.item_mode,ee=z.addons;return(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return V("move_belly",{dir:-1})}}),(0,e.jsx)(d.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return V("move_belly",{dir:1})}})]}),children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_name"})},children:X})}),(0,e.jsx)(d.Ki.Item,{label:"Mode",children:(0,e.jsx)(d.$n,{color:c[U],onClick:function(){return V("set_attribute",{attribute:"b_mode"})},children:U})}),(0,e.jsxs)(d.Ki.Item,{label:"Mode Addons",children:[ee.length&&ee.join(", ")||"None",(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(d.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_item_mode"})},children:Q})}),(0,e.jsx)(d.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(d.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",confirmContent:"This is irreversable!",onClick:function(){return V("set_attribute",{attribute:"b_del"})},children:"Delete Belly"})})]})},C=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.verb,U=z.release_verb,Q=z.desc,ee=z.absorbed_desc,ne=z.mode,ie=z.message_mode,le=z.escapable,ue=z.interacts,ge=z.emote_active;return(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Description",buttons:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:Q}),(0,e.jsx)(d.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:ee}),(0,e.jsx)(d.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_verb"})},children:X})}),(0,e.jsx)(d.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_release_verb"})},children:U})}),(0,e.jsx)(d.Ki.Item,{label:"Show All Messages",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_message_mode"})},icon:ie?"toggle-on":"toggle-off",selected:ie,children:ie?"True":"False"})}),(0,e.jsxs)(d.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"em"})},children:"Examine Message (when full)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},children:"Examine Message (with absorbed victims)"})]}),ie||le?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O,{}),(0,e.jsx)(_,{message_mode:ie,interacts:ue}),(ie||!!ue.transferlocation||!!ue.transferlocation_secondary)&&(0,e.jsx)(b,{message_mode:ie,interacts:ue}),(ie||ue.digestchance>0||ue.absorbchance>0)&&(0,e.jsx)(D,{message_mode:ie,interacts:ue})]}):"",(ie||ne==="Digest"||ne==="Selective"||ne==="Absorb"||ne==="Unabsorb")&&(0,e.jsx)(S,{message_mode:ie,mode:ne}),ge?(0,e.jsx)(A,{message_mode:ie,mode:ne}):"",(0,e.jsx)(d.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(d.$n,{color:"red",onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},children:"Reset Messages"})})]})},O=function(Z){var V=(0,s.Oc)().act;return(0,e.jsxs)(d.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},children:"Struggle Message (outside)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},children:"Struggle Message (inside)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},children:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},children:"Absorbed Struggle Message (inside)"})]})},_=function(Z){var V=(0,s.Oc)().act,z=Z.message_mode,X=Z.interacts;return(0,e.jsxs)(d.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},children:"Escape Attempt Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},children:"Escape Attempt Message (to you)"}),(z||X.escapechance>0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},children:"Escape Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},children:"Escape Message (to you)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},children:"Escape Message (outside)"})]}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},children:"Escape Item Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},children:"Escape Item Message (to you)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},children:"Escape Item Message (outside)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},children:"Escape Fail Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},children:"Escape Fail Message (to you)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},children:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},children:"Absorbed Escape Attempt Message (to you)"}),(z||X.escapechance_absorbed>0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},children:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},children:"Absorbed Escape Message (to you)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},children:"Absorbed Escape Message (outside)"})]}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},children:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},children:"Absorbed Escape Fail Message (to you)"})]})},b=function(Z){var V=(0,s.Oc)().act,z=Z.message_mode,X=Z.interacts;return(0,e.jsxs)(d.Ki.Item,{label:"Transfer Messages",children:[(z||!!X.transferlocation)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},children:"Primary Transfer Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},children:"Primary Transfer Message (to you)"})]}),(z||!!X.transferlocation_secondary)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},children:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},children:"Secondary Transfer Message (to you)"})]})]})},D=function(Z){var V=(0,s.Oc)().act,z=Z.message_mode,X=Z.interacts;return(0,e.jsxs)(d.Ki.Item,{label:"Interaction Chance Messages",children:[(z||X.digestchance>0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},children:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},children:"Interaction Chance Digest Message (to you)"})]}),(z||X.absorbchance>0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},children:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},children:"Interaction Chance Absorb Message (to you)"})]})]})},S=function(Z){var V=(0,s.Oc)().act,z=Z.message_mode,X=Z.mode;return(0,e.jsxs)(d.Ki.Item,{label:"Bellymode Messages",children:[(z||X==="Digest"||X==="Selective")&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},children:"Digest Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},children:"Digest Message (to you)"})]}),(z||X==="Absorb"||X==="Selective")&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},children:"Absorb Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},children:"Absorb Message (to you)"})]}),(z||X==="Unabsorb")&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},children:"Unabsorb Message (to prey)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},children:"Unabsorb Message (to you)"})]})]})},A=function(Z){var V=(0,s.Oc)().act,z=Z.message_mode,X=Z.mode;return(0,e.jsxs)(d.Ki.Item,{label:"Idle Messages",children:[(z||X==="Hold"||X==="Selective")&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},children:"Idle Messages (Hold)"}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},children:"Idle Messages (Hold Absorbed)"})]}),(z||X==="Digest"||X==="Selective")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},children:"Idle Messages (Digest)"}),(z||X==="Absorb"||X==="Selective")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},children:"Idle Messages (Absorb)"}),(z||X==="Unabsorb")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},children:"Idle Messages (Unabsorb)"}),(z||X==="Drain"||X==="Selective")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},children:"Idle Messages (Drain)"}),(z||X==="Heal")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},children:"Idle Messages (Heal)"}),(z||X==="Size Steal")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},children:"Idle Messages (Size Steal)"}),(z||X==="Shrink")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},children:"Idle Messages (Shrink)"}),(z||X==="Grow")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},children:"Idle Messages (Grow)"}),(z||X==="Encase In Egg")&&(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},children:"Idle Messages (Encase In Egg)"})]})},R=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.host_mobtype,Q=U.is_cyborg,ee=U.is_vore_simple_mob,ne=Z.belly,ie=ne.can_taste,le=ne.nutrition_percent,ue=ne.digest_brute,ge=ne.digest_burn,xe=ne.digest_oxy,me=ne.digest_tox,_e=ne.digest_clone,We=ne.bulge_size,Ve=ne.display_absorbed_examine,ye=ne.shrink_grow_size,Pe=ne.emote_time,nn=ne.emote_active,dn=ne.contaminates,mn=ne.contaminate_flavor,fn=ne.contaminate_color,un=ne.egg_type,He=ne.selective_preference,Ke=ne.save_digest_mode,Me=ne.eating_privacy_local,Le=ne.silicon_belly_overlay_preference,De=ne.belly_mob_mult,Fe=ne.belly_item_mult,Ne=ne.belly_overall_mult,Be=ne.drainmode;return(0,e.jsxs)(d.so,{wrap:"wrap",children:[(0,e.jsxs)(d.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_tastes"})},icon:ie?"toggle-on":"toggle-off",selected:ie,children:ie?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_contaminate"})},icon:dn?"toggle-on":"toggle-off",selected:dn,children:dn?"Yes":"No"})}),dn&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",children:mn})}),(0,e.jsx)(d.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",children:(0,t.ZH)(fn)})})]})||null,(0,e.jsx)(d.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_nutritionpercent"})},children:le+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_bulge_size"})},children:We*100+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:Ve?"toggle-on":"toggle-off",selected:Ve,children:Ve?"True":"False"})}),(0,e.jsx)(d.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_eating_privacy"})},children:(0,t.ZH)(Me)})}),(0,e.jsx)(d.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_save_digest_mode"})},icon:Ke?"toggle-on":"toggle-off",selected:Ke,children:Ke?"True":"False"})})]}),(0,e.jsx)(L,{belly:ne})]}),(0,e.jsx)(d.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_emoteactive"})},icon:nn?"toggle-on":"toggle-off",selected:nn,children:nn?"Active":"Inactive"})}),(0,e.jsx)(d.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_emotetime"})},children:Pe+" seconds"})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_brute_dmg"})},children:ue})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_burn_dmg"})},children:ge})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_oxy_dmg"})},children:xe})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_tox_dmg"})},children:me})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_clone_dmg"})},children:_e})}),(0,e.jsx)(d.Ki.Item,{label:"Drain Finishing Mode",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_drainmode"})},children:Be})}),(0,e.jsx)(d.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_grow_shrink"})},children:ye*100+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_egg_type"})},icon:"pen",children:(0,t.ZH)(un)})}),(0,e.jsx)(d.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},children:(0,t.ZH)(He)})})]})})]})},L=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.host_mobtype,Q=U.is_cyborg,ee=U.is_vore_simple_mob,ne=Z.belly,ie=ne.silicon_belly_overlay_preference,le=ne.belly_mob_mult,ue=ne.belly_item_mult,ge=ne.belly_overall_mult;return Q?(0,e.jsx)(d.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_silicon_belly"})},children:(0,t.ZH)(ie)})}),(0,e.jsx)(d.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_belly_mob_mult"})},children:le})}),(0,e.jsx)(d.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_belly_item_mult"})},children:ue})}),(0,e.jsx)(d.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_belly_overall_mult"})},children:ge})})]})}):ee?(0,e.jsx)(d.Ki,{children:(0,e.jsx)(d.Ki.Item,{})}):(0,e.jsx)(d.Ki,{children:(0,e.jsx)(d.Ki.Item,{})})},W=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.is_wet,U=z.wet_loop,Q=z.fancy,ee=z.sound,ne=z.release_sound;return(0,e.jsx)(d.so,{wrap:"wrap",children:(0,e.jsx)(d.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_wetness"})},icon:X?"toggle-on":"toggle-off",selected:X,children:X?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_wetloop"})},icon:U?"toggle-on":"toggle-off",selected:U,children:U?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_fancy_sound"})},icon:Q?"toggle-on":"toggle-off",selected:Q,children:Q?"Yes":"No"})}),(0,e.jsxs)(d.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_sound"})},children:ee}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(d.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_release"})},children:ne}),(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},F=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.belly_fullscreen,U=z.possible_fullscreens,Q=z.disable_hud,ee=z.belly_fullscreen_color,ne=z.belly_fullscreen_color_secondary,ie=z.belly_fullscreen_color_trinary,le=z.mapRef,ue=z.colorization_enabled,ge=z.vore_sprite_flags,xe=z.affects_voresprite,me=z.absorbed_voresprite,_e=z.absorbed_multiplier,We=z.item_voresprite,Ve=z.item_multiplier,ye=z.health_voresprite,Pe=z.resist_animation,nn=z.voresprite_size_factor,dn=z.belly_sprite_option_shown,mn=z.belly_sprite_to_affect,fn=z.undergarment_chosen,un=z.undergarment_if_none,He=z.undergarment_color,Ke=z.tail_option_shown,Me=z.tail_to_change_to,Le=z.tail_colouration,De=z.tail_extra_overlay,Fe=z.tail_extra_overlay2;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.wn,{title:"Vore Sprites",children:(0,e.jsx)(d.so,{direction:"row",children:(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Affect Vore Sprites",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_affects_vore_sprites"})},icon:xe?"toggle-on":"toggle-off",selected:xe,children:xe?"Yes":"No"})}),xe?(0,e.jsxs)("span",{children:[(0,e.jsxs)(d.Ki.Item,{label:"Vore Sprite Mode",children:[ge.length&&ge.join(", ")||"None",(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_vore_sprite_flags"})},ml:1,icon:"plus"})]}),(0,e.jsx)(d.Ki.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})},icon:me?"toggle-on":"toggle-off",selected:me,children:me?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Absorbed Multiplier",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_absorbed_multiplier"})},children:_e})}),(0,e.jsx)(d.Ki.Item,{label:"Count items for vore sprites",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_count_items_for_sprites"})},icon:We?"toggle-on":"toggle-off",selected:We,children:We?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Items Multiplier",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_item_multiplier"})},children:Ve})}),(0,e.jsx)(d.Ki.Item,{label:"Prey health affects vore sprites",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_health_impacts_size"})},icon:ye?"toggle-on":"toggle-off",selected:ye,children:ye?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Animation when prey resist",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_resist_animation"})},icon:Pe?"toggle-on":"toggle-off",selected:Pe,children:Pe?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Vore Sprite Size Factor",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_size_factor_sprites"})},children:nn})}),dn?(0,e.jsx)(d.Ki.Item,{label:"Belly Sprite to affect",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_belly_sprite_to_affect"})},children:mn})}):"",Ke&&ge.includes("Undergarment addition")?(0,e.jsxs)("div",{children:[(0,e.jsx)(d.Ki.Item,{label:"Undergarment type to affect",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_undergarment_choice"})},children:fn})}),(0,e.jsx)(d.Ki.Item,{label:"Undergarment if none equipped",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_undergarment_if_none"})},children:un})})]}):"",Ke&&ge.includes("Tail adjustment")?(0,e.jsx)(d.Ki.Item,{label:"Tail to change to",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_tail_to_change_to"})},children:Me})}):""]}):""]})})}),(0,e.jsx)(d.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(d.so,{direction:"row",children:[(0,e.jsx)(d.az,{backgroundColor:ee,width:"20px",height:"20px"}),(0,e.jsx)(d.$n,{icon:"eye-dropper",onClick:function(){return V("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(d.az,{backgroundColor:ne,width:"20px",height:"20px"}),(0,e.jsx)(d.$n,{icon:"eye-dropper",onClick:function(){return V("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(d.az,{backgroundColor:ie,width:"20px",height:"20px"}),(0,e.jsx)(d.$n,{icon:"eye-dropper",onClick:function(){return V("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(d.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_colorization_enabled"})},icon:ue?"toggle-on":"toggle-off",selected:ue,children:ue?"Yes":"No"})}),(0,e.jsx)(d.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_preview_belly"})},children:"Preview"})}),(0,e.jsx)(d.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_clear_preview"})},children:"Clear"})})]})}),(0,e.jsxs)(d.wn,{children:[(0,e.jsx)(d.wn,{title:"Vore FX",children:(0,e.jsx)(d.Ki,{children:(0,e.jsx)(d.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_disable_hud"})},icon:Q?"toggle-on":"toggle-off",selected:Q,children:Q?"Yes":"No"})})})}),(0,e.jsxs)(d.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(d.$n,{fluid:!0,selected:X===""||X===null,onClick:function(){return V("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(U).map(function(Ne,Be){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(d.$n,{width:"256px",height:"256px",selected:Ne===X,onClick:function(){return V("set_attribute",{attribute:"b_fullscreen",val:Ne})},children:(0,e.jsx)(d.az,{className:(0,o.Ly)(["vore240x240",Ne]),style:{transform:"translate(0%, 4%)"}})},Ne)},Be)})]})]})]})},$=function(Z){var V=(0,s.Oc)().act,z=Z.belly,X=z.escapable,U=z.interacts;return(0,e.jsx)(d.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_escapable"})},icon:X?"toggle-on":"toggle-off",selected:X,children:X?"Interactions On":"Interactions Off"}),children:X?(0,e.jsxs)(d.Ki,{children:[(0,e.jsx)(d.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_escapechance"})},children:U.escapechance+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_escapechance_absorbed"})},children:U.escapechance_absorbed+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_escapetime"})},children:U.escapetime/10+"s"})}),(0,e.jsx)(d.Ki.Divider,{}),(0,e.jsx)(d.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_transferchance"})},children:U.transferchance+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_transferlocation"})},children:U.transferlocation?U.transferlocation:"Disabled"})}),(0,e.jsx)(d.Ki.Divider,{}),(0,e.jsx)(d.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_transferchance_secondary"})},children:U.transferchance_secondary+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_transferlocation_secondary"})},children:U.transferlocation_secondary?U.transferlocation_secondary:"Disabled"})}),(0,e.jsx)(d.Ki.Divider,{}),(0,e.jsx)(d.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_absorbchance"})},children:U.absorbchance+"%"})}),(0,e.jsx)(d.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(d.$n,{onClick:function(){return V("set_attribute",{attribute:"b_digestchance"})},children:U.digestchance+"%"})})]}):"These options only display while interactions are turned on."})},G=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.show_pictures,Q=Z.contents,ee=Z.belly,ne=Z.outside,ie=ne===void 0?!1:ne;return(0,e.jsxs)(e.Fragment,{children:[ie&&(0,e.jsx)(d.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return z("pick_from_outside",{pickall:!0})},children:"All"})||null,U&&(0,e.jsx)(d.so,{wrap:"wrap",justify:"center",align:"center",children:Q.map(function(le){return(0,e.jsxs)(d.so.Item,{basis:"33%",children:[(0,e.jsx)(d.$n,{width:"64px",color:le.absorbed?"purple":f[le.stat],style:{verticalAlign:"middle",marginRight:"5px",borderRadius:"20px"},onClick:function(){return z(le.outside?"pick_from_outside":"pick_from_inside",{pick:le.ref,belly:ee})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+le.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),le.name]},le.name)})})||(0,e.jsx)(d.Ki,{children:Q.map(function(le){return(0,e.jsx)(d.Ki.Item,{label:le.name,children:(0,e.jsx)(d.$n,{fluid:!0,mt:-1,mb:-1,color:le.absorbed?"purple":f[le.stat],onClick:function(){return z(le.outside?"pick_from_outside":"pick_from_inside",{pick:le.ref,belly:ee})},children:"Interact"})},le.ref)})})]})},Y=function(Z){var V=(0,s.Oc)(),z=V.act,X=V.data,U=X.prefs,Q=U.digestable,ee=U.devourable,ne=U.resizable,ie=U.feeding,le=U.absorbable,ue=U.digest_leave_remains,ge=U.allowmobvore,xe=U.permit_healbelly,me=U.show_vore_fx,_e=U.can_be_drop_prey,We=U.can_be_drop_pred,Ve=U.allow_inbelly_spawning,ye=U.allow_spontaneous_tf,Pe=U.step_mechanics_active,nn=U.pickup_mechanics_active,dn=U.noisy,mn=U.drop_vore,fn=U.stumble_vore,un=U.slip_vore,He=U.throw_vore,Ke=U.food_vore,Me=U.digest_pain,Le=U.nutrition_message_visible,De=U.weight_message_visible,Fe=U.eating_privacy_global,Ne=X.show_pictures,Be={digestion:{action:"toggle_digest",test:Q,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:le,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:ee,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:ge,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:ie,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:xe,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:_e,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:We,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:mn,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:un,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:fn,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:He,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:Ke,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:Me,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:Ve,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:dn,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:ne,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:Pe,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:me,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:ue,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:nn,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:ye,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:Le,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:De,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:Fe,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)(d.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(d.$n,{icon:"eye",selected:Ne,onClick:function(){return z("show_pictures")},children:["Contents Preference: ",Ne?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(d.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.digestion})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.absorbable})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.devour})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.mobvore})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.feed})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.dropnom_prey})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.dropnom_pred})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.toggle_drop_vore})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.toggle_slip_vore})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.toggle_stumble_vore})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.toggle_throw_vore})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.toggle_food_vore})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.toggle_digest_pain})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.inbelly_spawning})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.noisy})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.resize})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.steppref,tooltipPosition:"top"})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(q,{spec:Be.remains,tooltipPosition:"top"})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(d.so.Item,{basis:"32%",children:(0,e.jsx)(q,{spec:Be.spontaneous_tf})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(d.$n,{fluid:!0,onClick:function(){return z("switch_selective_mode_pref")},children:"Selective Mode Preference"})}),(0,e.jsx)(d.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(q,{spec:Be.eating_privacy_global})})]}),(0,e.jsx)(d.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(d.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(d.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(d.$n,{fluid:!0,icon:"grin-tongue",onClick:function(){return z("setflavor")},children:"Set Taste"})}),(0,e.jsx)(d.so.Item,{basis:"50%",children:(0,e.jsx)(d.$n,{fluid:!0,icon:"wind",onClick:function(){return z("setsmell")},children:"Set Smell"})}),(0,e.jsx)(d.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_msgs",msgtype:"en"})},icon:"flask",fluid:!0,children:"Set Nutrition Examine Message"})}),(0,e.jsx)(d.so.Item,{basis:"50%",children:(0,e.jsx)(d.$n,{onClick:function(){return z("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},icon:"weight-hanging",fluid:!0,children:"Set Weight Examine Message"})}),(0,e.jsx)(d.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(q,{spec:Be.examine_nutrition})}),(0,e.jsx)(d.so.Item,{basis:"50%",children:(0,e.jsx)(q,{spec:Be.examine_weight})}),(0,e.jsx)(d.so.Item,{basis:"50%",children:(0,e.jsx)(d.$n,{fluid:!0,onClick:function(){return z("set_vs_color")},children:"Vore Sprite Color"})})]})}),(0,e.jsx)(d.cG,{}),(0,e.jsx)(d.wn,{children:(0,e.jsxs)(d.so,{spacing:1,children:[(0,e.jsx)(d.so.Item,{basis:"49%",children:(0,e.jsx)(d.$n,{fluid:!0,icon:"save",onClick:function(){return z("saveprefs")},children:"Save Prefs"})}),(0,e.jsx)(d.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(d.$n,{fluid:!0,icon:"undo",onClick:function(){return z("reloadprefs")},children:"Reload Prefs"})})]})})]})},q=function(Z){var V=(0,s.Oc)().act,z=Z.spec,X=a(Z,["spec"]),U=z.action,Q=z.test,ee=z.tooltip,ne=z.content;return(0,e.jsx)(d.$n,x({onClick:function(){return V(U)},icon:Q?"toggle-on":"toggle-off",selected:Q,fluid:!0,tooltip:ee.main+" "+(Q?ee.disable:ee.enable)},X,{children:Q?ne.enabled:ne.disabled}))}},84580:function(I,g,n){"use strict";n.r(g),n.d(g,{VorePanelExport:function(){return l}});var e=n(62161),o=n(7081),t=n(16754),r=n(42103),s={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'},d={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},p={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(u){var h=[];return u==null||u.forEach(function(j){h.push(''+j+"")}),h.length===0&&h.push("No Addons Set"),h},a=function(u,h){var j=u.name,E=u.desc,C=u.message_mode,O=u.absorbed_desc,_=u.vore_verb,b=u.release_verb,D=u.mode,S=u.addons,A=u.item_mode,R=u.digest_brute,L=u.digest_burn,W=u.digest_oxy,F=u.digest_tox,$=u.digest_clone,G=u.can_taste,Y=u.contaminates,q=u.contamination_flavor,Z=u.contamination_color,V=u.nutrition_percent,z=u.bulge_size,X=u.display_absorbed_examine,U=u.save_digest_mode,Q=u.emote_active,ee=u.emote_time,ne=u.shrink_grow_size,ie=u.egg_type,le=u.selective_preference,ue=u.struggle_messages_outside,ge=u.struggle_messages_inside,xe=u.absorbed_struggle_messages_outside,me=u.absorbed_struggle_messages_inside,_e=u.escape_attempt_messages_owner,We=u.escape_attempt_messages_prey,Ve=u.escape_messages_owner,ye=u.escape_messages_prey,Pe=u.escape_messages_outside,nn=u.escape_item_messages_owner,dn=u.escape_item_messages_prey,mn=u.escape_item_messages_outside,fn=u.escape_fail_messages_owner,un=u.escape_fail_messages_prey,He=u.escape_attempt_absorbed_messages_owner,Ke=u.escape_attempt_absorbed_messages_prey,Me=u.escape_absorbed_messages_owner,Le=u.escape_absorbed_messages_prey,De=u.escape_absorbed_messages_outside,Fe=u.escape_fail_absorbed_messages_owner,Ne=u.escape_fail_absorbed_messages_prey,Be=u.primary_transfer_messages_owner,Cn=u.primary_transfer_messages_prey,Ln=u.secondary_transfer_messages_owner,Mn=u.secondary_transfer_messages_prey,Rn=u.digest_chance_messages_owner,gn=u.digest_chance_messages_prey,Ge=u.absorb_chance_messages_owner,Xe=u.absorb_chance_messages_prey,on=u.digest_messages_owner,pn=u.digest_messages_prey,bn=u.absorb_messages_owner,zn=u.absorb_messages_prey,tt=u.unabsorb_messages_owner,Fn=u.unabsorb_messages_prey,dt=u.examine_messages,Rt=u.examine_messages_absorbed,Vt=u.emotes_digest,Xt=u.emotes_hold,Ei=u.emotes_holdabsorbed,Ci=u.emotes_absorb,yi=u.emotes_heal,Vr=u.emotes_drain,Xr=u.emotes_steal,Gr=u.emotes_egg,eo=u.emotes_shrink,_t=u.emotes_grow,Hr=u.emotes_unabsorb,Ir=u.is_wet,vt=u.wet_loop,xt=u.fancy_vore,cr=u.vore_sound,_r=u.release_sound,Oi=u.disable_hud,na=u.escapable,ta=u.escapechance,ra=u.escapechance_absorbed,Bt=u.escapetime,no=u.transferchance,to=u.transferlocation,ia=u.transferchance_secondary,ro=u.transferlocation_secondary,io=u.absorbchance,oo=u.digestchance,oe="";return oe+='

',oe+='

",oe+='
',oe+='
',oe+="Addons:
"+x(S)+"

",oe+="== Descriptions ==
",oe+="Vore Verb:
"+_+"

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

",oe+='Description:
"'+E+'"

',oe+='Absorbed Description:
"'+O+'"

',oe+="
",oe+="== Messages ==
",oe+="Show All Interactive Messages: "+(C?'Yes':'No')+"
",oe+='
',oe+='
",oe+='
',oe+='
',oe+='
',_e==null||_e.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',We==null||We.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Ve==null||Ve.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',ye==null||ye.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Pe==null||Pe.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',nn==null||nn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',dn==null||dn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',mn==null||mn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',fn==null||fn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',un==null||un.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',He==null||He.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Ke==null||Ke.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Me==null||Me.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Le==null||Le.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',De==null||De.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Fe==null||Fe.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Ne==null||Ne.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Be==null||Be.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Cn==null||Cn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Ln==null||Ln.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Mn==null||Mn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Rn==null||Rn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',gn==null||gn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Ge==null||Ge.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Xe==null||Xe.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',ue==null||ue.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',ge==null||ge.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',xe==null||xe.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',me==null||me.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',on==null||on.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',pn==null||pn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',bn==null||bn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',zn==null||zn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',tt==null||tt.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Fn==null||Fn.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',dt==null||dt.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+='
',Rt==null||Rt.forEach(function(Re){oe+=Re+"
"}),oe+="
",oe+="
",oe+="
",oe+="
",oe+="
= Idle Messages =

",oe+="

Idle Messages (Hold):

",Xt==null||Xt.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Ei==null||Ei.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Vt==null||Vt.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Ci==null||Ci.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Hr==null||Hr.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Vr==null||Vr.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",yi==null||yi.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Xr==null||Xr.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",eo==null||eo.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",_t==null||_t.forEach(function(Re){oe+=Re+"
"}),oe+="


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

",Gr==null||Gr.forEach(function(Re){oe+=Re+"
"}),oe+="


",oe+="


",oe+="
",oe+='
',oe+='
',oe+='

',oe+='

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

',oe+='

",oe+='
',oe+='
',oe+='
    ',oe+='
  • Fleshy Belly: '+(Ir?'Yes':'No')+"
  • ",oe+='
  • Internal Loop: '+(vt?'Yes':'No')+"
  • ",oe+='
  • Use Fancy Sounds: '+(xt?'Yes':'No')+"
  • ",oe+='
  • Vore Sound: '+cr+"
  • ",oe+='
  • Release Sound: '+_r+"
  • ",oe+="
",oe+="
",oe+='
',oe+='

',oe+='

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

',oe+='

",oe+='
',oe+='
',oe+="Belly Interactions ("+(na?'Enabled':'Disabled')+")",oe+='
    ',oe+='
  • Escape Chance: '+ta+"%
  • ",oe+='
  • Escape Chance: '+ra+"%
  • ",oe+='
  • Escape Time: '+Bt/10+"s
  • ",oe+='
  • Transfer Chance: '+no+"%
  • ",oe+='
  • Transfer Location: '+to+"
  • ",oe+='
  • Secondary Transfer Chance: '+ia+"%
  • ",oe+='
  • Secondary Transfer Location: '+ro+"
  • ",oe+='
  • Absorb Chance: '+io+"%
  • ",oe+='
  • Digest Chance: '+oo+"%
  • ",oe+="
",oe+="
",oe+="
",oe},f=function(){var u=new Date,h=String(u.getHours());h.length<2&&(h="0"+h);var j=String(u.getMinutes());j.length<2&&(j="0"+j);var E=String(u.getDate());E.length<2&&(E="0"+E);var C=String(u.getMonth()+1);C.length<2&&(C="0"+C);var O=String(u.getFullYear());return" "+O+"-"+C+"-"+E+" ("+h+" "+j+")"},c=function(u){var h=(0,o.Oc)(),j=h.act,E=h.data,C=E.db_version,O=E.db_repo,_=E.mob_name,b=E.bellies,D=f(),S=_+D+u,A;if(u===".html"){var R="";A=new Blob([''+b.length+" Exported Bellies (DB_VER: "+O+"-"+C+')'+R+'

Bellies of '+_+'

Generated on: '+D+'

'],{type:"text/html;charset=utf8"}),b.forEach(function(L,W){A=new Blob([A,a(L,W)],{type:"text/html;charset=utf8"})}),A=new Blob([A,"
",'