-
-
- {data.borg ? (
-
- Brute-forcing for server key.
- It will take 20 seconds for every character that the password has.
-
- In the meantime, this console can reveal your
- true intentions if you let someone access it.
- Make sure no humans enter the room during that time.
-
- ) : (
-
- QnJ1dGUtZm9yY2luZyBmb3Igc2VydmVyIGtleS48YnI+IEl0IHdpbG
- wgdGFrZSAyMCBzZWNvbmRzIGZvciBldmVyeSBjaGFyYWN0ZXIgdGhh
- dCB0aGUgcGFzc3dvcmQgaGFzLiBJbiB0aGUgbWVhbnRpbWUsIHRoaX
- MgY29uc29sZSBjYW4gcmV2ZWFsIHlvdXIgdHJ1ZSBpbnRlbnRpb25z
- IGlmIHlvdSBsZXQgc29tZW9uZSBhY2Nlc3MgaXQuIE1ha2Ugc3VyZS
- BubyBodW1hbnMgZW50ZXIgdGhlIHJvb20gZHVyaW5nIHRoYXQgdGltZS4=
-
-
- )}
-
-
+
+
+
+ {data.borg ? (
+
+ Brute-forcing for server key.
+ It will take 20 seconds for every character that the password has.
+
+ In the meantime, this console can reveal your
+ true intentions if you let someone access it.
+ Make sure no humans enter the room during that time.
+
+ ) : (
+
+ QnJ1dGUtZm9yY2luZyBmb3Igc2VydmVyIGtleS48YnI+IEl0IHdpbG
+ wgdGFrZSAyMCBzZWNvbmRzIGZvciBldmVyeSBjaGFyYWN0ZXIgdGhh
+ dCB0aGUgcGFzc3dvcmQgaGFzLiBJbiB0aGUgbWVhbnRpbWUsIHRoaX
+ MgY29uc29sZSBjYW4gcmV2ZWFsIHlvdXIgdHJ1ZSBpbnRlbnRpb25z
+ IGlmIHlvdSBsZXQgc29tZW9uZSBhY2Nlc3MgaXQuIE1ha2Ugc3VyZS
+ BubyBodW1hbnMgZW50ZXIgdGhlIHJvb20gZHVyaW5nIHRoYXQgdGltZS4=
+
+
+ )}
+
+
+
+
);
}
diff --git a/tgui/packages/tgui/public/tgui.bundle.js b/tgui/packages/tgui/public/tgui.bundle.js
index dbcc2c25a..0d55f8e2f 100644
--- a/tgui/packages/tgui/public/tgui.bundle.js
+++ b/tgui/packages/tgui/public/tgui.bundle.js
@@ -2,4 +2,4 @@
/*! (C) WebReflection Mit Style License */
if(!document.createEvent){var t,n=!0,o=!1,r="__IE8__"+Math.random(),a=Object.defineProperty||function(e,t,n){e[t]=n.value},i=Object.defineProperties||function(t,n){for(var o in n)if(l.call(n,o))try{a(t,o,n[o])}catch(r){e.console}},c=Object.getOwnPropertyDescriptor,l=Object.prototype.hasOwnProperty,d=e.Element.prototype,u=e.Text.prototype,s=/^[a-z]+$/,p=/loaded|complete/,m={},f=document.createElement("div"),h=document.documentElement,C=h.removeAttribute,g=h.setAttribute,b=function(e){return{enumerable:!0,writable:!0,configurable:!0,value:e}};_(e.HTMLCommentElement.prototype,d,"nodeValue"),_(e.HTMLScriptElement.prototype,null,"text"),_(u,null,"nodeValue"),_(e.HTMLTitleElement.prototype,null,"text"),a(e.HTMLStyleElement.prototype,"textContent",(t=c(e.CSSStyleSheet.prototype,"cssText"),y((function(){return t.get.call(this.styleSheet)}),(function(e){t.set.call(this.styleSheet,e)}))));var N=/\b\s*alpha\s*\(\s*opacity\s*=\s*(\d+)\s*\)/;a(e.CSSStyleDeclaration.prototype,"opacity",{get:function(){var e=this.filter.match(N);return e?(e[1]/100).toString():""},set:function(e){this.zoom=1;var t=!1;e=e<1?" alpha(opacity="+Math.round(100*e)+")":"",this.filter=this.filter.replace(N,(function(){return t=!0,e})),!t&&e&&(this.filter+=e)}}),i(d,{textContent:{get:k,set:S},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;t3?c(i):null,N=String(i.key),v=String(i.char),V=i.location,y=i.keyCode||(i.keyCode=N)&&N.charCodeAt(0)||0,_=i.charCode||(i.charCode=v)&&v.charCodeAt(0)||0,x=i.bubbles,k=i.cancelable,w=i.repeat,L=i.locale,B=i.view||e;if(i.which||(i.which=i.keyCode),"initKeyEvent"in p)p.initKeyEvent(t,x,k,B,m,h,f,C,y,_);else if(0>>0),t=Element.prototype,n=t.querySelector,o=t.querySelectorAll;function r(t,n,o){t.setAttribute(e,null);var r=n.call(t,String(o).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,o,r){return n+"["+e+"]"+(r||" ")})));return t.removeAttribute(e),r}t.querySelector=function(e){return r(this,n,e)},t.querySelectorAll=function(e){return r(this,o,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,o=!1;function r(t,r,a){o=a,n=!1,e=undefined,t.dispatchEvent(r)}function a(e){this.value=e}function c(){t++,this.__ce__=new i("@DOMMap:"+t+Math.random())}return a.prototype.handleEvent=function(t){n=!0,o?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return r(e,this.__ce__,!0),n},get:function(t){r(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return r(e,this.__ce__,!1),n},set:function(e,t){return r(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new a(t),!1),this}},c}();function n(){}function o(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=o.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}n.prototype=(Object.create||Object)(null),o.preventDefault=function(){};var r,a,i=e.CustomEvent,c=e.dispatchEvent,l=e.addEventListener,d=e.removeEventListener,u=0,s=function(){u++},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},m=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{l("_",s,{once:!0}),c(new i("_")),c(new i("_")),d("_",s,{once:!0})}catch(f){}1!==u&&(a=new t,r=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,r,i){if(i&&"boolean"!=typeof i){var c,l,d,u=a.get(this),s=m(i);u||a.set(this,u=new n),t in u||(u[t]={handler:[],wrap:[]}),l=u[t],(c=p.call(l.handler,r))<0?(c=l.handler.push(r)-1,l.wrap[c]=d=new n):d=l.wrap[c],s in d||(d[s]=o(t,r,i),e.call(this,t,d[s],d[s].capture))}else e.call(this,t,r,i)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,o){if(o&&"boolean"!=typeof o){var r,i,c,l,d=a.get(this);if(d&&t in d&&(c=d[t],-1<(i=p.call(c.handler,n))&&(r=m(o))in(l=c.wrap[i]))){for(r in e.call(this,t,l[r],l[r].capture),delete l[r],l)return;c.handler.splice(i,1),c.wrap.splice(i,1),0===c.handler.length&&delete d[t]}}else e.call(this,t,n,o)}}(t.removeEventListener)}},e.EventTarget?r(EventTarget):(r(e.Text),r(e.Element||e.HTMLElement),r(e.HTMLDocument),r(e.Window||{prototype:e}),r(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict";!function(e){if("undefined"!=typeof e.setAttribute){var t=function(e){return e.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))};e.setProperty=function(e,n){var o=t(e);if(!n)return this.removeAttribute(o);var r=String(n);return this.setAttribute(o,r)},e.getPropertyValue=function(e){var n=t(e);return this.getAttribute(n)||null},e.removeProperty=function(e){var n=t(e),o=this.getAttribute(n);return this.removeAttribute(n),o}}}(CSSStyleDeclaration.prototype)},function(e,t,n){"use strict";window.Int32Array||(window.Int32Array=Array)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
-var n;n=void 0!==e?e:void 0,t.loadCSS=function(e,t,o,r){var a,i=n.document,c=i.createElement("link");if(t)a=t;else{var l=(i.body||i.getElementsByTagName("head")[0]).childNodes;a=l[l.length-1]}var d=i.styleSheets;if(r)for(var u in r)r.hasOwnProperty(u)&&c.setAttribute(u,r[u]);c.rel="stylesheet",c.href=e,c.media="only x",function m(e){if(i.body)return e();setTimeout((function(){m(e)}))}((function(){a.parentNode.insertBefore(c,t?a:a.nextSibling)}));var s=function f(e){for(var t=c.href,n=d.length;n--;)if(d[n].href===t)return e();setTimeout((function(){f(e)}))};function p(){c.addEventListener&&c.removeEventListener("load",p),c.media=o||"all"}return c.addEventListener&&c.addEventListener("load",p),c.onloadcssdefined=s,s(p),c}}).call(this,n(124))},function(e,t,n){"use strict";t.__esModule=!0,t.useDispatch=t.StoreProvider=t.createStore=void 0;var o=n(71),r=n(411),a=n(0),i=n(2),c=n(117);t.createStore=function(){var e=(0,o.flow)([function(e,t){return void 0===e&&(e={}),e},i.backendReducer,c.hotKeyReducer]),t=[c.hotKeyMiddleware];return(0,r.createStore)(e,r.applyMiddleware.apply(void 0,t))};var l=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.getChildContext=function(){return{store:this.props.store}},r.render=function(){return this.props.children},o}(a.Component);t.StoreProvider=l;t.useDispatch=function(e){return e.store.dispatch}},function(e,t,n){"use strict";t.__esModule=!0,t.applyMiddleware=t.createStore=void 0;var o=n(71);t.createStore=function r(e,t){if(t)return t(r)(e);var n,o=[],a=function(t){n=e(n,t),o.forEach((function(e){return e()}))};return a({type:"@@INIT"}),{dispatch:a,subscribe:function(e){o.push(e)},getState:function(){return n}}};t.applyMiddleware=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),i=1;i1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=void 0;var o=n(0),r=n(10),a=n(417),i=n(22),c=n(54),l=n(17);function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var u=(0,c.createLogger)("ByondUi"),s=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var a=(0,r.zipWith)(Math.min).apply(void 0,e),i=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(a[0]=n[0],i[0]=n[1]),o!==undefined&&(a[1]=o[0],i[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,a,i,t)}))(e)}(a,C,i,l);if(g.length>0){var b=g[0],N=g[g.length-1];g.push([C[0]+f,N[1]]),g.push([C[0]+f,-f]),g.push([-f,-f]),g.push([-f,b[1]])}var v=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createComponentVNode)(2,r.Box,{mb:1,children:[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},s,{children:d}))),2),u&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",u,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:i})]})},i}(o.Component);t.Collapsible=i},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.content,n=(e.children,e.className),i=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=i||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,a.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,a.computeBoxProps)(l))))};t.ColorBox=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(10),a=n(17),i=n(121);function c(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={selected:t.selected,open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=l.prototype;return d.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},d.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},d.setSelected=function(e){this.setState({selected:e}),this.setOpen(!1),this.props.onSelected(e)},d.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},d.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,d=t.over,u=t.noscroll,s=t.nochevron,p=t.width,m=(t.onClick,t.selected,t.disabled),f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),h=f.className,C=c(f,["className"]),g=d?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([u?"Dropdown__menu-noscroll":"Dropdown__menu",d&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,m&&"Button--disabled",h])},C,{onClick:function(){m&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",this.state.selected,0),!!s||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,i.Icon,{name:g?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(168),a=n(10);function i(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=a.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,a=e.style,c=i(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},a)},c)))};t.GridColumn=l,c.defaultHooks=a.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(10),a=n(17);function i(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,a=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),a&&a(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=l.prototype;return d.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e))},d.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,a=this.inputRef.current;a&&!n&&o!==r&&(a.value=c(r))},d.setEditing=function(e){this.setState({editing:e})},d.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=i(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),l=c.className,d=c.fluid,u=i(c,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Input",d&&"Input--fluid",l])},u,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(19),a=n(10),i=n(22),c=n(17),l=n(169),d=n(122);t.Knob=function(e){if(i.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,d.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,u=e.maxValue,s=e.minValue,p=e.onChange,m=e.onDrag,f=e.step,h=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,b=e.value,N=e.className,v=e.style,V=e.fillValue,y=e.color,_=e.ranges,x=void 0===_?{}:_,k=e.size,w=e.bipolar,L=(e.children,function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:u,minValue:s,onChange:p,onDrag:m,step:f,stepPixelSize:h,suppressFlicker:C,unit:g,value:b},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=V?V:i,s,u),f=(0,r.scale)(i,s,u),h=y||(0,r.keyOfMatchingRange)(null!=V?V:n,x)||"default",C=270*(f-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Knob","Knob--color--"+h,w&&"Knob--bipolar",N,(0,c.computeBoxClassName)(L)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div","Knob__popupValue",l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((w?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),d],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":k+"rem"},v)},L)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(167);function a(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var i=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=i;i.Item=function(e){var t=e.label,n=e.children,i=a(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(1),a=n(2),i=function(e,t){var n=(0,a.useBackend)(t).config,i=e.onClick;return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:(0,o.createComponentVNode)(2,r.Box,{as:"img",src:n.map+"_nanomap_z1.png",style:{width:"512px",height:"512px"},onClick:i})})};t.NanoMap=i;i.Marker=function(e){var t=e.x,n=e.y,a=e.icon,i=e.tooltip,c=e.color;return(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",top:2*(255-n)+2+"px",left:2*t+2+"px",children:[(0,o.createComponentVNode)(2,r.Icon,{name:a,color:c,size:.5}),(0,o.createComponentVNode)(2,r.Tooltip,{content:i})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(10),a=n(17),i=n(165);t.Modal=function(e){var t=e.className,n=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","children"]);return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",t,(0,a.computeBoxClassName)(c)]),n,0,Object.assign({},(0,a.computeBoxProps)(c))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.className,n=e.color,i=e.info,c=(e.warning,e.success),l=e.danger,d=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,i&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},d)))};t.NoticeBox=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBar=void 0;var o=n(0),r=n(19),a=n(10),i=n(17);var c=function(e){var t=e.className,n=e.value,c=e.minValue,l=void 0===c?0:c,d=e.maxValue,u=void 0===d?1:d,s=e.color,p=e.ranges,m=void 0===p?{}:p,f=e.children,h=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","value","minValue","maxValue","color","ranges","children"]),C=(0,r.scale)(n,l,u),g=f!==undefined,b=s||(0,r.keyOfMatchingRange)(n,m)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["ProgressBar","ProgressBar--color--"+b,t,(0,i.computeBoxClassName)(h)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(C)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",g?f:(0,r.toFixed)(100*C)+"%",0)],4,Object.assign({},(0,i.computeBoxProps)(h))))};t.ProgressBar=c,c.defaultHooks=a.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.className,n=e.title,i=e.level,c=void 0===i?1:i,l=e.buttons,d=e.content,u=e.children,s=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","children"]),p=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),m=!(0,r.isFalsy)(d)||!(0,r.isFalsy)(u);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,t])},s,{children:[p&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),m&&(0,o.createVNode)(1,"div","Section__content",[d,u],0)]})))};t.Section=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(19),a=n(10),i=n(22),c=n(17),l=n(169),d=n(122);t.Slider=function(e){if(i.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,d.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,u=e.maxValue,s=e.minValue,p=e.onChange,m=e.onDrag,f=e.step,h=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,b=e.value,N=e.className,v=e.fillValue,V=e.color,y=e.ranges,_=void 0===y?{}:y,x=e.children,k=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),w=x!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:u,minValue:s,onChange:p,onDrag:m,step:f,stepPixelSize:h,suppressFlicker:C,unit:g,value:b},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,p=e.handleDragStart,m=v!==undefined&&null!==v,f=((0,r.scale)(n,s,u),(0,r.scale)(null!=v?v:i,s,u)),h=(0,r.scale)(i,s,u),C=V||(0,r.keyOfMatchingRange)(null!=v?v:n,_)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,N,(0,c.computeBoxClassName)(k)]),[(0,o.createVNode)(1,"div",(0,a.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(f)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(f,h))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(h)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",w?x:l,0),d],0,Object.assign({},(0,c.computeBoxProps)(k),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(10),a=n(17),i=n(120);function c(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.vertical,i=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,a.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",i,0),2,Object.assign({},(0,a.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,a=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",a&&n&&"Tabs__tab--altSelection",t]),selected:!a&&n,color:"transparent"},l)))}},function(e,t,n){var o={"./AiAirlock.js":434,"./AirAlarm.js":435,"./AirlockElectronics.js":443,"./Apc.js":444,"./AtmosAlertConsole.js":445,"./AtmosControlConsole.js":446,"./AtmosFilter.js":447,"./AtmosMixer.js":448,"./AtmosPump.js":449,"./AtmosRelief.js":450,"./BankMachine.js":451,"./BluespaceArtillery.js":452,"./BorgPanel.js":453,"./BrigTimer.js":454,"./Canister.js":455,"./Canvas.js":456,"./Cargo.js":457,"./CargoExpress.js":461,"./CellularEmporium.js":462,"./CentcomPodLauncher.js":463,"./ChemDispenser.js":476,"./ChemHeater.js":477,"./ChemMaster.js":478,"./ChemSynthesizer.js":482,"./CodexGigas.js":483,"./ComputerFabricator.js":484,"./Crayon.js":485,"./CrewConsole.js":486,"./Cryo.js":487,"./DisposalUnit.js":488,"./DnaVault.js":489,"./DogborgSleeper.js":490,"./EightBallVote.js":492,"./EmergencyShuttleConsole.js":493,"./EngravedMessage.js":494,"./Gps.js":495,"./GravityGenerator.js":496,"./GulagItemReclaimer.js":497,"./GulagTeleporterConsole.js":498,"./Holodeck.js":499,"./ImplantChair.js":500,"./Intellicard.js":501,"./KeycardAuth.js":502,"./LaborClaimConsole.js":503,"./LanguageMenu.js":504,"./LaunchpadConsole.js":505,"./LaunchpadRemote.js":508,"./MechBayPowerConsole.js":509,"./Mule.js":510,"./NaniteChamberControl.js":511,"./NaniteCloudControl.js":512,"./NaniteProgramHub.js":516,"./NaniteProgrammer.js":517,"./NaniteRemote.js":526,"./NotificationPreferences.js":527,"./NtnetRelay.js":528,"./NtosAiRestorer.js":529,"./NtosCard.js":530,"./NtosConfiguration.js":531,"./NtosFileManager.js":532,"./NtosMain.js":533,"./NtosNetChat.js":534,"./NtosNetDos.js":535,"./NtosNetDownloader.js":536,"./NtosNetMonitor.js":537,"./NtosNetTransfer.js":538,"./NtosRbmkStats.js":539,"./NtosRevelation.js":540,"./NtosStationAlertConsole.js":541,"./NtosSupermatterMonitor.js":542,"./NuclearBomb.js":543,"./OperatingComputer.js":544,"./OreBox.js":545,"./OreRedemptionMachine.js":546,"./Pandemic.js":547,"./PersonalCrafting.js":548,"./PortableBasicInfo.js":123,"./PortablePump.js":549,"./PortableScrubber.js":550,"./PowerMonitor.js":551,"./Radio.js":552,"./RapidPipeDispenser.js":553,"./RbmkControlRods.js":554,"./RbmkStats.js":555,"./SatelliteControl.js":556,"./ShuttleManipulator.js":557,"./Signaler.js":558,"./Sleeper.js":559,"./SlimeBodySwapper.js":562,"./SmartVend.js":563,"./Smes.js":564,"./SmokeMachine.js":565,"./SolarControl.js":566,"./SpaceHeater.js":567,"./SpawnersMenu.js":568,"./StationAlertConsole.js":179,"./SuitStorageUnit.js":569,"./Tank.js":570,"./TankDispenser.js":571,"./TelecommsInteraction.js":572,"./TelecommsLogBrowser.js":573,"./TelecommsMonitor.js":574,"./TelecommsPDALog.js":575,"./Teleporter.js":576,"./ThermoMachine.js":577,"./TurbineComputer.js":578,"./Uplink.js":579,"./Wires.js":580};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=433},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},u=d[l.power.main]||d[0],s=d[l.power.backup]||d[0],p=d[l.shock]||d[0];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main",color:u.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){return c("disrupt-main")}}),children:[l.power.main?"Online":"Offline"," ",l.wires.main_1&&l.wires.main_2?l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Backup",color:s.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){return c("disrupt-backup")}}),children:[l.power.backup?"Online":"Offline"," ",l.wires.backup_1&&l.wires.backup_2?l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",disabled:!(l.wires.shock&&0===l.shock),content:"Restore",onClick:function(){return c("shock-restore")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){return c("shock-temp")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Permanent",onClick:function(){return c("shock-perm")}})],4),children:[2===l.shock?"Safe":"Electrified"," ",(l.wires.shock?l.shock_timeleft>0&&"["+l.shock_timeleft+"s]":"[Wires have been cut!]")||-1===l.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){return c("idscan-toggle")}}),children:!l.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.emergency?"power-off":"times",content:l.emergency?"Enabled":"Disabled",selected:l.emergency,onClick:function(){return c("emergency-toggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){return c("bolt-toggle")}}),children:!l.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){return c("light-toggle")}}),children:!l.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){return c("safe-toggle")}}),children:!l.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){return c("speed-toggle")}}),children:!l.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){return c("open-close")}}),children:!(!l.locked&&!l.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(2),a=n(4),i=n(436),c=n(442),l=n(88);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data,s=u.locked&&!u.siliconUser;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.InterfaceLockNoticeBox,{siliconUser:u.siliconUser,locked:u.locked,onLockStatusChange:function(){return d("lock")}}),(0,o.createComponentVNode)(2,c.AirAlarmStatus),!s&&(0,o.createComponentVNode)(2,i.AirAlarmControl)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(437),c=n(438),l=n(439),d=n(440),u=n(441);t.AirAlarmControl=function(e,t){var n=(0,r.useBackend)(t),i=(n.config,n.data),c=(0,r.useLocalState)(t,"AirAlarmPage","home"),l=c[0],d=c[1],u=s[l]||s.home,p=u.component();return(0,o.createComponentVNode)(2,a.Section,{title:u.title,buttons:"home"!==i.screen&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return d("home")}}),children:(0,o.createComponentVNode)(2,p)})};var s={home:{title:"Air Controls",component:function(){return i.AirAlarmControlHome}},vents:{title:"Vent Controls",component:function(){return u.AirAlarmControlVents}},scrubbers:{title:"Scrubber Controls",component:function(){return l.AirAlarmControlScrubbers}},modes:{title:"Operating Mode",component:function(){return c.AirAlarmControlModes}},thresholds:{title:"Alarm Thresholds",component:function(){return d.AirAlarmControlThresholds}}}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlHome=void 0;var o=n(0),r=n(2),a=n(1);t.AirAlarmControlHome=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=(0,r.useLocalState)(t,"AirAlarmPage","home"),d=(l[0],l[1]),u=c.mode,s=c.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:s?"exclamation-triangle":"exclamation",color:s&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return i(s?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===u?"exclamation-triangle":"exclamation",color:3===u&&"danger",content:"Panic Siphon",onClick:function(){return i("mode",{mode:3===u?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlModes=void 0;var o=n(0),r=n(2),a=n(1);t.AirAlarmControlModes=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.modes;return c&&0!==c.length?c.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return i("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlScrubbers=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(38);t.AirAlarmControlScrubbers=function(e,t){var n=e.state,r=(0,a.useBackend)(t).data.scrubbers;return r&&0!==r.length?r.map((function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({state:n},e),e.id_tag))})):"Nothing to show"};var l=function(e,t){var n=e.long_name,l=e.power,d=e.scrubbing,u=e.id_tag,s=e.widenet,p=e.filter_types,m=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Section,{level:2,title:(0,r.decodeHtmlEntities)(n),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){return m("power",{id_tag:u,val:Number(!l)})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,i.Button,{icon:d?"filter":"sign-in-alt",color:d||"danger",content:d?"Scrubbing":"Siphoning",onClick:function(){return m("scrubbing",{id_tag:u,val:Number(!d)})}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"expand":"compress",selected:s,content:s?"Expanded range":"Normal range",onClick:function(){return m("widenet",{id_tag:u,val:Number(!s)})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filters",children:d&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,c.getGasLabel)(e.gas_id,e.gas_name),title:e.gas_name,selected:e.enabled,onClick:function(){return m("toggle_filter",{id_tag:u,val:e.gas_id})}},e.gas_id)}))||"N/A"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlThresholds=void 0;var o=n(0),r=n(19),a=n(2),i=n(1);t.AirAlarmControlThresholds=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,l.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",e.name,0),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,i.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return c("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlVents=void 0;var o=n(0),r=n(16),a=n(2),i=n(1);t.AirAlarmControlVents=function(e,t){var n=e.state,r=(0,a.useBackend)(t).data.vents;return r&&0!==r.length?r.map((function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c,Object.assign({state:n},e),e.id_tag))})):"Nothing to show"};var c=function(e,t){var n=e.id_tag,c=e.long_name,l=e.power,d=e.checks,u=e.excheck,s=e.incheck,p=e.direction,m=e.external,f=e.internal,h=e.extdefault,C=e.intdefault,g=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Section,{level:2,title:(0,r.decodeHtmlEntities)(c),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:l?"power-off":"times",selected:l,content:l?"On":"Off",onClick:function(){return g("power",{id_tag:n,val:Number(!l)})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",children:"release"===p?"Pressurizing":"Releasing"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Internal",selected:s,onClick:function(){return g("incheck",{id_tag:n,val:d})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"External",selected:u,onClick:function(){return g("excheck",{id_tag:n,val:d})}})]}),!!s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return g("set_internal_pressure",{id_tag:n,value:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:C,content:"Reset",onClick:function(){return g("reset_internal_pressure",{id_tag:n})}})]}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(m),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return g("set_external_pressure",{id_tag:n,value:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:h,content:"Reset",onClick:function(){return g("reset_external_pressure",{id_tag:n})}})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmStatus=void 0;var o=n(0),r=n(19),a=n(2),i=n(1);t.AirAlarmStatus=function(e,t){var n=(0,a.useBackend)(t).data,c=(n.environment_data||[]).filter((function(e){return e.value>=.01})),l={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},d=l[n.danger_level]||l[0];return(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[c.length>0&&(0,o.createFragment)([c.map((function(e){var t=l[e.danger_level]||l[0];return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,color:t.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local status",color:d.color,children:d.localStatusText}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Area status",color:n.atmos_alarm||n.fire_alarm?"bad":"good",children:(n.atmos_alarm?"Atmosphere Alarm":n.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!n.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AirlockElectronics=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.regions||[],u=(0,r.useLocalState)(t,"tab",d[0].name),s=u[0],p=u[1],m=d.find((function(e){return e.name===s})),f={0:{icon:"times-circle"},1:{icon:"stop-circle"},2:{icon:"check-circle"}};return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Main",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Access Required",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.oneAccess?"unlock":"lock",content:l.oneAccess?"One":"All",onClick:function(){return c("one_access")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mass Modify",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"check-double",content:"Grant All",onClick:function(){return c("grant_all")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Clear All",onClick:function(){return c("clear_all")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unrestricted Access",children:[(0,o.createComponentVNode)(2,a.Button,{icon:1&l.unres_direction?"check-square-o":"square-o",content:"North",selected:1&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"1"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:2&l.unres_direction?"check-square-o":"square-o",content:"East",selected:2&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"2"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:4&l.unres_direction?"check-square-o":"square-o",content:"South",selected:4&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"4"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:8&l.unres_direction?"check-square-o":"square-o",content:"West",selected:8&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"8"})}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:d.map((function(e){var t=e.name,n=e.accesses||[],r=f[function(e){var t=!1,n=!1;return e.forEach((function(e){e.req?t=!0:n=!0})),!t&&n?0:t&&n?1:2}(n)].icon;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:r,selected:s===t,onClick:function(){return p(t)},children:t},t)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:m.accesses.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:e.req?"check-square-o":"square-o",content:e.name,selected:e.req,onClick:function(){return c("set",{access:e.id})}})},e.id)}))})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Apc=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(88);t.Apc=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.locked&&!d.siliconUser,s={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"}},p={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},m=s[d.externalPower]||s[0],f=s[d.chargingStatus]||s[0],h=d.powerChannels||[],C=p[d.malfStatus]||p[0],g=d.powerCellStatus/100;return d.failTime>0?(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createVNode)(1,"b",null,(0,o.createVNode)(1,"h3",null,"SYSTEM FAILURE",16),2),(0,o.createVNode)(1,"i",null,"I/O regulators malfunction detected! Waiting for system reboot...",16),(0,o.createVNode)(1,"br"),"Automatic reboot in ",d.failTime," seconds...",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reboot Now",onClick:function(){return l("reboot")}})]}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox,{siliconUser:d.siliconUser,locked:d.locked,onLockStatusChange:function(){return l("lock")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main Breaker",color:m.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,disabled:u,onClick:function(){return l("breaker")}}),children:["[ ",m.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",value:g})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",color:f.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.chargeMode?"sync":"close",content:d.chargeMode?"Auto":"Off",disabled:u,onClick:function(){return l("charge")}}),children:["[ ",f.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return l("channel",t.auto)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return l("channel",t.on)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return l("channel",t.off)}})],4),children:e.powerLoad},e.title)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,d.totalLoad,0)})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,a.Button,{icon:C.icon,content:C.content,color:"bad",onClick:function(){return l(C.action)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return l("overload")}})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){return l("cover")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){return l("emergency_lighting")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",disabled:u,onClick:function(){return l("toggle_nightshift")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.priority||[],u=l.minor||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[d.length>0?d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})):(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),u.length>0?u.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})):(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16)],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControlConsole=void 0;var o=n(0),r=n(33),a=n(19),i=n(2),c=n(1),l=n(4);t.AtmosControlConsole=function(e,t){var n=(0,i.useBackend)(t),d=n.act,u=n.data,s=u.sensors||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:!!u.tank&&s[0].long_name,children:s.map((function(e){var t=e.gases||{};return(0,o.createComponentVNode)(2,c.Section,{title:!u.tank&&e.long_name,level:2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,a.toFixed)(e.pressure,2)+" kPa"}),!!e.temperature&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,a.toFixed)(e.temperature,2)+" K"}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:t,children:(0,a.toFixed)(e,2)+"%"})}))(t)]})},e.id_tag)}))}),u.tank&&(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Reconnect",onClick:function(){return d("reconnect")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Injector",children:(0,o.createComponentVNode)(2,c.Button,{icon:u.inputting?"power-off":"times",content:u.inputting?"Injecting":"Off",selected:u.inputting,onClick:function(){return d("input")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Rate",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:u.inputRate,unit:"L/s",width:"63px",minValue:0,maxValue:200,suppressFlicker:2e3,onChange:function(e,t){return d("rate",{rate:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Regulator",children:(0,o.createComponentVNode)(2,c.Button,{icon:u.outputting?"power-off":"times",content:u.outputting?"Open":"Closed",selected:u.outputting,onClick:function(){return d("output")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:parseFloat(u.outputPressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,suppressFlicker:2e3,onChange:function(e,t){return d("pressure",{pressure:t})}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(2),a=n(1),i=n(38),c=n(4);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.filter_types||[];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,t){return l("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:d.rate===d.max_rate,onClick:function(){return l("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filter",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.selected,content:(0,i.getGasLabel)(e.id,e.name),onClick:function(){return l("filter",{mode:e.id})}},e.id)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return c("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Node 1",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return c("node1",{concentration:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Node 2",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return c("node2",{concentration:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return c("power")}})}),l.max_rate?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onChange:function(e,t){return c("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return c("rate",{rate:"max"})}})]}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.pressure===l.max_pressure,onClick:function(){return c("pressure",{pressure:"max"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosRelief=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosRelief=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Open Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.open_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("open_pressure",{open_pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.open_pressure===l.max_pressure,onClick:function(){return c("open_pressure",{open_pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Close Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.close_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.open_pressure,step:10,onChange:function(e,t){return c("close_pressure",{close_pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.close_pressure===l.open_pressure,onClick:function(){return c("close_pressure",{close_pressure:"max"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BankMachine=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BankMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.current_balance,u=l.siphoning,s=l.station_name;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:s+" Vault",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Balance",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"times":"sync",content:u?"Stop Siphoning":"Siphon Credits",selected:u,onClick:function(){return c(u?"halt":"siphon")}}),children:d+" cr"})})}),(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"Authorized personnel only"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceArtillery=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BluespaceArtillery=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.notice,u=l.connected,s=l.unlocked,p=l.target;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:d}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Target",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"crosshairs",disabled:!s,onClick:function(){return c("recalibrate")}}),children:(0,o.createComponentVNode)(2,a.Box,{color:p?"average":"bad",fontSize:"25px",children:p||"No Target Set"})}),(0,o.createComponentVNode)(2,a.Section,{children:s?(0,o.createComponentVNode)(2,a.Box,{style:{margin:"auto"},children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"FIRE",color:"bad",disabled:!p,fontSize:"30px",textAlign:"center",lineHeight:"46px",onClick:function(){return c("fire")}})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"bad",fontSize:"18px",children:"Bluespace artillery is currently locked."}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"Awaiting authorization via keycard reader from at minimum two station heads."})],4)})],4):(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance",children:(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"Complete Deployment",onClick:function(){return c("build")}})})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.borg||{},u=l.cell||{},s=u.charge/u.maxcharge,p=l.channels||[],m=l.modules||[],f=l.upgrades||[],h=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:d.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.emagged?"check-square-o":"square-o",content:"Emagged",selected:d.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:d.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:d.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[u.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,a.ProgressBar,{value:s,children:[u.charge," / ",u.maxcharge]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Module",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:d.active_module===e.type?"check-square-o":"square-o",content:e.name,selected:d.active_module===e.type,onClick:function(){return c("setmodule",{module:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upgrades",children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Laws",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:d.lawupdate,onClick:function(){return c("toggle_lawupdate")}}),children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:l.timing?"Stop":"Start",selected:l.timing,onClick:function(){return c(l.timing?"stop":"start")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:l.flash_charging?"Recharging":"Flash",disabled:l.flash_charging,onClick:function(){return c("flash")}})],4),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",onClick:function(){return c("time",{adjust:-600})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",onClick:function(){return c("time",{adjust:-100})}})," ",String(l.minutes).padStart(2,"0"),":",String(l.seconds).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",onClick:function(){return c("time",{adjust:100})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",onClick:function(){return c("time",{adjust:600})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Short",onClick:function(){return c("preset",{preset:"short"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Medium",onClick:function(){return c("preset",{preset:"medium"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Long",onClick:function(){return c("preset",{preset:"long"})}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Canister=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:["The regulator ",l.hasHoldingTank?"is":"is not"," connected to a tank."]}),(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Relabel",onClick:function(){return c("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.tankPressure})," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Port",color:l.portConnected?"good":"average",content:l.portConnected?"Connected":"Not Connected"}),!!l.isPrototype&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.restricted?"lock":"unlock",color:"caution",content:l.restricted?"Restricted to Engineering":"Public",onClick:function(){return c("restricted")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Valve",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Release Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.releasePressure/(l.maxReleasePressure-l.minReleasePressure),children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.releasePressure})," kPa"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:l.releasePressure===l.defaultReleasePressure,content:"Reset",onClick:function(){return c("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:l.releasePressure<=l.minReleasePressure,content:"Min",onClick:function(){return c("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("pressure",{pressure:"input"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:l.releasePressure>=l.maxReleasePressure,content:"Max",onClick:function(){return c("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.valveOpen?"unlock":"lock",color:l.valveOpen?l.hasHoldingTank?"caution":"danger":null,content:l.valveOpen?"Open":"Closed",onClick:function(){return c("valve")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:l.valveOpen&&"danger",content:"Eject",onClick:function(){return c("eject")}}),children:[!!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:l.holdingTank.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.holdingTank.tankPressure})," kPa"]})]}),!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Canvas=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Canvas=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c,{value:d.grid,onCanvasClick:function(e,t){return l("paint",{x:e,y:t})}}),(0,o.createComponentVNode)(2,a.Box,{children:d.name})]})})})};var c=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).canvasRef=(0,o.createRef)(),n.onCVClick=t.onCanvasClick,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.drawCanvas(this.props)},a.componentDidUpdate=function(){this.drawCanvas(this.props)},a.drawCanvas=function(e){var t=this.canvasRef.current.getContext("2d"),n=e.value,o=n.length;if(o){var r=n[0].length,a=Math.round(this.canvasRef.current.width/o),i=Math.round(this.canvasRef.current.height/r);t.save(),t.scale(a,i);for(var c=0;c=0||(r[n]=e[n]);return r}(t,["res","value","px_per_unit"]),c=n.length*a,l=0!==c?n[0].length*a:0;return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:c||300,height:l||300},i,{onClick:function(t){return e.clickwrapper(t)}}),null,this.canvasRef))},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.Cargo=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(458),l=n(172),d=n(460);t.Cargo=function(e,t){var n=(0,r.useBackend)(t),u=n.data,s=n.act,p=u.requestonly,m=u.points,f=u.docked,h=u.location,C=u.message,g=u.loan,b=u.loan_dispatched,N=u.away,v=u.cart||[],V=u.requests||[],y=Object.values(u.supplies),_=(0,r.useLocalState)(t,"tab","catalog"),x=_[0],k=_[1],w=v.reduce((function(e,t){return e+t.cost}),0),L=p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:1,children:[0===v.length&&"Cart is empty",1===v.length&&"1 item",v.length>=2&&v.length+" items"," ",w>0&&"("+w+" cr)"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"transparent",content:"Clear",onClick:function(){return s("clear")}})],4);return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Cargo",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(m)})," credits"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle",children:f&&!p&&(0,o.createComponentVNode)(2,a.Button,{content:h,onClick:function(){return s("send")}})||h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentCom Message",children:C}),g&&!p?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loan",children:b?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Loaned to Centcom"}):(0,o.createComponentVNode)(2,a.Button,{content:"Loan Shuttle",disabled:!(N&&f),onClick:function(){return s("loan")}})}):""]})}),(0,o.createComponentVNode)(2,a.Tabs,{mt:2,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:"catalog"===x,onClick:function(){return k("catalog")},children:"Catalog"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"envelope",className:V.length>0&&"requests"!==x&&"color-yellow",lineHeight:"23px",selected:"requests"===x,onClick:function(){return k("requests")},children:["Requests (",V.length,")"]}),!p&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"shopping-cart",className:v.length>0&&"cart"!==x&&"color-yellow",lineHeight:"23px",selected:"cart"===x,onClick:function(){return k("cart")},children:["Checkout (",v.length,")"]})]}),"catalog"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Catalog",buttons:L,children:(0,o.createComponentVNode)(2,l.Catalog,{supplies:y})}),"requests"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Active Requests",buttons:!p&&(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Clear",color:"transparent",onClick:function(){return s("denyall")}}),children:(0,o.createComponentVNode)(2,d.Requests)}),"cart"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Current Cart",buttons:L,children:(0,o.createComponentVNode)(2,c.Cart)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cart=void 0;var o=n(0),r=n(2),a=n(1);t.Cart=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=i.requestonly,d=i.docked,u=i.location,s=i.away,p=i.cart||[];return(0,o.createFragment)([0===p.length&&"Nothing in cart",p.length>0&&(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:"#"+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:2,children:[!!e.paid&&(0,o.createVNode)(1,"b",null,"[Paid Privately]",16)," ",e.cost," credits"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",onClick:function(){return c("remove",{id:e.id})}})],4),children:e.object},e.id)}))}),p.length>0&&!l&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:1===s&&1===d&&(0,o.createComponentVNode)(2,a.Button,{color:"green",style:{"line-height":"28px",padding:"0 12px"},content:"Confirm the order",onClick:function(){return c("send")}})||(0,o.createComponentVNode)(2,a.Box,{opacity:.5,children:["Shuttle in ",u,"."]})})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CatalogPackItemList=void 0;var o=n(0),r=n(2),a=n(1);t.CatalogPackItemList=function(e,t){var n=e.supply,i=(0,r.useBackend)(t),c=i.data,l=i.act,d=c.self_paid,u=n.packs;return(0,o.createComponentVNode)(2,a.LabeledList,{children:u.map((function(e){var t=(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:(d?Math.round(1.1*e.cost):e.cost)+" credits",tooltip:e.desc,tooltipPosition:"left",onClick:function(){return l("add",{id:e.id})}});return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:t,children:!!e.access&&"Restrictions Apply"},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.Requests=void 0;var o=n(0),r=n(2),a=n(1);t.Requests=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=i.requestonly,d=i.requests||[];return 0===d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Requests"}):(0,o.createVNode)(1,"table","LabeledList",d.map((function(e){return(0,o.createFragment)([(0,o.createVNode)(1,"tr","LabeledList__row candystripe",[(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__label",[(0,o.createTextVNode)("#"),e.id,(0,o.createTextVNode)(":")],0),(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__content",e.object,0),(0,o.createVNode)(1,"td","LabeledList__cell",[(0,o.createTextVNode)("By "),(0,o.createVNode)(1,"b",null,e.orderer,0)],4),(0,o.createVNode)(1,"td","LabeledList__cell",(0,o.createVNode)(1,"i",null,e.reason,0),2),(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",[e.cost,(0,o.createTextVNode)(" credits"),(0,o.createTextVNode)(" "),!l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"check",color:"good",onClick:function(){return c("approve",{id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"bad",onClick:function(){return c("deny",{id:e.id})}})],4)],0)],4)],4,e.id)})),0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoExpress=void 0;var o=n(0),r=n(1),a=n(88),i=n(4),c=n(172),l=n(2);t.CargoExpress=function(e,t){var n=(0,l.useBackend)(t),d=n.data,u=n.act,s=d.siliconUser,p=d.locked,m=d.points,f=d.usingBeacon,h=d.hasBeacon,C=d.beaconName,g=d.beaconzone,b=d.printMsg,N=d.canBuyBeacon,v=d.message,V=Object.values(d.supplies);return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.InterfaceLockNoticeBox,{siliconUser:s,locked:p,onLockStatusChange:function(){return u("lock")},accessText:"a QM-level ID card"}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Section,{title:"Cargo Express",buttons:(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(m)})," credits"]}),children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Landing Location",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Cargo Bay",selected:!f,onClick:function(){return u("LZCargo")}}),(0,o.createComponentVNode)(2,r.Button,{selected:f,disabled:!h,onClick:function(){return u("LZBeacon")},children:[g," (",C,")"]}),(0,o.createComponentVNode)(2,r.Button,{content:b,disabled:!N,onClick:function(){return u("printBeacon")}})]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Notice",children:v})]})}),(0,o.createComponentVNode)(2,c.Catalog,{supplies:V})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CellularEmporium=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.CellularEmporium=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.abilities;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Genetic Points",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Readapt",disabled:!l.can_readapt,onClick:function(){return c("readapt")}}),children:l.genetic_points_remaining})})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:e.name,buttons:(0,o.createFragment)([e.dna_cost," ",(0,o.createComponentVNode)(2,a.Button,{content:e.owned?"Evolved":"Evolve",selected:e.owned,onClick:function(){return c("evolve",{name:e.name})}})],0),children:[e.desc,(0,o.createComponentVNode)(2,a.Box,{color:"good",children:e.helptext})]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CentcomPodLauncher=void 0;var o=n(0),r=(n(16),n(2)),a=n(1),i=n(4),c=n(464),l=n(465),d=n(466),u=n(467),s=n(468),p=n(469),m=n(470),f=n(471),h=n(472),C=n(473),g=n(474),b=n(475);t.CentcomPodLauncher=function(e,t){var n=(0,r.useBackend)(t),N=n.act,v=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"To use this, simply spawn the atoms you want in one of the five Centcom Supplypod Bays. Items in the bay will then be launched inside your supplypod, one turf-full at a time! You can optionally use the following buttons to configure how the supplypod acts."}),(0,o.createComponentVNode)(2,a.Section,{title:"Centcom Pod Customization (To be used against Helen Weinstein)",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,C.CPLSupplyBay),(0,o.createComponentVNode)(2,g.CPLTeleportTo),(0,o.createComponentVNode)(2,c.CPLCloneMode),(0,o.createComponentVNode)(2,s.CPLLaunchStyle),(0,o.createComponentVNode)(2,u.CPLExplosion),(0,o.createComponentVNode)(2,l.CPLDamage),(0,o.createComponentVNode)(2,d.CPLEffects),(0,o.createComponentVNode)(2,p.CPLMovement),(0,o.createComponentVNode)(2,m.CPLNameAndDescription),(0,o.createComponentVNode)(2,f.CPLSound),(0,o.createComponentVNode)(2,b.CPLTimers),(0,o.createComponentVNode)(2,h.CPLStyle)]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:v.numObjects+" turfs in "+v.bay,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"undo Pod Bay",tooltip:"Manually undoes the possible things to launch in the\npod bay.",onClick:function(){return N("undo")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Enter Launch Mode",selected:v.giveLauncher,tooltip:"THE CODEX ASTARTES CALLS THIS MANEUVER: STEEL RAIN",onClick:function(){return N("giveLauncher")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear Selected Bay",color:"bad",tooltip:"This will delete all objs and mobs from the selected bay.",tooltipPosition:"left",onClick:function(){return N("clearBay")}})],4)})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLCloneMode=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLCloneMode=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Clone Mode",children:(0,o.createComponentVNode)(2,r.Button,{content:"Launch Clones",selected:c.launchClone,tooltip:"Choosing this will create a duplicate of the item to be\nlaunched in Centcom, allowing you to send one type of item\nmultiple times. Either way, the atoms are forceMoved into\nthe supplypod after it lands (but before it opens).",onClick:function(){return i("launchClone")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLDamage=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLDamage=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Damage",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Damage",selected:1===c.damageChoice,tooltip:"Anyone caught under the pod when it lands will be dealt\nthis amount of brute damage. Sucks to be them!",onClick:function(){return i("damageCustom")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Gib",selected:2===c.damageChoice,tooltip:"This will attempt to gib any mob caught under the pod when\nit lands, as well as dealing a nice 5000 brute damage. Ya\nknow, just to be sure!",onClick:function(){return i("damageGib")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLEffects=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLEffects=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Effects",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Stun",selected:c.effectStun,tooltip:"Anyone who is on the turf when the supplypod is launched\nwill be stunned until the supplypod lands. They cant get\naway that easy!",onClick:function(){return i("effectStun")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Delimb",selected:c.effectLimb,tooltip:"This will cause anyone caught under the pod to lose a limb,\nexcluding their head.",onClick:function(){return i("effectLimb")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Yeet Organs",selected:c.effectOrgans,tooltip:"This will cause anyone caught under the pod to lose all\ntheir limbs and organs in a spectacular fashion.",onClick:function(){return i("effectOrgans")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLExplosion=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLExplosion=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Explosion",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Size",selected:1===c.explosionChoice,tooltip:"This will cause an explosion of whatever size you like\n(including flame range) to occur as soon as the supplypod\nlands. Dont worry, supply-pods are explosion-proof!",onClick:function(){return i("explosionCustom")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Adminbus",selected:2===c.explosionChoice,tooltip:"This will cause a maxcap explosion (dependent on server\nconfig) to occur as soon as the supplypod lands. Dont worry,\nsupply-pods are explosion-proof!",onClick:function(){return i("explosionBus")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLLaunchStyle=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLLaunchStyle=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Launch style",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Ordered",selected:1===c.launchChoice,tooltip:'Instead of launching everything in the bay at once, this\nwill "scan" things (one turf-full at a time) in order, left\nto right and top to bottom. undoing will reset the "scanner"\nto the top-leftmost position.',onClick:function(){return i("launchOrdered")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Random",selected:2===c.launchChoice,tooltip:"Instead of launching everything in the bay at once, this\nwill launch one random turf of items at a time.",onClick:function(){return i("launchRandom")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLMovement=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLMovement=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Movement",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Bluespace",selected:c.effectBluespace,tooltip:"Gives the supplypod an advanced Bluespace Recyling Device.\nAfter opening, the supplypod will be warped directly to the\nsurface of a nearby NT-designated trash planet (/r/ss13).",onClick:function(){return i("effectBluespace")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Stealth",selected:c.effectStealth,tooltip:'This hides the red target icon from appearing when you\nlaunch the supplypod. Combos well with the "Invisible"\nstyle. Sneak attack, go!',onClick:function(){return i("effectStealth")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Quiet",selected:c.effectQuiet,tooltip:"This will keep the supplypod from making any sounds, except\nfor those specifically set by admins in the Sound section.",onClick:function(){return i("effectQuiet")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Reverse Mode",selected:c.effectReverse,tooltip:"This pod will not send any items. Instead, after landing,\nthe supplypod will close (similar to a normal closet closing),\nand then launch back to the right centcom bay to drop off any\nnew contents.",onClick:function(){return i("effectReverse")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Missile Mode",selected:c.effectMissile,tooltip:"This pod will not send any items. Instead, it will immediately\ndelete after landing (Similar visually to setting openDelay\n& departDelay to 0, but this looks nicer). Useful if you just\nwanna fuck some shit up. Combos well with the Missile style.",onClick:function(){return i("effectMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Any Descent Angle",selected:c.effectCircle,tooltip:"This will make the supplypod come in from any angle. Im not\nsure why this feature exists, but here it is.",onClick:function(){return i("effectCircle")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Machine Gun Mode",selected:c.effectBurst,tooltip:"This will make each click launch 5 supplypods inaccuratly\naround the target turf (a 3x3 area). Combos well with the\nMissile Mode if you dont want shit lying everywhere after.",onClick:function(){return i("effectBurst")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Specific Target",selected:c.effectTarget,tooltip:"This will make the supplypod target a specific atom, instead\nof the mouses position. Smiting does this automatically!",onClick:function(){return i("effectTarget")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLNameAndDescription=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLNameAndDescription=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Name/Desc",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Name/Desc",selected:c.effectName,tooltip:"Allows you to add a custom name and description.",onClick:function(){return i("effectName")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Alert Ghosts",selected:c.effectAnnounce,tooltip:"Alerts ghosts when a pod is launched. Useful if some dumb\nshit is aboutta come outta the pod.",onClick:function(){return i("effectAnnounce")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLSound=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLSound=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Sound",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Falling Sound",selected:c.fallingSound,tooltip:"Choose a sound to play as the pod falls. Note that for this\nto work right you should know the exact length of the sound,\nin seconds.",onClick:function(){return i("fallSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Landing Sound",selected:c.landingSound,tooltip:"Choose a sound to play when the pod lands.",onClick:function(){return i("landingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Opening Sound",selected:c.openingSound,tooltip:"Choose a sound to play when the pod opens.",onClick:function(){return i("openingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Leaving Sound",selected:c.leavingSound,tooltip:"Choose a sound to play when the pod departs (whether that be\ndelection in the case of a bluespace pod, or leaving for\ncentcom for a reversing pod).",onClick:function(){return i("leavingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Admin Sound Volume",selected:c.soundVolume,tooltip:"Choose the volume for the sound to play at. Default values\nare between 1 and 100, but hey, do whatever. Im a tooltip,\nnot a cop.",onClick:function(){return i("soundVolume")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLStyle=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLStyle=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Style",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Standard",selected:1===c.styleChoice,tooltip:"Same color scheme as the normal station-used supplypods",onClick:function(){return i("styleStandard")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Advanced",selected:2===c.styleChoice,tooltip:"The same as the stations upgraded blue-and-white\nBluespace Supplypods",onClick:function(){return i("styleBluespace")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Syndicate",selected:4===c.styleChoice,tooltip:"A menacing black and blood-red. Great for sending meme-ops\nin style!",onClick:function(){return i("styleSyndie")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Deathsquad",selected:5===c.styleChoice,tooltip:"A menacing black and dark blue. Great for sending deathsquads\nin style!",onClick:function(){return i("styleBlue")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Cult Pod",selected:6===c.styleChoice,tooltip:"A blood and rune covered cult pod!",onClick:function(){return i("styleCult")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Missile",selected:7===c.styleChoice,tooltip:"A large missile. Combos well with a missile mode, so the\nmissile doesnt stick around after landing.",onClick:function(){return i("styleMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Syndicate Missile",selected:8===c.styleChoice,tooltip:"A large blood-red missile. Combos well with missile mode,\nso the missile doesnt stick around after landing.",onClick:function(){return i("styleSMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Supply Crate",selected:9===c.styleChoice,tooltip:"A large, dark-green military supply crate.",onClick:function(){return i("styleBox")}}),(0,o.createComponentVNode)(2,r.Button,{content:"HONK",selected:10===c.styleChoice,tooltip:"A colorful, clown inspired look.",onClick:function(){return i("styleHONK")}}),(0,o.createComponentVNode)(2,r.Button,{content:"~Fruit",selected:11===c.styleChoice,tooltip:"For when an orange is angry",onClick:function(){return i("styleFruit")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Invisible",selected:12===c.styleChoice,tooltip:'Makes the supplypod invisible! Useful for when you want to\nuse this feature with a gateway or something. Combos well\nwith the "Stealth" and "Quiet Landing" effects.',onClick:function(){return i("styleInvisible")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Gondola",selected:13===c.styleChoice,tooltip:"This gondola can control when he wants to deliver his supplies\nif he has a smart enough mind, so offer up his body to ghosts\nfor maximum enjoyment. (Make sure to turn off bluespace and\nset a arbitrarily high open-time if you do!",onClick:function(){return i("styleGondola")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Show Contents (See Through Pod)",selected:14===c.styleChoice,tooltip:"By selecting this, the pod will instead look like whatevers\ninside it (as if it were the contents falling by themselves,\nwithout a pod). Useful for launching mechs at the station\nand standing tall as they soar in from the heavens.",onClick:function(){return i("styleSeeThrough")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLSupplyBay=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLSupplyBay=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Supply Bay",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Bay #1",selected:1===c.bayNumber,onClick:function(){return i("bay1")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #2",selected:2===c.bayNumber,onClick:function(){return i("bay2")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #3",selected:3===c.bayNumber,onClick:function(){return i("bay3")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #4",selected:4===c.bayNumber,onClick:function(){return i("bay4")}}),(0,o.createComponentVNode)(2,r.Button,{content:"ERT Bay",selected:5===c.bayNumber,tooltip:"This bay is located on the western edge of CentCom. Its the\nglass room directly west of where ERT spawn, and south of the\nCentCom ferry. Useful for launching ERT/Deathsquads/etc. onto\nthe station via drop pods.",onClick:function(){return i("bay5")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLTeleportTo=void 0;var o=n(0),r=n(1),a=n(2);t.CPLTeleportTo=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Teleport to",children:[(0,o.createComponentVNode)(2,r.Button,{content:c.bay,onClick:function(){return i("teleportCentcom")}}),(0,o.createComponentVNode)(2,r.Button,{content:c.oldArea?c.oldArea:"Where you were",disabled:!c.oldArea,onClick:function(){return i("teleportBack")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLTimers=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLTimers=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Timers",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Falling Duration",selected:4!==c.fallDuration,tooltip:"Set how long the animation for the pod falling lasts. Create\ndramatic, slow falling pods!",onClick:function(){return i("fallDuration")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Landing Time",selected:20!==c.landingDelay,tooltip:"Choose the amount of time it takes for the supplypod to hit\nthe station. By default this value is 0.5 seconds.",onClick:function(){return i("landingDelay")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Opening Time",selected:30!==c.openingDelay,tooltip:"Choose the amount of time it takes for the supplypod to open\nafter landing. Useful for giving whatevers inside the pod a\nnice dramatic entrance! By default this value is 3 seconds.",onClick:function(){return i("openingDelay")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Leaving Time",selected:30!==c.departureDelay,tooltip:"Choose the amount of time it takes for the supplypod to leave\nafter landing. By default this value is 3 seconds.",onClick:function(){return i("departureDelay")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemDispenser=void 0;var o=n(0),r=n(19),a=n(16),i=n(2),c=n(1),l=n(4);t.ChemDispenser=function(e,t){var n=(0,i.useBackend)(t),d=n.act,u=n.data,s=!!u.recordingRecipe,p=Object.keys(u.recipes).map((function(e){return{name:e,contents:u.recipes[e]}})),m=u.beakerTransferAmounts||[],f=s&&Object.keys(u.recordingRecipe).map((function(e){return{id:e,name:(0,a.toTitleCase)(e.replace(/_/," ")),volume:u.recordingRecipe[e]}}))||u.beakerContents||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:1,color:"red",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",mr:1}),"Recording"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u.energy/u.maxEnergy,children:[(0,r.toFixed)(u.energy)," units"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",buttons:(0,o.createFragment)([!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:1,children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",content:"Clear recipes",onClick:function(){return d("clear_recipes")}})}),!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"circle",disabled:!u.isBeakerLoaded,content:"Record",onClick:function(){return d("record_recipe")}}),s&&(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"transparent",content:"Discard",onClick:function(){return d("cancel_recording")}}),s&&(0,o.createComponentVNode)(2,c.Button,{icon:"save",color:"green",content:"Save",onClick:function(){return d("save_recording")}})],0),children:(0,o.createComponentVNode)(2,c.Box,{mr:-1,children:[p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"tint",width:"129.5px",lineHeight:"21px",content:e.name,onClick:function(){return d("dispense_recipe",{recipe:e.name})}},e.name)})),0===p.length&&(0,o.createComponentVNode)(2,c.Box,{color:"light-gray",children:"No recipes."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Dispense",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"plus",selected:e===u.amount,content:e,onClick:function(){return d("amount",{target:e})}},e)})),children:(0,o.createComponentVNode)(2,c.Box,{mr:-1,children:u.chemicals.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"tint",width:"129.5px",lineHeight:"21px",content:e.title,onClick:function(){return d("dispense",{reagent:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:s,content:e,onClick:function(){return d("remove",{amount:e})}},e)})),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:!!u.isBeakerLoaded&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!u.isBeakerLoaded,onClick:function(){return d("eject")}}),children:(s?"Virtual beaker":u.isBeakerLoaded&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.AnimatedNumber,{initial:0,value:u.beakerCurrentVolume}),(0,o.createTextVNode)("/"),u.beakerMaxVolume,(0,o.createTextVNode)(" units, "),u.beakerCurrentpH,(0,o.createTextVNode)(" pH")],0))||"No beaker"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contents",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:u.isBeakerLoaded||s?0===f.length&&"Nothing":"N/A"}),f.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{initial:0,value:e.volume})," ","units of ",e.name]},e.name)}))]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemHeater=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4),l=n(173);t.ChemHeater=function(e,t){var n=(0,a.useBackend)(t),d=n.act,u=n.data,s=u.targetTemp,p=u.isActive,m=u.isBeakerLoaded,f=u.currentTemp,h=u.currentpH,C=u.beakerCurrentVolume,g=u.beakerMaxVolume,b=u.beakerContents,N=void 0===b?[]:b;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Thermostat",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",selected:p,content:p?"On":"Off",onClick:function(){return d("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.NumberInput,{width:"65px",unit:"K",step:2,stepPixelSize:1,value:(0,r.round)(s),minValue:0,maxValue:1e3,onDrag:function(e,t){return d("temperature",{target:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{width:"60px",textAlign:"right",children:m&&(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:f,format:function(e){return(0,r.toFixed)(e)+" K"}})||"\u2014"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"pH",children:(0,o.createComponentVNode)(2,i.Box,{width:"60px",textAlign:"right",children:m&&(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:h,format:function(e){return(0,r.toFixed)(e)+" pH"}})||"-"})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:!!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:2,children:[C," / ",g," units"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",onClick:function(){return d("eject")}})],4),children:(0,o.createComponentVNode)(2,l.BeakerContents,{beakerLoaded:m,beakerContents:N})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemMaster=void 0;var o=n(0),r=n(1),a=n(4),i=n(479),c=n(480),l=n(481),d=n(2);t.ChemMaster=function(e,t){var n=(0,d.useBackend)(t),u=n.data,s=n.act,p=u.screen,m=u.beakerContents,f=void 0===m?[]:m,h=u.bufferContents,C=void 0===h?[]:h,g=u.beakerCurrentVolume,b=u.beakerMaxVolume,N=u.isBeakerLoaded,v=u.isPillBottleLoaded,V=u.pillBottleCurrentAmount,y=u.pillBottleMaxAmount,_=u.mode;return"analyze"===p?(0,o.createComponentVNode)(2,c.AnalysisResults):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.Section,{title:"Beaker",buttons:!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:2,children:[(0,o.createComponentVNode)(2,r.AnimatedNumber,{value:g,initial:0})," / "+b+" units"]}),(0,o.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}})],4),children:[!N&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"No beaker loaded."}),!!N&&0===f.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"Beaker is empty."}),(0,o.createComponentVNode)(2,i.ChemicalBuffer,{children:f.map((function(e){return(0,o.createComponentVNode)(2,i.ChemicalBufferEntry,{chemical:e,transferTo:"buffer"},e.id)}))})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Buffer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:1,children:"Mode:"}),(0,o.createComponentVNode)(2,r.Button,{color:_?"good":"bad",icon:_?"exchange-alt":"times",content:_?"Transfer":"Destroy",onClick:function(){return s("toggleMode")}})],4),children:[0===C.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"Buffer is empty."}),(0,o.createComponentVNode)(2,i.ChemicalBuffer,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.ChemicalBufferEntry,{chemical:e,transferTo:"beaker"},e.id)}))})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Packaging",children:(0,o.createComponentVNode)(2,l.PackagingControls)}),!!v&&(0,o.createComponentVNode)(2,r.Section,{title:"Pill Bottle",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:2,children:[V," / ",y," pills"]}),(0,o.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",onClick:function(){return s("ejectPillBottle")}})],4)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemicalBuffer=t.ChemicalBufferEntry=void 0;var o=n(0),r=n(2),a=n(1);t.ChemicalBufferEntry=function(e,t){var n=(0,r.useBackend)(t).act,i=e.chemical,c=e.transferTo;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i.volume,initial:0})," units of "+i.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",onClick:function(){return n("transfer",{id:i.id,amount:1,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",onClick:function(){return n("transfer",{id:i.id,amount:5,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"10",onClick:function(){return n("transfer",{id:i.id,amount:10,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",onClick:function(){return n("transfer",{id:i.id,amount:1e3,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"ellipsis-h",title:"Custom amount",onClick:function(){return n("transfer",{id:i.id,amount:-1,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"question",title:"Analyze",onClick:function(){return n("analyze",{id:i.id})}})]})]},i.id)};var i=a.Table;t.ChemicalBuffer=i},function(e,t,n){"use strict";t.__esModule=!0,t.AnalysisResults=void 0;var o=n(0),r=n(2),a=n(1);t.AnalysisResults=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=i.analyzeVars,d=i.fermianalyze;return(0,o.createComponentVNode)(2,a.Section,{title:"Analysis Results",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return c("goScreen",{screen:"home"})}}),children:[!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",children:l.state}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:l.color,mr:1}),l.color]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:l.description}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metabolization Rate",children:[l.metaRate," u/minute"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose Threshold",children:l.overD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction Threshold",children:l.addicD})]}),!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",children:l.state}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:l.color,mr:1}),l.color]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:l.description}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metabolization Rate",children:[l.metaRate," u/minute"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose Threshold",children:l.overD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction Threshold",children:l.addicD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Purity",children:l.purityF}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inverse Ratio",children:l.inverseRatioF}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Purity E",children:l.purityE}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lower Optimal Temperature",children:l.minTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upper Optimal Temperature",children:l.maxTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Explosive Temperature",children:l.eTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"pH Peak",children:l.pHpeak})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.PackagingControls=void 0;var o=n(0),r=n(2),a=(n(22),n(1));var i=function(e){var t,n;function i(){var t;return(t=e.call(this)||this).state={pillAmount:1,patchAmount:1,bottleAmount:1,packAmount:1,vialAmount:1,dartAmount:1},t}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=(this.props,this.context),n=(0,r.useBackend)(t),i=n.data,l=n.act,d=this.state,u=d.pillAmount,s=d.patchAmount,p=d.bottleAmount,m=d.packAmount,f=d.vialAmount,h=d.dartAmount,C=i.condi,g=i.chosenPillStyle,b=i.pillStyles,N=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pill type",children:N.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{width:5,selected:e.id===g,textAlign:"center",color:"transparent",onClick:function(){return l("pillStyle",{id:e.id})},children:(0,o.createComponentVNode)(2,a.Box,{mx:-1,className:e.className})},e.id)}))}),!C&&(0,o.createComponentVNode)(2,c,{label:"Pills",amount:u,amountUnit:"pills",sideNote:"max 50u",onChangeAmount:function(t,n){return e.setState({pillAmount:n})},onCreate:function(){return l("create",{type:"pill",amount:u,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Patches",amount:s,amountUnit:"patches",sideNote:"max 40u",onChangeAmount:function(t,n){return e.setState({patchAmount:n})},onCreate:function(){return l("create",{type:"patch",amount:s,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Bottles",amount:p,amountUnit:"bottles",sideNote:"max 30u",onChangeAmount:function(t,n){return e.setState({bottleAmount:n})},onCreate:function(){return l("create",{type:"bottle",amount:p,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Hypovials",amount:f,amountUnit:"vials",sideNote:"max 60u",onChangeAmount:function(t,n){return e.setState({vialAmount:n})},onCreate:function(){return l("create",{type:"hypoVial",amount:f,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Smartdarts",amount:h,amountUnit:"darts",sideNote:"max 20u",onChangeAmount:function(t,n){return e.setState({dartAmount:n})},onCreate:function(){return l("create",{type:"smartDart",amount:h,volume:"auto"})}}),!!C&&(0,o.createComponentVNode)(2,c,{label:"Packs",amount:m,amountUnit:"packs",sideNote:"max 10u",onChangeAmount:function(t,n){return e.setState({packAmount:n})},onCreate:function(){return l("create",{type:"condimentPack",amount:m,volume:"auto"})}}),!!C&&(0,o.createComponentVNode)(2,c,{label:"Bottles",amount:p,amountUnit:"bottles",sideNote:"max 50u",onChangeAmount:function(t,n){return e.setState({bottleAmount:n})},onCreate:function(){return l("create",{type:"condimentBottle",amount:p,volume:"auto"})}})]})},i}(o.Component);t.PackagingControls=i;var c=function(e,t){var n=e.label,r=e.amountUnit,i=e.amount,c=e.onChangeAmount,l=e.onCreate,d=e.sideNote;return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:n,children:[(0,o.createComponentVNode)(2,a.NumberInput,{width:14,unit:r,step:1,stepPixelSize:15,value:i,minValue:1,maxValue:10,onChange:c}),(0,o.createComponentVNode)(2,a.Button,{ml:1,content:"Create",onClick:l}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,ml:1,color:"label",content:d})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemSynthesizer=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4);t.ChemSynthesizer=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.amount,s=d.current_reagent,p=d.chemicals,m=void 0===p?[]:p,f=d.possible_amounts,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"plus",content:(0,r.toFixed)(e,0),selected:e===u,onClick:function(){return l("amount",{target:e})}},(0,r.toFixed)(e,0))}))}),(0,o.createComponentVNode)(2,i.Box,{mt:1,children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"tint",content:e.title,width:"129px",selected:e.id===s,onClick:function(){return l("select",{reagent:e.id})}},e.id)}))})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CodexGigas=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.CodexGigas=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[l.name,(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prefix",children:["Dark","Hellish","Fallen","Fiery","Sinful","Blood","Fluffy"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:1!==l.currentSection,onClick:function(){return c(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:["Lord","Prelate","Count","Viscount","Vizier","Elder","Adept"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:l.currentSection>2,onClick:function(){return c(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:["hal","ve","odr","neit","ci","quon","mya","folth","wren","geyr","hil","niet","twou","phi","coa"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:l.currentSection>4,onClick:function(){return c(e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suffix",children:["the Red","the Soulless","the Master","the Lord of all things","Jr."].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:4!==l.currentSection,onClick:function(){return c(" "+e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submit",children:(0,o.createComponentVNode)(2,a.Button,{content:"Search",disabled:l.currentSection<4,onClick:function(){return c("search")}})})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ComputerFabricator=void 0;var o=n(0),r=(n(16),n(2)),a=n(1),i=n(4);t.ComputerFabricator=function(e,t){var n=e.state,l=(0,r.useBackend)(t),d=l.act,u=l.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==u.state&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return d("clean_order")}}),(0,o.createComponentVNode)(2,c,{state:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return 0===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 1",minHeight:51,children:[(0,o.createComponentVNode)(2,a.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,a.Box,{mt:3,children:(0,o.createComponentVNode)(2,a.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return i("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return i("pick_device",{pick:"2"})}})})]})})]}):1===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 2: Customize your device",minHeight:47,buttons:(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",children:[c.totalprice," cr"]}),children:[(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:2===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_nanoprint,onClick:function(){return i("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_nanoprint,onClick:function(){return i("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Card Reader:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Adds a slot that allows you to manipulate RFID cards.\nPlease note that this is not necessary to allow the device\nto read your identification, it is just necessary to\nmanipulate other cards.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_card,onClick:function(){return i("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_card,onClick:function(){return i("hw_card",{card:"1"})}})})]}),2!==c.devtype&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_cpu,onClick:function(){return i("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:2===c.hw_cpu,onClick:function(){return i("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_tesla,onClick:function(){return i("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_tesla,onClick:function(){return i("hw_tesla",{tesla:"1"})}})})]})],4)]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:"26px",onClick:function(){return i("confirm_order")}})]}):2===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 3: Payment",minHeight:47,children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:"Please insert the required"})," ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:[c.totalprice," cr"]})]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:1,textAlign:"center",fontSize:"18px",children:"Current:"}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:.5,textAlign:"center",fontSize:"18px",color:c.credits>=c.totalprice?"good":"bad",children:[c.credits," cr"]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Purchase",disabled:c.credits=10&&e<20?i.COLORS.department.security:e>=20&&e<30?i.COLORS.department.medbay:e>=30&&e<40?i.COLORS.department.science:e>=40&&e<50?i.COLORS.department.engineering:e>=50&&e<60?i.COLORS.department.cargo:e>=200&&e<230?i.COLORS.department.centcom:i.COLORS.department.other},s=function(e,t,n,o){var r=e+t+n+o,a=Math.min(Math.max(Math.ceil(r/25),0),5);return l[a]},p=function(e,t){var n=e.type,r=e.value;return(0,o.createComponentVNode)(2,a.Box,{inline:!0,width:4,color:i.COLORS.damageType[n],textAlign:"center",children:r})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(173);t.Cryo=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",content:d.occupant.name?d.occupant.name:"No Occupant"}),!!d.hasOccupant&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",content:d.occupant.stat,color:d.occupant.statstate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",color:d.occupant.temperaturestatus,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.bodyTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant.health/d.occupant.maxHealth,color:d.occupant.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.health})})}),[{label:"Brute",type:"bruteLoss"},{label:"Respiratory",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Burn",type:"fireLoss"}].map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant[e.type]/100,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant[e.type]})})},e.id)}))],0)]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cell",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",content:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",disabled:d.isOpen,onClick:function(){return l("power")},color:d.isOperating&&"green",children:d.isOperating?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.cellTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.isOpen?"unlock":"lock",onClick:function(){return l("door")},content:d.isOpen?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.Button,{icon:d.autoEject?"sign-out-alt":"sign-in-alt",onClick:function(){return l("autoeject")},content:d.autoEject?"Auto":"Manual"})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d.isBeakerLoaded,onClick:function(){return l("ejectbeaker")},content:"Eject"}),children:(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:d.isBeakerLoaded,beakerContents:d.beakerContents})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DisposalUnit=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.DisposalUnit=function(e,t){var n,c,l=(0,r.useBackend)(t),d=l.act,u=l.data;return u.full_pressure?(n="good",c="Ready"):u.panel_open?(n="bad",c="Power Disabled"):u.pressure_charging?(n="average",c="Pressurizing"):(n="bad",c="Off"),(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:n,children:c}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.per,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Handle",children:(0,o.createComponentVNode)(2,a.Button,{icon:u.flush?"toggle-on":"toggle-off",disabled:u.isai||u.panel_open,content:u.flush?"Disengage":"Engage",onClick:function(){return d(u.flush?"handle-0":"handle-1")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:u.isai,content:"Eject Contents",onClick:function(){return d("eject")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",disabled:u.panel_open,selected:u.pressure_charging,onClick:function(){return d(u.pressure_charging?"pump-0":"pump-1")}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DnaVault=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.DnaVault=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.completed,u=l.used,s=l.choiceA,p=l.choiceB,m=l.dna,f=l.dna_max,h=l.plants,C=l.plants_max,g=l.animals,b=l.animals_max;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"DNA Vault Database",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Human DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m/f,children:[m," / ",f," Samples"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plant DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h/C,children:[h," / ",C," Samples"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Animal DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:g/b,children:[g," / ",b," Samples"]})})]})}),!(!d||u)&&(0,o.createComponentVNode)(2,a.Section,{title:"Personal Gene Therapy",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:s,textAlign:"center",onClick:function(){return c("gene",{choice:s})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:p,textAlign:"center",onClick:function(){return c("gene",{choice:p})}})})]})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DogborgSleeper=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(174),l=n(175),d=n(176);t.DogborgSleeper=function(e,t){var n=(0,r.useBackend)(t),s=n.data,p=n.act,m=(s.chem||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.SleeperOccupantStats,{data:s}),s.cleaning&&s.items&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:s.items})||null,(0,o.createComponentVNode)(2,d.SleeperPatientReagents,{data:s}),m.length>0&&(0,o.createComponentVNode)(2,c.SleeperInjectChems,{chems:m,data:s,act:p}),(0,o.createComponentVNode)(2,u,{data:s,act:p})]})})};var u=function(e,t){var n=e.data,r=e.act,i=n.occupant;n.cleaning;return(0,o.createComponentVNode)(2,a.Section,{title:"Operations",children:[(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:!i,onClick:function(){return r("eject")},children:"Eject Contents"})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"recycle",onClick:function(){return r("cleaning")},children:"Activate Self-Cleaning Cycle"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperOpenButton=void 0;var o=n(0),r=n(1);t.SleeperOpenButton=function(e,t){var n=e.data,a=e.act,i=n.open;return(0,o.createComponentVNode)(2,r.Button,{icon:i?"door-open":"door-closed",content:i?"Open":"Closed",onClick:function(){return a("door")}})}},function(e,t,n){"use strict";t.__esModule=!0,t.EightBallVote=void 0;var o=n(0),r=n(2),a=n(1),i=n(16),c=n(4);t.EightBallVote=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.question,s=d.shaking,p=d.answers,m=void 0===p?[]:p;return s?(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"16px",m:1,children:['"',u,'"']}),(0,o.createComponentVNode)(2,a.Grid,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:(0,i.toTitleCase)(e.answer),selected:e.selected,fontSize:"16px",lineHeight:"24px",textAlign:"center",mb:1,onClick:function(){return l("vote",{answer:e.answer})}}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"30px",children:e.amount})]},e.answer)}))})]})})}):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No question is currently being asked."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EmergencyShuttleConsole=void 0;var o=n(0),r=n(1),a=n(2),i=n(4);t.EmergencyShuttleConsole=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.timer_str,u=l.enabled,s=l.emagged,p=l.engines_started,m=l.authorizations_remaining,f=l.authorizations,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"40px",textAlign:"center",fontFamily:"monospace",children:d}),(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",fontSize:"16px",mb:1,children:[(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,children:"ENGINES:"}),(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:p?"good":"average",ml:1,children:p?"Online":"Idle"})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Early Launch Authorization",level:2,buttons:(0,o.createComponentVNode)(2,r.Button,{icon:"times",content:"Repeal All",color:"bad",disabled:!u,onClick:function(){return c("abort")}}),children:[(0,o.createComponentVNode)(2,r.Grid,{children:[(0,o.createComponentVNode)(2,r.Grid.Column,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"exclamation-triangle",color:"good",content:"AUTHORIZE",disabled:!u,onClick:function(){return c("authorize")}})}),(0,o.createComponentVNode)(2,r.Grid.Column,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"minus",content:"REPEAL",disabled:!u,onClick:function(){return c("repeal")}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Authorizations",level:3,minHeight:"150px",buttons:(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,color:s?"bad":"good",children:s?"ERROR":"Remaining: "+m}),children:[h.length>0?h.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"16px",className:"candystripe",children:[e.name," (",e.job,")"]},e.name)})):(0,o.createComponentVNode)(2,r.Box,{bold:!0,textAlign:"center",fontSize:"16px",color:"average",children:"No Active Authorizations"}),h.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"16px",className:"candystripe",children:[e.name," (",e.job,")"]},e.name)}))]})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EngravedMessage=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.EngravedMessage=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.admin_mode,s=d.creator_key,p=d.creator_name,m=d.has_liked,f=d.has_disliked,h=d.hidden_message,C=d.is_creator,g=d.num_likes,b=d.num_dislikes,N=d.realdate;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,textAlign:"center",fontSize:"20px",mb:2,children:(0,r.decodeHtmlEntities)(h)}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"arrow-up",content:" "+g,disabled:C,selected:m,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("like")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"circle",disabled:C,selected:!f&&!m,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("neutral")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"arrow-down",content:" "+b,disabled:C,selected:f,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("dislike")}})})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Created On",children:N})})}),(0,o.createComponentVNode)(2,i.Section),!!u&&(0,o.createComponentVNode)(2,i.Section,{title:"Admin Panel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",color:"bad",onClick:function(){return l("delete")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Creator Ckey",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Creator Character Name",children:p})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Gps=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=n(163),l=n(2),d=n(1),u=n(4),s=function(e){return(0,r.map)(parseFloat)(e.split(", "))};t.Gps=function(e,t){var n=(0,l.useBackend)(t),p=n.act,m=n.data,f=m.currentArea,h=m.currentCoords,C=m.globalmode,g=m.power,b=m.tag,N=m.updating,v=(0,a.flow)([(0,r.map)((function(e,t){var n=e.dist&&Math.round((0,c.vecLength)((0,c.vecSubtract)(s(h),s(e.coords))));return Object.assign({},e,{dist:n,index:t})})),(0,r.sortBy)((function(e){return e.dist===undefined}),(function(e){return e.entrytag}))])(m.signals||[]);return(0,o.createComponentVNode)(2,u.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.Section,{title:"Control",buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"power-off",content:g?"On":"Off",selected:g,onClick:function(){return p("power")}}),children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Tag",children:(0,o.createComponentVNode)(2,d.Button,{icon:"pencil-alt",content:b,onClick:function(){return p("rename")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,d.Button,{icon:N?"unlock":"lock",content:N?"AUTO":"MANUAL",color:!N&&"bad",onClick:function(){return p("updating")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,d.Button,{icon:"sync",content:C?"MAXIMUM":"LOCAL",selected:!C,onClick:function(){return p("globalmode")}})})]})}),!!g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:"Current Location",children:(0,o.createComponentVNode)(2,d.Box,{fontSize:"18px",children:[f," (",h,")"]})}),(0,o.createComponentVNode)(2,d.Section,{title:"Detected Signals",children:(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{content:"Name"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Direction"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Coordinates"})]}),v.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,d.Table.Cell,{bold:!0,color:"label",children:e.entrytag}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,opacity:e.dist!==undefined&&(0,i.clamp)(1.2/Math.log(Math.E+e.dist/20),.4,1),children:[e.degrees!==undefined&&(0,o.createComponentVNode)(2,d.Icon,{mr:1,size:1.2,name:"arrow-up",rotation:e.degrees}),e.dist!==undefined&&e.dist+"m"]}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:e.coords})]},e.entrytag+e.coords+e.index)}))]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GravityGenerator=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GravityGenerator=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.breaker,u=l.charge_count,s=l.charging_state,p=l.on,m=l.operational;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:!m&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"No data available"})||(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breaker",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:!m,onClick:function(){return c("gentoggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gravity Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/100,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",children:[0===s&&(p&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Fully Charged"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not Charging"})),1===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Charging"}),2===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Discharging"})]})]})}),m&&0!==s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"WARNING - Radiation detected"}),m&&0===s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"No radiation detected"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GulagItemReclaimer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GulagItemReclaimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.mobs||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Stored Items",children:(0,o.createComponentVNode)(2,a.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{content:"Retrieve Items",disabled:!l.can_reclaim,onClick:function(){return c("release_items",{mobref:e.mob})}})})]},e.mob)}))})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GulagTeleporterConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GulagTeleporterConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.teleporter,u=l.teleporter_lock,s=l.teleporter_state_open,p=l.teleporter_location,m=l.beacon,f=l.beacon_location,h=l.id,C=l.id_name,g=l.can_teleport,b=l.goal,N=void 0===b?0:b,v=l.prisoner,V=void 0===v?{}:v;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Teleporter Console",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:s?"Open":"Closed",disabled:u,selected:s,onClick:function(){return c("toggle_open")}}),(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",selected:u,disabled:s,onClick:function(){return c("teleporter_lock")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Teleporter Unit",color:d?"good":"bad",buttons:!d&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return c("scan_teleporter")}}),children:d?p:"Not Connected"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiver Beacon",color:m?"good":"bad",buttons:!m&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return c("scan_beacon")}}),children:m?f:"Not Connected"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prisoner Details",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prisoner ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:h?C:"No ID",onClick:function(){return c("handle_id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Point Goal",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:N,width:"48px",minValue:1,maxValue:1e3,onChange:function(e,t){return c("set_goal",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",children:V.name?V.name:"No Occupant"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Status",children:V.crimstat?V.crimstat:"No Status"})]})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Process Prisoner",disabled:!g,textAlign:"center",color:"bad",onClick:function(){return c("teleport")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Holodeck=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Holodeck=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.can_toggle_safety,u=l.default_programs,s=void 0===u?[]:u,p=l.emag_programs,m=void 0===p?[]:p,f=l.emagged,h=l.program;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Default Programs",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"unlock":"lock",content:"Safeties",color:"bad",disabled:!d,selected:!f,onClick:function(){return c("safety")}}),children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),textAlign:"center",selected:e.type===h,onClick:function(){return c("load_program",{type:e.type})}},e.type)}))}),!!f&&(0,o.createComponentVNode)(2,a.Section,{title:"Dangerous Programs",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),color:"bad",textAlign:"center",selected:e.type===h,onClick:function(){return c("load_program",{type:e.type})}},e.type)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ImplantChair=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.ImplantChair=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Information",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.occupant.name?l.occupant.name:"No Occupant"}),!!l.occupied&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:0===l.occupant.stat?"good":1===l.occupant.stat?"average":"bad",children:0===l.occupant.stat?"Conscious":1===l.occupant.stat?"Unconcious":"Dead"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Operations",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.open?"unlock":"lock",color:l.open?"default":"red",content:l.open?"Open":"Closed",onClick:function(){return c("door")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implant Occupant",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"code-branch",content:l.ready?l.special_name||"Implant":"Recharging",onClick:function(){return c("implant")}}),0===l.ready&&(0,o.createComponentVNode)(2,a.Icon,{name:"cog",color:"orange",spin:!0})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants Remaining",children:[l.ready_implants,1===l.replenishing&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",color:"red",spin:!0})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Intellicard=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Intellicard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=s||p,u=l.name,s=l.isDead,p=l.isBraindead,m=l.health,f=l.wireless,h=l.radio,C=l.wiping,g=l.laws,b=void 0===g?[]:g;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:u||"Empty Card",buttons:!!u&&(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:C?"Stop Wiping":"Wipe",disabled:s,onClick:function(){return c("wipe")}}),children:!!u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:d?"bad":"good",children:d?"Offline":"Operation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"Wireless Activity",selected:f,onClick:function(){return c("wireless")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"microphone",content:"Subspace Radio",selected:h,onClick:function(){return c("radio")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laws",children:b.map((function(e){return(0,o.createComponentVNode)(2,a.BlockQuote,{children:e},e)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{children:1===l.waiting&&(0,o.createVNode)(1,"span",null,"Waiting for another device to confirm your request...",16)}),(0,o.createComponentVNode)(2,a.Box,{children:0===l.waiting&&(0,o.createFragment)([!!l.auth_required&&(0,o.createComponentVNode)(2,a.Button,{icon:"check-square",color:"red",textAlign:"center",lineHeight:"60px",fluid:!0,onClick:function(){return c("auth_swipe")},content:"Authorize"}),0===l.auth_required&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",fluid:!0,onClick:function(){return c("red_alert")},content:"Red Alert"}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",fluid:!0,onClick:function(){return c("emergency_maint")},content:"Emergency Maintenance Access"}),(0,o.createComponentVNode)(2,a.Button,{icon:"meteor",fluid:!0,onClick:function(){return c("bsa_unlock")},content:"Bluespace Artillery Unlock"})],4)],0)})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.LaborClaimConsole=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.can_go_home,s=d.id_points,p=d.ores,m=d.status_info,f=d.unclaimed_points;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,i.Button,{content:"Move shuttle",disabled:!u,onClick:function(){return l("move_shuttle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Points",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed points",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Claim points",disabled:!f,onClick:function(){return l("claim_points")}}),children:f})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LanguageMenu=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.LanguageMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.admin_mode,u=l.is_living,s=l.omnitongue,p=l.languages,m=void 0===p?[]:p,f=l.unknown_languages,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Known Languages",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([!!u&&(0,o.createComponentVNode)(2,a.Button,{content:e.is_default?"Default Language":"Select as Default",disabled:!e.can_speak,selected:e.is_default,onClick:function(){return c("select_default",{language_name:e.name})}}),!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return c("grant_language",{language_name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Remove",onClick:function(){return c("remove_language",{language_name:e.name})}})],4)],0),children:[e.desc," ","Key: ,",e.key," ",e.can_understand?"Can understand.":"Cannot understand."," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})}),!!d&&(0,o.createComponentVNode)(2,a.Section,{title:"Unknown Languages",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Omnitongue "+(s?"Enabled":"Disabled"),selected:s,onClick:function(){return c("toggle_omnitongue")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:h.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return c("grant_language",{language_name:e.name})}}),children:[e.desc," ","Key: ,",e.key," ",!!e.shadow&&"(gained from mob)"," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(177);t.LaunchpadConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.launchpads,s=void 0===u?[]:u,p=d.selected_id;return s.length<=0?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Pads Connected"})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:.6,children:(0,o.createComponentVNode)(2,a.Box,{style:{"border-right":"2px solid rgba(255, 255, 255, 0.1)"},minHeight:"190px",mr:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name,selected:p===e.id,color:"transparent",onClick:function(){return l("select_pad",{id:e.id})}},e.name)}))})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:p?(0,o.createComponentVNode)(2,c.LaunchpadControl):(0,o.createComponentVNode)(2,a.Box,{children:"Please select a pad"})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadButtonPad=void 0;var o=n(0),r=n(2),a=n(1);t.LaunchpadButtonPad=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Grid,{width:"1px",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",mb:1,onClick:function(){return n("move_pos",{x:-1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",mb:1,onClick:function(){return n("move_pos",{y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"R",mb:1,onClick:function(){return n("set_pos",{x:0,y:0})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",mb:1,onClick:function(){return n("move_pos",{y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",mb:1,onClick:function(){return n("move_pos",{x:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:-1})}})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchTarget=void 0;var o=n(0),r=n(2),a=n(1);t.LaunchTarget=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.x,d=c.y,u=c.range;return(0,o.createComponentVNode)(2,a.Section,{title:"Target",level:2,children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"26px",children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"X:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:l,minValue:-u,maxValue:u,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",stepPixelSize:10,onChange:function(e,t){return i("set_pos",{x:t})}})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"Y:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:d,minValue:-u,maxValue:u,stepPixelSize:10,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",onChange:function(e,t){return i("set_pos",{y:t})}})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadRemote=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(177);t.LaunchpadRemote=function(e,t){var n=(0,r.useBackend)(t).data,l=n.has_pad,d=n.pad_closed;return l?d?(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Launchpad Closed"})})}):(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.LaunchpadControl,{topLevel:!0})})}):(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Launchpad Connected"})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayPowerConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.MechBayPowerConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,d=l&&l.mech,u=d&&d.cell;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.health/d.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Mule=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(88);t.Mule=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.locked&&!d.siliconUser,s=d.siliconUser,p=d.on,m=d.cell,f=d.cellPercent,h=d.load,C=d.mode,g=d.modeStatus,b=d.haspai,N=d.autoReturn,v=d.autoPickup,V=d.reportDelivery,y=d.destination,_=d.home,x=d.id,k=d.destinations,w=void 0===k?[]:k;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox,{siliconUser:s,locked:u}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",minHeight:"110px",buttons:!u&&(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:m?f/100:0,color:m?"good":"bad"}),(0,o.createComponentVNode)(2,a.Grid,{mt:1,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",color:g,children:C})})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",color:h?"good":"average",children:h||"None"})})})]})]}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createFragment)([!!h&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Unload",onClick:function(){return l("unload")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject PAI",onClick:function(){return l("ejectpai")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,a.Input,{value:x,onChange:function(e,t){return l("setid",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destination",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:y||"None",options:w,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",content:"Stop",onClick:function(){return l("stop")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"play",content:"Go",onClick:function(){return l("go")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:_,options:w,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"home",content:"Go Home",onClick:function(){return l("home")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:N,content:"Auto-Return",onClick:function(){return l("autored")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:v,content:"Auto-Pickup",onClick:function(){return l("autopick")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:V,content:"Report Delivery",onClick:function(){return l("report")}})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteChamberControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NaniteChamberControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.status_msg,u=l.locked,s=l.occupant_name,p=l.has_nanites,m=l.nanite_volume,f=l.regen_rate,h=l.safety_threshold,C=l.cloud_id,g=l.scan_level;if(d)return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:d})})});var b=l.mob_programs||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Chamber: "+s,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",content:u?"Locked":"Unlocked",color:u?"bad":"default",onClick:function(){return c("toggle_lock")}}),children:p?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",content:"Destroy Nanites",color:"bad",onClick:function(){return c("remove_nanites")}}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanite Volume",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Rate",children:f})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Safety Threshold",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,minValue:0,maxValue:500,width:"39px",onChange:function(e,t){return c("set_safety",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloud ID",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:C,minValue:0,maxValue:100,step:1,stepPixelSize:3,width:"39px",onChange:function(e,t){return c("set_cloud",{value:t})}})})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",level:2,children:b.map((function(e){var t=e.extra_settings||[],n=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.desc}),g>=2&&(0,o.createComponentVNode)(2,a.Grid.Column,{size:.6,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.activated?"good":"bad",children:e.activated?"Active":"Inactive"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanites Consumed",children:[e.use_rate,"/s"]})]})})]}),g>=2&&(0,o.createComponentVNode)(2,a.Grid,{children:[!!e.can_trigger&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Triggers",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cost",children:e.trigger_cost}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cooldown",children:e.trigger_cooldown}),!!e.timer_trigger_delay&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:[e.timer_trigger_delay," s"]}),!!e.timer_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:[e.timer_trigger," s"]})]})})}),!(!e.timer_restart&&!e.timer_shutdown)&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[e.timer_restart&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:[e.timer_restart," s"]}),e.timer_shutdown&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:[e.timer_shutdown," s"]})]})})})]}),g>=3&&!!e.has_extra_settings&&(0,o.createComponentVNode)(2,a.Section,{title:"Extra Settings",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.value},e.name)}))})}),g>=4&&(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!e.activation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:e.activation_code}),!!e.deactivation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:e.deactivation_code}),!!e.kill_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:e.kill_code}),!!e.can_trigger&&!!e.trigger_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:e.trigger_code})]})})}),e.has_rules&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Rules",level:2,children:n.map((function(e){return(0,o.createFragment)([e.display,(0,o.createVNode)(1,"br")],0,e.display)}))})})]})]})},e.name)}))})],4):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",textAlign:"center",fontSize:"30px",mb:1,children:"No Nanites Detected"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,icon:"syringe",content:" Implant Nanites",color:"green",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return c("nanite_injection")}})],4)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=(n(513),n(514),n(515));t.NaniteCloudControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.has_disk,s=d.current_view,p=d.new_backup_id;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Program Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){return l("eject")}}),children:(0,o.createComponentVNode)(2,c.NaniteDiskBox)}),(0,o.createComponentVNode)(2,a.Section,{title:"Cloud Storage",buttons:s?(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Return",onClick:function(){return l("set_view",{view:0})}}):(0,o.createFragment)(["New Backup: ",(0,o.createComponentVNode)(2,a.NumberInput,{value:p,minValue:1,maxValue:100,stepPixelSize:4,width:"39px",onChange:function(e,t){return l("update_new_backup_value",{value:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return l("create_backup")}})],0)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudBackupDetails=void 0;var o=n(0),r=n(2),a=n(1),i=n(178);t.NaniteCloudBackupDetails=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.current_view,u=l.disk,s=l.has_program,p=l.cloud_backup,m=u&&u.can_rule||!1;if(!p)return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"ERROR: Backup not found"});var f=l.cloud_programs||[];return(0,o.createComponentVNode)(2,a.Section,{title:"Backup #"+d,level:2,buttons:!!s&&(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload From Disk",color:"good",onClick:function(){return c("upload_program")}}),children:f.map((function(e){var t=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_program",{program_id:e.id})}}),children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,i.NaniteInfoBox,{program:e}),!!m&&(0,o.createComponentVNode)(2,a.Section,{mt:-2,title:"Rules",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Rule from Disk",color:"good",onClick:function(){return c("add_rule",{program_id:e.id})}}),children:e.has_rules?t.map((function(t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_rule",{program_id:e.id,rule_id:t.id})}}),t.display],0,t.display)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Active Rules"})})]})},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudBackupList=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteCloudBackupList=function(e,t){var n=(0,r.useBackend)(t),i=n.act;return(n.data.cloud_backups||[]).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Backup #"+e.cloud_id,textAlign:"center",onClick:function(){return i("set_view",{view:e.cloud_id})}},e.cloud_id)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteDiskBox=void 0;var o=n(0),r=n(2),a=n(1),i=n(178);t.NaniteDiskBox=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.has_disk,d=c.has_program,u=c.disk;return l?d?(0,o.createComponentVNode)(2,i.NaniteInfoBox,{program:u}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Inserted disk has no program"}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No disk inserted"})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgramHub=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.NaniteProgramHub=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.detail_view,s=d.disk,p=d.has_disk,m=d.has_program,f=d.programs,h=void 0===f?{}:f,C=(0,a.useLocalState)(t,"category",null!==h?Object.keys(h)[0]:null),g=C[0],b=C[1],N=null!==h?h[g]:null;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Program Disk",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",onClick:function(){return l("eject")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"minus-circle",content:"Delete Program",onClick:function(){return l("clear")}})],4),children:p?m?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Program Name",children:s.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.desc})]}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Program Installed"}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Insert Disk"})}),(0,o.createComponentVNode)(2,i.Section,{title:"Programs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"info":"list",content:u?"Detailed":"Compact",onClick:function(){return l("toggle_details")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync Research",onClick:function(){l("refresh"),null!==h&&null===g&&b(Object.keys(h)[0])}})],4),children:null!==h?(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){var n=t.substring(0,t.length-8);return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:g===t,onClick:function(){return b(t)},children:n},t)}))(h)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:u?N.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Download",disabled:!p,onClick:function(){return l("download",{program_id:e.id})}}),children:e.desc},e.id)})):(0,o.createComponentVNode)(2,i.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Download",disabled:!p,onClick:function(){return l("download",{program_id:e.id})}})},e.id)}))})})]}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No nanite programs are currently researched."})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgrammer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(518),l=n(519),d=n(520),u=n(521);t.NaniteProgrammer=function(e,t){var n=(0,r.useBackend)(t),s=n.act,p=n.data,m=p.has_disk,f=p.has_program,h=p.name,C=p.activated,g=p.has_extra_settings,b=p.extra_settings,N=void 0===b?{}:b;return m?f?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:h,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}}),children:[(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.NaniteInfo,Object.assign({},p))),(0,o.createComponentVNode)(2,a.Section,{title:"Settings",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:C?"power-off":"times",content:C?"Active":"Inactive",selected:C,color:"bad",bold:!0,onClick:function(){return s("toggle_active")}}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,l.NaniteCodes,{state:e.state})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,d.NaniteDelays,{state:e.state})})]}),!!g&&(0,o.createComponentVNode)(2,a.Section,{title:"Special",level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,u.NaniteExtraEntry,{act:s,extra_setting:e},e.name)}))})})]})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"Blank Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"Insert a nanite program disk"})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteInfo=void 0;var o=n(0),r=n(1);t.NaniteInfo=function(e){var t=e.desc,n=e.use_rate,a=e.can_trigger,i=e.trigger_cost,c=e.trigger_cooldown;return(0,o.createComponentVNode)(2,r.Section,{title:"Info",level:2,children:(0,o.createComponentVNode)(2,r.Grid,{children:[(0,o.createComponentVNode)(2,r.Grid.Column,{children:t}),(0,o.createComponentVNode)(2,r.Grid.Column,{size:.7,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Use Rate",children:n}),!!a&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Trigger Cost",children:i}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Trigger Cooldown",children:c})],4)]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCodes=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteCodes=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:3,mr:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.activation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"activation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.deactivation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"deactivation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.kill_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"kill",code:t})}})}),!!c.can_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.trigger_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"trigger",code:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteDelays=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteDelays=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Delays",level:3,ml:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_restart,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_restart_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_shutdown,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_shutdown_timer",{delay:t})}})}),!!c.can_trigger&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_trigger,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_trigger_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_trigger_delay,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_timer_trigger_delay",{delay:t})}})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraEntry=void 0;var o=n(0),r=n(1),a=n(522),i=n(523),c=n(524),l=n(525);t.NaniteExtraEntry=function(e,t){var n=e.act,d=e.extra_setting,u=d.name,s=d.type,p={number:(0,o.createComponentVNode)(2,l.NaniteExtraNumber,{act:n,extra_setting:d}),text:(0,o.createComponentVNode)(2,c.NaniteExtraText,{act:n,extra_setting:d}),type:(0,o.createComponentVNode)(2,i.NaniteExtraType,{act:n,extra_setting:d}),boolean:(0,o.createComponentVNode)(2,a.NaniteExtraBoolean,{act:n,extra_setting:d})};return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:u,children:p[s]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraBoolean=void 0;var o=n(0),r=n(1);t.NaniteExtraBoolean=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.true_text,d=a.false_text;return(0,o.createComponentVNode)(2,r.Button.Checkbox,{content:c?l:d,checked:c,onClick:function(){return n("set_extra_setting",{target_setting:i})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraType=void 0;var o=n(0),r=n(1);t.NaniteExtraType=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.types;return(0,o.createComponentVNode)(2,r.Dropdown,{over:!0,selected:c,width:"150px",options:l,onSelected:function(e){return n("set_extra_setting",{target_setting:i,value:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraText=void 0;var o=n(0),r=n(1);t.NaniteExtraText=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value;return(0,o.createComponentVNode)(2,r.Input,{value:c,width:"200px",onInput:function(e,t){return n("set_extra_setting",{target_setting:i,value:t})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraNumber=void 0;var o=n(0),r=n(1);t.NaniteExtraNumber=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.min,d=a.max,u=a.unit;return(0,o.createComponentVNode)(2,r.NumberInput,{value:c,width:"64px",minValue:l,maxValue:d,unit:u,onChange:function(e,t){return n("set_extra_setting",{target_setting:i,value:t})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteRemote=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NaniteRemote=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.code,u=l.locked,s=l.mode,p=l.program_name,m=l.relay_code,f=l.comms,h=l.message,C=l.saved_settings,g=void 0===C?[]:C;return u?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"This interface is locked."})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Nanite Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock Interface",onClick:function(){return c("lock")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:[(0,o.createComponentVNode)(2,a.Input,{value:p,maxLength:14,width:"130px",onChange:function(e,t){return c("update_name",{name:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save",onClick:function(){return c("save")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:f?"Comm Code":"Signal Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:d,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_code",{code:t})}})}),!!f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:(0,o.createComponentVNode)(2,a.Input,{value:h,width:"270px",onChange:function(e,t){return c("set_message",{value:t})}})}),"Relay"===s&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Relay Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:m,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_relay_code",{code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Signal Mode",children:["Off","Local","Targeted","Area","Relay"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,selected:s===e,onClick:function(){return c("select_mode",{mode:e})}},e)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Saved Settings",children:g.length>0?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"35%",children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{width:"20%",children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Code"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Relay"})]}),g.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:[e.name,":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.mode}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.code}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Relay"===e.mode&&e.relay_code}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"upload",color:"good",onClick:function(){return c("load",{save_id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",color:"bad",onClick:function(){return c("remove_save",{save_id:e.id})}})]})]},e.id)}))]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No settings currently saved"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NotificationPreferences=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NotificationPreferences=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=(n.data.ignore||[]).sort((function(e,t){var n=e.desc.toLowerCase(),o=t.desc.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Ghost Role Notifications",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:e.enabled?"times":"check",content:e.desc,color:e.enabled?"bad":"good",onClick:function(){return c("toggle_ignore",{key:e.key})}},e.key)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtnetRelay=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtnetRelay=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.enabled,u=l.dos_capacity,s=l.dos_overload,p=l.dos_crashed;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Network Buffer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,content:d?"ENABLED":"DISABLED",onClick:function(){return c("toggle")}}),children:p?(0,o.createComponentVNode)(2,a.Box,{fontFamily:"monospace",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"20px",children:"NETWORK BUFFER OVERFLOW"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",children:"OVERLOAD RECOVERY MODE"}),(0,o.createComponentVNode)(2,a.Box,{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,o.createComponentVNode)(2,a.Box,{fontSize:"20px",color:"bad",children:"ADMINISTRATOR OVERRIDE"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",color:"bad",children:"CAUTION - DATA LOSS MAY OCCUR"}),(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"PURGE BUFFER",mt:1,color:"bad",onClick:function(){return c("restart")}})]}):(0,o.createComponentVNode)(2,a.ProgressBar,{value:s,minValue:0,maxValue:u,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})," GQ"," / ",u," GQ"]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosAiRestorer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosAiRestorer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.restoring,u=l.error,s=l.name,p=l.nocard,m=l.isDead,f=l.health,h=(l.no_ai,l.ai_laws),C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Insert AI",children:[(0,o.createComponentVNode)(2,a.Box,{children:"Inserted AI:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:p?"---":s,onClick:function(){return c("PRG_eject")},disabled:p})]}),!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Reconstruction in progress!"}),!!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["ERROR: ",u]})||(0,o.createComponentVNode)(2,a.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI Name",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m?"Non-functional":"Functional"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"System Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,value:f,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active Laws"}),C.length>0&&C.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",children:e},"law_"+t.toString())}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"No laws found."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Operations",children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:d,onClick:function(){return c("PRG_beginReconstruction")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCard=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosCard=function(e,t){var n=(0,r.useBackend)(t),p=n.act,m=n.data,f=m.have_id_slot,h=m.manifest,C=m.slots,g=m.has_id,b=m.authenticated,N=m.all_centcom_access,v=m.station_name,V=m.regions,y=m.id_name,_=m.auth_name,x=m.minor,k=m.centcom_access,w=m.id_owner,L=m.id_rank,B=(0,r.useLocalState)(t,"tab",0),S=B[0],I=B[1];return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[!!f&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:0===S,onClick:function(){I(0),p("PRG_switchm",{target:"mod"})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:1===S,onClick:function(){I(1),p("PRG_switchm",{target:"manage"})},children:"Job Management"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:2===S,onClick:function(){I(2),p("PRG_switchm",{target:"manifest"})},children:"Crew Manifest"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:1===S||0===S&&!g,onClick:function(){return p("PRG_print")}})]}),0===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[(0,o.createComponentVNode)(2,d,{id_name:y,auth_name:_}),b&&g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,u,{minor:x,id_owner:w,id_rank:L,act:p}),(0,o.createComponentVNode)(2,s,{centcom_access:k}),(0,o.createComponentVNode)(2,c,{centcom_access:k,all_centcom_access:N,station_name:v,regions:V,act:p})],4)||null]}),1===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Job Management",children:(0,o.createComponentVNode)(2,l,{slots:C,act:p})}),2===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Crew Manifest",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Please use a ",(0,o.createVNode)(1,"b",null,"security records console",16)," to modify entries."]}),(0,o.createComponentVNode)(2,a.Box,{children:h&&h.map((function(e){return(0,o.createFragment)([(0,o.createVNode)(1,"b",null,e.name,0),(0,o.createTextVNode)(" - "),e.rank],0)}))})]})]})})};var c=function(e,t){var n=e.centcom_access,i=e.all_centcom_access,c=e.station_name,l=e.regions,d=void 0===l?[]:l,u=e.act,s=(0,r.useLocalState)(t,"regionTab",0),p=s[0],m=s[1];if(n)return(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:i&&i.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:e.desc,checked:e.allowed,onClick:function(){return u("PRG_access",{access_target:e.ref,allowed:e.allowed})}},e.desc)}))});var f=d[p];return(0,o.createComponentVNode)(2,a.Section,{title:c,level:2,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.selected,onClick:function(){u("PRG_regsel",{region:e.regid}),m(e.regid-1)},children:e.name},e.regid)}))}),f.accesses&&(0,o.createComponentVNode)(2,a.Box,{children:f.accesses.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:e.desc,checked:e.allowed,onClick:function(){return u("PRG_access",{access_target:e.ref,allowed:e.allowed})}},e.desc)}))})]})},l=function(e,t){var n=e.slots,r=e.act;return(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Job"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Slots"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open Job"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Close Job"})]}),!!n&&n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.current,"/",e.total]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.desc_open,disabled:!e.status_open,onClick:function(){return r("PRG_open_job",{target:e.title})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.desc_close,disabled:!e.status_close,onClick:function(){return r("PRG_close_job",{target:e.title})}})})]},e.title)}))]})},d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=(n.data,e.id_name),l=e.auth_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Please insert the ID into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",direction:"row",wrap:"wrap",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"Target Identity:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:c,onClick:function(){return i("PRG_eject",{target:"id"})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"Auth Identity:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:l,onClick:function(){return i("PRG_eject",{target:"auth"})}})]})]})],4)},u=function(e,t){var n=e.minor,r=e.id_owner,i=e.id_rank,c=e.act;return(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:!!n&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Registered Name:",16)," ",r]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Rank:",16)," ",i]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"gear",onClick:function(){return c("PRG_terminate")},disabled:"Unassigned"===i,label:"Demote "+r})})],4)||(0,o.createComponentVNode)(2,a.Box,{children:["Registered Name:",(0,o.createComponentVNode)(2,a.Button,{content:r.trim(),icon:"pencil-alt",onClick:function(){return c("PRG_edit",{name:!0})}})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data,i=e.centcom_access,c=n.engineering_jobs,l=void 0===c?[]:c,d=n.medical_jobs,u=void 0===d?[]:d,s=n.science_jobs,m=void 0===s?[]:s,f=n.security_jobs,h=void 0===f?[]:f,C=n.cargo_jobs,g=void 0===C?[]:C,b=n.civilian_jobs,N=void 0===b?[]:b,v=n.centcom_jobs,V=void 0===v?[]:v;return(0,o.createComponentVNode)(2,a.Section,{title:"Assigments",level:2,children:(0,o.createComponentVNode)(2,a.Collapsible,{title:"Job Presets",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,p,{selectable:!0,icon:"pencil-alt",assignJob:{display_name:"Custom Job Title",job:"Custom"}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Command"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:{display_name:"Captain",job:"Captain"}})})]}),!!l&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Engineering"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:l.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!u&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Medical"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:u.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!m&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Science"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:m.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!h&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Security"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:h.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!g&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Cargo"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:g.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!N&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Civilian"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:N.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!i&&!!V&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Centcom"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:V.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]})||null]})})})},p=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.id_rank,l=e.assignJob,d=e.selectable,u=e.icon,s=l.display_name,p=l.job;return(0,o.createComponentVNode)(2,a.Button,{content:s,icon:u,selected:d&&c===p,onClick:function(){return i("PRG_assign",{assign_target:p})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosConfiguration=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosConfiguration=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.power_usage,u=l.battery_exists,s=l.battery,p=void 0===s?{}:s,m=l.disk_size,f=l.disk_used,h=l.hardware,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",d,"W"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,a.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"File System",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:f,minValue:0,maxValue:m,color:"good",children:[f," GQ / ",m," GQ"]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Hardware Components",children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return c("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosFileManager=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosFileManager=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.error,u=l.usbconnected,s=l.files,p=void 0===s?[]:s,m=l.usbfiles,f=void 0===m?[]:m;return d?(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:[d,(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"Please try again. If the problem persists contact your system administrator for assistance.",16)]})})}):(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Available files (local)",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File size (GQ)"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Operations"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[".",e.type]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.size,"GQ"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"DELETE",disabled:e.undeletable,onClick:function(){return c("PRG_deletefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"RENAME",disabled:e.undeletable,onClick:function(){return c("PRG_rename",{name:e.name})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{content:"EXPORT",disabled:e.undeletable,onClick:function(){return c("PRG_copytousb",{name:e.name})}})]})]},e.name)}))]})}),u&&(0,o.createComponentVNode)(2,a.Section,{title:"Available files (portable device)",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File size (GQ)"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Operations"})]}),f.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[".",e.type]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.size,"GQ"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"DELETE",disabled:e.undeletable,onClick:function(){return c("PRG_usbdeletefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"RENAME",disabled:e.undeletable,onClick:function(){return c("PRG_usbrenamefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"IMPORT",disabled:e.undeletable,onClick:function(){return c("PRG_copyfromusb",{name:e.name})}})]})]},e.name)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosMain=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug"};t.NtosMain=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.programs,s=void 0===u?[]:u,p=d.has_light,m=d.light_on,f=d.comp_light_color;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Button,{width:"144px",icon:"lightbulb",selected:m,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",m?"ON":"OFF"]}),(0,o.createComponentVNode)(2,a.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,a.ColorBox,{ml:1,color:f})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,lineHeight:"24px",color:"transparent",icon:c[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,width:3,children:!!e.running&&(0,o.createComponentVNode)(2,a.Button,{lineHeight:"24px",color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})})]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetChat=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);(0,n(54).createLogger)("ntos chat");t.NtosNetChat=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.can_admin,s=d.adminmode,p=d.authed,m=d.username,f=d.active_channel,h=d.is_operator,C=d.clients,g=void 0===C?[]:C,b=d.messages,N=void 0===b?[]:b,v=null!==f,V=p||s;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{height:"600px",children:(0,o.createComponentVNode)(2,a.Table,{height:"580px",children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,t){return l("PRG_changename",{new_name:t})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return l("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{height:"560px",overflowY:"scroll",children:v&&(V?N.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,t){return l("PRG_speak",{message:t})}})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,a.Box,{height:"477px",overflowY:"scroll",children:g.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.name},e.name)}))}),v&&V&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,t){return l("PRG_savelog",{log_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return l("PRG_leavechannel")}})],4),!!h&&p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return l("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,t){return l("PRG_renamechannel",{new_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,t){return l("PRG_setpassword",{new_password:t})}})],4)]})]})})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.active_channel,d=c.all_channels,u=void 0===d?[]:d;return(0,o.createComponentVNode)(2,a.Box,{height:"537px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,t){return i("PRG_newchannel",{new_channel_name:t})}}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.chan,selected:e.id===l,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDosContent=t.NtosNetDos=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetDos=function(e,t){return(0,o.createComponentVNode)(2,i.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.relays,d=void 0===l?[]:l,u=c.focus,s=c.target,p=c.speed,m=c.overload,f=c.capacity,h=c.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return i("PRG_reset")}})],4);var C=function(e){for(var t="",n=m/f;t.lengthn?t+="0":t+="1";return t};return s?(0,o.createComponentVNode)(2,a.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:["CURRENT SPEED: ",p," GQ/s"]}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)})]}):(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.id,selected:u===e.id,onClick:function(){return i("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!u,mt:1,onClick:function(){return i("PRG_execute")}})]})};t.NtosNetDosContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDownloader=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetDownloader=function(e,t){var n=e.state,l=(0,r.useBackend)(t),d=l.act,u=l.data,s=u.disk_size,p=u.disk_used,m=u.downloadable_programs,f=void 0===m?[]:m,h=u.error,C=u.hacked_programs,g=void 0===C?[]:C,b=u.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return d("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p,minValue:0,maxValue:s,children:p+" GQ / "+s+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:f.map((function(e){return(0,o.createComponentVNode)(2,c,{state:n,program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),g.map((function(e){return(0,o.createComponentVNode)(2,c,{state:n,program:e},e.filename)}))]})]})})};var c=function(e,t){var n=e.program,i=(0,r.useBackend)(t),c=i.act,l=i.data,d=l.disk_size,u=l.disk_used,s=l.downloadcompletion,p=l.downloading,m=l.downloadname,f=l.downloadsize,h=d-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:n.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[n.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:n.filename===m&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:f,value:s})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:p||n.size>h,onClick:function(){return c("PRG_downloadfile",{filename:n.filename})}})})]}),"Compatible"!==n.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),n.size>h&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:n.fileinfo})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetMonitor=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetMonitor=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.ntnetrelays,u=l.ntnetstatus,s=l.idsalarm,p=l.idsstatus,m=l.config_softwaredownload,f=l.config_peertopeer,h=l.config_communication,C=l.config_systemcontrol,g=l.ntnetlogs,b=void 0===g?[]:g,N=l.ntnetmaxlogs;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return c("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return c("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){return c("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return c("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return c("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return c("toggleIDS")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return c("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,a.Button,{value:N,width:"39px",onClick:function(){return c("updatemaxlogs")}})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return c("purgelogs")}}),children:b.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetTransfer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetTransfer=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),p=a.error,m=a.downloading,f=a.uploading,h=a.upload_filelist,C=void 0===h?[]:h,g=(0,o.createComponentVNode)(2,s);return p?g=(0,o.createComponentVNode)(2,c):m?g=(0,o.createComponentVNode)(2,l):f?g=(0,o.createComponentVNode)(2,d):C.length&&(g=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,i.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:g})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.error;return(0,o.createComponentVNode)(2,a.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("PRG_reset")},children:"Reset"}),children:["Additional Information: ",c]})},l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.download_name,d=c.download_progress,u=c.download_size,s=c.download_netspeed;return(0,o.createComponentVNode)(2,a.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d,maxValue:u,children:[d," / ",u," GQ"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return i("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.upload_clients,d=c.upload_filename,u=c.upload_haspassword;return(0,o.createComponentVNode)(2,a.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Password",children:u?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return i("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return i("PRG_reset")},children:"Cancel Upload"})]})]})})},u=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.upload_filelist;return(0,o.createComponentVNode)(2,a.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return i("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Section,{title:"Pick file to serve.",level:2,children:c.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"upload",onClick:function(){return i("PRG_uploadfile",{id:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.servers;return(0,o.createComponentVNode)(2,a.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"upload",onClick:function(){return i("PRG_uploadmenu")},children:"Send File"}),children:c.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,a.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,a.Button,{icon:"download",onClick:function(){return i("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No upload servers found."})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosRbmkStats=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosRbmkStats=function(e,t){e.state;var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.powerData.map((function(e,t){return[t,e]})),u=l.psiData.map((function(e,t){return[t,e]})),s=l.tempInputData.map((function(e,t){return[t,e]})),p=l.tempOutputdata.map((function(e,t){return[t,e]}));return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Management",children:[(0,o.createComponentVNode)(2,a.Section,{title:"Legend:",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return c("swap_reactor")},content:"Change Reactor"}),children:["Reactor Power (%):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.power,minValue:0,maxValue:100,color:"yellow"}),(0,o.createVNode)(1,"br"),"Reactor Pressure (PSI):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.psi,minValue:0,maxValue:2e3,color:"white",children:[l.psi," PSI"]}),"Coolant temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.coolantInput,minValue:-273.15,maxValue:1227,color:"blue",children:[l.coolantInput," \xb0C"]}),"Outlet temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.coolantOutput,minValue:-273.15,maxValue:1227,color:"bad",children:[l.coolantOutput," \xb0C"]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Statistics:",height:"200px",children:[(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:d,rangeX:[0,d.length-1],rangeY:[0,1500],strokeColor:"rgba(255, 215,0, 1)",fillColor:"rgba(255, 215, 0, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:u,rangeX:[0,u.length-1],rangeY:[0,1500],strokeColor:"rgba(255,250,250, 1)",fillColor:"rgba(255,250,250, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:s,rangeX:[0,s.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(127, 179, 255 , 1)",fillColor:"rgba(127, 179, 255 , 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:p,rangeX:[0,p.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(255, 0, 0 , 1)",fillColor:"rgba(255, 0, 0 , 0.1)"})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosRevelation=void 0;var o=n(0),r=n(1),a=n(2),i=n(4);t.NtosRevelation=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,t){return c("PRG_obfuscate",{new_name:t})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return c("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,icon:"radiation",content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed,onClick:function(){return c("PRG_activate")}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosStationAlertConsole=void 0;var o=n(0),r=n(4),a=n(179);t.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:335,height:587,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.StationAlertConsoleContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosSupermatterMonitor=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=n(2),l=n(1),d=n(38),u=n(4),s=function(e){return Math.log2(16+Math.max(0,e))-4};t.NtosSupermatterMonitor=function(e,t){e.state;var n=(0,c.useBackend)(t),s=n.act,f=n.data;if(!f.active)return(0,o.createComponentVNode)(2,u.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,u.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,m)})});var h=(0,a.flow)([function(e){return e.filter((function(e){return e.amount>=.01}))},(0,r.sortBy)((function(e){return-e.amount}))])(f.gases||[]),C=Math.max.apply(Math,[1].concat(h.map((function(e){return e.amount}))));return(0,o.createComponentVNode)(2,u.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,u.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,l.Flex.Item,{width:"270px",children:(0,o.createComponentVNode)(2,l.Section,{title:"Metrics",children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,p,Object.assign({},f)))})}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l.Section,{title:"Gases",buttons:(0,o.createComponentVNode)(2,l.Button,{icon:"arrow-left",content:"Back",onClick:function(){return s("PRG_clear")}}),children:(0,o.createComponentVNode)(2,l.Box.Forced,{height:24*h.length+"px",children:(0,o.createComponentVNode)(2,l.LabeledList,{children:h.map((function(e){return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,d.getGasLabel)(e.name),children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:C,children:(0,i.toFixed)(e.amount,2)+"%"})},e.name)}))})})})})]})})})};var p=function(e){var t=e.SM_integrity,n=e.SM_power,r=e.SM_ambienttemp,a=e.SM_ambientpressure;return(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:t/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:n,minValue:0,maxValue:5e3,ranges:{good:[-Infinity,5e3],average:[5e3,7e3],bad:[7e3,Infinity]},children:(0,i.toFixed)(n)+" MeV/cm3"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:s(r),minValue:0,maxValue:s(1e4),ranges:{teal:[-Infinity,s(80)],good:[s(80),s(373)],average:[s(373),s(1e3)],bad:[s(1e3),Infinity]},children:(0,i.toFixed)(r)+" K"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:s(a),minValue:0,maxValue:s(5e4),ranges:{good:[s(1),s(300)],average:[-Infinity,s(1e3)],bad:[s(1e3),+Infinity]},children:(0,i.toFixed)(a)+" kPa"})})]})},m=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.supermatters,i=void 0===a?[]:a;return(0,o.createComponentVNode)(2,l.Section,{title:"Detected Supermatters",buttons:(0,o.createComponentVNode)(2,l.Button,{icon:"sync",content:"Refresh",onClick:function(){return r("PRG_refresh")}}),children:(0,o.createComponentVNode)(2,l.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.uid+". "+e.area_name}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,width:"120px",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:e.integrity/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l.Button,{content:"Details",onClick:function(){return r("PRG_set",{target:e.uid})}})})]},e.uid)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(10),a=n(2),i=n(1),c=n(4);t.NuclearBomb=function(e,t){var n=e.state,r=(0,a.useBackend)(t),u=r.act,s=r.data,p=s.status1,m=s.status2;return(0,o.createComponentVNode)(2,c.Window,{theme:"retro",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,className:"NuclearBomb__displayBox",children:p}),(0,o.createComponentVNode)(2,i.Flex,{mb:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Box,{className:"NuclearBomb__displayBox",children:m})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",fontSize:"24px",lineHeight:"23px",textAlign:"center",width:"43px",ml:1,mr:"3px",mt:"3px",className:"NuclearBomb__Button NuclearBomb__Button--keypad",onClick:function(){return u("eject_disk")}})})]}),(0,o.createComponentVNode)(2,i.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,d,{state:n})}),(0,o.createComponentVNode)(2,i.Flex.Item,{ml:1,width:"129px",children:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,content:"ARM",textAlign:"center",fontSize:"28px",lineHeight:"32px",mb:1,className:"NuclearBomb__Button NuclearBomb__Button--C",onClick:function(){return u("arm")}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,content:"ANCHOR",textAlign:"center",fontSize:"28px",lineHeight:"32px",className:"NuclearBomb__Button NuclearBomb__Button--E",onClick:function(){return u("anchor")}}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Box,{height:"80px",className:"NuclearBomb__NTIcon"})]})})]})]})})})};var l=function(){return(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",color:"#9C9987",fontSize:"80px",children:(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})})},d=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{width:"185px",children:(0,o.createComponentVNode)(2,i.Grid,{width:"1px",children:[["1","4","7","C"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,i.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,mb:1,content:e,textAlign:"center",fontSize:"40px",lineHeight:"50px",width:"55px",className:(0,r.classes)(["NuclearBomb__Button","NuclearBomb__Button--keypad","NuclearBomb__Button--"+e]),onClick:function(){return n("keypad",{digit:e})}},e)}))},e[0])}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.OperatingComputer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.table,u=l.surgeries,s=void 0===u?[]:u,p=l.procedures,m=void 0===p?[]:p,f=l.patient,h=void 0===f?{}:f,C=(0,r.useLocalState)(t,"tab","state"),g=C[0],b=C[1];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"state"===g,onClick:function(){return b("state")},children:"Patient State"},"state"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"procedures"===g,onClick:function(){return b("procedures")},children:"Surgery Procedures"},"procedures")]}),"state"===g&&(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Table Detected"}),(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Patient State",level:2,children:h?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:h.statstate,children:h.stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Type",children:h.blood_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h.health,minValue:h.minHealth,maxValue:h.maxHealth,color:h.health>=0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:h.health})})}),[{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"},{label:"Toxin",type:"toxLoss"},{label:"Respiratory",type:"oxyLoss"}].map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/h.maxHealth,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:h[e.type]})})},e.type)}))]}):"No Patient Detected"}),(0,o.createComponentVNode)(2,a.Section,{title:"Initiated Procedures",level:2,children:m.length?m.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Next Step",children:[e.next_step,e.chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.chems_needed],0)]}),!!l.alternative_step&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Alternative Step",children:[e.alternative_step,e.alt_chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.alt_chems_needed],0)]})]})},e.name)})):"No Active Procedures"})]})],0),"procedures"===g&&(0,o.createComponentVNode)(2,a.Section,{title:"Advanced Surgery Procedures",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Sync Research Database",onClick:function(){return c("sync")}}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,children:e.desc},e.name)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreBox=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.OreBox=function(e,t){var n=(0,a.useBackend)(t),l=n.data,d=n.act,u=l.materials;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Ores",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Empty",onClick:function(){return d("removeall")}}),children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ore"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:"Amount"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{color:"label",inline:!0,children:e.amount})})]},e.type)}))]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{children:["All ores will be placed in here when you are wearing a mining stachel on your belt or in a pocket while dragging the ore box.",(0,o.createVNode)(1,"br")," Gibtonite is not accepted."]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemptionMachine=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.OreRedemptionMachine=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,u=d.unclaimedPoints,s=d.materials,p=d.alloys,m=d.diskDesigns,f=d.hasDisk;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.BlockQuote,{mb:1,children:["This machine only accepts ore.",(0,o.createVNode)(1,"br"),"Gibtonite and Slag are not accepted."]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:1,children:"Unclaimed points:"}),u,(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Claim",disabled:0===u,onClick:function(){return r("Claim")}})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject design disk",onClick:function(){return r("diskEject")}})}),(0,o.createComponentVNode)(2,i.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:["File ",e.index,": ",e.name]}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,i.Button,{disabled:!e.canupload,content:"Upload",onClick:function(){return r("diskUpload",{design:e.index})}})})]},e.index)}))})],4)||(0,o.createComponentVNode)(2,i.Button,{icon:"save",content:"Insert design disk",onClick:function(){return r("diskInsert")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,i.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Release",{id:e.id,sheets:t})}},e.id)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"Alloys",children:(0,o.createComponentVNode)(2,i.Table,{children:p.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Smelt",{id:e.id,sheets:t})}},e.id)}))})})]})})};var l=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).state={amount:1},t}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this,t=this.state.amount,n=this.props,a=n.material,c=n.onRelease,l=Math.floor(a.amount);return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(a.name).replace("Alloy","")}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{mr:2,color:"label",inline:!0,children:a.value&&a.value+" cr"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{mr:2,color:"label",inline:!0,children:[l," sheets"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.NumberInput,{width:"32px",step:1,stepPixelSize:5,minValue:1,maxValue:50,value:t,onChange:function(t,n){return e.setState({amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:l<1,content:"Release",onClick:function(){return c(t)}})]})]})},a}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.Pandemic=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.Pandemic=function(e,t){var n=(0,a.useBackend)(t).data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l,{state:e.state}),!!n.has_blood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{state:e.state}),(0,o.createComponentVNode)(2,s,{state:e.state})],4)]})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.has_beaker,d=c.beaker_empty,u=c.has_blood,s=c.blood,p=!l||d;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Empty and Eject",color:"bad",disabled:p,onClick:function(){return r("empty_eject_beaker")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Empty",disabled:p,onClick:function(){return r("empty_beaker")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){return r("eject_beaker")}})],4),children:l?d?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Beaker is empty"}):u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",children:s&&s.dna||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:s&&s.type||"Unknown"})]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No blood detected"}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No beaker loaded"})})},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.is_ready;return(c.viruses||[]).map((function(e){var t=e.symptoms||[];return(0,o.createComponentVNode)(2,i.Section,{title:e.can_rename?(0,o.createComponentVNode)(2,i.Input,{value:e.name,onChange:function(t,n){return r("rename_disease",{index:e.index,name:n})}}):e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:"Create culture bottle",disabled:!l,onClick:function(){return r("create_culture_bottle",{index:e.index})}}),children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:e.description}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent",children:e.agent}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:e.spread}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Cure",children:e.cure})]})})]}),!!e.is_adv&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Statistics",level:2,children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Resistance",children:e.resistance}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stealth",children:e.stealth})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stage speed",children:e.stage_speed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmissibility",children:e.transmission})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Symptoms",level:2,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,u,{symptom:e})})},e.name)}))})],4)]},e.name)}))},u=function(e,t){var n=e.symptom,a=n.name,c=n.desc,l=n.stealth,d=n.resistance,u=n.stage_speed,s=n.transmission,p=n.level,m=n.neutered,f=(0,r.map)((function(e,t){return{desc:e,label:t}}))(n.threshold_desc||{});return(0,o.createComponentVNode)(2,i.Section,{title:a,level:2,buttons:!!m&&(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:"Neutered"}),children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:c}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Resistance",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stealth",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stage Speed",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmission",children:s})]})})]}),f.length>0&&(0,o.createComponentVNode)(2,i.Section,{title:"Thresholds",level:3,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.label,children:e.desc},e.label)}))})})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.resistances||[];return(0,o.createComponentVNode)(2,i.Section,{title:"Antibodies",children:l.length>0?(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"eye-dropper",content:"Create vaccine bottle",disabled:!c.is_ready,onClick:function(){return r("create_vaccine_bottle",{index:e.id})}})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",mt:1,children:"No antibodies detected."})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.PersonalCrafting=function(e,t){var n=(0,a.useBackend)(t),d=n.act,u=n.data,s=u.busy,p=u.display_craftable_only,m=u.display_compact,f=u.category,h=u.subcategory,C=(0,r.map)((function(e,t){return{category:t,subcategory:e,hasSubcats:"has_subcats"in e,firstSubcatName:Object.keys(e).find((function(e){return"has_subcats"!==e}))}}))(u.crafting_recipes||{}),g=C.find((function(e){return e.category===f})),b=!!s&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"40px",textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{mt:30,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]})});return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[b,(0,o.createComponentVNode)(2,i.Section,{title:"Personal Crafting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:m?"check-square-o":"square-o",content:"Compact",selected:m,onClick:function(){return d("toggle_compact")}}),(0,o.createComponentVNode)(2,i.Button,{icon:p?"check-square-o":"square-o",content:"Craftable Only",selected:p,onClick:function(){return d("toggle_recipes")}})],4),children:[(0,o.createComponentVNode)(2,i.Tabs,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{onClick:function(){return d("set_category",{category:e.category,subcategory:e.firstSubcatName})},selected:f===e.category,children:e.category},e.category)}))}),!g.hasSubcats&&(0,o.createComponentVNode)(2,l,{craftables:g.subcategory})||(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){return"has_subcats"!==t&&(0,o.createComponentVNode)(2,i.Tabs.Tab,{onClick:function(){return d("set_category",{subcategory:t})},selected:h===t,children:t},t)}))(g.subcategory)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l,{craftables:g.subcategory[h]})})]})]})]})})};var l=function(e,t){var n=e.craftables,r=void 0===n?[]:n,c=(0,a.useBackend)(t),l=c.act,d=c.data,u=d.craftability,s=void 0===u?{}:u,p=d.display_compact,m=d.display_craftable_only;return r.map((function(e){return m&&!s[e.ref]?null:p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,className:"candystripe",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Craft",disabled:!s[e.ref],tooltip:e.tool_text&&"Tools needed: "+e.tool_text,tooltipPosition:"left",onClick:function(){return l("make",{recipe:e.ref})}}),children:e.req_text},e.name):(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Craft",disabled:!s[e.ref],onClick:function(){return l("make",{recipe:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!e.req_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required",children:e.req_text}),!!e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalyst",children:e.catalyst_text}),!!e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.PortablePump=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(123);t.PortablePump=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.direction,s=d.target_pressure,p=d.default_pressure,m=d.min_pressure,f=d.max_pressure;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.PortableBasicInfo,{state:e.state}),(0,o.createComponentVNode)(2,a.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:s,unit:"kPa",width:"75px",minValue:m,maxValue:f,step:10,onChange:function(e,t){return l("pressure",{pressure:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:s===m,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",disabled:s===p,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:s===f,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PortableScrubber=void 0;var o=n(0),r=n(2),a=n(1),i=n(38),c=n(123),l=n(4);t.PortableScrubber=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data.filter_types||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,c.PortableBasicInfo,{state:e.state}),(0,o.createComponentVNode)(2,a.Section,{title:"Filters",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,i.getGasLabel)(e.gas_id,e.gas_name),selected:e.enabled,onClick:function(){return d("toggle_filter",{val:e.gas_id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitor=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=(n(10),n(2)),l=n(1),d=n(4),u=5e5;t.PowerMonitor=function(e,t){var n=(0,c.useBackend)(t),i=n.data,f=(n.act,i.history),h=f.supply.map((function(e,t){return[t,e]})),C=f.demand.map((function(e,t){return[t,e]})),g=(0,c.useLocalState)(t,"sortby",null),b=g[0],N=g[1],v=Math.max.apply(Math,[u].concat(f.supply,f.demand)),V=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.name+t})})),"name"===b&&(0,r.sortBy)((function(e){return e.name})),"charge"===b&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===b&&(0,r.sortBy)((function(e){return t=e.load,n=String(t.split(" ")[1]).toLowerCase(),-["w","kw","mw","gw"].indexOf(n);var t,n}),(function(e){return-parseFloat(e.load)}))])(i.areas);return(0,o.createComponentVNode)(2,d.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,d.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,l.Flex.Item,{width:"200px",children:(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,s,{history:f})})}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,l.Chart.Line,{fillPositionedParent:!0,data:h,rangeX:[0,h.length-1],rangeY:[0,v],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,l.Chart.Line,{fillPositionedParent:!0,data:C,rangeX:[0,C.length-1],rangeY:[0,v],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,l.Section,{children:[(0,o.createComponentVNode)(2,l.Box,{mb:1,children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"name"===b,content:"Name",onClick:function(){return N("name")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"charge"===b,content:"Charge",onClick:function(){return N("charge")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"draw"===b,content:"Draw",onClick:function(){return N("draw")}})]}),(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,l.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),V.map((function(e,t){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,p,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.env}),2)],4,null,e.id)}))]})]})]})})};var s=function(e,t){var n=e.history,r=n.supply[n.supply.length-1]||0,a=n.demand[n.demand.length-1]||0,c=Math.max.apply(Math,[u].concat(n.supply,n.demand));return(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:r,minValue:0,maxValue:c,color:"teal",children:[(0,i.toFixed)(r/1e3)," kW"]})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:a,minValue:0,maxValue:c,color:"pink",content:!0,children:[(0,i.toFixed)(a/1e3)," kW"]})})]})},p=function(e,t){var n=e.charging,r=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{width:"18px",textAlign:"center",name:0===n&&(r>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(r>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,l.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,i.toFixed)(r)+"%"})],4)},m=function(e,t){var n=e.status,r=Boolean(2&n),a=Boolean(1&n),i=(r?"On":"Off")+" ["+(a?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,l.ColorBox,{color:r?"good":"bad",content:a?undefined:"M",title:i})}},function(e,t,n){"use strict";t.__esModule=!0,t.Radio=void 0;var o=n(0),r=n(33),a=n(19),i=n(2),c=n(1),l=n(38),d=n(4);t.Radio=function(e,t){var n=(0,i.useBackend)(t),u=n.act,s=n.data,p=s.freqlock,m=s.frequency,f=s.minFrequency,h=s.maxFrequency,C=s.listening,g=s.broadcasting,b=s.command,N=s.useCommand,v=s.subspace,V=s.subspaceSwitchable,y=l.RADIO_CHANNELS.find((function(e){return e.freq===m})),_=(0,r.map)((function(e,t){return{name:t,status:!!e}}))(s.channels);return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Frequency",children:[p&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"light-gray",children:(0,a.toFixed)(m/10,1)+" kHz"})||(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:f/10,maxValue:h/10,value:m/10,format:function(e){return(0,a.toFixed)(e,1)},onDrag:function(e,t){return u("frequency",{adjust:t-m/10})}}),y&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:y.color,ml:2,children:["[",y.name,"]"]})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,onClick:function(){return u("listen")}}),(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:g?"microphone":"microphone-slash",selected:g,onClick:function(){return u("broadcast")}}),!!b&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"bullhorn",selected:N,content:"High volume "+(N?"ON":"OFF"),onClick:function(){return u("command")}}),!!V&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"bullhorn",selected:v,content:"Subspace Tx "+(v?"ON":"OFF"),onClick:function(){return u("subspace")}})]}),!!v&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Channels",children:[0===_.length&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"No encryption keys installed."}),_.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:e.status?"check-square-o":"square-o",selected:e.status,content:e.name,onClick:function(){return u("channel",{channel:e.name})}})},e.name)}))]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RapidPipeDispenser=void 0;var o=n(0),r=n(10),a=n(2),i=n(1),c=n(4),l=["Atmospherics","Disposals","Transit Tubes"],d={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Station Equipment":"microchip"},u={grey:"#bbbbbb",amethyst:"#a365ff",blue:"#4466ff",brown:"#b26438",cyan:"#48eae8",dark:"#808080",green:"#1edd00",orange:"#ffa030",purple:"#b535ea",red:"#ff3333",violet:"#6e00f6",yellow:"#ffce26"},s=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}];t.RapidPipeDispenser=function(e,t){var n=(0,a.useBackend)(t),p=n.act,m=n.data,f=m.category,h=m.categories,C=void 0===h?[]:h,g=m.selected_color,b=m.piping_layer,N=m.mode,v=m.preview_rows.flatMap((function(e){return e.previews})),V=(0,a.useLocalState)(t,"tab",C[0].cat_name),y=V[0],_=V[1],x=C.find((function(e){return e.cat_name===y}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:f===t,icon:d[e],color:"transparent",content:e,onClick:function(){return p("category",{category:t})}},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:N&e.bitmask,content:e.name,onClick:function(){return p("mode",{mode:e.bitmask})}},e.bitmask)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:u[g],content:g}),Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:u[e],onClick:function(){return p("color",{paint_color:e})}},e)}))]})]})}),(0,o.createComponentVNode)(2,i.Flex,{m:-.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{m:.5,children:(0,o.createComponentVNode)(2,i.Section,{children:[0===f&&(0,o.createComponentVNode)(2,i.Box,{mb:1,children:[1,2,3].map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:e===b,content:"Layer "+e,onClick:function(){return p("piping_layer",{piping_layer:e})}},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"108px",children:v.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{title:e.dir_name,selected:e.selected,style:{width:"48px",height:"48px",padding:0},onClick:function(){return p("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(17%, 17%)"}})},e.dir)}))})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{m:.5,grow:1,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:d[e.cat_name],onClick:function(){return _(e.cat_name)},children:e.cat_name},e.cat_name)}))}),x.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return p("pipe_type",{pipe_type:e.pipe_index,category:x.cat_name})}},e.pipe_index)}))]})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RbmkControlRods=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.RbmkControlRods=function(e,t){e.state;var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.control_rods,u=l.k,s=l.desiredK;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Control Rod Management:",children:["Control Rod Insertion:",(0,o.createComponentVNode)(2,a.ProgressBar,{value:d/100*100*.01,ranges:{good:[.7,Infinity],average:[.4,.7],bad:[-Infinity,.4]}}),(0,o.createVNode)(1,"br"),"Neutrons per generation (K):",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/3*100*.01,ranges:{good:[-Infinity,.4],average:[.4,.6],bad:[.6,Infinity]},children:u}),(0,o.createVNode)(1,"br"),"Target criticality:",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:s,unit:"k",width:"125px",minValue:0,maxValue:3,step:.1,onChange:function(e,t){return c("input",{target:t})}})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RbmkStats=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.RbmkStats=function(e,t){e.state;var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.powerData.map((function(e,t){return[t,e]})),d=c.psiData.map((function(e,t){return[t,e]})),u=c.tempInputData.map((function(e,t){return[t,e]})),s=c.tempOutputdata.map((function(e,t){return[t,e]}));return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"RBMK Stats:",children:[(0,o.createComponentVNode)(2,a.Section,{title:"Legend:",children:["Reactor Power (%):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.power,minValue:0,maxValue:100,color:"yellow"}),(0,o.createVNode)(1,"br"),"Reactor Pressure (PSI):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.psi,minValue:0,maxValue:2e3,color:"white",children:[c.psi," PSI"]}),"Coolant temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.coolantInput,minValue:-273.15,maxValue:1227,color:"blue",children:[c.coolantInput," \xb0C"]}),"Outlet temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.coolantOutput,minValue:-273.15,maxValue:1227,color:"bad",children:[c.coolantOutput," \xb0C"]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Statistics:",height:"200px",children:[(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:l,rangeX:[0,l.length-1],rangeY:[0,1500],strokeColor:"rgba(255, 215,0, 1)",fillColor:"rgba(255, 215, 0, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:d,rangeX:[0,d.length-1],rangeY:[0,1500],strokeColor:"rgba(255,250,250, 1)",fillColor:"rgba(255,250,250, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:u,rangeX:[0,u.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(127, 179, 255 , 1)",fillColor:"rgba(127, 179, 255 , 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:s,rangeX:[0,s.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(255, 0, 0 , 1)",fillColor:"rgba(255, 0, 0 , 0.1)"})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(170),c=n(4);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.satellites||[];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[d.meteor_shield&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledListItem,{label:"Coverage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.meteor_shield_coverage/d.meteor_shield_coverage_max,ranges:{good:[1,Infinity],average:[.3,1],bad:[-Infinity,.3]},children:[100*d.meteor_shield_coverage/d.meteor_shield_coverage_max,"%"]})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Satellite Controls",children:(0,o.createComponentVNode)(2,a.Box,{mr:-1,children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.active,content:"#"+e.id+" "+e.mode,onClick:function(){return l("toggle",{id:e.id})}},e.id)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulatorTemplates=t.ShuttleManipulator=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.ShuttleManipulator=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,u=d.shuttles,s=void 0===u?[]:u,p=d.selected,m=void 0===p?{}:p,f=d.existingShuttle,h=void 0===f?{}:f,C=(0,a.useLocalState)(t,"tab","status"),g=C[0],b=C[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"status"===g,onClick:function(){return b("status")},children:"Status"},"status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"templates"===g,onClick:function(){return b("templates")},children:"Templates"},"templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"modification"===g,onClick:function(){return b("modification")},children:"Modification"},"modification")]}),"status"===g&&(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"JMP",onClick:function(){return r("jump_to",{type:"mobile",id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Fly",disabled:!e.can_fly,onClick:function(){return r("fly",{id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.status}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[e.mode,!!e.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),e.timeleft,(0,o.createTextVNode)(")"),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",disabled:!e.can_fast_travel,onClick:function(){return r("fast_travel",{id:e.id})}},e.id)],0)]})]},e.id)}))})}),"templates"===g&&(0,o.createComponentVNode)(2,l),"modification"===g&&(0,o.createComponentVNode)(2,i.Section,{children:m?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{level:2,title:m.name,children:(!!m.description||!!m.admin_notes)&&(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!m.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:m.description}),!!m.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:m.admin_notes})]})}),h?(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Existing Shuttle: "+h.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",onClick:function(){return r("jump_to",{type:"mobile",id:h.id})}}),children:[h.status,!!h.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),h.timeleft,(0,o.createTextVNode)(")")],0)]})})}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Existing Shuttle: None"}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",onClick:function(){return r("preview",{shuttle_id:m.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",color:"bad",onClick:function(){return r("load",{shuttle_id:m.shuttle_id})}})]})],0):"No shuttle selected"})]})})};var l=function(e,t){var n,c=(0,a.useBackend)(t),l=c.act,d=c.data,u=d.templates||{},s=d.selected||{},p=(0,a.useLocalState)(t,"templateId",Object.keys(u)[0]),m=p[0],f=p[1],h=(null==(n=u[m])?void 0:n.templates)||[];return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:m===t,onClick:function(){return f(t)},children:e.port_id},t)}))(u)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:h.map((function(e){var t=e.shuttle_id===s.shuttle_id;return(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:t?"Selected":"Select",selected:t,onClick:function(){return l("select_template",{shuttle_id:e.shuttle_id})}}),children:(!!e.description||!!e.admin_notes)&&(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),!!e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes})]})},e.shuttle_id)}))})]})})};t.ShuttleManipulatorTemplates=l},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4);t.Signaler=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.code,s=d.frequency,p=d.minFrequency,m=d.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:p/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:13,onDrag:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:13,onDrag:function(e,t){return l("code",{code:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return l("signal")}})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(2),a=n(4),i=n(174),c=n(175),l=n(176),d=n(560),u=n(561);t.Sleeper=function(e,t){var n=(0,r.useBackend)(t),s=n.act,p=n.data,m=(p.chems||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.SleeperOccupantStats,{data:p}),(0,o.createComponentVNode)(2,l.SleeperPatientReagents,{data:p}),(0,o.createComponentVNode)(2,i.SleeperInjectChems,{showOpenClosed:!0,chems:m,data:p,act:s}),(0,o.createComponentVNode)(2,u.SleeperSynthChems,{data:p,act:s}),(0,o.createComponentVNode)(2,d.SleeperPurgeChems,{chems:m,act:s})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperPurgeChems=void 0;var o=n(0),r=n(1);t.SleeperPurgeChems=function(e,t){var n=e.chems,a=e.act;return(0,o.createComponentVNode)(2,r.Section,{title:"Purge Chemicals",children:n.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{content:e.name,disabled:!e.allowed,width:"140px",onClick:function(){return a("purge",{chem:e.id})}},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperSynthChems=void 0;var o=n(0),r=n(1);t.SleeperSynthChems=function(e,t){var n=e.data,a=e.act,i=(n.synthchems||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,r.Section,{title:"Synthesize Chemicals",children:i.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{content:e.name,width:"140px",onClick:function(){return a("synth",{chem:e.id})}},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyEntry=t.SlimeBodySwapper=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SlimeBodySwapper=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data.bodies,u=void 0===d?[]:d;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c,{body:e,swapFunc:function(){return l("swap",{ref:e.ref})}},e.name)}))})})})};var c=function(e,t){var n=e.body,r=e.swapFunc;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:n.htmlcolor,children:n.name}),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:{owner:"You Are Here",stranger:"Occupied",available:"Swap"}[n.occupied],selected:"owner"===n.occupied,color:"stranger"===n.occupied&&"bad",onClick:function(){return r()}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",bold:!0,color:{Dead:"bad",Unconscious:"average",Conscious:"good"}[n.status],children:n.status}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Jelly",children:n.exoticblood}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:n.area})]})})};t.BodyEntry=c},function(e,t,n){"use strict";t.__esModule=!0,t.SmartVend=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.SmartVend=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Storage",buttons:!!d.isdryer&&(0,o.createComponentVNode)(2,i.Button,{icon:d.drying?"stop":"tint",onClick:function(){return l("Dry")},children:d.drying?"Stop drying":"Dry"}),children:0===d.contents.length&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Unfortunately, this ",d.name," is empty."]})||(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Item"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:d.verb?d.verb:"Dispense"})]}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:e.amount}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.Button,{content:"One",disabled:e.amount<1,onClick:function(){return l("Release",{name:e.name,amount:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Many",disabled:e.amount<=1,onClick:function(){return l("Release",{name:e.name})}})]})]},t)}))(d.contents)]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Smes=function(e,t){var n,c,l=(0,r.useBackend)(t),d=l.act,u=l.data;return n=u.capacityPercent>=100?"good":u.inputting?"average":"bad",c=u.outputting?"good":u.charge>0?"average":"bad",(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:.01*u.capacityPercent,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,a.Section,{title:"Input",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u.inputAttempt?"sync-alt":"times",selected:u.inputAttempt,onClick:function(){return d("tryinput")},children:u.inputAttempt?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:n,children:u.capacityPercent>=100?"Fully Charged":u.inputting?"Charging":"Not Charging"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.inputLevel/u.inputLevelMax,children:u.inputLevel_text})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust Input",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===u.inputLevel,onClick:function(){return d("input",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===u.inputLevel,onClick:function(){return d("input",{adjust:-1e4})}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(u.inputLevel/1e3),unit:"kW",width:"65px",minValue:0,maxValue:u.inputLevelMax/1e3,onChange:function(e,t){return d("input",{target:1e3*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:u.inputLevel===u.inputLevelMax,onClick:function(){return d("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:u.inputLevel===u.inputLevelMax,onClick:function(){return d("input",{target:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available",children:u.inputAvailable})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Output",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u.outputAttempt?"power-off":"times",selected:u.outputAttempt,onClick:function(){return d("tryoutput")},children:u.outputAttempt?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:c,children:u.outputting?"Sending":u.charge>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.outputLevel/u.outputLevelMax,children:u.outputLevel_text})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust Output",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===u.outputLevel,onClick:function(){return d("output",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===u.outputLevel,onClick:function(){return d("output",{adjust:-1e4})}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(u.outputLevel/1e3),unit:"kW",width:"65px",minValue:0,maxValue:u.outputLevelMax/1e3,onChange:function(e,t){return d("output",{target:1e3*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:u.outputLevel===u.outputLevelMax,onClick:function(){return d("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:u.outputLevel===u.outputLevelMax,onClick:function(){return d("output",{target:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outputting",children:u.outputUsed})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SmokeMachine=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SmokeMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.TankContents,u=l.TankCurrentVolume,s=l.TankMaxVolume,p=l.active,m=l.setting,f=l.maxSetting,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Dispersal Tank",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",selected:p,content:p?"On":"Off",onClick:function(){return c("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/s,ranges:{bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{initial:0,value:u||0})," / "+s]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:m===e,icon:"plus",content:3*e,disabled:h0?"good":"bad",children:h})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,l,{generated:s})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===m,onClick:function(){return u("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===m,onClick:function(){return u("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===m,disabled:!C,onClick:function(){return u("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Angle",children:[(0===m||1===m)&&(0,o.createComponentVNode)(2,i.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){return Math.round(360+e)%360},onDrag:function(e,t){return u("angle",{value:t})}}),1===m&&(0,o.createComponentVNode)(2,i.NumberInput,{width:"80px",unit:"\xb0/h",step:5,stepPixelSize:2,minValue:-7200,maxValue:7200,value:f,format:function(e){return(Math.sign(e)>0?"+":"-")+(0,r.toFixed)(Math.abs(e))},onDrag:function(e,t){return u("rate",{value:t})}}),2===m&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mt:"3px",children:[p+" \xb0"," (auto)"]})]})]})})]})})};var l=function(e,t){var n=e.generated;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[6e4,Infinity],average:[3e4,6e4],bad:[-Infinity,3e4]},minValue:0,maxValue:9e4,value:n,children:[n," W"]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpaceHeater=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SpaceHeater=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",disabled:!l.hasPowercell||!l.open,onClick:function(){return c("eject")}}),(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,disabled:!l.hasPowercell,onClick:function(){return c("power")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell",color:!l.hasPowercell&&"bad",children:l.hasPowercell&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.powerLevel/100,ranges:{good:[.6,Infinity],average:[.3,.6],bad:[-Infinity,.3]},children:[l.powerLevel,"%"]})||"None"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Thermostat",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperature",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"18px",color:Math.abs(l.targetTemp-l.currentTemp)>50?"bad":Math.abs(l.targetTemp-l.currentTemp)>20?"average":"good",children:[l.currentTemp,"\xb0C"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:l.open&&(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.targetTemp),width:"65px",unit:"\xb0C",minValue:l.minTemp,maxValue:l.maxTemp,onChange:function(e,t){return c("target",{target:t})}})||l.targetTemp+"\xb0C"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:l.open?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"thermometer-half",content:"Auto",selected:"auto"===l.mode,onClick:function(){return c("mode",{mode:"auto"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fire-alt",content:"Heat",selected:"heat"===l.mode,onClick:function(){return c("mode",{mode:"heat"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fan",content:"Cool",selected:"cool"===l.mode,onClick:function(){return c("mode",{mode:"cool"})}})],4):"Auto"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider)]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Jump",onClick:function(){return c("jump",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Spawn",onClick:function(){return c("spawn",{name:e.name})}})],4),children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,mb:1,fontSize:"20px",children:e.short_desc}),(0,o.createComponentVNode)(2,a.Box,{children:e.flavor_text}),!!e.important_info&&(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,color:"bad",fontSize:"26px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorageUnit=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SuitStorageUnit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.locked,u=l.open,s=l.safeties,p=l.uv_active,m=l.occupied,f=l.suit,h=l.helmet,C=l.mask,g=l.storage;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[!(!m||!s)&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Biological entity detected in suit chamber. Please remove before continuing with operation."}),p&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})||(0,o.createComponentVNode)(2,a.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!u&&(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",content:d?"Unlock":"Lock",onClick:function(){return c("lock")}}),!d&&(0,o.createComponentVNode)(2,a.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Close":"Open",onClick:function(){return c("door")}})],0),children:d&&(0,o.createComponentVNode)(2,a.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,a.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,a.Icon,{name:"lock"})]})||u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"square":"square-o",content:h||"Empty",disabled:!h,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"square":"square-o",content:f||"Empty",disabled:!f,onClick:function(){return c("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return c("dispense",{item:"mask"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Storage",children:(0,o.createComponentVNode)(2,a.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){return c("dispense",{item:"storage"})}})})]})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:m&&s,textAlign:"center",onClick:function(){return c("uv")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Tank=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:[l.tankPressure," kPa"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,onClick:function(){return c("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,onClick:function(){return c("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,onClick:function(){return c("pressure",{pressure:"reset"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plasma",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return c("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return c("oxygen")}}),children:l.oxygen})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsInteraction=void 0;var o=n(0),r=n(2),a=n(19),i=n(38),c=n(1),l=n(4);t.TelecommsInteraction=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data,s=u.notice,p=void 0===s?"":s,m=u.multitool,f=void 0!==m&&m,h=u.multitool_buf,C=void 0===h?null:h,g=u.machine,b=void 0===g?null:g,N=u.links,v=void 0===N?[]:N,V=u.freq_listening,y=void 0===V?[]:V,_=b.power,x=void 0!==_&&_,k=b.id,w=void 0===k?"NULL":k,L=b.network,B=b.prefab,S=void 0!==B&&B,I=b.hidden,T=void 0!==I&&I,E=b.isrelay,A=void 0!==E&&E,P=b.isbus,M=void 0!==P&&P;return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:p}),(0,o.createComponentVNode)(2,c.Section,{title:"Network Access",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Status",children:(0,o.createComponentVNode)(2,c.Button,{content:x?"On":"Off",icon:x?"power-off":"times",color:x?"good":"bad",onClick:function(){return d("toggle")}})}),x?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Input,{value:w,width:"150px",maxLength:255,onChange:function(e,t){return d("machine",{id:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Input,{value:L,width:"150px",maxLength:15,onChange:function(e,t){return d("machine",{network:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",color:x?"good":"bad",children:S?"TRUE":"FALSE"}),A?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{content:b.broadcast?"YES":"NO",icon:b.broadcast?"check":"times",color:b.broadcast?"good":"bad",onClick:function(){return d("relay",{broadcast:!0})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receiving",children:(0,o.createComponentVNode)(2,c.Button,{content:b.receiving?"YES":"NO",icon:b.receiving?"check":"times",color:b.receiving?"good":"bad",onClick:function(){return d("relay",{receiving:!0})}})})],4):"",M?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:[(0,o.createComponentVNode)(2,c.Button,{content:b.chang_frequency?"Enabled":"Disabled",icon:b.chang_frequency?"power-off":"times",color:b.chang_frequency?"good":"bad",onClick:function(){return d("frequency",{toggle:!0})}}),b.chang_frequency?(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:120.1,maxValue:159.9,value:b.chang_freq_value/10,format:function(e){return(0,a.toFixed)(e,1)},onChange:function(e,t){return d("frequency",{adjust:t})}}):""]}):"",T?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"ACTIVE"}):"",f?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool buffer",buttons:C?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Link",onClick:function(){return d("multitool",{Link:!0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Flush",onClick:function(){return d("multitool",{Flush:!0})}})],4):(0,o.createComponentVNode)(2,c.Button,{content:"Add Machine",onClick:function(){return d("multitool",{Add:!0})}}),children:C?C.name+" ("+C.id+")":""}):""],0):""]}),x?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Linked Network Entities",level:2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:v.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Remove",onClick:function(){return d("unlink",{value:e.ref})}}),children:e.name+" ("+e.id+")"},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Add Filter",onClick:function(){return d("freq",{add:!0})}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),y&&y.length?y.map((function(e){var t=i.RADIO_CHANNELS.find((function(t){return t.freq===e}));return(0,o.createComponentVNode)(2,c.Button,{content:t?(0,o.createVNode)(1,"span",null,e+" ("+t.name+")",0,{style:"color: "+t.color}):e,onClick:function(){return d("freq",{remove:e})}},e)})):""]})],4):""]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsLogBrowser=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.TelecommsLogBrowser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.notice,u=l.network,s=void 0===u?"NULL":u,p=l.servers,m=l.selected,f=void 0===m?null:m,h=l.selected_logs,C=f&&f.status,g=(0,r.useLocalState)(t,"tab","servers"),b=g[0],N=g[1];return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:d}),(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,a.Input,{value:s,width:"150px",maxLength:15,onChange:function(e,t){return c("network",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Flush Buffer",icon:"minus-circle",disabled:!p.length||!!f,onClick:function(){return c("release")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Probe Network",icon:"sync",disabled:f,onClick:function(){return c("probe")}})],4),children:p?p.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Server",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Disconnect",disabled:!f,onClick:function(){return c("mainmenu")}}),children:f?f.name+" ("+f.id+")":"None (None)"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recorded Traffic",children:f?f.traffic<=1024?f.traffic+" Gigabytes":Math.round(f.traffic/1024)+" Terrabytes":"0 Gigabytes"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",color:C?"good":"bad",children:C?"Running":"Server down!"})]})}),(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"servers"===b,onClick:function(){return N("servers")},children:"Servers"},"servers"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{disabled:!C,selected:"messages"===b,onClick:function(){return N("messages")},children:"Messages"},"messages")]}),"servers"===b&&(0,o.createComponentVNode)(2,a.Section,{children:p&&p.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:""+e.ref,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Connect",selected:l.selected&&e.ref===l.selected.ref,onClick:function(){return c("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"}),"messages"===b&&(0,o.createComponentVNode)(2,a.Section,{title:"Logs",children:C&&h?h.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{level:4,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filename",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Delete",onClick:function(){return c("delete",{value:e.ref})}}),children:e.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:e.input_type}),e.source&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"["+e.source.name+"] (Job: ["+e.source.job+"])"}),e.race&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:e.race}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:e.message})]})},e.ref)})):"No server selected!"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsMonitor=void 0;var o=n(0),r=n(2),a=n(38),i=n(1),c=n(4);t.TelecommsMonitor=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.notice,s=d.network,p=void 0===s?"NULL":s,m=d.servers,f=d.selected,h=void 0===f?null:f,C=d.selected_servers,g=h&&h.status,b=(0,r.useLocalState)(t,"tab","network_entities"),N=b[0],v=b[1];return(0,o.createComponentVNode)(2,c.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:u}),(0,o.createComponentVNode)(2,i.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,i.Input,{value:p,width:"150px",maxLength:15,onChange:function(e,t){return a("network",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Flush Buffer",icon:"minus-circle",disabled:!m.length||!!h,onClick:function(){return a("release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Probe Network",icon:"sync",disabled:h,onClick:function(){return a("probe")}})],4),children:h?C?C.length+" currently probed and buffered":"Connected devices is empty!":m?m.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Selected Entity",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Disconnect",icon:"minus-circle",disabled:!h,onClick:function(){return a("mainmenu")}}),children:h?h.name+" ("+h.id+")":"None (None)"})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"network_entities"===N,onClick:function(){return v("network_entities")},children:"Network Entities"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{disabled:!h,selected:"entity_status"===N,onClick:function(){return v("entity_status")},children:"Entity Status"})]}),"network_entities"===N&&(0,o.createComponentVNode)(2,i.Section,{title:"Detected Network Entities",children:m&&m.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Connect",selected:h&&e.ref===h.ref,onClick:function(){return a("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"}),"entity_status"===N&&(0,o.createComponentVNode)(2,i.Section,{title:"Network Entity Status",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:g?"good":"bad",children:g?"Running":"Server down!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network Traffic",color:g&&h.netspeed0?"good":"bad",children:[m," TC"]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,i.Input,{value:v,onInput:function(e,t){return V(t)},ml:1,mr:1}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"list":"info",content:s?"Compact":"Detailed",onClick:function(){return u("compact_toggle")}}),!!p&&(0,o.createComponentVNode)(2,i.Button,{icon:"lock",content:"Lock",onClick:function(){return u("lock")}})],0),children:v.length>0?(0,o.createVNode)(1,"table","Table",(0,o.createComponentVNode)(2,d,{compact:!0,items:h.flatMap((function(e){return e.items||[]})).filter((function(e){var t=v.toLowerCase();return String(e.name+e.desc).toLowerCase().includes(t)})),hoveredItem:g,onBuyMouseOver:function(e){return b(e)},onBuyMouseOut:function(e){return b({})},onBuy:function(e){return u("buy",{item:e.name})}}),2):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:h.map((function(e,t){var n=e.name,r=e.items;if(null!==r)return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:_===t,onClick:function(){return x(t)},children:[n," (",r.length,")"]},n)}))})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l,{activeCategory:_})})]})})})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.data,i=n.act,c=r.compact_mode,l=r.telecrystals,u=r.categories,s=void 0===u?[]:u,p=e.activeCategory,m=(0,a.useLocalState)(t,"hover",{}),f=m[0],h=m[1],C=s[p].items;return(0,o.createComponentVNode)(2,d,{compact:c,items:C,hoveredItem:f,telecrystals:l,onBuyMouseOver:function(e){return h(e)},onBuyMouseOut:function(e){return h({})},onBuy:function(e){return i("buy",{item:e.name})}})},d=function(e,t){var n=e.items,a=e.hoveredItem,c=e.telecrystals,l=e.compact,d=e.onBuy,u=e.onBuyMouseOver,s=e.onBuyMouseOut,p=a&&a.cost||0;return l?(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:n.map((function(e){var t=a&&a.name!==e.name,n=c-p1?r-1:0),i=1;i1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}(e,["className"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";var o,r;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=o,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(o||(t.VNodeFlags=o={})),t.ChildFlags=r,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(r||(t.ChildFlags=r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=void 0;var o=n(0),r=n(10),a=n(417),i=n(22),c=n(54),l=n(17);function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var u=(0,c.createLogger)("ByondUi"),s=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(r[n]=e[n]);return r}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),C=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var a=(0,r.zipWith)(Math.min).apply(void 0,e),i=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(a[0]=n[0],i[0]=n[1]),o!==undefined&&(a[1]=o[0],i[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,a,i,t)}))(e)}(a,C,i,l);if(g.length>0){var b=g[0],N=g[g.length-1];g.push([C[0]+f,N[1]]),g.push([C[0]+f,-f]),g.push([-f,-f]),g.push([-f,b[1]])}var v=function(e){for(var t="",n=0;n=0||(r[n]=e[n]);return r}(t,["children","color","title","buttons"]);return(0,o.createComponentVNode)(2,r.Box,{mb:1,children:[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({fluid:!0,color:l,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},s,{children:d}))),2),u&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",u,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:i})]})},i}(o.Component);t.Collapsible=i},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.content,n=(e.children,e.className),i=e.color,c=e.backgroundColor,l=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["content","children","className","color","backgroundColor"]);return l.color=t?null:"transparent",l.backgroundColor=i||c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,a.computeBoxClassName)(l)]),t||".",0,Object.assign({},(0,a.computeBoxProps)(l))))};t.ColorBox=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(0),r=n(10),a=n(17),i=n(121);function c(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t,n;function l(t){var n;return(n=e.call(this,t)||this).state={selected:t.selected,open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=l.prototype;return d.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},d.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},d.setSelected=function(e){this.setState({selected:e}),this.setOpen(!1),this.props.onSelected(e)},d.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){return(0,o.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return n.length?n:"No Options Found"},d.render=function(){var e=this,t=this.props,n=t.color,l=void 0===n?"default":n,d=t.over,u=t.noscroll,s=t.nochevron,p=t.width,m=(t.onClick,t.selected,t.disabled),f=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled"]),h=f.className,C=c(f,["className"]),g=d?!this.state.open:this.state.open,b=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([u?"Dropdown__menu-noscroll":"Dropdown__menu",d&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:p}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({width:p,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+l,m&&"Button--disabled",h])},C,{onClick:function(){m&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,o.createVNode)(1,"span","Dropdown__selected-text",this.state.selected,0),!!s||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,i.Icon,{name:g?"chevron-up":"chevron-down"}),2)]}))),b],0)},l}(o.Component);t.Dropdown=l},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(0),r=n(168),a=n(10);function i(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){var t=e.children,n=i(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=a.pureComponentHooks;var l=function(e){var t=e.size,n=void 0===t?1:t,a=e.style,c=i(e,["size","style"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},a)},c)))};t.GridColumn=l,c.defaultHooks=a.pureComponentHooks,c.Column=l},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var o=n(0),r=n(10),a=n(17);function i(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var c=function(e){return(0,r.isFalsy)(e)?"":e},l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,a=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),a&&a(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=l.prototype;return d.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e))},d.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,a=this.inputRef.current;a&&!n&&o!==r&&(a.value=c(r))},d.setEditing=function(e){this.setState({editing:e})},d.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=i(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),l=c.className,d=c.fluid,u=i(c,["className","fluid"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Input",d&&"Input--fluid",l])},u,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t},null,this.inputRef)]})))},l}(o.Component);t.Input=l},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(0),r=n(19),a=n(10),i=n(22),c=n(17),l=n(169),d=n(122);t.Knob=function(e){if(i.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,d.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,u=e.maxValue,s=e.minValue,p=e.onChange,m=e.onDrag,f=e.step,h=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,b=e.value,N=e.className,v=e.style,V=e.fillValue,y=e.color,_=e.ranges,x=void 0===_?{}:_,k=e.size,w=e.bipolar,L=(e.children,function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:u,minValue:s,onChange:p,onDrag:m,step:f,stepPixelSize:h,suppressFlicker:C,unit:g,value:b},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,p=e.handleDragStart,m=(0,r.scale)(null!=V?V:i,s,u),f=(0,r.scale)(i,s,u),h=y||(0,r.keyOfMatchingRange)(null!=V?V:n,x)||"default",C=270*(f-.5);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Knob","Knob--color--"+h,w&&"Knob--bipolar",N,(0,c.computeBoxClassName)(L)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+C+"deg)"}}),2),t&&(0,o.createVNode)(1,"div","Knob__popupValue",l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((w?2.75:2)-1.5*m)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),d],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":k+"rem"},v)},L)),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(0),r=n(167);function a(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var i=function(e){var t=e.children,n=a(e,["children"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=i;i.Item=function(e){var t=e.label,n=e.children,i=a(e,["label","children"]);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:1,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var o=n(0),r=n(1),a=n(2),i=function(e,t){var n=(0,a.useBackend)(t).config,i=e.onClick;return(0,o.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:(0,o.createComponentVNode)(2,r.Box,{as:"img",src:n.map+"_nanomap_z1.png",style:{width:"512px",height:"512px"},onClick:i})})};t.NanoMap=i;i.Marker=function(e){var t=e.x,n=e.y,a=e.icon,i=e.tooltip,c=e.color;return(0,o.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",top:2*(255-n)+2+"px",left:2*t+2+"px",children:[(0,o.createComponentVNode)(2,r.Icon,{name:a,color:c,size:.5}),(0,o.createComponentVNode)(2,r.Tooltip,{content:i})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(0),r=n(10),a=n(17),i=n(165);t.Modal=function(e){var t=e.className,n=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","children"]);return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",t,(0,a.computeBoxClassName)(c)]),n,0,Object.assign({},(0,a.computeBoxProps)(c))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.className,n=e.color,i=e.info,c=(e.warning,e.success),l=e.danger,d=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","color","info","warning","success","danger"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,i&&"NoticeBox--type--info",c&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",t])},d)))};t.NoticeBox=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBar=void 0;var o=n(0),r=n(19),a=n(10),i=n(17);var c=function(e){var t=e.className,n=e.value,c=e.minValue,l=void 0===c?0:c,d=e.maxValue,u=void 0===d?1:d,s=e.color,p=e.ranges,m=void 0===p?{}:p,f=e.children,h=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","value","minValue","maxValue","color","ranges","children"]),C=(0,r.scale)(n,l,u),g=f!==undefined,b=s||(0,r.keyOfMatchingRange)(n,m)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["ProgressBar","ProgressBar--color--"+b,t,(0,i.computeBoxClassName)(h)]),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,r.clamp01)(C)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",g?f:(0,r.toFixed)(100*C)+"%",0)],4,Object.assign({},(0,i.computeBoxProps)(h))))};t.ProgressBar=c,c.defaultHooks=a.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(0),r=n(10),a=n(17);var i=function(e){var t=e.className,n=e.title,i=e.level,c=void 0===i?1:i,l=e.buttons,d=e.content,u=e.children,s=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["className","title","level","buttons","content","children"]),p=!(0,r.isFalsy)(n)||!(0,r.isFalsy)(l),m=!(0,r.isFalsy)(d)||!(0,r.isFalsy)(u);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Section","Section--level--"+c,t])},s,{children:[p&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",l,0)],4),m&&(0,o.createVNode)(1,"div","Section__content",[d,u],0)]})))};t.Section=i,i.defaultHooks=r.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(0),r=n(19),a=n(10),i=n(22),c=n(17),l=n(169),d=n(122);t.Slider=function(e){if(i.IS_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,d.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,u=e.maxValue,s=e.minValue,p=e.onChange,m=e.onDrag,f=e.step,h=e.stepPixelSize,C=e.suppressFlicker,g=e.unit,b=e.value,N=e.className,v=e.fillValue,V=e.color,y=e.ranges,_=void 0===y?{}:y,x=e.children,k=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),w=x!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:u,minValue:s,onChange:p,onDrag:m,step:f,stepPixelSize:h,suppressFlicker:C,unit:g,value:b},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,p=e.handleDragStart,m=v!==undefined&&null!==v,f=((0,r.scale)(n,s,u),(0,r.scale)(null!=v?v:i,s,u)),h=(0,r.scale)(i,s,u),C=V||(0,r.keyOfMatchingRange)(null!=v?v:n,_)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Slider","ProgressBar","ProgressBar--color--"+C,N,(0,c.computeBoxClassName)(k)]),[(0,o.createVNode)(1,"div",(0,a.classes)(["ProgressBar__fill",m&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(f)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(f,h))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(h)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",w?x:l,0),d],0,Object.assign({},(0,c.computeBoxProps)(k),{onMouseDown:p})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(0),r=n(10),a=n(17),i=n(120);function c(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}var l=function(e){var t=e.className,n=e.vertical,i=e.children,l=c(e,["className","vertical","children"]);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,a.computeBoxClassName)(l)]),(0,o.createVNode)(1,"div","Tabs__tabBox",i,0),2,Object.assign({},(0,a.computeBoxProps)(l))))};t.Tabs=l;l.Tab=function(e){var t=e.className,n=e.selected,a=e.altSelection,l=c(e,["className","selected","altSelection"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({className:(0,r.classes)(["Tabs__tab",n&&"Tabs__tab--selected",a&&n&&"Tabs__tab--altSelection",t]),selected:!a&&n,color:"transparent"},l)))}},function(e,t,n){var o={"./AiAirlock.js":434,"./AirAlarm.js":435,"./AirlockElectronics.js":443,"./Apc.js":444,"./AtmosAlertConsole.js":445,"./AtmosControlConsole.js":446,"./AtmosFilter.js":447,"./AtmosMixer.js":448,"./AtmosPump.js":449,"./AtmosRelief.js":450,"./BankMachine.js":451,"./BluespaceArtillery.js":452,"./BorgPanel.js":453,"./BrigTimer.js":454,"./Canister.js":455,"./Canvas.js":456,"./Cargo.js":457,"./CargoExpress.js":461,"./CellularEmporium.js":462,"./CentcomPodLauncher.js":463,"./ChemDispenser.js":476,"./ChemHeater.js":477,"./ChemMaster.js":478,"./ChemSynthesizer.js":482,"./CodexGigas.js":483,"./ComputerFabricator.js":484,"./Crayon.js":485,"./CrewConsole.js":486,"./Cryo.js":487,"./DisposalUnit.js":488,"./DnaVault.js":489,"./DogborgSleeper.js":490,"./EightBallVote.js":492,"./EmergencyShuttleConsole.js":493,"./EngravedMessage.js":494,"./Gps.js":495,"./GravityGenerator.js":496,"./GulagItemReclaimer.js":497,"./GulagTeleporterConsole.js":498,"./Holodeck.js":499,"./ImplantChair.js":500,"./Intellicard.js":501,"./KeycardAuth.js":502,"./LaborClaimConsole.js":503,"./LanguageMenu.js":504,"./LaunchpadConsole.js":505,"./LaunchpadRemote.js":508,"./MechBayPowerConsole.js":509,"./Mule.js":510,"./NaniteChamberControl.js":511,"./NaniteCloudControl.js":512,"./NaniteProgramHub.js":516,"./NaniteProgrammer.js":517,"./NaniteRemote.js":526,"./NotificationPreferences.js":527,"./NtnetRelay.js":528,"./NtosAiRestorer.js":529,"./NtosCard.js":530,"./NtosConfiguration.js":531,"./NtosFileManager.js":532,"./NtosMain.js":533,"./NtosNetChat.js":534,"./NtosNetDos.js":535,"./NtosNetDownloader.js":536,"./NtosNetMonitor.js":537,"./NtosNetTransfer.js":538,"./NtosRbmkStats.js":539,"./NtosRevelation.js":540,"./NtosStationAlertConsole.js":541,"./NtosSupermatterMonitor.js":542,"./NuclearBomb.js":543,"./OperatingComputer.js":544,"./OreBox.js":545,"./OreRedemptionMachine.js":546,"./Pandemic.js":547,"./PersonalCrafting.js":548,"./PortableBasicInfo.js":123,"./PortablePump.js":549,"./PortableScrubber.js":550,"./PowerMonitor.js":551,"./Radio.js":552,"./RapidPipeDispenser.js":553,"./RbmkControlRods.js":554,"./RbmkStats.js":555,"./SatelliteControl.js":556,"./ShuttleManipulator.js":557,"./Signaler.js":558,"./Sleeper.js":559,"./SlimeBodySwapper.js":562,"./SmartVend.js":563,"./Smes.js":564,"./SmokeMachine.js":565,"./SolarControl.js":566,"./SpaceHeater.js":567,"./SpawnersMenu.js":568,"./StationAlertConsole.js":179,"./SuitStorageUnit.js":569,"./Tank.js":570,"./TankDispenser.js":571,"./TelecommsInteraction.js":572,"./TelecommsLogBrowser.js":573,"./TelecommsMonitor.js":574,"./TelecommsPDALog.js":575,"./Teleporter.js":576,"./ThermoMachine.js":577,"./TurbineComputer.js":578,"./Uplink.js":579,"./Wires.js":580};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=433},function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},u=d[l.power.main]||d[0],s=d[l.power.backup]||d[0],p=d[l.shock]||d[0];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main",color:u.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){return c("disrupt-main")}}),children:[l.power.main?"Online":"Offline"," ",l.wires.main_1&&l.wires.main_2?l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Backup",color:s.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){return c("disrupt-backup")}}),children:[l.power.backup?"Online":"Offline"," ",l.wires.backup_1&&l.wires.backup_2?l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Electrify",color:p.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",disabled:!(l.wires.shock&&0===l.shock),content:"Restore",onClick:function(){return c("shock-restore")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){return c("shock-temp")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Permanent",onClick:function(){return c("shock-perm")}})],4),children:[2===l.shock?"Safe":"Electrified"," ",(l.wires.shock?l.shock_timeleft>0&&"["+l.shock_timeleft+"s]":"[Wires have been cut!]")||-1===l.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){return c("idscan-toggle")}}),children:!l.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.emergency?"power-off":"times",content:l.emergency?"Enabled":"Disabled",selected:l.emergency,onClick:function(){return c("emergency-toggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){return c("bolt-toggle")}}),children:!l.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){return c("light-toggle")}}),children:!l.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){return c("safe-toggle")}}),children:!l.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){return c("speed-toggle")}}),children:!l.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){return c("open-close")}}),children:!(!l.locked&&!l.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(0),r=n(2),a=n(4),i=n(436),c=n(442),l=n(88);t.AirAlarm=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data,s=u.locked&&!u.siliconUser;return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.InterfaceLockNoticeBox,{siliconUser:u.siliconUser,locked:u.locked,onLockStatusChange:function(){return d("lock")}}),(0,o.createComponentVNode)(2,c.AirAlarmStatus),!s&&(0,o.createComponentVNode)(2,i.AirAlarmControl)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(437),c=n(438),l=n(439),d=n(440),u=n(441);t.AirAlarmControl=function(e,t){var n=(0,r.useBackend)(t),i=(n.config,n.data),c=(0,r.useLocalState)(t,"AirAlarmPage","home"),l=c[0],d=c[1],u=s[l]||s.home,p=u.component();return(0,o.createComponentVNode)(2,a.Section,{title:u.title,buttons:"home"!==i.screen&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return d("home")}}),children:(0,o.createComponentVNode)(2,p)})};var s={home:{title:"Air Controls",component:function(){return i.AirAlarmControlHome}},vents:{title:"Vent Controls",component:function(){return u.AirAlarmControlVents}},scrubbers:{title:"Scrubber Controls",component:function(){return l.AirAlarmControlScrubbers}},modes:{title:"Operating Mode",component:function(){return c.AirAlarmControlModes}},thresholds:{title:"Alarm Thresholds",component:function(){return d.AirAlarmControlThresholds}}}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlHome=void 0;var o=n(0),r=n(2),a=n(1);t.AirAlarmControlHome=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=(0,r.useLocalState)(t,"AirAlarmPage","home"),d=(l[0],l[1]),u=c.mode,s=c.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:s?"exclamation-triangle":"exclamation",color:s&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return i(s?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===u?"exclamation-triangle":"exclamation",color:3===u&&"danger",content:"Panic Siphon",onClick:function(){return i("mode",{mode:3===u?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlModes=void 0;var o=n(0),r=n(2),a=n(1);t.AirAlarmControlModes=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.modes;return c&&0!==c.length?c.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return i("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlScrubbers=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(38);t.AirAlarmControlScrubbers=function(e,t){var n=e.state,r=(0,a.useBackend)(t).data.scrubbers;return r&&0!==r.length?r.map((function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({state:n},e),e.id_tag))})):"Nothing to show"};var l=function(e,t){var n=e.long_name,l=e.power,d=e.scrubbing,u=e.id_tag,s=e.widenet,p=e.filter_types,m=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Section,{level:2,title:(0,r.decodeHtmlEntities)(n),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){return m("power",{id_tag:u,val:Number(!l)})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,i.Button,{icon:d?"filter":"sign-in-alt",color:d||"danger",content:d?"Scrubbing":"Siphoning",onClick:function(){return m("scrubbing",{id_tag:u,val:Number(!d)})}}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"expand":"compress",selected:s,content:s?"Expanded range":"Normal range",onClick:function(){return m("widenet",{id_tag:u,val:Number(!s)})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Filters",children:d&&p.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,c.getGasLabel)(e.gas_id,e.gas_name),title:e.gas_name,selected:e.enabled,onClick:function(){return m("toggle_filter",{id_tag:u,val:e.gas_id})}},e.gas_id)}))||"N/A"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlThresholds=void 0;var o=n(0),r=n(19),a=n(2),i=n(1);t.AirAlarmControlThresholds=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,l.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",e.name,0),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,i.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return c("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmControlVents=void 0;var o=n(0),r=n(16),a=n(2),i=n(1);t.AirAlarmControlVents=function(e,t){var n=e.state,r=(0,a.useBackend)(t).data.vents;return r&&0!==r.length?r.map((function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c,Object.assign({state:n},e),e.id_tag))})):"Nothing to show"};var c=function(e,t){var n=e.id_tag,c=e.long_name,l=e.power,d=e.checks,u=e.excheck,s=e.incheck,p=e.direction,m=e.external,f=e.internal,h=e.extdefault,C=e.intdefault,g=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Section,{level:2,title:(0,r.decodeHtmlEntities)(c),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:l?"power-off":"times",selected:l,content:l?"On":"Off",onClick:function(){return g("power",{id_tag:n,val:Number(!l)})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mode",children:"release"===p?"Pressurizing":"Releasing"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Internal",selected:s,onClick:function(){return g("incheck",{id_tag:n,val:d})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"External",selected:u,onClick:function(){return g("excheck",{id_tag:n,val:d})}})]}),!!s&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(f),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return g("set_internal_pressure",{id_tag:n,value:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:C,content:"Reset",onClick:function(){return g("reset_internal_pressure",{id_tag:n})}})]}),!!u&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,i.NumberInput,{value:Math.round(m),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return g("set_external_pressure",{id_tag:n,value:t})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",disabled:h,content:"Reset",onClick:function(){return g("reset_external_pressure",{id_tag:n})}})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarmStatus=void 0;var o=n(0),r=n(19),a=n(2),i=n(1);t.AirAlarmStatus=function(e,t){var n=(0,a.useBackend)(t).data,c=(n.environment_data||[]).filter((function(e){return e.value>=.01})),l={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},d=l[n.danger_level]||l[0];return(0,o.createComponentVNode)(2,i.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[c.length>0&&(0,o.createFragment)([c.map((function(e){var t=l[e.danger_level]||l[0];return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,color:t.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Local status",color:d.color,children:d.localStatusText}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Area status",color:n.atmos_alarm||n.fire_alarm?"bad":"good",children:(n.atmos_alarm?"Atmosphere Alarm":n.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!n.emagged&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AirlockElectronics=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.regions||[],u=(0,r.useLocalState)(t,"tab",d[0].name),s=u[0],p=u[1],m=d.find((function(e){return e.name===s})),f={0:{icon:"times-circle"},1:{icon:"stop-circle"},2:{icon:"check-circle"}};return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Main",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Access Required",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.oneAccess?"unlock":"lock",content:l.oneAccess?"One":"All",onClick:function(){return c("one_access")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mass Modify",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"check-double",content:"Grant All",onClick:function(){return c("grant_all")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Clear All",onClick:function(){return c("clear_all")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unrestricted Access",children:[(0,o.createComponentVNode)(2,a.Button,{icon:1&l.unres_direction?"check-square-o":"square-o",content:"North",selected:1&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"1"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:2&l.unres_direction?"check-square-o":"square-o",content:"East",selected:2&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"2"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:4&l.unres_direction?"check-square-o":"square-o",content:"South",selected:4&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"4"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:8&l.unres_direction?"check-square-o":"square-o",content:"West",selected:8&l.unres_direction,onClick:function(){return c("direc_set",{unres_direction:"8"})}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:d.map((function(e){var t=e.name,n=e.accesses||[],r=f[function(e){var t=!1,n=!1;return e.forEach((function(e){e.req?t=!0:n=!0})),!t&&n?0:t&&n?1:2}(n)].icon;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:r,selected:s===t,onClick:function(){return p(t)},children:t},t)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:m.accesses.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:e.req?"check-square-o":"square-o",content:e.name,selected:e.req,onClick:function(){return c("set",{access:e.id})}})},e.id)}))})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Apc=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(88);t.Apc=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.locked&&!d.siliconUser,s={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"}},p={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},m=s[d.externalPower]||s[0],f=s[d.chargingStatus]||s[0],h=d.powerChannels||[],C=p[d.malfStatus]||p[0],g=d.powerCellStatus/100;return d.failTime>0?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createVNode)(1,"b",null,(0,o.createVNode)(1,"h3",null,"SYSTEM FAILURE",16),2),(0,o.createVNode)(1,"i",null,"I/O regulators malfunction detected! Waiting for system reboot...",16),(0,o.createVNode)(1,"br"),"Automatic reboot in ",d.failTime," seconds...",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reboot Now",onClick:function(){return l("reboot")}})]})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox,{siliconUser:d.siliconUser,locked:d.locked,onLockStatusChange:function(){return l("lock")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main Breaker",color:m.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,disabled:u,onClick:function(){return l("breaker")}}),children:["[ ",m.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",value:g})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",color:f.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.chargeMode?"sync":"close",content:d.chargeMode?"Auto":"Off",disabled:u,onClick:function(){return l("charge")}}),children:["[ ",f.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[h.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Auto",selected:!u&&(1===e.status||3===e.status),disabled:u,onClick:function(){return l("channel",t.auto)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"On",selected:!u&&2===e.status,disabled:u,onClick:function(){return l("channel",t.on)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Off",selected:!u&&0===e.status,disabled:u,onClick:function(){return l("channel",t.off)}})],4),children:e.powerLoad},e.title)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Load",children:(0,o.createVNode)(1,"b",null,d.totalLoad,0)})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createFragment)([!!d.malfStatus&&(0,o.createComponentVNode)(2,a.Button,{icon:C.icon,content:C.content,color:"bad",onClick:function(){return l(C.action)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return l("overload")}})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){return l("cover")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){return l("emergency_lighting")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",disabled:u,onClick:function(){return l("toggle_nightshift")}})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.priority||[],u=l.minor||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[d.length>0?d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"bad",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})):(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),u.length>0?u.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"average",onClick:function(){return c("clear",{zone:e})}}),2,null,e)})):(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16)],0)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControlConsole=void 0;var o=n(0),r=n(33),a=n(19),i=n(2),c=n(1),l=n(4);t.AtmosControlConsole=function(e,t){var n=(0,i.useBackend)(t),d=n.act,u=n.data,s=u.sensors||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:!!u.tank&&s[0].long_name,children:s.map((function(e){var t=e.gases||{};return(0,o.createComponentVNode)(2,c.Section,{title:!u.tank&&e.long_name,level:2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,a.toFixed)(e.pressure,2)+" kPa"}),!!e.temperature&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,a.toFixed)(e.temperature,2)+" K"}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:t,children:(0,a.toFixed)(e,2)+"%"})}))(t)]})},e.id_tag)}))}),u.tank&&(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Reconnect",onClick:function(){return d("reconnect")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Injector",children:(0,o.createComponentVNode)(2,c.Button,{icon:u.inputting?"power-off":"times",content:u.inputting?"Injecting":"Off",selected:u.inputting,onClick:function(){return d("input")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Rate",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:u.inputRate,unit:"L/s",width:"63px",minValue:0,maxValue:200,suppressFlicker:2e3,onChange:function(e,t){return d("rate",{rate:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Regulator",children:(0,o.createComponentVNode)(2,c.Button,{icon:u.outputting?"power-off":"times",content:u.outputting?"Open":"Closed",selected:u.outputting,onClick:function(){return d("output")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:parseFloat(u.outputPressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,suppressFlicker:2e3,onChange:function(e,t){return d("pressure",{pressure:t})}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(0),r=n(2),a=n(1),i=n(38),c=n(4);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.filter_types||[];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,t){return l("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:d.rate===d.max_rate,onClick:function(){return l("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filter",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.selected,content:(0,i.getGasLabel)(e.id,e.name),onClick:function(){return l("filter",{mode:e.id})}},e.id)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return c("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return c("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Node 1",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return c("node1",{concentration:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Node 2",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return c("node2",{concentration:t})}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return c("power")}})}),l.max_rate?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onChange:function(e,t){return c("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return c("rate",{rate:"max"})}})]}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.pressure===l.max_pressure,onClick:function(){return c("pressure",{pressure:"max"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.AtmosRelief=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AtmosRelief=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Open Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.open_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:4500,step:10,onChange:function(e,t){return c("open_pressure",{open_pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.open_pressure===l.max_pressure,onClick:function(){return c("open_pressure",{open_pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Close Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.close_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.open_pressure,step:10,onChange:function(e,t){return c("close_pressure",{close_pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.close_pressure===l.open_pressure,onClick:function(){return c("close_pressure",{close_pressure:"max"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BankMachine=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BankMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.current_balance,u=l.siphoning,s=l.station_name;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:s+" Vault",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Balance",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"times":"sync",content:u?"Stop Siphoning":"Siphon Credits",selected:u,onClick:function(){return c(u?"halt":"siphon")}}),children:d+" cr"})})}),(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"Authorized personnel only"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceArtillery=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BluespaceArtillery=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.notice,u=l.connected,s=l.unlocked,p=l.target;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:d}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Target",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"crosshairs",disabled:!s,onClick:function(){return c("recalibrate")}}),children:(0,o.createComponentVNode)(2,a.Box,{color:p?"average":"bad",fontSize:"25px",children:p||"No Target Set"})}),(0,o.createComponentVNode)(2,a.Section,{children:s?(0,o.createComponentVNode)(2,a.Box,{style:{margin:"auto"},children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"FIRE",color:"bad",disabled:!p,fontSize:"30px",textAlign:"center",lineHeight:"46px",onClick:function(){return c("fire")}})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"bad",fontSize:"18px",children:"Bluespace artillery is currently locked."}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"Awaiting authorization via keycard reader from at minimum two station heads."})],4)})],4):(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance",children:(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"Complete Deployment",onClick:function(){return c("build")}})})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.borg||{},u=l.cell||{},s=u.charge/u.maxcharge,p=l.channels||[],m=l.modules||[],f=l.upgrades||[],h=l.ais||[],C=l.laws||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:d.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return c("rename")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.emagged?"check-square-o":"square-o",content:"Emagged",selected:d.emagged,onClick:function(){return c("toggle_emagged")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:d.lockdown,onClick:function(){return c("toggle_lockdown")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:d.scrambledcodes,onClick:function(){return c("toggle_scrambledcodes")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[u.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,a.ProgressBar,{value:s,children:[u.charge," / ",u.maxcharge]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("set_charge")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Change",onClick:function(){return c("change_cell")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return c("remove_cell")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radio Channels",children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Module",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:d.active_module===e.type?"check-square-o":"square-o",content:e.name,selected:d.active_module===e.type,onClick:function(){return c("setmodule",{module:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upgrades",children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return c("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return c("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Laws",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:d.lawupdate,onClick:function(){return c("toggle_lawupdate")}}),children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:l.timing?"Stop":"Start",selected:l.timing,onClick:function(){return c(l.timing?"stop":"start")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:l.flash_charging?"Recharging":"Flash",disabled:l.flash_charging,onClick:function(){return c("flash")}})],4),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",onClick:function(){return c("time",{adjust:-600})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",onClick:function(){return c("time",{adjust:-100})}})," ",String(l.minutes).padStart(2,"0"),":",String(l.seconds).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",onClick:function(){return c("time",{adjust:100})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",onClick:function(){return c("time",{adjust:600})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Short",onClick:function(){return c("preset",{preset:"short"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Medium",onClick:function(){return c("preset",{preset:"medium"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Long",onClick:function(){return c("preset",{preset:"long"})}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Canister=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:["The regulator ",l.hasHoldingTank?"is":"is not"," connected to a tank."]}),(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Relabel",onClick:function(){return c("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.tankPressure})," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Port",color:l.portConnected?"good":"average",content:l.portConnected?"Connected":"Not Connected"}),!!l.isPrototype&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Access",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.restricted?"lock":"unlock",color:"caution",content:l.restricted?"Restricted to Engineering":"Public",onClick:function(){return c("restricted")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Valve",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Release Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.releasePressure/(l.maxReleasePressure-l.minReleasePressure),children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.releasePressure})," kPa"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:l.releasePressure===l.defaultReleasePressure,content:"Reset",onClick:function(){return c("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:l.releasePressure<=l.minReleasePressure,content:"Min",onClick:function(){return c("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return c("pressure",{pressure:"input"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:l.releasePressure>=l.maxReleasePressure,content:"Max",onClick:function(){return c("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.valveOpen?"unlock":"lock",color:l.valveOpen?l.hasHoldingTank?"caution":"danger":null,content:l.valveOpen?"Open":"Closed",onClick:function(){return c("valve")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:l.valveOpen&&"danger",content:"Eject",onClick:function(){return c("eject")}}),children:[!!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:l.holdingTank.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l.holdingTank.tankPressure})," kPa"]})]}),!l.hasHoldingTank&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Canvas=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Canvas=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c,{value:d.grid,onCanvasClick:function(e,t){return l("paint",{x:e,y:t})}}),(0,o.createComponentVNode)(2,a.Box,{children:d.name})]})})})};var c=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).canvasRef=(0,o.createRef)(),n.onCVClick=t.onCanvasClick,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.componentDidMount=function(){this.drawCanvas(this.props)},a.componentDidUpdate=function(){this.drawCanvas(this.props)},a.drawCanvas=function(e){var t=this.canvasRef.current.getContext("2d"),n=e.value,o=n.length;if(o){var r=n[0].length,a=Math.round(this.canvasRef.current.width/o),i=Math.round(this.canvasRef.current.height/r);t.save(),t.scale(a,i);for(var c=0;c=0||(r[n]=e[n]);return r}(t,["res","value","px_per_unit"]),c=n.length*a,l=0!==c?n[0].length*a:0;return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:c||300,height:l||300},i,{onClick:function(t){return e.clickwrapper(t)}}),null,this.canvasRef))},r}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.Cargo=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(458),l=n(172),d=n(460);t.Cargo=function(e,t){var n=(0,r.useBackend)(t),u=n.data,s=n.act,p=u.requestonly,m=u.points,f=u.docked,h=u.location,C=u.message,g=u.loan,b=u.loan_dispatched,N=u.away,v=u.cart||[],V=u.requests||[],y=Object.values(u.supplies),_=(0,r.useLocalState)(t,"tab","catalog"),x=_[0],k=_[1],w=v.reduce((function(e,t){return e+t.cost}),0),L=p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:1,children:[0===v.length&&"Cart is empty",1===v.length&&"1 item",v.length>=2&&v.length+" items"," ",w>0&&"("+w+" cr)"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"transparent",content:"Clear",onClick:function(){return s("clear")}})],4);return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Cargo",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(m)})," credits"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle",children:f&&!p&&(0,o.createComponentVNode)(2,a.Button,{content:h,onClick:function(){return s("send")}})||h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"CentCom Message",children:C}),g&&!p?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loan",children:b?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Loaned to Centcom"}):(0,o.createComponentVNode)(2,a.Button,{content:"Loan Shuttle",disabled:!(N&&f),onClick:function(){return s("loan")}})}):""]})}),(0,o.createComponentVNode)(2,a.Tabs,{mt:2,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:"catalog"===x,onClick:function(){return k("catalog")},children:"Catalog"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"envelope",className:V.length>0&&"requests"!==x&&"color-yellow",lineHeight:"23px",selected:"requests"===x,onClick:function(){return k("requests")},children:["Requests (",V.length,")"]}),!p&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"shopping-cart",className:v.length>0&&"cart"!==x&&"color-yellow",lineHeight:"23px",selected:"cart"===x,onClick:function(){return k("cart")},children:["Checkout (",v.length,")"]})]}),"catalog"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Catalog",buttons:L,children:(0,o.createComponentVNode)(2,l.Catalog,{supplies:y})}),"requests"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Active Requests",buttons:!p&&(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Clear",color:"transparent",onClick:function(){return s("denyall")}}),children:(0,o.createComponentVNode)(2,d.Requests)}),"cart"===x&&(0,o.createComponentVNode)(2,a.Section,{title:"Current Cart",buttons:L,children:(0,o.createComponentVNode)(2,c.Cart)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cart=void 0;var o=n(0),r=n(2),a=n(1);t.Cart=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=i.requestonly,d=i.docked,u=i.location,s=i.away,p=i.cart||[];return(0,o.createFragment)([0===p.length&&"Nothing in cart",p.length>0&&(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:"#"+e.id,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:2,children:[!!e.paid&&(0,o.createVNode)(1,"b",null,"[Paid Privately]",16)," ",e.cost," credits"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",onClick:function(){return c("remove",{id:e.id})}})],4),children:e.object},e.id)}))}),p.length>0&&!l&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:1===s&&1===d&&(0,o.createComponentVNode)(2,a.Button,{color:"green",style:{"line-height":"28px",padding:"0 12px"},content:"Confirm the order",onClick:function(){return c("send")}})||(0,o.createComponentVNode)(2,a.Box,{opacity:.5,children:["Shuttle in ",u,"."]})})],0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CatalogPackItemList=void 0;var o=n(0),r=n(2),a=n(1);t.CatalogPackItemList=function(e,t){var n=e.supply,i=(0,r.useBackend)(t),c=i.data,l=i.act,d=c.self_paid,u=n.packs;return(0,o.createComponentVNode)(2,a.LabeledList,{children:u.map((function(e){var t=(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:(d?Math.round(1.1*e.cost):e.cost)+" credits",tooltip:e.desc,tooltipPosition:"left",onClick:function(){return l("add",{id:e.id})}});return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:t,children:!!e.access&&"Restrictions Apply"},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.Requests=void 0;var o=n(0),r=n(2),a=n(1);t.Requests=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=i.requestonly,d=i.requests||[];return 0===d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Requests"}):(0,o.createVNode)(1,"table","LabeledList",d.map((function(e){return(0,o.createFragment)([(0,o.createVNode)(1,"tr","LabeledList__row candystripe",[(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__label",[(0,o.createTextVNode)("#"),e.id,(0,o.createTextVNode)(":")],0),(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__content",e.object,0),(0,o.createVNode)(1,"td","LabeledList__cell",[(0,o.createTextVNode)("By "),(0,o.createVNode)(1,"b",null,e.orderer,0)],4),(0,o.createVNode)(1,"td","LabeledList__cell",(0,o.createVNode)(1,"i",null,e.reason,0),2),(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",[e.cost,(0,o.createTextVNode)(" credits"),(0,o.createTextVNode)(" "),!l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"check",color:"good",onClick:function(){return c("approve",{id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"bad",onClick:function(){return c("deny",{id:e.id})}})],4)],0)],4)],4,e.id)})),0)}},function(e,t,n){"use strict";t.__esModule=!0,t.CargoExpress=void 0;var o=n(0),r=n(1),a=n(88),i=n(4),c=n(172),l=n(2);t.CargoExpress=function(e,t){var n=(0,l.useBackend)(t),d=n.data,u=n.act,s=d.siliconUser,p=d.locked,m=d.points,f=d.usingBeacon,h=d.hasBeacon,C=d.beaconName,g=d.beaconzone,b=d.printMsg,N=d.canBuyBeacon,v=d.message,V=Object.values(d.supplies);return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.InterfaceLockNoticeBox,{siliconUser:s,locked:p,onLockStatusChange:function(){return u("lock")},accessText:"a QM-level ID card"}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Section,{title:"Cargo Express",buttons:(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(m)})," credits"]}),children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Landing Location",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Cargo Bay",selected:!f,onClick:function(){return u("LZCargo")}}),(0,o.createComponentVNode)(2,r.Button,{selected:f,disabled:!h,onClick:function(){return u("LZBeacon")},children:[g," (",C,")"]}),(0,o.createComponentVNode)(2,r.Button,{content:b,disabled:!N,onClick:function(){return u("printBeacon")}})]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Notice",children:v})]})}),(0,o.createComponentVNode)(2,c.Catalog,{supplies:V})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CellularEmporium=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.CellularEmporium=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.abilities;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Genetic Points",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Readapt",disabled:!l.can_readapt,onClick:function(){return c("readapt")}}),children:l.genetic_points_remaining})})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:e.name,buttons:(0,o.createFragment)([e.dna_cost," ",(0,o.createComponentVNode)(2,a.Button,{content:e.owned?"Evolved":"Evolve",selected:e.owned,onClick:function(){return c("evolve",{name:e.name})}})],0),children:[e.desc,(0,o.createComponentVNode)(2,a.Box,{color:"good",children:e.helptext})]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CentcomPodLauncher=void 0;var o=n(0),r=(n(16),n(2)),a=n(1),i=n(4),c=n(464),l=n(465),d=n(466),u=n(467),s=n(468),p=n(469),m=n(470),f=n(471),h=n(472),C=n(473),g=n(474),b=n(475);t.CentcomPodLauncher=function(e,t){var n=(0,r.useBackend)(t),N=n.act,v=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"To use this, simply spawn the atoms you want in one of the five Centcom Supplypod Bays. Items in the bay will then be launched inside your supplypod, one turf-full at a time! You can optionally use the following buttons to configure how the supplypod acts."}),(0,o.createComponentVNode)(2,a.Section,{title:"Centcom Pod Customization (To be used against Helen Weinstein)",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,C.CPLSupplyBay),(0,o.createComponentVNode)(2,g.CPLTeleportTo),(0,o.createComponentVNode)(2,c.CPLCloneMode),(0,o.createComponentVNode)(2,s.CPLLaunchStyle),(0,o.createComponentVNode)(2,u.CPLExplosion),(0,o.createComponentVNode)(2,l.CPLDamage),(0,o.createComponentVNode)(2,d.CPLEffects),(0,o.createComponentVNode)(2,p.CPLMovement),(0,o.createComponentVNode)(2,m.CPLNameAndDescription),(0,o.createComponentVNode)(2,f.CPLSound),(0,o.createComponentVNode)(2,b.CPLTimers),(0,o.createComponentVNode)(2,h.CPLStyle)]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:v.numObjects+" turfs in "+v.bay,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"undo Pod Bay",tooltip:"Manually undoes the possible things to launch in the\npod bay.",onClick:function(){return N("undo")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Enter Launch Mode",selected:v.giveLauncher,tooltip:"THE CODEX ASTARTES CALLS THIS MANEUVER: STEEL RAIN",onClick:function(){return N("giveLauncher")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Clear Selected Bay",color:"bad",tooltip:"This will delete all objs and mobs from the selected bay.",tooltipPosition:"left",onClick:function(){return N("clearBay")}})],4)})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLCloneMode=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLCloneMode=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Clone Mode",children:(0,o.createComponentVNode)(2,r.Button,{content:"Launch Clones",selected:c.launchClone,tooltip:"Choosing this will create a duplicate of the item to be\nlaunched in Centcom, allowing you to send one type of item\nmultiple times. Either way, the atoms are forceMoved into\nthe supplypod after it lands (but before it opens).",onClick:function(){return i("launchClone")}})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLDamage=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLDamage=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Damage",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Damage",selected:1===c.damageChoice,tooltip:"Anyone caught under the pod when it lands will be dealt\nthis amount of brute damage. Sucks to be them!",onClick:function(){return i("damageCustom")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Gib",selected:2===c.damageChoice,tooltip:"This will attempt to gib any mob caught under the pod when\nit lands, as well as dealing a nice 5000 brute damage. Ya\nknow, just to be sure!",onClick:function(){return i("damageGib")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLEffects=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLEffects=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Effects",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Stun",selected:c.effectStun,tooltip:"Anyone who is on the turf when the supplypod is launched\nwill be stunned until the supplypod lands. They cant get\naway that easy!",onClick:function(){return i("effectStun")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Delimb",selected:c.effectLimb,tooltip:"This will cause anyone caught under the pod to lose a limb,\nexcluding their head.",onClick:function(){return i("effectLimb")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Yeet Organs",selected:c.effectOrgans,tooltip:"This will cause anyone caught under the pod to lose all\ntheir limbs and organs in a spectacular fashion.",onClick:function(){return i("effectOrgans")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLExplosion=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLExplosion=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Explosion",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Size",selected:1===c.explosionChoice,tooltip:"This will cause an explosion of whatever size you like\n(including flame range) to occur as soon as the supplypod\nlands. Dont worry, supply-pods are explosion-proof!",onClick:function(){return i("explosionCustom")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Adminbus",selected:2===c.explosionChoice,tooltip:"This will cause a maxcap explosion (dependent on server\nconfig) to occur as soon as the supplypod lands. Dont worry,\nsupply-pods are explosion-proof!",onClick:function(){return i("explosionBus")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLLaunchStyle=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLLaunchStyle=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Launch style",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Ordered",selected:1===c.launchChoice,tooltip:'Instead of launching everything in the bay at once, this\nwill "scan" things (one turf-full at a time) in order, left\nto right and top to bottom. undoing will reset the "scanner"\nto the top-leftmost position.',onClick:function(){return i("launchOrdered")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Random",selected:2===c.launchChoice,tooltip:"Instead of launching everything in the bay at once, this\nwill launch one random turf of items at a time.",onClick:function(){return i("launchRandom")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLMovement=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLMovement=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Movement",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Bluespace",selected:c.effectBluespace,tooltip:"Gives the supplypod an advanced Bluespace Recyling Device.\nAfter opening, the supplypod will be warped directly to the\nsurface of a nearby NT-designated trash planet (/r/ss13).",onClick:function(){return i("effectBluespace")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Stealth",selected:c.effectStealth,tooltip:'This hides the red target icon from appearing when you\nlaunch the supplypod. Combos well with the "Invisible"\nstyle. Sneak attack, go!',onClick:function(){return i("effectStealth")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Quiet",selected:c.effectQuiet,tooltip:"This will keep the supplypod from making any sounds, except\nfor those specifically set by admins in the Sound section.",onClick:function(){return i("effectQuiet")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Reverse Mode",selected:c.effectReverse,tooltip:"This pod will not send any items. Instead, after landing,\nthe supplypod will close (similar to a normal closet closing),\nand then launch back to the right centcom bay to drop off any\nnew contents.",onClick:function(){return i("effectReverse")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Missile Mode",selected:c.effectMissile,tooltip:"This pod will not send any items. Instead, it will immediately\ndelete after landing (Similar visually to setting openDelay\n& departDelay to 0, but this looks nicer). Useful if you just\nwanna fuck some shit up. Combos well with the Missile style.",onClick:function(){return i("effectMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Any Descent Angle",selected:c.effectCircle,tooltip:"This will make the supplypod come in from any angle. Im not\nsure why this feature exists, but here it is.",onClick:function(){return i("effectCircle")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Machine Gun Mode",selected:c.effectBurst,tooltip:"This will make each click launch 5 supplypods inaccuratly\naround the target turf (a 3x3 area). Combos well with the\nMissile Mode if you dont want shit lying everywhere after.",onClick:function(){return i("effectBurst")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Specific Target",selected:c.effectTarget,tooltip:"This will make the supplypod target a specific atom, instead\nof the mouses position. Smiting does this automatically!",onClick:function(){return i("effectTarget")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLNameAndDescription=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLNameAndDescription=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Name/Desc",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Name/Desc",selected:c.effectName,tooltip:"Allows you to add a custom name and description.",onClick:function(){return i("effectName")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Alert Ghosts",selected:c.effectAnnounce,tooltip:"Alerts ghosts when a pod is launched. Useful if some dumb\nshit is aboutta come outta the pod.",onClick:function(){return i("effectAnnounce")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLSound=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLSound=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Sound",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Falling Sound",selected:c.fallingSound,tooltip:"Choose a sound to play as the pod falls. Note that for this\nto work right you should know the exact length of the sound,\nin seconds.",onClick:function(){return i("fallSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Landing Sound",selected:c.landingSound,tooltip:"Choose a sound to play when the pod lands.",onClick:function(){return i("landingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Opening Sound",selected:c.openingSound,tooltip:"Choose a sound to play when the pod opens.",onClick:function(){return i("openingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Leaving Sound",selected:c.leavingSound,tooltip:"Choose a sound to play when the pod departs (whether that be\ndelection in the case of a bluespace pod, or leaving for\ncentcom for a reversing pod).",onClick:function(){return i("leavingSound")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Admin Sound Volume",selected:c.soundVolume,tooltip:"Choose the volume for the sound to play at. Default values\nare between 1 and 100, but hey, do whatever. Im a tooltip,\nnot a cop.",onClick:function(){return i("soundVolume")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLStyle=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLStyle=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Style",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Standard",selected:1===c.styleChoice,tooltip:"Same color scheme as the normal station-used supplypods",onClick:function(){return i("styleStandard")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Advanced",selected:2===c.styleChoice,tooltip:"The same as the stations upgraded blue-and-white\nBluespace Supplypods",onClick:function(){return i("styleBluespace")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Syndicate",selected:4===c.styleChoice,tooltip:"A menacing black and blood-red. Great for sending meme-ops\nin style!",onClick:function(){return i("styleSyndie")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Deathsquad",selected:5===c.styleChoice,tooltip:"A menacing black and dark blue. Great for sending deathsquads\nin style!",onClick:function(){return i("styleBlue")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Cult Pod",selected:6===c.styleChoice,tooltip:"A blood and rune covered cult pod!",onClick:function(){return i("styleCult")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Missile",selected:7===c.styleChoice,tooltip:"A large missile. Combos well with a missile mode, so the\nmissile doesnt stick around after landing.",onClick:function(){return i("styleMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Syndicate Missile",selected:8===c.styleChoice,tooltip:"A large blood-red missile. Combos well with missile mode,\nso the missile doesnt stick around after landing.",onClick:function(){return i("styleSMissile")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Supply Crate",selected:9===c.styleChoice,tooltip:"A large, dark-green military supply crate.",onClick:function(){return i("styleBox")}}),(0,o.createComponentVNode)(2,r.Button,{content:"HONK",selected:10===c.styleChoice,tooltip:"A colorful, clown inspired look.",onClick:function(){return i("styleHONK")}}),(0,o.createComponentVNode)(2,r.Button,{content:"~Fruit",selected:11===c.styleChoice,tooltip:"For when an orange is angry",onClick:function(){return i("styleFruit")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Invisible",selected:12===c.styleChoice,tooltip:'Makes the supplypod invisible! Useful for when you want to\nuse this feature with a gateway or something. Combos well\nwith the "Stealth" and "Quiet Landing" effects.',onClick:function(){return i("styleInvisible")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Gondola",selected:13===c.styleChoice,tooltip:"This gondola can control when he wants to deliver his supplies\nif he has a smart enough mind, so offer up his body to ghosts\nfor maximum enjoyment. (Make sure to turn off bluespace and\nset a arbitrarily high open-time if you do!",onClick:function(){return i("styleGondola")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Show Contents (See Through Pod)",selected:14===c.styleChoice,tooltip:"By selecting this, the pod will instead look like whatevers\ninside it (as if it were the contents falling by themselves,\nwithout a pod). Useful for launching mechs at the station\nand standing tall as they soar in from the heavens.",onClick:function(){return i("styleSeeThrough")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLSupplyBay=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLSupplyBay=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Supply Bay",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Bay #1",selected:1===c.bayNumber,onClick:function(){return i("bay1")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #2",selected:2===c.bayNumber,onClick:function(){return i("bay2")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #3",selected:3===c.bayNumber,onClick:function(){return i("bay3")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Bay #4",selected:4===c.bayNumber,onClick:function(){return i("bay4")}}),(0,o.createComponentVNode)(2,r.Button,{content:"ERT Bay",selected:5===c.bayNumber,tooltip:"This bay is located on the western edge of CentCom. Its the\nglass room directly west of where ERT spawn, and south of the\nCentCom ferry. Useful for launching ERT/Deathsquads/etc. onto\nthe station via drop pods.",onClick:function(){return i("bay5")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLTeleportTo=void 0;var o=n(0),r=n(1),a=n(2);t.CPLTeleportTo=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Teleport to",children:[(0,o.createComponentVNode)(2,r.Button,{content:c.bay,onClick:function(){return i("teleportCentcom")}}),(0,o.createComponentVNode)(2,r.Button,{content:c.oldArea?c.oldArea:"Where you were",disabled:!c.oldArea,onClick:function(){return i("teleportBack")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.CPLTimers=void 0;var o=n(0),r=(n(16),n(1)),a=n(2);t.CPLTimers=function(e,t){var n=(0,a.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Timers",children:[(0,o.createComponentVNode)(2,r.Button,{content:"Custom Falling Duration",selected:4!==c.fallDuration,tooltip:"Set how long the animation for the pod falling lasts. Create\ndramatic, slow falling pods!",onClick:function(){return i("fallDuration")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Landing Time",selected:20!==c.landingDelay,tooltip:"Choose the amount of time it takes for the supplypod to hit\nthe station. By default this value is 0.5 seconds.",onClick:function(){return i("landingDelay")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Opening Time",selected:30!==c.openingDelay,tooltip:"Choose the amount of time it takes for the supplypod to open\nafter landing. Useful for giving whatevers inside the pod a\nnice dramatic entrance! By default this value is 3 seconds.",onClick:function(){return i("openingDelay")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Custom Leaving Time",selected:30!==c.departureDelay,tooltip:"Choose the amount of time it takes for the supplypod to leave\nafter landing. By default this value is 3 seconds.",onClick:function(){return i("departureDelay")}})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemDispenser=void 0;var o=n(0),r=n(19),a=n(16),i=n(2),c=n(1),l=n(4);t.ChemDispenser=function(e,t){var n=(0,i.useBackend)(t),d=n.act,u=n.data,s=!!u.recordingRecipe,p=Object.keys(u.recipes).map((function(e){return{name:e,contents:u.recipes[e]}})),m=u.beakerTransferAmounts||[],f=s&&Object.keys(u.recordingRecipe).map((function(e){return{id:e,name:(0,a.toTitleCase)(e.replace(/_/," ")),volume:u.recordingRecipe[e]}}))||u.beakerContents||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:1,color:"red",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",mr:1}),"Recording"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u.energy/u.maxEnergy,children:[(0,r.toFixed)(u.energy)," units"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",buttons:(0,o.createFragment)([!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:1,children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",content:"Clear recipes",onClick:function(){return d("clear_recipes")}})}),!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"circle",disabled:!u.isBeakerLoaded,content:"Record",onClick:function(){return d("record_recipe")}}),s&&(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"transparent",content:"Discard",onClick:function(){return d("cancel_recording")}}),s&&(0,o.createComponentVNode)(2,c.Button,{icon:"save",color:"green",content:"Save",onClick:function(){return d("save_recording")}})],0),children:(0,o.createComponentVNode)(2,c.Box,{mr:-1,children:[p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"tint",width:"129.5px",lineHeight:"21px",content:e.name,onClick:function(){return d("dispense_recipe",{recipe:e.name})}},e.name)})),0===p.length&&(0,o.createComponentVNode)(2,c.Box,{color:"light-gray",children:"No recipes."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Dispense",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"plus",selected:e===u.amount,content:e,onClick:function(){return d("amount",{target:e})}},e)})),children:(0,o.createComponentVNode)(2,c.Box,{mr:-1,children:u.chemicals.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"tint",width:"129.5px",lineHeight:"21px",content:e.title,onClick:function(){return d("dispense",{reagent:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:s,content:e,onClick:function(){return d("remove",{amount:e})}},e)})),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:!!u.isBeakerLoaded&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!u.isBeakerLoaded,onClick:function(){return d("eject")}}),children:(s?"Virtual beaker":u.isBeakerLoaded&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.AnimatedNumber,{initial:0,value:u.beakerCurrentVolume}),(0,o.createTextVNode)("/"),u.beakerMaxVolume,(0,o.createTextVNode)(" units, "),u.beakerCurrentpH,(0,o.createTextVNode)(" pH")],0))||"No beaker"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contents",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:u.isBeakerLoaded||s?0===f.length&&"Nothing":"N/A"}),f.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{initial:0,value:e.volume})," ","units of ",e.name]},e.name)}))]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemHeater=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4),l=n(173);t.ChemHeater=function(e,t){var n=(0,a.useBackend)(t),d=n.act,u=n.data,s=u.targetTemp,p=u.isActive,m=u.isBeakerLoaded,f=u.currentTemp,h=u.currentpH,C=u.beakerCurrentVolume,g=u.beakerMaxVolume,b=u.beakerContents,N=void 0===b?[]:b;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Thermostat",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:p?"power-off":"times",selected:p,content:p?"On":"Off",onClick:function(){return d("power")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,i.NumberInput,{width:"65px",unit:"K",step:2,stepPixelSize:1,value:(0,r.round)(s),minValue:0,maxValue:1e3,onDrag:function(e,t){return d("temperature",{target:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.Box,{width:"60px",textAlign:"right",children:m&&(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:f,format:function(e){return(0,r.toFixed)(e)+" K"}})||"\u2014"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"pH",children:(0,o.createComponentVNode)(2,i.Box,{width:"60px",textAlign:"right",children:m&&(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:h,format:function(e){return(0,r.toFixed)(e)+" pH"}})||"-"})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:!!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:2,children:[C," / ",g," units"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",onClick:function(){return d("eject")}})],4),children:(0,o.createComponentVNode)(2,l.BeakerContents,{beakerLoaded:m,beakerContents:N})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemMaster=void 0;var o=n(0),r=n(1),a=n(4),i=n(479),c=n(480),l=n(481),d=n(2);t.ChemMaster=function(e,t){var n=(0,d.useBackend)(t),u=n.data,s=n.act,p=u.screen,m=u.beakerContents,f=void 0===m?[]:m,h=u.bufferContents,C=void 0===h?[]:h,g=u.beakerCurrentVolume,b=u.beakerMaxVolume,N=u.isBeakerLoaded,v=u.isPillBottleLoaded,V=u.pillBottleCurrentAmount,y=u.pillBottleMaxAmount,_=u.mode;return"analyze"===p?(0,o.createComponentVNode)(2,c.AnalysisResults):(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.Section,{title:"Beaker",buttons:!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:2,children:[(0,o.createComponentVNode)(2,r.AnimatedNumber,{value:g,initial:0})," / "+b+" units"]}),(0,o.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}})],4),children:[!N&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"No beaker loaded."}),!!N&&0===f.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"Beaker is empty."}),(0,o.createComponentVNode)(2,i.ChemicalBuffer,{children:f.map((function(e){return(0,o.createComponentVNode)(2,i.ChemicalBufferEntry,{chemical:e,transferTo:"buffer"},e.id)}))})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Buffer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:1,children:"Mode:"}),(0,o.createComponentVNode)(2,r.Button,{color:_?"good":"bad",icon:_?"exchange-alt":"times",content:_?"Transfer":"Destroy",onClick:function(){return s("toggleMode")}})],4),children:[0===C.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",mt:"3px",mb:"5px",children:"Buffer is empty."}),(0,o.createComponentVNode)(2,i.ChemicalBuffer,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.ChemicalBufferEntry,{chemical:e,transferTo:"beaker"},e.id)}))})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Packaging",children:(0,o.createComponentVNode)(2,l.PackagingControls)}),!!v&&(0,o.createComponentVNode)(2,r.Section,{title:"Pill Bottle",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:"label",mr:2,children:[V," / ",y," pills"]}),(0,o.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",onClick:function(){return s("ejectPillBottle")}})],4)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemicalBuffer=t.ChemicalBufferEntry=void 0;var o=n(0),r=n(2),a=n(1);t.ChemicalBufferEntry=function(e,t){var n=(0,r.useBackend)(t).act,i=e.chemical,c=e.transferTo;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i.volume,initial:0})," units of "+i.name]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",onClick:function(){return n("transfer",{id:i.id,amount:1,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",onClick:function(){return n("transfer",{id:i.id,amount:5,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"10",onClick:function(){return n("transfer",{id:i.id,amount:10,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",onClick:function(){return n("transfer",{id:i.id,amount:1e3,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"ellipsis-h",title:"Custom amount",onClick:function(){return n("transfer",{id:i.id,amount:-1,to:c})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"question",title:"Analyze",onClick:function(){return n("analyze",{id:i.id})}})]})]},i.id)};var i=a.Table;t.ChemicalBuffer=i},function(e,t,n){"use strict";t.__esModule=!0,t.AnalysisResults=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.AnalysisResults=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,d=c.analyzeVars,u=c.fermianalyze;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Analysis Results",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l("goScreen",{screen:"home"})}}),children:[!u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",children:d.state}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:d.color,mr:1}),d.color]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:d.description}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metabolization Rate",children:[d.metaRate," u/minute"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose Threshold",children:d.overD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction Threshold",children:d.addicD})]}),!!u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",children:d.state}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:d.color,mr:1}),d.color]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:d.description}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metabolization Rate",children:[d.metaRate," u/minute"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose Threshold",children:d.overD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction Threshold",children:d.addicD}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Purity",children:d.purityF}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inverse Ratio",children:d.inverseRatioF}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Purity E",children:d.purityE}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lower Optimal Temperature",children:d.minTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upper Optimal Temperature",children:d.maxTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Explosive Temperature",children:d.eTemp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"pH Peak",children:d.pHpeak})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PackagingControls=void 0;var o=n(0),r=n(2),a=(n(22),n(1));var i=function(e){var t,n;function i(){var t;return(t=e.call(this)||this).state={pillAmount:1,patchAmount:1,bottleAmount:1,packAmount:1,vialAmount:1,dartAmount:1},t}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=(this.props,this.context),n=(0,r.useBackend)(t),i=n.data,l=n.act,d=this.state,u=d.pillAmount,s=d.patchAmount,p=d.bottleAmount,m=d.packAmount,f=d.vialAmount,h=d.dartAmount,C=i.condi,g=i.chosenPillStyle,b=i.pillStyles,N=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pill type",children:N.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{width:5,selected:e.id===g,textAlign:"center",color:"transparent",onClick:function(){return l("pillStyle",{id:e.id})},children:(0,o.createComponentVNode)(2,a.Box,{mx:-1,className:e.className})},e.id)}))}),!C&&(0,o.createComponentVNode)(2,c,{label:"Pills",amount:u,amountUnit:"pills",sideNote:"max 50u",onChangeAmount:function(t,n){return e.setState({pillAmount:n})},onCreate:function(){return l("create",{type:"pill",amount:u,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Patches",amount:s,amountUnit:"patches",sideNote:"max 40u",onChangeAmount:function(t,n){return e.setState({patchAmount:n})},onCreate:function(){return l("create",{type:"patch",amount:s,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Bottles",amount:p,amountUnit:"bottles",sideNote:"max 30u",onChangeAmount:function(t,n){return e.setState({bottleAmount:n})},onCreate:function(){return l("create",{type:"bottle",amount:p,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Hypovials",amount:f,amountUnit:"vials",sideNote:"max 60u",onChangeAmount:function(t,n){return e.setState({vialAmount:n})},onCreate:function(){return l("create",{type:"hypoVial",amount:f,volume:"auto"})}}),!C&&(0,o.createComponentVNode)(2,c,{label:"Smartdarts",amount:h,amountUnit:"darts",sideNote:"max 20u",onChangeAmount:function(t,n){return e.setState({dartAmount:n})},onCreate:function(){return l("create",{type:"smartDart",amount:h,volume:"auto"})}}),!!C&&(0,o.createComponentVNode)(2,c,{label:"Packs",amount:m,amountUnit:"packs",sideNote:"max 10u",onChangeAmount:function(t,n){return e.setState({packAmount:n})},onCreate:function(){return l("create",{type:"condimentPack",amount:m,volume:"auto"})}}),!!C&&(0,o.createComponentVNode)(2,c,{label:"Bottles",amount:p,amountUnit:"bottles",sideNote:"max 50u",onChangeAmount:function(t,n){return e.setState({bottleAmount:n})},onCreate:function(){return l("create",{type:"condimentBottle",amount:p,volume:"auto"})}})]})},i}(o.Component);t.PackagingControls=i;var c=function(e,t){var n=e.label,r=e.amountUnit,i=e.amount,c=e.onChangeAmount,l=e.onCreate,d=e.sideNote;return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:n,children:[(0,o.createComponentVNode)(2,a.NumberInput,{width:14,unit:r,step:1,stepPixelSize:15,value:i,minValue:1,maxValue:10,onChange:c}),(0,o.createComponentVNode)(2,a.Button,{ml:1,content:"Create",onClick:l}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,ml:1,color:"label",content:d})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemSynthesizer=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4);t.ChemSynthesizer=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.amount,s=d.current_reagent,p=d.chemicals,m=void 0===p?[]:p,f=d.possible_amounts,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"plus",content:(0,r.toFixed)(e,0),selected:e===u,onClick:function(){return l("amount",{target:e})}},(0,r.toFixed)(e,0))}))}),(0,o.createComponentVNode)(2,i.Box,{mt:1,children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"tint",content:e.title,width:"129px",selected:e.id===s,onClick:function(){return l("select",{reagent:e.id})}},e.id)}))})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.CodexGigas=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.CodexGigas=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[l.name,(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prefix",children:["Dark","Hellish","Fallen","Fiery","Sinful","Blood","Fluffy"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:1!==l.currentSection,onClick:function(){return c(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:["Lord","Prelate","Count","Viscount","Vizier","Elder","Adept"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:l.currentSection>2,onClick:function(){return c(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:["hal","ve","odr","neit","ci","quon","mya","folth","wren","geyr","hil","niet","twou","phi","coa"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:l.currentSection>4,onClick:function(){return c(e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suffix",children:["the Red","the Soulless","the Master","the Lord of all things","Jr."].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:4!==l.currentSection,onClick:function(){return c(" "+e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submit",children:(0,o.createComponentVNode)(2,a.Button,{content:"Search",disabled:l.currentSection<4,onClick:function(){return c("search")}})})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ComputerFabricator=void 0;var o=n(0),r=(n(16),n(2)),a=n(1),i=n(4);t.ComputerFabricator=function(e,t){var n=e.state,l=(0,r.useBackend)(t),d=l.act,u=l.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==u.state&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return d("clean_order")}}),(0,o.createComponentVNode)(2,c,{state:n})]})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return 0===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 1",minHeight:51,children:[(0,o.createComponentVNode)(2,a.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,a.Box,{mt:3,children:(0,o.createComponentVNode)(2,a.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return i("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return i("pick_device",{pick:"2"})}})})]})})]}):1===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 2: Customize your device",minHeight:47,buttons:(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",children:[c.totalprice," cr"]}),children:[(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===c.hw_battery,onClick:function(){return i("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===c.hw_disk,onClick:function(){return i("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:2===c.hw_netcard,onClick:function(){return i("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_nanoprint,onClick:function(){return i("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_nanoprint,onClick:function(){return i("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Card Reader:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"Adds a slot that allows you to manipulate RFID cards.\nPlease note that this is not necessary to allow the device\nto read your identification, it is just necessary to\nmanipulate other cards.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_card,onClick:function(){return i("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_card,onClick:function(){return i("hw_card",{card:"1"})}})})]}),2!==c.devtype&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_cpu,onClick:function(){return i("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:2===c.hw_cpu,onClick:function(){return i("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,a.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===c.hw_tesla,onClick:function(){return i("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===c.hw_tesla,onClick:function(){return i("hw_tesla",{tesla:"1"})}})})]})],4)]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:"26px",onClick:function(){return i("confirm_order")}})]}):2===c.state?(0,o.createComponentVNode)(2,a.Section,{title:"Step 3: Payment",minHeight:47,children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:"Please insert the required"})," ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:[c.totalprice," cr"]})]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:1,textAlign:"center",fontSize:"18px",children:"Current:"}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:.5,textAlign:"center",fontSize:"18px",color:c.credits>=c.totalprice?"good":"bad",children:[c.credits," cr"]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Purchase",disabled:c.credits=10&&e<20?i.COLORS.department.security:e>=20&&e<30?i.COLORS.department.medbay:e>=30&&e<40?i.COLORS.department.science:e>=40&&e<50?i.COLORS.department.engineering:e>=50&&e<60?i.COLORS.department.cargo:e>=200&&e<230?i.COLORS.department.centcom:i.COLORS.department.other},s=function(e,t,n,o){var r=e+t+n+o,a=Math.min(Math.max(Math.ceil(r/25),0),5);return l[a]},p=function(e,t){var n=e.type,r=e.value;return(0,o.createComponentVNode)(2,a.Box,{inline:!0,width:4,color:i.COLORS.damageType[n],textAlign:"center",children:r})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(173);t.Cryo=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",content:d.occupant.name?d.occupant.name:"No Occupant"}),!!d.hasOccupant&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",content:d.occupant.stat,color:d.occupant.statstate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",color:d.occupant.temperaturestatus,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.bodyTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant.health/d.occupant.maxHealth,color:d.occupant.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.health})})}),[{label:"Brute",type:"bruteLoss"},{label:"Respiratory",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Burn",type:"fireLoss"}].map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant[e.type]/100,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant[e.type]})})},e.id)}))],0)]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cell",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",content:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",disabled:d.isOpen,onClick:function(){return l("power")},color:d.isOperating&&"green",children:d.isOperating?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.cellTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.isOpen?"unlock":"lock",onClick:function(){return l("door")},content:d.isOpen?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.Button,{icon:d.autoEject?"sign-out-alt":"sign-in-alt",onClick:function(){return l("autoeject")},content:d.autoEject?"Auto":"Manual"})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d.isBeakerLoaded,onClick:function(){return l("ejectbeaker")},content:"Eject"}),children:(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:d.isBeakerLoaded,beakerContents:d.beakerContents})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DisposalUnit=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.DisposalUnit=function(e,t){var n,c,l=(0,r.useBackend)(t),d=l.act,u=l.data;return u.full_pressure?(n="good",c="Ready"):u.panel_open?(n="bad",c="Power Disabled"):u.pressure_charging?(n="average",c="Pressurizing"):(n="bad",c="Off"),(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:n,children:c}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.per,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Handle",children:(0,o.createComponentVNode)(2,a.Button,{icon:u.flush?"toggle-on":"toggle-off",disabled:u.isai||u.panel_open,content:u.flush?"Disengage":"Engage",onClick:function(){return d(u.flush?"handle-0":"handle-1")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:u.isai,content:"Eject Contents",onClick:function(){return d("eject")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",disabled:u.panel_open,selected:u.pressure_charging,onClick:function(){return d(u.pressure_charging?"pump-0":"pump-1")}})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DnaVault=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.DnaVault=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.completed,u=l.used,s=l.choiceA,p=l.choiceB,m=l.dna,f=l.dna_max,h=l.plants,C=l.plants_max,g=l.animals,b=l.animals_max;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"DNA Vault Database",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Human DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m/f,children:[m," / ",f," Samples"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plant DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h/C,children:[h," / ",C," Samples"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Animal DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:g/b,children:[g," / ",b," Samples"]})})]})}),!(!d||u)&&(0,o.createComponentVNode)(2,a.Section,{title:"Personal Gene Therapy",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:s,textAlign:"center",onClick:function(){return c("gene",{choice:s})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:p,textAlign:"center",onClick:function(){return c("gene",{choice:p})}})})]})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.DogborgSleeper=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(174),l=n(175),d=n(176);t.DogborgSleeper=function(e,t){var n=(0,r.useBackend)(t),s=n.data,p=n.act,m=(s.chem||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.SleeperOccupantStats,{data:s}),s.cleaning&&s.items&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:s.items})||null,(0,o.createComponentVNode)(2,d.SleeperPatientReagents,{data:s}),m.length>0&&(0,o.createComponentVNode)(2,c.SleeperInjectChems,{chems:m,data:s,act:p}),(0,o.createComponentVNode)(2,u,{data:s,act:p})]})})};var u=function(e,t){var n=e.data,r=e.act,i=n.occupant;n.cleaning;return(0,o.createComponentVNode)(2,a.Section,{title:"Operations",children:[(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:!i,onClick:function(){return r("eject")},children:"Eject Contents"})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"recycle",onClick:function(){return r("cleaning")},children:"Activate Self-Cleaning Cycle"})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperOpenButton=void 0;var o=n(0),r=n(1);t.SleeperOpenButton=function(e,t){var n=e.data,a=e.act,i=n.open;return(0,o.createComponentVNode)(2,r.Button,{icon:i?"door-open":"door-closed",content:i?"Open":"Closed",onClick:function(){return a("door")}})}},function(e,t,n){"use strict";t.__esModule=!0,t.EightBallVote=void 0;var o=n(0),r=n(2),a=n(1),i=n(16),c=n(4);t.EightBallVote=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.question,s=d.shaking,p=d.answers,m=void 0===p?[]:p;return s?(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"16px",m:1,children:['"',u,'"']}),(0,o.createComponentVNode)(2,a.Grid,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:(0,i.toTitleCase)(e.answer),selected:e.selected,fontSize:"16px",lineHeight:"24px",textAlign:"center",mb:1,onClick:function(){return l("vote",{answer:e.answer})}}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"30px",children:e.amount})]},e.answer)}))})]})})}):(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No question is currently being asked."})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EmergencyShuttleConsole=void 0;var o=n(0),r=n(1),a=n(2),i=n(4);t.EmergencyShuttleConsole=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.timer_str,u=l.enabled,s=l.emagged,p=l.engines_started,m=l.authorizations_remaining,f=l.authorizations,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"40px",textAlign:"center",fontFamily:"monospace",children:d}),(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",fontSize:"16px",mb:1,children:[(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,children:"ENGINES:"}),(0,o.createComponentVNode)(2,r.Box,{inline:!0,color:p?"good":"average",ml:1,children:p?"Online":"Idle"})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Early Launch Authorization",level:2,buttons:(0,o.createComponentVNode)(2,r.Button,{icon:"times",content:"Repeal All",color:"bad",disabled:!u,onClick:function(){return c("abort")}}),children:[(0,o.createComponentVNode)(2,r.Grid,{children:[(0,o.createComponentVNode)(2,r.Grid.Column,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"exclamation-triangle",color:"good",content:"AUTHORIZE",disabled:!u,onClick:function(){return c("authorize")}})}),(0,o.createComponentVNode)(2,r.Grid.Column,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"minus",content:"REPEAL",disabled:!u,onClick:function(){return c("repeal")}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"Authorizations",level:3,minHeight:"150px",buttons:(0,o.createComponentVNode)(2,r.Box,{inline:!0,bold:!0,color:s?"bad":"good",children:s?"ERROR":"Remaining: "+m}),children:[h.length>0?h.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"16px",className:"candystripe",children:[e.name," (",e.job,")"]},e.name)})):(0,o.createComponentVNode)(2,r.Box,{bold:!0,textAlign:"center",fontSize:"16px",color:"average",children:"No Active Authorizations"}),h.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{bold:!0,fontSize:"16px",className:"candystripe",children:[e.name," (",e.job,")"]},e.name)}))]})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.EngravedMessage=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.EngravedMessage=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.admin_mode,s=d.creator_key,p=d.creator_name,m=d.has_liked,f=d.has_disliked,h=d.hidden_message,C=d.is_creator,g=d.num_likes,b=d.num_dislikes,N=d.realdate;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,textAlign:"center",fontSize:"20px",mb:2,children:(0,r.decodeHtmlEntities)(h)}),(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"arrow-up",content:" "+g,disabled:C,selected:m,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("like")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"circle",disabled:C,selected:!f&&!m,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("neutral")}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"arrow-down",content:" "+b,disabled:C,selected:f,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("dislike")}})})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Created On",children:N})})}),(0,o.createComponentVNode)(2,i.Section),!!u&&(0,o.createComponentVNode)(2,i.Section,{title:"Admin Panel",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Delete",color:"bad",onClick:function(){return l("delete")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Creator Ckey",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Creator Character Name",children:p})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Gps=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=n(163),l=n(2),d=n(1),u=n(4),s=function(e){return(0,r.map)(parseFloat)(e.split(", "))};t.Gps=function(e,t){var n=(0,l.useBackend)(t),p=n.act,m=n.data,f=m.currentArea,h=m.currentCoords,C=m.globalmode,g=m.power,b=m.tag,N=m.updating,v=(0,a.flow)([(0,r.map)((function(e,t){var n=e.dist&&Math.round((0,c.vecLength)((0,c.vecSubtract)(s(h),s(e.coords))));return Object.assign({},e,{dist:n,index:t})})),(0,r.sortBy)((function(e){return e.dist===undefined}),(function(e){return e.entrytag}))])(m.signals||[]);return(0,o.createComponentVNode)(2,u.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.Section,{title:"Control",buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"power-off",content:g?"On":"Off",selected:g,onClick:function(){return p("power")}}),children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Tag",children:(0,o.createComponentVNode)(2,d.Button,{icon:"pencil-alt",content:b,onClick:function(){return p("rename")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,d.Button,{icon:N?"unlock":"lock",content:N?"AUTO":"MANUAL",color:!N&&"bad",onClick:function(){return p("updating")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,d.Button,{icon:"sync",content:C?"MAXIMUM":"LOCAL",selected:!C,onClick:function(){return p("globalmode")}})})]})}),!!g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:"Current Location",children:(0,o.createComponentVNode)(2,d.Box,{fontSize:"18px",children:[f," (",h,")"]})}),(0,o.createComponentVNode)(2,d.Section,{title:"Detected Signals",children:(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{content:"Name"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Direction"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Coordinates"})]}),v.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,d.Table.Cell,{bold:!0,color:"label",children:e.entrytag}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,opacity:e.dist!==undefined&&(0,i.clamp)(1.2/Math.log(Math.E+e.dist/20),.4,1),children:[e.degrees!==undefined&&(0,o.createComponentVNode)(2,d.Icon,{mr:1,size:1.2,name:"arrow-up",rotation:e.degrees}),e.dist!==undefined&&e.dist+"m"]}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:e.coords})]},e.entrytag+e.coords+e.index)}))]})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GravityGenerator=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GravityGenerator=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.breaker,u=l.charge_count,s=l.charging_state,p=l.on,m=l.operational;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:!m&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"No data available"})||(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breaker",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:!m,onClick:function(){return c("gentoggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gravity Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/100,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",children:[0===s&&(p&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Fully Charged"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not Charging"})),1===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Charging"}),2===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Discharging"})]})]})}),m&&0!==s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"WARNING - Radiation detected"}),m&&0===s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"No radiation detected"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GulagItemReclaimer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GulagItemReclaimer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.mobs||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Stored Items",children:(0,o.createComponentVNode)(2,a.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{content:"Retrieve Items",disabled:!l.can_reclaim,onClick:function(){return c("release_items",{mobref:e.mob})}})})]},e.mob)}))})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.GulagTeleporterConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.GulagTeleporterConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.teleporter,u=l.teleporter_lock,s=l.teleporter_state_open,p=l.teleporter_location,m=l.beacon,f=l.beacon_location,h=l.id,C=l.id_name,g=l.can_teleport,b=l.goal,N=void 0===b?0:b,v=l.prisoner,V=void 0===v?{}:v;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Teleporter Console",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:s?"Open":"Closed",disabled:u,selected:s,onClick:function(){return c("toggle_open")}}),(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",selected:u,disabled:s,onClick:function(){return c("teleporter_lock")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Teleporter Unit",color:d?"good":"bad",buttons:!d&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return c("scan_teleporter")}}),children:d?p:"Not Connected"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiver Beacon",color:m?"good":"bad",buttons:!m&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return c("scan_beacon")}}),children:m?f:"Not Connected"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prisoner Details",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prisoner ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:h?C:"No ID",onClick:function(){return c("handle_id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Point Goal",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:N,width:"48px",minValue:1,maxValue:1e3,onChange:function(e,t){return c("set_goal",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",children:V.name?V.name:"No Occupant"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Status",children:V.crimstat?V.crimstat:"No Status"})]})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Process Prisoner",disabled:!g,textAlign:"center",color:"bad",onClick:function(){return c("teleport")}})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Holodeck=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Holodeck=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.can_toggle_safety,u=l.default_programs,s=void 0===u?[]:u,p=l.emag_programs,m=void 0===p?[]:p,f=l.emagged,h=l.program;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Default Programs",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"unlock":"lock",content:"Safeties",color:"bad",disabled:!d,selected:!f,onClick:function(){return c("safety")}}),children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),textAlign:"center",selected:e.type===h,onClick:function(){return c("load_program",{type:e.type})}},e.type)}))}),!!f&&(0,o.createComponentVNode)(2,a.Section,{title:"Dangerous Programs",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),color:"bad",textAlign:"center",selected:e.type===h,onClick:function(){return c("load_program",{type:e.type})}},e.type)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ImplantChair=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.ImplantChair=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Information",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.occupant.name?l.occupant.name:"No Occupant"}),!!l.occupied&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:0===l.occupant.stat?"good":1===l.occupant.stat?"average":"bad",children:0===l.occupant.stat?"Conscious":1===l.occupant.stat?"Unconcious":"Dead"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Operations",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.open?"unlock":"lock",color:l.open?"default":"red",content:l.open?"Open":"Closed",onClick:function(){return c("door")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implant Occupant",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"code-branch",content:l.ready?l.special_name||"Implant":"Recharging",onClick:function(){return c("implant")}}),0===l.ready&&(0,o.createComponentVNode)(2,a.Icon,{name:"cog",color:"orange",spin:!0})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants Remaining",children:[l.ready_implants,1===l.replenishing&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",color:"red",spin:!0})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Intellicard=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Intellicard=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=s||p,u=l.name,s=l.isDead,p=l.isBraindead,m=l.health,f=l.wireless,h=l.radio,C=l.wiping,g=l.laws,b=void 0===g?[]:g;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:u||"Empty Card",buttons:!!u&&(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:C?"Stop Wiping":"Wipe",disabled:s,onClick:function(){return c("wipe")}}),children:!!u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:d?"bad":"good",children:d?"Offline":"Operation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"Wireless Activity",selected:f,onClick:function(){return c("wireless")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"microphone",content:"Subspace Radio",selected:h,onClick:function(){return c("radio")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laws",children:b.map((function(e){return(0,o.createComponentVNode)(2,a.BlockQuote,{children:e},e)}))})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{children:1===l.waiting&&(0,o.createVNode)(1,"span",null,"Waiting for another device to confirm your request...",16)}),(0,o.createComponentVNode)(2,a.Box,{children:0===l.waiting&&(0,o.createFragment)([!!l.auth_required&&(0,o.createComponentVNode)(2,a.Button,{icon:"check-square",color:"red",textAlign:"center",lineHeight:"60px",fluid:!0,onClick:function(){return c("auth_swipe")},content:"Authorize"}),0===l.auth_required&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",fluid:!0,onClick:function(){return c("red_alert")},content:"Red Alert"}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",fluid:!0,onClick:function(){return c("emergency_maint")},content:"Emergency Maintenance Access"}),(0,o.createComponentVNode)(2,a.Button,{icon:"meteor",fluid:!0,onClick:function(){return c("bsa_unlock")},content:"Bluespace Artillery Unlock"})],4)],0)})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.LaborClaimConsole=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.can_go_home,s=d.id_points,p=d.ores,m=d.status_info,f=d.unclaimed_points;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,i.Button,{content:"Move shuttle",disabled:!u,onClick:function(){return l("move_shuttle")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Points",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Unclaimed points",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Claim points",disabled:!f,onClick:function(){return l("claim_points")}}),children:f})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LanguageMenu=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.LanguageMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.admin_mode,u=l.is_living,s=l.omnitongue,p=l.languages,m=void 0===p?[]:p,f=l.unknown_languages,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Known Languages",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([!!u&&(0,o.createComponentVNode)(2,a.Button,{content:e.is_default?"Default Language":"Select as Default",disabled:!e.can_speak,selected:e.is_default,onClick:function(){return c("select_default",{language_name:e.name})}}),!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return c("grant_language",{language_name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Remove",onClick:function(){return c("remove_language",{language_name:e.name})}})],4)],0),children:[e.desc," ","Key: ,",e.key," ",e.can_understand?"Can understand.":"Cannot understand."," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})}),!!d&&(0,o.createComponentVNode)(2,a.Section,{title:"Unknown Languages",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Omnitongue "+(s?"Enabled":"Disabled"),selected:s,onClick:function(){return c("toggle_omnitongue")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:h.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return c("grant_language",{language_name:e.name})}}),children:[e.desc," ","Key: ,",e.key," ",!!e.shadow&&"(gained from mob)"," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(177);t.LaunchpadConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.launchpads,s=void 0===u?[]:u,p=d.selected_id;return s.length<=0?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Pads Connected"})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:.6,children:(0,o.createComponentVNode)(2,a.Box,{style:{"border-right":"2px solid rgba(255, 255, 255, 0.1)"},minHeight:"190px",mr:1,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name,selected:p===e.id,color:"transparent",onClick:function(){return l("select_pad",{id:e.id})}},e.name)}))})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:p?(0,o.createComponentVNode)(2,c.LaunchpadControl):(0,o.createComponentVNode)(2,a.Box,{children:"Please select a pad"})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadButtonPad=void 0;var o=n(0),r=n(2),a=n(1);t.LaunchpadButtonPad=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Grid,{width:"1px",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",mb:1,onClick:function(){return n("move_pos",{x:-1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",mb:1,onClick:function(){return n("move_pos",{y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"R",mb:1,onClick:function(){return n("set_pos",{x:0,y:0})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",mb:1,onClick:function(){return n("move_pos",{y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",mb:1,onClick:function(){return n("move_pos",{x:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:-1})}})]})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchTarget=void 0;var o=n(0),r=n(2),a=n(1);t.LaunchTarget=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.x,d=c.y,u=c.range;return(0,o.createComponentVNode)(2,a.Section,{title:"Target",level:2,children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"26px",children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"X:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:l,minValue:-u,maxValue:u,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",stepPixelSize:10,onChange:function(e,t){return i("set_pos",{x:t})}})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"Y:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:d,minValue:-u,maxValue:u,stepPixelSize:10,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",onChange:function(e,t){return i("set_pos",{y:t})}})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadRemote=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(177);t.LaunchpadRemote=function(e,t){var n=(0,r.useBackend)(t).data,l=n.has_pad,d=n.pad_closed;return l?d?(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Launchpad Closed"})})}):(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.LaunchpadControl,{topLevel:!0})})}):(0,o.createComponentVNode)(2,i.Window,{theme:"syndicate",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Launchpad Connected"})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.MechBayPowerConsole=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.MechBayPowerConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.recharge_port,d=l&&l.mech,u=d&&d.cell;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Sync",onClick:function(){return c("reconnect")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.health/d.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Mule=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(88);t.Mule=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.locked&&!d.siliconUser,s=d.siliconUser,p=d.on,m=d.cell,f=d.cellPercent,h=d.load,C=d.mode,g=d.modeStatus,b=d.haspai,N=d.autoReturn,v=d.autoPickup,V=d.reportDelivery,y=d.destination,_=d.home,x=d.id,k=d.destinations,w=void 0===k?[]:k;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox,{siliconUser:s,locked:u}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",minHeight:"110px",buttons:!u&&(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"On":"Off",selected:p,onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:m?f/100:0,color:m?"good":"bad"}),(0,o.createComponentVNode)(2,a.Grid,{mt:1,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",color:g,children:C})})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",color:h?"good":"average",children:h||"None"})})})]})]}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createFragment)([!!h&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Unload",onClick:function(){return l("unload")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject PAI",onClick:function(){return l("ejectpai")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,a.Input,{value:x,onChange:function(e,t){return l("setid",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destination",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:y||"None",options:w,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",content:"Stop",onClick:function(){return l("stop")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"play",content:"Go",onClick:function(){return l("go")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:_,options:w,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"home",content:"Go Home",onClick:function(){return l("home")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:N,content:"Auto-Return",onClick:function(){return l("autored")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:v,content:"Auto-Pickup",onClick:function(){return l("autopick")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:V,content:"Report Delivery",onClick:function(){return l("report")}})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteChamberControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NaniteChamberControl=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.status_msg,u=l.locked,s=l.occupant_name,p=l.has_nanites,m=l.nanite_volume,f=l.regen_rate,h=l.safety_threshold,C=l.cloud_id,g=l.scan_level;if(d)return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:d})})});var b=l.mob_programs||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Chamber: "+s,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",content:u?"Locked":"Unlocked",color:u?"bad":"default",onClick:function(){return c("toggle_lock")}}),children:p?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",content:"Destroy Nanites",color:"bad",onClick:function(){return c("remove_nanites")}}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanite Volume",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Rate",children:f})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Safety Threshold",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,minValue:0,maxValue:500,width:"39px",onChange:function(e,t){return c("set_safety",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloud ID",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:C,minValue:0,maxValue:100,step:1,stepPixelSize:3,width:"39px",onChange:function(e,t){return c("set_cloud",{value:t})}})})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",level:2,children:b.map((function(e){var t=e.extra_settings||[],n=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.desc}),g>=2&&(0,o.createComponentVNode)(2,a.Grid.Column,{size:.6,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.activated?"good":"bad",children:e.activated?"Active":"Inactive"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanites Consumed",children:[e.use_rate,"/s"]})]})})]}),g>=2&&(0,o.createComponentVNode)(2,a.Grid,{children:[!!e.can_trigger&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Triggers",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cost",children:e.trigger_cost}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cooldown",children:e.trigger_cooldown}),!!e.timer_trigger_delay&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:[e.timer_trigger_delay," s"]}),!!e.timer_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:[e.timer_trigger," s"]})]})})}),!(!e.timer_restart&&!e.timer_shutdown)&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[e.timer_restart&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:[e.timer_restart," s"]}),e.timer_shutdown&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:[e.timer_shutdown," s"]})]})})})]}),g>=3&&!!e.has_extra_settings&&(0,o.createComponentVNode)(2,a.Section,{title:"Extra Settings",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.value},e.name)}))})}),g>=4&&(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!e.activation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:e.activation_code}),!!e.deactivation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:e.deactivation_code}),!!e.kill_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:e.kill_code}),!!e.can_trigger&&!!e.trigger_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:e.trigger_code})]})})}),e.has_rules&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Rules",level:2,children:n.map((function(e){return(0,o.createFragment)([e.display,(0,o.createVNode)(1,"br")],0,e.display)}))})})]})]})},e.name)}))})],4):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",textAlign:"center",fontSize:"30px",mb:1,children:"No Nanites Detected"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,icon:"syringe",content:" Implant Nanites",color:"green",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return c("nanite_injection")}})],4)})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=(n(513),n(514),n(515));t.NaniteCloudControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.has_disk,s=d.current_view,p=d.new_backup_id;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Program Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){return l("eject")}}),children:(0,o.createComponentVNode)(2,c.NaniteDiskBox)}),(0,o.createComponentVNode)(2,a.Section,{title:"Cloud Storage",buttons:s?(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Return",onClick:function(){return l("set_view",{view:0})}}):(0,o.createFragment)(["New Backup: ",(0,o.createComponentVNode)(2,a.NumberInput,{value:p,minValue:1,maxValue:100,stepPixelSize:4,width:"39px",onChange:function(e,t){return l("update_new_backup_value",{value:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return l("create_backup")}})],0)})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudBackupDetails=void 0;var o=n(0),r=n(2),a=n(1),i=n(178);t.NaniteCloudBackupDetails=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.current_view,u=l.disk,s=l.has_program,p=l.cloud_backup,m=u&&u.can_rule||!1;if(!p)return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"ERROR: Backup not found"});var f=l.cloud_programs||[];return(0,o.createComponentVNode)(2,a.Section,{title:"Backup #"+d,level:2,buttons:!!s&&(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload From Disk",color:"good",onClick:function(){return c("upload_program")}}),children:f.map((function(e){var t=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_program",{program_id:e.id})}}),children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,i.NaniteInfoBox,{program:e}),!!m&&(0,o.createComponentVNode)(2,a.Section,{mt:-2,title:"Rules",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Rule from Disk",color:"good",onClick:function(){return c("add_rule",{program_id:e.id})}}),children:e.has_rules?t.map((function(t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_rule",{program_id:e.id,rule_id:t.id})}}),t.display],0,t.display)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Active Rules"})})]})},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudBackupList=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteCloudBackupList=function(e,t){var n=(0,r.useBackend)(t),i=n.act;return(n.data.cloud_backups||[]).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Backup #"+e.cloud_id,textAlign:"center",onClick:function(){return i("set_view",{view:e.cloud_id})}},e.cloud_id)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteDiskBox=void 0;var o=n(0),r=n(2),a=n(1),i=n(178);t.NaniteDiskBox=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.has_disk,d=c.has_program,u=c.disk;return l?d?(0,o.createComponentVNode)(2,i.NaniteInfoBox,{program:u}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Inserted disk has no program"}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No disk inserted"})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgramHub=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.NaniteProgramHub=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.detail_view,s=d.disk,p=d.has_disk,m=d.has_program,f=d.programs,h=void 0===f?{}:f,C=(0,a.useLocalState)(t,"category",null!==h?Object.keys(h)[0]:null),g=C[0],b=C[1],N=null!==h?h[g]:null;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Program Disk",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",onClick:function(){return l("eject")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"minus-circle",content:"Delete Program",onClick:function(){return l("clear")}})],4),children:p?m?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Program Name",children:s.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:s.desc})]}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No Program Installed"}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Insert Disk"})}),(0,o.createComponentVNode)(2,i.Section,{title:"Programs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:u?"info":"list",content:u?"Detailed":"Compact",onClick:function(){return l("toggle_details")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Sync Research",onClick:function(){l("refresh"),null!==h&&null===g&&b(Object.keys(h)[0])}})],4),children:null!==h?(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){var n=t.substring(0,t.length-8);return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:g===t,onClick:function(){return b(t)},children:n},t)}))(h)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:u?N.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Download",disabled:!p,onClick:function(){return l("download",{program_id:e.id})}}),children:e.desc},e.id)})):(0,o.createComponentVNode)(2,i.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"download",content:"Download",disabled:!p,onClick:function(){return l("download",{program_id:e.id})}})},e.id)}))})})]}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No nanite programs are currently researched."})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgrammer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(518),l=n(519),d=n(520),u=n(521);t.NaniteProgrammer=function(e,t){var n=(0,r.useBackend)(t),s=n.act,p=n.data,m=p.has_disk,f=p.has_program,h=p.name,C=p.activated,g=p.has_extra_settings,b=p.extra_settings,N=void 0===b?{}:b;return m?f?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:h,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}}),children:[(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.NaniteInfo,Object.assign({},p))),(0,o.createComponentVNode)(2,a.Section,{title:"Settings",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:C?"power-off":"times",content:C?"Active":"Inactive",selected:C,color:"bad",bold:!0,onClick:function(){return s("toggle_active")}}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,l.NaniteCodes,{state:e.state})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,d.NaniteDelays,{state:e.state})})]}),!!g&&(0,o.createComponentVNode)(2,a.Section,{title:"Special",level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,u.NaniteExtraEntry,{act:s,extra_setting:e},e.name)}))})})]})]})})}):(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Blank Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return s("eject")}})})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"Insert a nanite program disk"})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteInfo=void 0;var o=n(0),r=n(1);t.NaniteInfo=function(e){var t=e.desc,n=e.use_rate,a=e.can_trigger,i=e.trigger_cost,c=e.trigger_cooldown;return(0,o.createComponentVNode)(2,r.Section,{title:"Info",level:2,children:(0,o.createComponentVNode)(2,r.Grid,{children:[(0,o.createComponentVNode)(2,r.Grid.Column,{children:t}),(0,o.createComponentVNode)(2,r.Grid.Column,{size:.7,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Use Rate",children:n}),!!a&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Trigger Cost",children:i}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Trigger Cooldown",children:c})],4)]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCodes=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteCodes=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:3,mr:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.activation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"activation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.deactivation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"deactivation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.kill_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"kill",code:t})}})}),!!c.can_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.trigger_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return i("set_code",{target_code:"trigger",code:t})}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteDelays=void 0;var o=n(0),r=n(2),a=n(1);t.NaniteDelays=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Delays",level:3,ml:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_restart,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_restart_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_shutdown,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_shutdown_timer",{delay:t})}})}),!!c.can_trigger&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_trigger,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_trigger_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c.timer_trigger_delay,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return i("set_timer_trigger_delay",{delay:t})}})})],4)]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraEntry=void 0;var o=n(0),r=n(1),a=n(522),i=n(523),c=n(524),l=n(525);t.NaniteExtraEntry=function(e,t){var n=e.act,d=e.extra_setting,u=d.name,s=d.type,p={number:(0,o.createComponentVNode)(2,l.NaniteExtraNumber,{act:n,extra_setting:d}),text:(0,o.createComponentVNode)(2,c.NaniteExtraText,{act:n,extra_setting:d}),type:(0,o.createComponentVNode)(2,i.NaniteExtraType,{act:n,extra_setting:d}),boolean:(0,o.createComponentVNode)(2,a.NaniteExtraBoolean,{act:n,extra_setting:d})};return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:u,children:p[s]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraBoolean=void 0;var o=n(0),r=n(1);t.NaniteExtraBoolean=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.true_text,d=a.false_text;return(0,o.createComponentVNode)(2,r.Button.Checkbox,{content:c?l:d,checked:c,onClick:function(){return n("set_extra_setting",{target_setting:i})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraType=void 0;var o=n(0),r=n(1);t.NaniteExtraType=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.types;return(0,o.createComponentVNode)(2,r.Dropdown,{over:!0,selected:c,width:"150px",options:l,onSelected:function(e){return n("set_extra_setting",{target_setting:i,value:e})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraText=void 0;var o=n(0),r=n(1);t.NaniteExtraText=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value;return(0,o.createComponentVNode)(2,r.Input,{value:c,width:"200px",onInput:function(e,t){return n("set_extra_setting",{target_setting:i,value:t})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteExtraNumber=void 0;var o=n(0),r=n(1);t.NaniteExtraNumber=function(e,t){var n=e.act,a=e.extra_setting,i=a.name,c=a.value,l=a.min,d=a.max,u=a.unit;return(0,o.createComponentVNode)(2,r.NumberInput,{value:c,width:"64px",minValue:l,maxValue:d,unit:u,onChange:function(e,t){return n("set_extra_setting",{target_setting:i,value:t})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NaniteRemote=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NaniteRemote=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.code,u=l.locked,s=l.mode,p=l.program_name,m=l.relay_code,f=l.comms,h=l.message,C=l.saved_settings,g=void 0===C?[]:C;return u?(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"This interface is locked."})})}):(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Nanite Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock Interface",onClick:function(){return c("lock")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:[(0,o.createComponentVNode)(2,a.Input,{value:p,maxLength:14,width:"130px",onChange:function(e,t){return c("update_name",{name:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save",onClick:function(){return c("save")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:f?"Comm Code":"Signal Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:d,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_code",{code:t})}})}),!!f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:(0,o.createComponentVNode)(2,a.Input,{value:h,width:"270px",onChange:function(e,t){return c("set_message",{value:t})}})}),"Relay"===s&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Relay Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:m,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_relay_code",{code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Signal Mode",children:["Off","Local","Targeted","Area","Relay"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,selected:s===e,onClick:function(){return c("select_mode",{mode:e})}},e)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Saved Settings",children:g.length>0?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"35%",children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{width:"20%",children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Code"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Relay"})]}),g.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:[e.name,":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.mode}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.code}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Relay"===e.mode&&e.relay_code}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"upload",color:"good",onClick:function(){return c("load",{save_id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",color:"bad",onClick:function(){return c("remove_save",{save_id:e.id})}})]})]},e.id)}))]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No settings currently saved"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NotificationPreferences=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NotificationPreferences=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=(n.data.ignore||[]).sort((function(e,t){var n=e.desc.toLowerCase(),o=t.desc.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Ghost Role Notifications",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:e.enabled?"times":"check",content:e.desc,color:e.enabled?"bad":"good",onClick:function(){return c("toggle_ignore",{key:e.key})}},e.key)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtnetRelay=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtnetRelay=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.enabled,u=l.dos_capacity,s=l.dos_overload,p=l.dos_crashed;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Network Buffer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,content:d?"ENABLED":"DISABLED",onClick:function(){return c("toggle")}}),children:p?(0,o.createComponentVNode)(2,a.Box,{fontFamily:"monospace",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"20px",children:"NETWORK BUFFER OVERFLOW"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",children:"OVERLOAD RECOVERY MODE"}),(0,o.createComponentVNode)(2,a.Box,{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,o.createComponentVNode)(2,a.Box,{fontSize:"20px",color:"bad",children:"ADMINISTRATOR OVERRIDE"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",color:"bad",children:"CAUTION - DATA LOSS MAY OCCUR"}),(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"PURGE BUFFER",mt:1,color:"bad",onClick:function(){return c("restart")}})]}):(0,o.createComponentVNode)(2,a.ProgressBar,{value:s,minValue:0,maxValue:u,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})," GQ"," / ",u," GQ"]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosAiRestorer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosAiRestorer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.restoring,u=l.error,s=l.name,p=l.nocard,m=l.isDead,f=l.health,h=(l.no_ai,l.ai_laws),C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Insert AI",children:[(0,o.createComponentVNode)(2,a.Box,{children:"Inserted AI:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:p?"---":s,onClick:function(){return c("PRG_eject")},disabled:p})]}),!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Reconstruction in progress!"}),!!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["ERROR: ",u]})||(0,o.createComponentVNode)(2,a.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI Name",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m?"Non-functional":"Functional"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"System Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,value:f,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active Laws"}),C.length>0&&C.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",children:e},"law_"+t.toString())}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"No laws found."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Operations",children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:d,onClick:function(){return c("PRG_beginReconstruction")}})})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCard=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosCard=function(e,t){var n=(0,r.useBackend)(t),p=n.act,m=n.data,f=m.have_id_slot,h=m.manifest,C=m.slots,g=m.has_id,b=m.authenticated,N=m.all_centcom_access,v=m.station_name,V=m.regions,y=m.id_name,_=m.auth_name,x=m.minor,k=m.centcom_access,w=m.id_owner,L=m.id_rank,B=(0,r.useLocalState)(t,"tab",0),S=B[0],I=B[1];return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[!!f&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:0===S,onClick:function(){I(0),p("PRG_switchm",{target:"mod"})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:1===S,onClick:function(){I(1),p("PRG_switchm",{target:"manage"})},children:"Job Management"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"folder-open",selected:2===S,onClick:function(){I(2),p("PRG_switchm",{target:"manifest"})},children:"Crew Manifest"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:1===S||0===S&&!g,onClick:function(){return p("PRG_print")}})]}),0===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[(0,o.createComponentVNode)(2,d,{id_name:y,auth_name:_}),b&&g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,u,{minor:x,id_owner:w,id_rank:L,act:p}),(0,o.createComponentVNode)(2,s,{centcom_access:k}),(0,o.createComponentVNode)(2,c,{centcom_access:k,all_centcom_access:N,station_name:v,regions:V,act:p})],4)||null]}),1===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Job Management",children:(0,o.createComponentVNode)(2,l,{slots:C,act:p})}),2===S&&(0,o.createComponentVNode)(2,a.Section,{title:"Crew Manifest",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Please use a ",(0,o.createVNode)(1,"b",null,"security records console",16)," to modify entries."]}),(0,o.createComponentVNode)(2,a.Box,{children:h&&h.map((function(e){return(0,o.createFragment)([(0,o.createVNode)(1,"b",null,e.name,0),(0,o.createTextVNode)(" - "),e.rank],0)}))})]})]})})};var c=function(e,t){var n=e.centcom_access,i=e.all_centcom_access,c=e.station_name,l=e.regions,d=void 0===l?[]:l,u=e.act,s=(0,r.useLocalState)(t,"regionTab",0),p=s[0],m=s[1];if(n)return(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:i&&i.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:e.desc,checked:e.allowed,onClick:function(){return u("PRG_access",{access_target:e.ref,allowed:e.allowed})}},e.desc)}))});var f=d[p];return(0,o.createComponentVNode)(2,a.Section,{title:c,level:2,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.selected,onClick:function(){u("PRG_regsel",{region:e.regid}),m(e.regid-1)},children:e.name},e.regid)}))}),f.accesses&&(0,o.createComponentVNode)(2,a.Box,{children:f.accesses.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:e.desc,checked:e.allowed,onClick:function(){return u("PRG_access",{access_target:e.ref,allowed:e.allowed})}},e.desc)}))})]})},l=function(e,t){var n=e.slots,r=e.act;return(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Job"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Slots"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open Job"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Close Job"})]}),!!n&&n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.current,"/",e.total]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.desc_open,disabled:!e.status_open,onClick:function(){return r("PRG_open_job",{target:e.title})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.desc_close,disabled:!e.status_close,onClick:function(){return r("PRG_close_job",{target:e.title})}})})]},e.title)}))]})},d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=(n.data,e.id_name),l=e.auth_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Please insert the ID into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",direction:"row",wrap:"wrap",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"Target Identity:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:c,onClick:function(){return i("PRG_eject",{target:"id"})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"Auth Identity:"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:l,onClick:function(){return i("PRG_eject",{target:"auth"})}})]})]})],4)},u=function(e,t){var n=e.minor,r=e.id_owner,i=e.id_rank,c=e.act;return(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:!!n&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Registered Name:",16)," ",r]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Rank:",16)," ",i]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"gear",onClick:function(){return c("PRG_terminate")},disabled:"Unassigned"===i,label:"Demote "+r})})],4)||(0,o.createComponentVNode)(2,a.Box,{children:["Registered Name:",(0,o.createComponentVNode)(2,a.Button,{content:r.trim(),icon:"pencil-alt",onClick:function(){return c("PRG_edit",{name:!0})}})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data,i=e.centcom_access,c=n.engineering_jobs,l=void 0===c?[]:c,d=n.medical_jobs,u=void 0===d?[]:d,s=n.science_jobs,m=void 0===s?[]:s,f=n.security_jobs,h=void 0===f?[]:f,C=n.cargo_jobs,g=void 0===C?[]:C,b=n.civilian_jobs,N=void 0===b?[]:b,v=n.centcom_jobs,V=void 0===v?[]:v;return(0,o.createComponentVNode)(2,a.Section,{title:"Assigments",level:2,children:(0,o.createComponentVNode)(2,a.Collapsible,{title:"Job Presets",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,p,{selectable:!0,icon:"pencil-alt",assignJob:{display_name:"Custom Job Title",job:"Custom"}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Command"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:{display_name:"Captain",job:"Captain"}})})]}),!!l&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Engineering"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:l.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!u&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Medical"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:u.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!m&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Science"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:m.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!h&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Security"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:h.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!g&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Cargo"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:g.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!N&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Civilian"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:N.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]}),!!i&&!!V&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,children:"Centcom"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:V.map((function(e){return(0,o.createComponentVNode)(2,p,{selectable:!0,assignJob:e},e.display_name)}))})]})||null]})})})},p=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.id_rank,l=e.assignJob,d=e.selectable,u=e.icon,s=l.display_name,p=l.job;return(0,o.createComponentVNode)(2,a.Button,{content:s,icon:u,selected:d&&c===p,onClick:function(){return i("PRG_assign",{assign_target:p})}})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosConfiguration=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosConfiguration=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.power_usage,u=l.battery_exists,s=l.battery,p=void 0===s?{}:s,m=l.disk_size,f=l.disk_used,h=l.hardware,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",d,"W"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,a.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"File System",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:f,minValue:0,maxValue:m,color:"good",children:[f," GQ / ",m," GQ"]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Hardware Components",children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return c("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosFileManager=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosFileManager=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.error,u=l.usbconnected,s=l.files,p=void 0===s?[]:s,m=l.usbfiles,f=void 0===m?[]:m;return d?(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:[d,(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,"Please try again. If the problem persists contact your system administrator for assistance.",16)]})})}):(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Available files (local)",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File size (GQ)"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Operations"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[".",e.type]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.size,"GQ"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"DELETE",disabled:e.undeletable,onClick:function(){return c("PRG_deletefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"RENAME",disabled:e.undeletable,onClick:function(){return c("PRG_rename",{name:e.name})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{content:"EXPORT",disabled:e.undeletable,onClick:function(){return c("PRG_copytousb",{name:e.name})}})]})]},e.name)}))]})}),u&&(0,o.createComponentVNode)(2,a.Section,{title:"Available files (portable device)",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File size (GQ)"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Operations"})]}),f.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[".",e.type]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.size,"GQ"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"DELETE",disabled:e.undeletable,onClick:function(){return c("PRG_usbdeletefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"RENAME",disabled:e.undeletable,onClick:function(){return c("PRG_usbrenamefile",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"IMPORT",disabled:e.undeletable,onClick:function(){return c("PRG_copyfromusb",{name:e.name})}})]})]},e.name)}))]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosMain=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug"};t.NtosMain=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.programs,s=void 0===u?[]:u,p=d.has_light,m=d.light_on,f=d.comp_light_color;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Button,{width:"144px",icon:"lightbulb",selected:m,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",m?"ON":"OFF"]}),(0,o.createComponentVNode)(2,a.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,a.ColorBox,{ml:1,color:f})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,lineHeight:"24px",color:"transparent",icon:c[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,width:3,children:!!e.running&&(0,o.createComponentVNode)(2,a.Button,{lineHeight:"24px",color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})})]},e.name)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetChat=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);(0,n(54).createLogger)("ntos chat");t.NtosNetChat=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.can_admin,s=d.adminmode,p=d.authed,m=d.username,f=d.active_channel,h=d.is_operator,C=d.clients,g=void 0===C?[]:C,b=d.messages,N=void 0===b?[]:b,v=null!==f,V=p||s;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{height:"600px",children:(0,o.createComponentVNode)(2,a.Table,{height:"580px",children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,t){return l("PRG_changename",{new_name:t})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return l("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{height:"560px",overflowY:"scroll",children:v&&(V?N.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,t){return l("PRG_speak",{message:t})}})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,a.Box,{height:"477px",overflowY:"scroll",children:g.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.name},e.name)}))}),v&&V&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,t){return l("PRG_savelog",{log_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return l("PRG_leavechannel")}})],4),!!h&&p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return l("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,t){return l("PRG_renamechannel",{new_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,t){return l("PRG_setpassword",{new_password:t})}})],4)]})]})})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.active_channel,d=c.all_channels,u=void 0===d?[]:d;return(0,o.createComponentVNode)(2,a.Box,{height:"537px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,t){return i("PRG_newchannel",{new_channel_name:t})}}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.chan,selected:e.id===l,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDosContent=t.NtosNetDos=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetDos=function(e,t){return(0,o.createComponentVNode)(2,i.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.relays,d=void 0===l?[]:l,u=c.focus,s=c.target,p=c.speed,m=c.overload,f=c.capacity,h=c.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return i("PRG_reset")}})],4);var C=function(e){for(var t="",n=m/f;t.lengthn?t+="0":t+="1";return t};return s?(0,o.createComponentVNode)(2,a.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:["CURRENT SPEED: ",p," GQ/s"]}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)}),(0,o.createComponentVNode)(2,a.Box,{children:C(45)})]}):(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.id,selected:u===e.id,onClick:function(){return i("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!u,mt:1,onClick:function(){return i("PRG_execute")}})]})};t.NtosNetDosContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDownloader=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetDownloader=function(e,t){var n=e.state,l=(0,r.useBackend)(t),d=l.act,u=l.data,s=u.disk_size,p=u.disk_used,m=u.downloadable_programs,f=void 0===m?[]:m,h=u.error,C=u.hacked_programs,g=void 0===C?[]:C,b=u.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return d("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p,minValue:0,maxValue:s,children:p+" GQ / "+s+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:f.map((function(e){return(0,o.createComponentVNode)(2,c,{state:n,program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),g.map((function(e){return(0,o.createComponentVNode)(2,c,{state:n,program:e},e.filename)}))]})]})})};var c=function(e,t){var n=e.program,i=(0,r.useBackend)(t),c=i.act,l=i.data,d=l.disk_size,u=l.disk_used,s=l.downloadcompletion,p=l.downloading,m=l.downloadname,f=l.downloadsize,h=d-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:n.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[n.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:n.filename===m&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:f,value:s})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:p||n.size>h,onClick:function(){return c("PRG_downloadfile",{filename:n.filename})}})})]}),"Compatible"!==n.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),n.size>h&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:n.fileinfo})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetMonitor=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetMonitor=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.ntnetrelays,u=l.ntnetstatus,s=l.idsalarm,p=l.idsstatus,m=l.config_softwaredownload,f=l.config_peertopeer,h=l.config_communication,C=l.config_systemcontrol,g=l.ntnetlogs,b=void 0===g?[]:g,N=l.ntnetmaxlogs;return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return c("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return c("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){return c("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return c("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return c("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return c("toggleIDS")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return c("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,a.Button,{value:N,width:"39px",onClick:function(){return c("updatemaxlogs")}})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return c("purgelogs")}}),children:b.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetTransfer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosNetTransfer=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),p=a.error,m=a.downloading,f=a.uploading,h=a.upload_filelist,C=void 0===h?[]:h,g=(0,o.createComponentVNode)(2,s);return p?g=(0,o.createComponentVNode)(2,c):m?g=(0,o.createComponentVNode)(2,l):f?g=(0,o.createComponentVNode)(2,d):C.length&&(g=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,i.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:g})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.error;return(0,o.createComponentVNode)(2,a.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("PRG_reset")},children:"Reset"}),children:["Additional Information: ",c]})},l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.download_name,d=c.download_progress,u=c.download_size,s=c.download_netspeed;return(0,o.createComponentVNode)(2,a.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d,maxValue:u,children:[d," / ",u," GQ"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return i("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.upload_clients,d=c.upload_filename,u=c.upload_haspassword;return(0,o.createComponentVNode)(2,a.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Password",children:u?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return i("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return i("PRG_reset")},children:"Cancel Upload"})]})]})})},u=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.upload_filelist;return(0,o.createComponentVNode)(2,a.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return i("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Section,{title:"Pick file to serve.",level:2,children:c.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"upload",onClick:function(){return i("PRG_uploadfile",{id:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.servers;return(0,o.createComponentVNode)(2,a.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"upload",onClick:function(){return i("PRG_uploadmenu")},children:"Send File"}),children:c.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,a.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,a.Button,{icon:"download",onClick:function(){return i("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No upload servers found."})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosRbmkStats=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.NtosRbmkStats=function(e,t){e.state;var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.powerData.map((function(e,t){return[t,e]})),u=l.psiData.map((function(e,t){return[t,e]})),s=l.tempInputData.map((function(e,t){return[t,e]})),p=l.tempOutputdata.map((function(e,t){return[t,e]}));return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Management",children:[(0,o.createComponentVNode)(2,a.Section,{title:"Legend:",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return c("swap_reactor")},content:"Change Reactor"}),children:["Reactor Power (%):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.power,minValue:0,maxValue:100,color:"yellow"}),(0,o.createVNode)(1,"br"),"Reactor Pressure (PSI):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.psi,minValue:0,maxValue:2e3,color:"white",children:[l.psi," PSI"]}),"Coolant temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.coolantInput,minValue:-273.15,maxValue:1227,color:"blue",children:[l.coolantInput," \xb0C"]}),"Outlet temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.coolantOutput,minValue:-273.15,maxValue:1227,color:"bad",children:[l.coolantOutput," \xb0C"]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Statistics:",height:"200px",children:[(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:d,rangeX:[0,d.length-1],rangeY:[0,1500],strokeColor:"rgba(255, 215,0, 1)",fillColor:"rgba(255, 215, 0, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:u,rangeX:[0,u.length-1],rangeY:[0,1500],strokeColor:"rgba(255,250,250, 1)",fillColor:"rgba(255,250,250, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:s,rangeX:[0,s.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(127, 179, 255 , 1)",fillColor:"rgba(127, 179, 255 , 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:p,rangeX:[0,p.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(255, 0, 0 , 1)",fillColor:"rgba(255, 0, 0 , 0.1)"})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosRevelation=void 0;var o=n(0),r=n(1),a=n(2),i=n(4);t.NtosRevelation=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,t){return c("PRG_obfuscate",{new_name:t})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return c("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,icon:"radiation",content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed,onClick:function(){return c("PRG_activate")}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosStationAlertConsole=void 0;var o=n(0),r=n(4),a=n(179);t.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:335,height:587,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.StationAlertConsoleContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosSupermatterMonitor=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=n(2),l=n(1),d=n(38),u=n(4),s=function(e){return Math.log2(16+Math.max(0,e))-4};t.NtosSupermatterMonitor=function(e,t){var n=(0,c.useBackend)(t),s=n.act,f=n.data,h=f.active,C=(0,a.flow)([function(e){return e.filter((function(e){return e.amount>=.01}))},(0,r.sortBy)((function(e){return-e.amount}))])(f.gases||[]),g=Math.max.apply(Math,[1].concat(C.map((function(e){return e.amount}))));return h?(0,o.createComponentVNode)(2,u.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,u.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,l.Flex.Item,{width:"270px",children:(0,o.createComponentVNode)(2,l.Section,{title:"Metrics",children:(0,o.createComponentVNode)(2,p)})}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l.Section,{title:"Gases",buttons:(0,o.createComponentVNode)(2,l.Button,{icon:"arrow-left",content:"Back",onClick:function(){return s("PRG_clear")}}),children:(0,o.createComponentVNode)(2,l.Box.Forced,{height:24*C.length+"px",children:(0,o.createComponentVNode)(2,l.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,d.getGasLabel)(e.name),children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:g,children:(0,i.toFixed)(e.amount,2)+"%"})},e.name)}))})})})})]})})}):(0,o.createComponentVNode)(2,u.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,u.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,m)})})};var p=function(e,t){var n=(0,c.useBackend)(t).data,r=n.SM_integrity,a=n.SM_power,d=n.SM_ambienttemp,u=n.SM_ambientpressure;return(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:r/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:a,minValue:0,maxValue:5e3,ranges:{good:[-Infinity,5e3],average:[5e3,7e3],bad:[7e3,Infinity]},children:(0,i.toFixed)(a)+" MeV/cm3"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:s(d),minValue:0,maxValue:s(1e4),ranges:{teal:[-Infinity,s(80)],good:[s(80),s(373)],average:[s(373),s(1e3)],bad:[s(1e3),Infinity]},children:(0,i.toFixed)(d)+" K"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:s(u),minValue:0,maxValue:s(5e4),ranges:{good:[s(1),s(300)],average:[-Infinity,s(1e3)],bad:[s(1e3),+Infinity]},children:(0,i.toFixed)(u)+" kPa"})})]})},m=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.supermatters,i=void 0===a?[]:a;return(0,o.createComponentVNode)(2,l.Section,{title:"Detected Supermatters",buttons:(0,o.createComponentVNode)(2,l.Button,{icon:"sync",content:"Refresh",onClick:function(){return r("PRG_refresh")}}),children:(0,o.createComponentVNode)(2,l.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.uid+". "+e.area_name}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,width:"120px",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:e.integrity/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l.Button,{content:"Details",onClick:function(){return r("PRG_set",{target:e.uid})}})})]},e.uid)}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(0),r=n(10),a=n(2),i=n(1),c=n(4);t.NuclearBomb=function(e,t){var n=e.state,r=(0,a.useBackend)(t),u=r.act,s=r.data,p=s.status1,m=s.status2;return(0,o.createComponentVNode)(2,c.Window,{theme:"retro",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{m:1,children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,className:"NuclearBomb__displayBox",children:p}),(0,o.createComponentVNode)(2,i.Flex,{mb:1.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Box,{className:"NuclearBomb__displayBox",children:m})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",fontSize:"24px",lineHeight:"23px",textAlign:"center",width:"43px",ml:1,mr:"3px",mt:"3px",className:"NuclearBomb__Button NuclearBomb__Button--keypad",onClick:function(){return u("eject_disk")}})})]}),(0,o.createComponentVNode)(2,i.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,d,{state:n})}),(0,o.createComponentVNode)(2,i.Flex.Item,{ml:1,width:"129px",children:(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,content:"ARM",textAlign:"center",fontSize:"28px",lineHeight:"32px",mb:1,className:"NuclearBomb__Button NuclearBomb__Button--C",onClick:function(){return u("arm")}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,content:"ANCHOR",textAlign:"center",fontSize:"28px",lineHeight:"32px",className:"NuclearBomb__Button NuclearBomb__Button--E",onClick:function(){return u("anchor")}}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Box,{height:"80px",className:"NuclearBomb__NTIcon"})]})})]})]})})})};var l=function(){return(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",color:"#9C9987",fontSize:"80px",children:(0,o.createComponentVNode)(2,i.Icon,{name:"radiation"})})},d=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Box,{width:"185px",children:(0,o.createComponentVNode)(2,i.Grid,{width:"1px",children:[["1","4","7","C"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,i.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,bold:!0,mb:1,content:e,textAlign:"center",fontSize:"40px",lineHeight:"50px",width:"55px",className:(0,r.classes)(["NuclearBomb__Button","NuclearBomb__Button--keypad","NuclearBomb__Button--"+e]),onClick:function(){return n("keypad",{digit:e})}},e)}))},e[0])}))})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.OperatingComputer=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.table,u=l.surgeries,s=void 0===u?[]:u,p=l.procedures,m=void 0===p?[]:p,f=l.patient,h=void 0===f?{}:f,C=(0,r.useLocalState)(t,"tab","state"),g=C[0],b=C[1];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"state"===g,onClick:function(){return b("state")},children:"Patient State"},"state"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"procedures"===g,onClick:function(){return b("procedures")},children:"Surgery Procedures"},"procedures")]}),"state"===g&&(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Table Detected"}),(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Patient State",level:2,children:h?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:h.statstate,children:h.stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Type",children:h.blood_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h.health,minValue:h.minHealth,maxValue:h.maxHealth,color:h.health>=0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:h.health})})}),[{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"},{label:"Toxin",type:"toxLoss"},{label:"Respiratory",type:"oxyLoss"}].map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h[e.type]/h.maxHealth,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:h[e.type]})})},e.type)}))]}):"No Patient Detected"}),(0,o.createComponentVNode)(2,a.Section,{title:"Initiated Procedures",level:2,children:m.length?m.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Next Step",children:[e.next_step,e.chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.chems_needed],0)]}),!!l.alternative_step&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Alternative Step",children:[e.alternative_step,e.alt_chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.alt_chems_needed],0)]})]})},e.name)})):"No Active Procedures"})]})],0),"procedures"===g&&(0,o.createComponentVNode)(2,a.Section,{title:"Advanced Surgery Procedures",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Sync Research Database",onClick:function(){return c("sync")}}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,children:e.desc},e.name)}))]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreBox=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.OreBox=function(e,t){var n=(0,a.useBackend)(t),l=n.data,d=n.act,u=l.materials;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Ores",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Empty",onClick:function(){return d("removeall")}}),children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Ore"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:"Amount"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{color:"label",inline:!0,children:e.amount})})]},e.type)}))]})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Box,{children:["All ores will be placed in here when you are wearing a mining stachel on your belt or in a pocket while dragging the ore box.",(0,o.createVNode)(1,"br")," Gibtonite is not accepted."]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemptionMachine=void 0;var o=n(0),r=n(16),a=n(2),i=n(1),c=n(4);t.OreRedemptionMachine=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,u=d.unclaimedPoints,s=d.materials,p=d.alloys,m=d.diskDesigns,f=d.hasDisk;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.BlockQuote,{mb:1,children:["This machine only accepts ore.",(0,o.createVNode)(1,"br"),"Gibtonite and Slag are not accepted."]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:1,children:"Unclaimed points:"}),u,(0,o.createComponentVNode)(2,i.Button,{ml:2,content:"Claim",disabled:0===u,onClick:function(){return r("Claim")}})]})]}),(0,o.createComponentVNode)(2,i.Section,{children:f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject design disk",onClick:function(){return r("diskEject")}})}),(0,o.createComponentVNode)(2,i.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:["File ",e.index,": ",e.name]}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,i.Button,{disabled:!e.canupload,content:"Upload",onClick:function(){return r("diskUpload",{design:e.index})}})})]},e.index)}))})],4)||(0,o.createComponentVNode)(2,i.Button,{icon:"save",content:"Insert design disk",onClick:function(){return r("diskInsert")}})}),(0,o.createComponentVNode)(2,i.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,i.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Release",{id:e.id,sheets:t})}},e.id)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"Alloys",children:(0,o.createComponentVNode)(2,i.Table,{children:p.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Smelt",{id:e.id,sheets:t})}},e.id)}))})})]})})};var l=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).state={amount:1},t}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this,t=this.state.amount,n=this.props,a=n.material,c=n.onRelease,l=Math.floor(a.amount);return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,r.toTitleCase)(a.name).replace("Alloy","")}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{mr:2,color:"label",inline:!0,children:a.value&&a.value+" cr"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Box,{mr:2,color:"label",inline:!0,children:[l," sheets"]})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.NumberInput,{width:"32px",step:1,stepPixelSize:5,minValue:1,maxValue:50,value:t,onChange:function(t,n){return e.setState({amount:n})}}),(0,o.createComponentVNode)(2,i.Button,{disabled:l<1,content:"Release",onClick:function(){return c(t)}})]})]})},a}(o.Component)},function(e,t,n){"use strict";t.__esModule=!0,t.Pandemic=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.Pandemic=function(e,t){var n=(0,a.useBackend)(t).data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l,{state:e.state}),!!n.has_blood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{state:e.state}),(0,o.createComponentVNode)(2,s,{state:e.state})],4)]})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.has_beaker,d=c.beaker_empty,u=c.has_blood,s=c.blood,p=!l||d;return(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Empty and Eject",color:"bad",disabled:p,onClick:function(){return r("empty_eject_beaker")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Empty",disabled:p,onClick:function(){return r("empty_beaker")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){return r("eject_beaker")}})],4),children:l?d?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Beaker is empty"}):u?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",children:s&&s.dna||"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Type",children:s&&s.type||"Unknown"})]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No blood detected"}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No beaker loaded"})})},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.is_ready;return(c.viruses||[]).map((function(e){var t=e.symptoms||[];return(0,o.createComponentVNode)(2,i.Section,{title:e.can_rename?(0,o.createComponentVNode)(2,i.Input,{value:e.name,onChange:function(t,n){return r("rename_disease",{index:e.index,name:n})}}):e.name,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"flask",content:"Create culture bottle",disabled:!l,onClick:function(){return r("create_culture_bottle",{index:e.index})}}),children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:e.description}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Agent",children:e.agent}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:e.spread}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Cure",children:e.cure})]})})]}),!!e.is_adv&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Statistics",level:2,children:(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Resistance",children:e.resistance}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stealth",children:e.stealth})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stage speed",children:e.stage_speed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmissibility",children:e.transmission})]})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Symptoms",level:2,children:t.map((function(e){return(0,o.createComponentVNode)(2,i.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,u,{symptom:e})})},e.name)}))})],4)]},e.name)}))},u=function(e,t){var n=e.symptom,a=n.name,c=n.desc,l=n.stealth,d=n.resistance,u=n.stage_speed,s=n.transmission,p=n.level,m=n.neutered,f=(0,r.map)((function(e,t){return{desc:e,label:t}}))(n.threshold_desc||{});return(0,o.createComponentVNode)(2,i.Section,{title:a,level:2,buttons:!!m&&(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",children:"Neutered"}),children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:2,children:c}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Level",children:p}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Resistance",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stealth",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stage Speed",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Transmission",children:s})]})})]}),f.length>0&&(0,o.createComponentVNode)(2,i.Section,{title:"Thresholds",level:3,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.label,children:e.desc},e.label)}))})})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.resistances||[];return(0,o.createComponentVNode)(2,i.Section,{title:"Antibodies",children:l.length>0?(0,o.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"eye-dropper",content:"Create vaccine bottle",disabled:!c.is_ready,onClick:function(){return r("create_vaccine_bottle",{index:e.id})}})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",mt:1,children:"No antibodies detected."})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.PersonalCrafting=function(e,t){var n=(0,a.useBackend)(t),d=n.act,u=n.data,s=u.busy,p=u.display_craftable_only,m=u.display_compact,f=u.category,h=u.subcategory,C=(0,r.map)((function(e,t){return{category:t,subcategory:e,hasSubcats:"has_subcats"in e,firstSubcatName:Object.keys(e).find((function(e){return"has_subcats"!==e}))}}))(u.crafting_recipes||{}),g=C.find((function(e){return e.category===f})),b=!!s&&(0,o.createComponentVNode)(2,i.Dimmer,{fontSize:"40px",textAlign:"center",children:(0,o.createComponentVNode)(2,i.Box,{mt:30,children:[(0,o.createComponentVNode)(2,i.Icon,{name:"cog",spin:1})," Crafting..."]})});return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[b,(0,o.createComponentVNode)(2,i.Section,{title:"Personal Crafting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:m?"check-square-o":"square-o",content:"Compact",selected:m,onClick:function(){return d("toggle_compact")}}),(0,o.createComponentVNode)(2,i.Button,{icon:p?"check-square-o":"square-o",content:"Craftable Only",selected:p,onClick:function(){return d("toggle_recipes")}})],4),children:[(0,o.createComponentVNode)(2,i.Tabs,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{onClick:function(){return d("set_category",{category:e.category,subcategory:e.firstSubcatName})},selected:f===e.category,children:e.category},e.category)}))}),!g.hasSubcats&&(0,o.createComponentVNode)(2,l,{craftables:g.subcategory})||(0,o.createComponentVNode)(2,i.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){return"has_subcats"!==t&&(0,o.createComponentVNode)(2,i.Tabs.Tab,{onClick:function(){return d("set_category",{subcategory:t})},selected:h===t,children:t},t)}))(g.subcategory)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l,{craftables:g.subcategory[h]})})]})]})]})})};var l=function(e,t){var n=e.craftables,r=void 0===n?[]:n,c=(0,a.useBackend)(t),l=c.act,d=c.data,u=d.craftability,s=void 0===u?{}:u,p=d.display_compact,m=d.display_craftable_only;return r.map((function(e){return m&&!s[e.ref]?null:p?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,className:"candystripe",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Craft",disabled:!s[e.ref],tooltip:e.tool_text&&"Tools needed: "+e.tool_text,tooltipPosition:"left",onClick:function(){return l("make",{recipe:e.ref})}}),children:e.req_text},e.name):(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"cog",content:"Craft",disabled:!s[e.ref],onClick:function(){return l("make",{recipe:e.ref})}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!e.req_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required",children:e.req_text}),!!e.catalyst_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Catalyst",children:e.catalyst_text}),!!e.tool_text&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tools",children:e.tool_text})]})},e.name)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.PortablePump=void 0;var o=n(0),r=n(2),a=n(1),i=n(4),c=n(123);t.PortablePump=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.direction,s=d.target_pressure,p=d.default_pressure,m=d.min_pressure,f=d.max_pressure;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.PortableBasicInfo,{state:e.state}),(0,o.createComponentVNode)(2,a.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:s,unit:"kPa",width:"75px",minValue:m,maxValue:f,step:10,onChange:function(e,t){return l("pressure",{pressure:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:s===m,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",disabled:s===p,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:s===f,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PortableScrubber=void 0;var o=n(0),r=n(2),a=n(1),i=n(38),c=n(123),l=n(4);t.PortableScrubber=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data.filter_types||[];return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,c.PortableBasicInfo,{state:e.state}),(0,o.createComponentVNode)(2,a.Section,{title:"Filters",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,i.getGasLabel)(e.gas_id,e.gas_name),selected:e.enabled,onClick:function(){return d("toggle_filter",{val:e.gas_id})}},e.id)}))})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.PowerMonitor=void 0;var o=n(0),r=n(33),a=n(71),i=n(19),c=(n(10),n(2)),l=n(1),d=n(4),u=5e5;t.PowerMonitor=function(e,t){var n=(0,c.useBackend)(t),i=n.data,f=(n.act,i.history),h=f.supply.map((function(e,t){return[t,e]})),C=f.demand.map((function(e,t){return[t,e]})),g=(0,c.useLocalState)(t,"sortby",null),b=g[0],N=g[1],v=Math.max.apply(Math,[u].concat(f.supply,f.demand)),V=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.name+t})})),"name"===b&&(0,r.sortBy)((function(e){return e.name})),"charge"===b&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===b&&(0,r.sortBy)((function(e){return t=e.load,n=String(t.split(" ")[1]).toLowerCase(),-["w","kw","mw","gw"].indexOf(n);var t,n}),(function(e){return-parseFloat(e.load)}))])(i.areas);return(0,o.createComponentVNode)(2,d.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,d.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,l.Flex.Item,{width:"200px",children:(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,s,{history:f})})}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,l.Chart.Line,{fillPositionedParent:!0,data:h,rangeX:[0,h.length-1],rangeY:[0,v],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,l.Chart.Line,{fillPositionedParent:!0,data:C,rangeX:[0,C.length-1],rangeY:[0,v],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,l.Section,{children:[(0,o.createComponentVNode)(2,l.Box,{mb:1,children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"name"===b,content:"Name",onClick:function(){return N("name")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"charge"===b,content:"Charge",onClick:function(){return N("charge")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"draw"===b,content:"Draw",onClick:function(){return N("draw")}})]}),(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,l.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),V.map((function(e,t){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,p,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,m,{status:e.env}),2)],4,null,e.id)}))]})]})]})})};var s=function(e,t){var n=e.history,r=n.supply[n.supply.length-1]||0,a=n.demand[n.demand.length-1]||0,c=Math.max.apply(Math,[u].concat(n.supply,n.demand));return(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:r,minValue:0,maxValue:c,color:"teal",children:[(0,i.toFixed)(r/1e3)," kW"]})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:a,minValue:0,maxValue:c,color:"pink",content:!0,children:[(0,i.toFixed)(a/1e3)," kW"]})})]})},p=function(e,t){var n=e.charging,r=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Icon,{width:"18px",textAlign:"center",name:0===n&&(r>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(r>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,l.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,i.toFixed)(r)+"%"})],4)},m=function(e,t){var n=e.status,r=Boolean(2&n),a=Boolean(1&n),i=(r?"On":"Off")+" ["+(a?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,l.ColorBox,{color:r?"good":"bad",content:a?undefined:"M",title:i})}},function(e,t,n){"use strict";t.__esModule=!0,t.Radio=void 0;var o=n(0),r=n(33),a=n(19),i=n(2),c=n(1),l=n(38),d=n(4);t.Radio=function(e,t){var n=(0,i.useBackend)(t),u=n.act,s=n.data,p=s.freqlock,m=s.frequency,f=s.minFrequency,h=s.maxFrequency,C=s.listening,g=s.broadcasting,b=s.command,N=s.useCommand,v=s.subspace,V=s.subspaceSwitchable,y=l.RADIO_CHANNELS.find((function(e){return e.freq===m})),_=(0,r.map)((function(e,t){return{name:t,status:!!e}}))(s.channels);return(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Frequency",children:[p&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"light-gray",children:(0,a.toFixed)(m/10,1)+" kHz"})||(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:f/10,maxValue:h/10,value:m/10,format:function(e){return(0,a.toFixed)(e,1)},onDrag:function(e,t){return u("frequency",{adjust:t-m/10})}}),y&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:y.color,ml:2,children:["[",y.name,"]"]})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,onClick:function(){return u("listen")}}),(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:g?"microphone":"microphone-slash",selected:g,onClick:function(){return u("broadcast")}}),!!b&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"bullhorn",selected:N,content:"High volume "+(N?"ON":"OFF"),onClick:function(){return u("command")}}),!!V&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"bullhorn",selected:v,content:"Subspace Tx "+(v?"ON":"OFF"),onClick:function(){return u("subspace")}})]}),!!v&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Channels",children:[0===_.length&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"No encryption keys installed."}),_.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:e.status?"check-square-o":"square-o",selected:e.status,content:e.name,onClick:function(){return u("channel",{channel:e.name})}})},e.name)}))]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RapidPipeDispenser=void 0;var o=n(0),r=n(10),a=n(2),i=n(1),c=n(4),l=["Atmospherics","Disposals","Transit Tubes"],d={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Station Equipment":"microchip"},u={grey:"#bbbbbb",amethyst:"#a365ff",blue:"#4466ff",brown:"#b26438",cyan:"#48eae8",dark:"#808080",green:"#1edd00",orange:"#ffa030",purple:"#b535ea",red:"#ff3333",violet:"#6e00f6",yellow:"#ffce26"},s=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}];t.RapidPipeDispenser=function(e,t){var n=(0,a.useBackend)(t),p=n.act,m=n.data,f=m.category,h=m.categories,C=void 0===h?[]:h,g=m.selected_color,b=m.piping_layer,N=m.mode,v=m.preview_rows.flatMap((function(e){return e.previews})),V=(0,a.useLocalState)(t,"tab",C[0].cat_name),y=V[0],_=V[1],x=C.find((function(e){return e.cat_name===y}));return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{selected:f===t,icon:d[e],color:"transparent",content:e,onClick:function(){return p("category",{category:t})}},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:N&e.bitmask,content:e.name,onClick:function(){return p("mode",{mode:e.bitmask})}},e.bitmask)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:u[g],content:g}),Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:u[e],onClick:function(){return p("color",{paint_color:e})}},e)}))]})]})}),(0,o.createComponentVNode)(2,i.Flex,{m:-.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{m:.5,children:(0,o.createComponentVNode)(2,i.Section,{children:[0===f&&(0,o.createComponentVNode)(2,i.Box,{mb:1,children:[1,2,3].map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,checked:e===b,content:"Layer "+e,onClick:function(){return p("piping_layer",{piping_layer:e})}},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"108px",children:v.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{title:e.dir_name,selected:e.selected,style:{width:"48px",height:"48px",padding:0},onClick:function(){return p("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(17%, 17%)"}})},e.dir)}))})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{m:.5,grow:1,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:C.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:d[e.cat_name],onClick:function(){return _(e.cat_name)},children:e.cat_name},e.cat_name)}))}),x.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return p("pipe_type",{pipe_type:e.pipe_index,category:x.cat_name})}},e.pipe_index)}))]})})]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RbmkControlRods=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.RbmkControlRods=function(e,t){e.state;var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.control_rods,u=l.k,s=l.desiredK;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Control Rod Management:",children:["Control Rod Insertion:",(0,o.createComponentVNode)(2,a.ProgressBar,{value:d/100*100*.01,ranges:{good:[.7,Infinity],average:[.4,.7],bad:[-Infinity,.4]}}),(0,o.createVNode)(1,"br"),"Neutrons per generation (K):",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/3*100*.01,ranges:{good:[-Infinity,.4],average:[.4,.6],bad:[.6,Infinity]},children:u}),(0,o.createVNode)(1,"br"),"Target criticality:",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:s,unit:"k",width:"125px",minValue:0,maxValue:3,step:.1,onChange:function(e,t){return c("input",{target:t})}})})})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.RbmkStats=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.RbmkStats=function(e,t){e.state;var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.powerData.map((function(e,t){return[t,e]})),d=c.psiData.map((function(e,t){return[t,e]})),u=c.tempInputData.map((function(e,t){return[t,e]})),s=c.tempOutputdata.map((function(e,t){return[t,e]}));return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"RBMK Stats:",children:[(0,o.createComponentVNode)(2,a.Section,{title:"Legend:",children:["Reactor Power (%):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.power,minValue:0,maxValue:100,color:"yellow"}),(0,o.createVNode)(1,"br"),"Reactor Pressure (PSI):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.psi,minValue:0,maxValue:2e3,color:"white",children:[c.psi," PSI"]}),"Coolant temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.coolantInput,minValue:-273.15,maxValue:1227,color:"blue",children:[c.coolantInput," \xb0C"]}),"Outlet temperature (\xb0C):",(0,o.createComponentVNode)(2,a.ProgressBar,{value:c.coolantOutput,minValue:-273.15,maxValue:1227,color:"bad",children:[c.coolantOutput," \xb0C"]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Statistics:",height:"200px",children:[(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:l,rangeX:[0,l.length-1],rangeY:[0,1500],strokeColor:"rgba(255, 215,0, 1)",fillColor:"rgba(255, 215, 0, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:d,rangeX:[0,d.length-1],rangeY:[0,1500],strokeColor:"rgba(255,250,250, 1)",fillColor:"rgba(255,250,250, 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:u,rangeX:[0,u.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(127, 179, 255 , 1)",fillColor:"rgba(127, 179, 255 , 0.1)"}),(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:s,rangeX:[0,s.length-1],rangeY:[-273.15,1227],strokeColor:"rgba(255, 0, 0 , 1)",fillColor:"rgba(255, 0, 0 , 0.1)"})]})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(0),r=n(2),a=n(1),i=n(170),c=n(4);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,u=d.satellites||[];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[d.meteor_shield&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledListItem,{label:"Coverage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.meteor_shield_coverage/d.meteor_shield_coverage_max,ranges:{good:[1,Infinity],average:[.3,1],bad:[-Infinity,.3]},children:[100*d.meteor_shield_coverage/d.meteor_shield_coverage_max,"%"]})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Satellite Controls",children:(0,o.createComponentVNode)(2,a.Box,{mr:-1,children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.active,content:"#"+e.id+" "+e.mode,onClick:function(){return l("toggle",{id:e.id})}},e.id)}))})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulatorTemplates=t.ShuttleManipulator=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.ShuttleManipulator=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,u=d.shuttles,s=void 0===u?[]:u,p=d.selected,m=void 0===p?{}:p,f=d.existingShuttle,h=void 0===f?{}:f,C=(0,a.useLocalState)(t,"tab","status"),g=C[0],b=C[1];return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"status"===g,onClick:function(){return b("status")},children:"Status"},"status"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"templates"===g,onClick:function(){return b("templates")},children:"Templates"},"templates"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"modification"===g,onClick:function(){return b("modification")},children:"Modification"},"modification")]}),"status"===g&&(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"JMP",onClick:function(){return r("jump_to",{type:"mobile",id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Fly",disabled:!e.can_fly,onClick:function(){return r("fly",{id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.status}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[e.mode,!!e.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),e.timeleft,(0,o.createTextVNode)(")"),(0,o.createComponentVNode)(2,i.Button,{content:"Fast Travel",disabled:!e.can_fast_travel,onClick:function(){return r("fast_travel",{id:e.id})}},e.id)],0)]})]},e.id)}))})}),"templates"===g&&(0,o.createComponentVNode)(2,l),"modification"===g&&(0,o.createComponentVNode)(2,i.Section,{children:m?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{level:2,title:m.name,children:(!!m.description||!!m.admin_notes)&&(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!m.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:m.description}),!!m.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:m.admin_notes})]})}),h?(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Existing Shuttle: "+h.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Jump To",onClick:function(){return r("jump_to",{type:"mobile",id:h.id})}}),children:[h.status,!!h.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),h.timeleft,(0,o.createTextVNode)(")")],0)]})})}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Existing Shuttle: None"}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Status",children:[(0,o.createComponentVNode)(2,i.Button,{content:"Preview",onClick:function(){return r("preview",{shuttle_id:m.shuttle_id})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Load",color:"bad",onClick:function(){return r("load",{shuttle_id:m.shuttle_id})}})]})],0):"No shuttle selected"})]})})};var l=function(e,t){var n,c=(0,a.useBackend)(t),l=c.act,d=c.data,u=d.templates||{},s=d.selected||{},p=(0,a.useLocalState)(t,"templateId",Object.keys(u)[0]),m=p[0],f=p[1],h=(null==(n=u[m])?void 0:n.templates)||[];return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:m===t,onClick:function(){return f(t)},children:e.port_id},t)}))(u)})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:h.map((function(e){var t=e.shuttle_id===s.shuttle_id;return(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:t?"Selected":"Select",selected:t,onClick:function(){return l("select_template",{shuttle_id:e.shuttle_id})}}),children:(!!e.description||!!e.admin_notes)&&(0,o.createComponentVNode)(2,i.LabeledList,{children:[!!e.description&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:e.description}),!!e.admin_notes&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes})]})},e.shuttle_id)}))})]})})};t.ShuttleManipulatorTemplates=l},function(e,t,n){"use strict";t.__esModule=!0,t.Signaler=void 0;var o=n(0),r=n(19),a=n(2),i=n(1),c=n(4);t.Signaler=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,u=d.code,s=d.frequency,p=d.minFrequency,m=d.maxFrequency;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:p/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:13,onDrag:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:13,onDrag:function(e,t){return l("code",{code:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return l("signal")}})})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(0),r=n(2),a=n(4),i=n(174),c=n(175),l=n(176),d=n(560),u=n(561);t.Sleeper=function(e,t){var n=(0,r.useBackend)(t),s=n.act,p=n.data,m=(p.chems||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.SleeperOccupantStats,{data:p}),(0,o.createComponentVNode)(2,l.SleeperPatientReagents,{data:p}),(0,o.createComponentVNode)(2,i.SleeperInjectChems,{showOpenClosed:!0,chems:m,data:p,act:s}),(0,o.createComponentVNode)(2,u.SleeperSynthChems,{data:p,act:s}),(0,o.createComponentVNode)(2,d.SleeperPurgeChems,{chems:m,act:s})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperPurgeChems=void 0;var o=n(0),r=n(1);t.SleeperPurgeChems=function(e,t){var n=e.chems,a=e.act;return(0,o.createComponentVNode)(2,r.Section,{title:"Purge Chemicals",children:n.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{content:e.name,disabled:!e.allowed,width:"140px",onClick:function(){return a("purge",{chem:e.id})}},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.SleeperSynthChems=void 0;var o=n(0),r=n(1);t.SleeperSynthChems=function(e,t){var n=e.data,a=e.act,i=(n.synthchems||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return no?1:0}));return(0,o.createComponentVNode)(2,r.Section,{title:"Synthesize Chemicals",children:i.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{content:e.name,width:"140px",onClick:function(){return a("synth",{chem:e.id})}},e.name)}))})}},function(e,t,n){"use strict";t.__esModule=!0,t.BodyEntry=t.SlimeBodySwapper=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SlimeBodySwapper=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data.bodies,u=void 0===d?[]:d;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c,{body:e,swapFunc:function(){return l("swap",{ref:e.ref})}},e.name)}))})})})};var c=function(e,t){var n=e.body,r=e.swapFunc;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:n.htmlcolor,children:n.name}),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:{owner:"You Are Here",stranger:"Occupied",available:"Swap"}[n.occupied],selected:"owner"===n.occupied,color:"stranger"===n.occupied&&"bad",onClick:function(){return r()}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",bold:!0,color:{Dead:"bad",Unconscious:"average",Conscious:"good"}[n.status],children:n.status}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Jelly",children:n.exoticblood}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:n.area})]})})};t.BodyEntry=c},function(e,t,n){"use strict";t.__esModule=!0,t.SmartVend=void 0;var o=n(0),r=n(33),a=n(2),i=n(1),c=n(4);t.SmartVend=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Storage",buttons:!!d.isdryer&&(0,o.createComponentVNode)(2,i.Button,{icon:d.drying?"stop":"tint",onClick:function(){return l("Dry")},children:d.drying?"Stop drying":"Dry"}),children:0===d.contents.length&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Unfortunately, this ",d.name," is empty."]})||(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Item"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:d.verb?d.verb:"Dispense"})]}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:e.amount}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.Button,{content:"One",disabled:e.amount<1,onClick:function(){return l("Release",{name:e.name,amount:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Many",disabled:e.amount<=1,onClick:function(){return l("Release",{name:e.name})}})]})]},t)}))(d.contents)]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Smes=function(e,t){var n,c,l=(0,r.useBackend)(t),d=l.act,u=l.data;return n=u.capacityPercent>=100?"good":u.inputting?"average":"bad",c=u.outputting?"good":u.charge>0?"average":"bad",(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:.01*u.capacityPercent,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]}})}),(0,o.createComponentVNode)(2,a.Section,{title:"Input",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u.inputAttempt?"sync-alt":"times",selected:u.inputAttempt,onClick:function(){return d("tryinput")},children:u.inputAttempt?"Auto":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:n,children:u.capacityPercent>=100?"Fully Charged":u.inputting?"Charging":"Not Charging"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.inputLevel/u.inputLevelMax,children:u.inputLevel_text})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust Input",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===u.inputLevel,onClick:function(){return d("input",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===u.inputLevel,onClick:function(){return d("input",{adjust:-1e4})}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(u.inputLevel/1e3),unit:"kW",width:"65px",minValue:0,maxValue:u.inputLevelMax/1e3,onChange:function(e,t){return d("input",{target:1e3*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:u.inputLevel===u.inputLevelMax,onClick:function(){return d("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:u.inputLevel===u.inputLevelMax,onClick:function(){return d("input",{target:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available",children:u.inputAvailable})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Output",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u.outputAttempt?"power-off":"times",selected:u.outputAttempt,onClick:function(){return d("tryoutput")},children:u.outputAttempt?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:c,children:u.outputting?"Sending":u.charge>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u.outputLevel/u.outputLevelMax,children:u.outputLevel_text})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust Output",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===u.outputLevel,onClick:function(){return d("output",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===u.outputLevel,onClick:function(){return d("output",{adjust:-1e4})}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(u.outputLevel/1e3),unit:"kW",width:"65px",minValue:0,maxValue:u.outputLevelMax/1e3,onChange:function(e,t){return d("output",{target:1e3*t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:u.outputLevel===u.outputLevelMax,onClick:function(){return d("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:u.outputLevel===u.outputLevelMax,onClick:function(){return d("output",{target:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outputting",children:u.outputUsed})]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SmokeMachine=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SmokeMachine=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.TankContents,u=l.TankCurrentVolume,s=l.TankMaxVolume,p=l.active,m=l.setting,f=l.maxSetting,h=void 0===f?[]:f;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Dispersal Tank",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",selected:p,content:p?"On":"Off",onClick:function(){return c("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:u/s,ranges:{bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{initial:0,value:u||0})," / "+s]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:m===e,icon:"plus",content:3*e,disabled:h0?"good":"bad",children:h})]})}),(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,l,{generated:s})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Off",selected:0===m,onClick:function(){return u("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"clock-o",content:"Timed",selected:1===m,onClick:function(){return u("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",content:"Auto",selected:2===m,disabled:!C,onClick:function(){return u("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Angle",children:[(0===m||1===m)&&(0,o.createComponentVNode)(2,i.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){return Math.round(360+e)%360},onDrag:function(e,t){return u("angle",{value:t})}}),1===m&&(0,o.createComponentVNode)(2,i.NumberInput,{width:"80px",unit:"\xb0/h",step:5,stepPixelSize:2,minValue:-7200,maxValue:7200,value:f,format:function(e){return(Math.sign(e)>0?"+":"-")+(0,r.toFixed)(Math.abs(e))},onDrag:function(e,t){return u("rate",{value:t})}}),2===m&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mt:"3px",children:[p+" \xb0"," (auto)"]})]})]})})]})})};var l=function(e,t){var n=e.generated;return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[6e4,Infinity],average:[3e4,6e4],bad:[-Infinity,3e4]},minValue:0,maxValue:9e4,value:n,children:[n," W"]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpaceHeater=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SpaceHeater=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",disabled:!l.hasPowercell||!l.open,onClick:function(){return c("eject")}}),(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,disabled:!l.hasPowercell,onClick:function(){return c("power")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell",color:!l.hasPowercell&&"bad",children:l.hasPowercell&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.powerLevel/100,ranges:{good:[.6,Infinity],average:[.3,.6],bad:[-Infinity,.3]},children:[l.powerLevel,"%"]})||"None"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Thermostat",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperature",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"18px",color:Math.abs(l.targetTemp-l.currentTemp)>50?"bad":Math.abs(l.targetTemp-l.currentTemp)>20?"average":"good",children:[l.currentTemp,"\xb0C"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:l.open&&(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.targetTemp),width:"65px",unit:"\xb0C",minValue:l.minTemp,maxValue:l.maxTemp,onChange:function(e,t){return c("target",{target:t})}})||l.targetTemp+"\xb0C"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:l.open?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"thermometer-half",content:"Auto",selected:"auto"===l.mode,onClick:function(){return c("mode",{mode:"auto"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fire-alt",content:"Heat",selected:"heat"===l.mode,onClick:function(){return c("mode",{mode:"heat"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fan",content:"Cool",selected:"cool"===l.mode,onClick:function(){return c("mode",{mode:"cool"})}})],4):"Auto"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider)]})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Jump",onClick:function(){return c("jump",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Spawn",onClick:function(){return c("spawn",{name:e.name})}})],4),children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,mb:1,fontSize:"20px",children:e.short_desc}),(0,o.createComponentVNode)(2,a.Box,{children:e.flavor_text}),!!e.important_info&&(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,color:"bad",fontSize:"26px",children:e.important_info})]},e.name)}))})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorageUnit=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.SuitStorageUnit=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.locked,u=l.open,s=l.safeties,p=l.uv_active,m=l.occupied,f=l.suit,h=l.helmet,C=l.mask,g=l.storage;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[!(!m||!s)&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Biological entity detected in suit chamber. Please remove before continuing with operation."}),p&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})||(0,o.createComponentVNode)(2,a.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!u&&(0,o.createComponentVNode)(2,a.Button,{icon:d?"unlock":"lock",content:d?"Unlock":"Lock",onClick:function(){return c("lock")}}),!d&&(0,o.createComponentVNode)(2,a.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Close":"Open",onClick:function(){return c("door")}})],0),children:d&&(0,o.createComponentVNode)(2,a.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,a.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,a.Icon,{name:"lock"})]})||u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"square":"square-o",content:h||"Empty",disabled:!h,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"square":"square-o",content:f||"Empty",disabled:!f,onClick:function(){return c("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return c("dispense",{item:"mask"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Storage",children:(0,o.createComponentVNode)(2,a.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){return c("dispense",{item:"storage"})}})})]})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:m&&s,textAlign:"center",onClick:function(){return c("uv")}})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.Tank=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:[l.tankPressure," kPa"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,onClick:function(){return c("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(e,t){return c("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,onClick:function(){return c("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,onClick:function(){return c("pressure",{pressure:"reset"})}})]})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plasma",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return c("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return c("oxygen")}}),children:l.oxygen})]})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsInteraction=void 0;var o=n(0),r=n(2),a=n(19),i=n(38),c=n(1),l=n(4);t.TelecommsInteraction=function(e,t){var n=(0,r.useBackend)(t),d=n.act,u=n.data,s=u.notice,p=void 0===s?"":s,m=u.multitool,f=void 0!==m&&m,h=u.multitool_buf,C=void 0===h?null:h,g=u.machine,b=void 0===g?null:g,N=u.links,v=void 0===N?[]:N,V=u.freq_listening,y=void 0===V?[]:V,_=b.power,x=void 0!==_&&_,k=b.id,w=void 0===k?"NULL":k,L=b.network,B=b.prefab,S=void 0!==B&&B,I=b.hidden,T=void 0!==I&&I,E=b.isrelay,A=void 0!==E&&E,P=b.isbus,M=void 0!==P&&P;return(0,o.createComponentVNode)(2,l.Window,{resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:p}),(0,o.createComponentVNode)(2,c.Section,{title:"Network Access",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Status",children:(0,o.createComponentVNode)(2,c.Button,{content:x?"On":"Off",icon:x?"power-off":"times",color:x?"good":"bad",onClick:function(){return d("toggle")}})}),x?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Input,{value:w,width:"150px",maxLength:255,onChange:function(e,t){return d("machine",{id:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Input,{value:L,width:"150px",maxLength:15,onChange:function(e,t){return d("machine",{network:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",color:x?"good":"bad",children:S?"TRUE":"FALSE"}),A?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{content:b.broadcast?"YES":"NO",icon:b.broadcast?"check":"times",color:b.broadcast?"good":"bad",onClick:function(){return d("relay",{broadcast:!0})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receiving",children:(0,o.createComponentVNode)(2,c.Button,{content:b.receiving?"YES":"NO",icon:b.receiving?"check":"times",color:b.receiving?"good":"bad",onClick:function(){return d("relay",{receiving:!0})}})})],4):"",M?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:[(0,o.createComponentVNode)(2,c.Button,{content:b.chang_frequency?"Enabled":"Disabled",icon:b.chang_frequency?"power-off":"times",color:b.chang_frequency?"good":"bad",onClick:function(){return d("frequency",{toggle:!0})}}),b.chang_frequency?(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:120.1,maxValue:159.9,value:b.chang_freq_value/10,format:function(e){return(0,a.toFixed)(e,1)},onChange:function(e,t){return d("frequency",{adjust:t})}}):""]}):"",T?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"ACTIVE"}):"",f?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool buffer",buttons:C?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Link",onClick:function(){return d("multitool",{Link:!0})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Flush",onClick:function(){return d("multitool",{Flush:!0})}})],4):(0,o.createComponentVNode)(2,c.Button,{content:"Add Machine",onClick:function(){return d("multitool",{Add:!0})}}),children:C?C.name+" ("+C.id+")":""}):""],0):""]}),x?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Linked Network Entities",level:2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:v.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Remove",onClick:function(){return d("unlink",{value:e.ref})}}),children:e.name+" ("+e.id+")"},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{content:"Add Filter",onClick:function(){return d("freq",{add:!0})}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),y&&y.length?y.map((function(e){var t=i.RADIO_CHANNELS.find((function(t){return t.freq===e}));return(0,o.createComponentVNode)(2,c.Button,{content:t?(0,o.createVNode)(1,"span",null,e+" ("+t.name+")",0,{style:"color: "+t.color}):e,onClick:function(){return d("freq",{remove:e})}},e)})):""]})],4):""]})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsLogBrowser=void 0;var o=n(0),r=n(2),a=n(1),i=n(4);t.TelecommsLogBrowser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.notice,u=l.network,s=void 0===u?"NULL":u,p=l.servers,m=l.selected,f=void 0===m?null:m,h=l.selected_logs,C=f&&f.status,g=(0,r.useLocalState)(t,"tab","servers"),b=g[0],N=g[1];return(0,o.createComponentVNode)(2,i.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:d}),(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,a.Input,{value:s,width:"150px",maxLength:15,onChange:function(e,t){return c("network",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Flush Buffer",icon:"minus-circle",disabled:!p.length||!!f,onClick:function(){return c("release")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Probe Network",icon:"sync",disabled:f,onClick:function(){return c("probe")}})],4),children:p?p.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Server",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Disconnect",disabled:!f,onClick:function(){return c("mainmenu")}}),children:f?f.name+" ("+f.id+")":"None (None)"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recorded Traffic",children:f?f.traffic<=1024?f.traffic+" Gigabytes":Math.round(f.traffic/1024)+" Terrabytes":"0 Gigabytes"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",color:C?"good":"bad",children:C?"Running":"Server down!"})]})}),(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"servers"===b,onClick:function(){return N("servers")},children:"Servers"},"servers"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{disabled:!C,selected:"messages"===b,onClick:function(){return N("messages")},children:"Messages"},"messages")]}),"servers"===b&&(0,o.createComponentVNode)(2,a.Section,{children:p&&p.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:""+e.ref,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Connect",selected:l.selected&&e.ref===l.selected.ref,onClick:function(){return c("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"}),"messages"===b&&(0,o.createComponentVNode)(2,a.Section,{title:"Logs",children:C&&h?h.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{level:4,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filename",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Delete",onClick:function(){return c("delete",{value:e.ref})}}),children:e.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:e.input_type}),e.source&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"["+e.source.name+"] (Job: ["+e.source.job+"])"}),e.race&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:e.race}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:e.message})]})},e.ref)})):"No server selected!"})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsMonitor=void 0;var o=n(0),r=n(2),a=n(38),i=n(1),c=n(4);t.TelecommsMonitor=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data,u=d.notice,s=d.network,p=void 0===s?"NULL":s,m=d.servers,f=d.selected,h=void 0===f?null:f,C=d.selected_servers,g=h&&h.status,b=(0,r.useLocalState)(t,"tab","network_entities"),N=b[0],v=b[1];return(0,o.createComponentVNode)(2,c.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[!!u&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:u}),(0,o.createComponentVNode)(2,i.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,i.Input,{value:p,width:"150px",maxLength:15,onChange:function(e,t){return a("network",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{content:"Flush Buffer",icon:"minus-circle",disabled:!m.length||!!h,onClick:function(){return a("release")}}),(0,o.createComponentVNode)(2,i.Button,{content:"Probe Network",icon:"sync",disabled:h,onClick:function(){return a("probe")}})],4),children:h?C?C.length+" currently probed and buffered":"Connected devices is empty!":m?m.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Selected Entity",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Disconnect",icon:"minus-circle",disabled:!h,onClick:function(){return a("mainmenu")}}),children:h?h.name+" ("+h.id+")":"None (None)"})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"network_entities"===N,onClick:function(){return v("network_entities")},children:"Network Entities"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{disabled:!h,selected:"entity_status"===N,onClick:function(){return v("entity_status")},children:"Entity Status"})]}),"network_entities"===N&&(0,o.createComponentVNode)(2,i.Section,{title:"Detected Network Entities",children:m&&m.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Connect",selected:h&&e.ref===h.ref,onClick:function(){return a("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"}),"entity_status"===N&&(0,o.createComponentVNode)(2,i.Section,{title:"Network Entity Status",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:g?"good":"bad",children:g?"Running":"Server down!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network Traffic",color:g&&h.netspeed0?"good":"bad",children:[m," TC"]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,i.Input,{value:v,onInput:function(e,t){return V(t)},ml:1,mr:1}),(0,o.createComponentVNode)(2,i.Button,{icon:s?"list":"info",content:s?"Compact":"Detailed",onClick:function(){return u("compact_toggle")}}),!!p&&(0,o.createComponentVNode)(2,i.Button,{icon:"lock",content:"Lock",onClick:function(){return u("lock")}})],0),children:v.length>0?(0,o.createVNode)(1,"table","Table",(0,o.createComponentVNode)(2,d,{compact:!0,items:h.flatMap((function(e){return e.items||[]})).filter((function(e){var t=v.toLowerCase();return String(e.name+e.desc).toLowerCase().includes(t)})),hoveredItem:g,onBuyMouseOver:function(e){return b(e)},onBuyMouseOut:function(e){return b({})},onBuy:function(e){return u("buy",{item:e.name})}}),2):(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:h.map((function(e,t){var n=e.name,r=e.items;if(null!==r)return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:_===t,onClick:function(){return x(t)},children:[n," (",r.length,")"]},n)}))})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,l,{activeCategory:_})})]})})})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.data,i=n.act,c=r.compact_mode,l=r.telecrystals,u=r.categories,s=void 0===u?[]:u,p=e.activeCategory,m=(0,a.useLocalState)(t,"hover",{}),f=m[0],h=m[1],C=s[p].items;return(0,o.createComponentVNode)(2,d,{compact:c,items:C,hoveredItem:f,telecrystals:l,onBuyMouseOver:function(e){return h(e)},onBuyMouseOut:function(e){return h({})},onBuy:function(e){return i("buy",{item:e.name})}})},d=function(e,t){var n=e.items,a=e.hoveredItem,c=e.telecrystals,l=e.compact,d=e.onBuy,u=e.onBuyMouseOver,s=e.onBuyMouseOut,p=a&&a.cost||0;return l?(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:n.map((function(e){var t=a&&a.name!==e.name,n=c-p