diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index 386f77f9b6a..cb0ecc6c266 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -334,7 +334,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function d(h,s){if(h==null)return{};var l={},v=Object.keys(h),c,p;for(p=0;p=0)&&(l[c]=h[c]);return l}var u=n.Modal=function(){function h(s){var l=s.className,v=s.children,c=s.onEnter,p=d(s,i),f;return c&&(f=function(){function g(m){var I=m.which||m.keyCode;I===13&&c(m)}return g}()),(0,e.createComponentVNode)(2,a.Dimmer,{onKeyDown:f,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,r.classes)(["Modal",l,(0,o.computeBoxClassName)(p)]),v,0,Object.assign({},(0,o.computeBoxProps)(p))))})}return h}()},82161:function(y,n,t){"use strict";n.__esModule=!0,n.NanoMap=void 0;var e=t(58734),r=t(35239),o=t(54777);function a(v,c){v.prototype=Object.create(c.prototype),v.prototype.constructor=v,i(v,c)}function i(v,c){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(f,g){return f.__proto__=g,f}return p}(),i(v,c)}var d=function(c){return c.stopPropagation&&c.stopPropagation(),c.preventDefault&&c.preventDefault(),c.cancelBubble=!0,c.returnValue=!1,!1},u=280,h=n.NanoMap=function(v){a(c,v);function c(f){var g;g=v.call(this,f)||this;var m=window.innerWidth/2-256,I=window.innerHeight/2-256;return g.state={offsetX:m,offsetY:I,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},g.handleDragStart=function(O){g.ref=O.target,g.setState({dragging:!1,originX:O.screenX,originY:O.screenY}),document.addEventListener("mousemove",g.handleDragMove),document.addEventListener("mouseup",g.handleDragEnd),d(O)},g.handleDragMove=function(O){g.setState(function(b){var C=Object.assign({},b),E=O.screenX-C.originX,S=O.screenY-C.originY;return b.dragging?(C.offsetX+=E,C.offsetY+=S,C.originX=O.screenX,C.originY=O.screenY):C.dragging=!0,C}),d(O)},g.handleDragEnd=function(O){g.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",g.handleDragMove),document.removeEventListener("mouseup",g.handleDragEnd),d(O)},g.handleOnClick=function(O){var b=O.offsetX/g.state.zoom/u,C=1-O.offsetY/g.state.zoom/u;O.byondX=b,O.byondY=C,typeof g.props.onClick=="function"&&g.props.onClick(O)},g.handleZoom=function(O,b){g.setState(function(C){var E=Math.min(Math.max(b,1),8),S=(E-C.zoom)*1.5;C.zoom=E;var T=C.offsetX-262*S;T<-500&&(T=-500),T>500&&(T=500);var A=C.offsetY-256*S;return A<-200&&(A=-200),A>200&&(A=200),C.offsetX=T,C.offsetY=A,f.onZoom&&f.onZoom(C.zoom),C})},g}var p=c.prototype;return p.render=function(){function f(){var g=(0,o.useBackend)(this.context),m=g.config,I=this.state,O=I.dragging,b=I.offsetX,C=I.offsetY,E=I.zoom,S=E===void 0?1:E,T=this.props.children,A=m.map+"_nanomap_z"+m.mapZLevel+".png",P=u*S+"px",N={width:P,height:P,"margin-top":C+"px","margin-left":b+"px",overflow:"hidden",position:"relative","background-image":"url("+A+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:O?"move":"auto"};return(0,e.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,r.Box,{style:N,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.createComponentVNode)(2,r.Box,{children:T})}),(0,e.createComponentVNode)(2,l,{zoom:S,onZoom:this.handleZoom})]})}return f}(),c}(e.Component),s=function(c,p){var f=c.x,g=c.y,m=c.zoom,I=m===void 0?1:m,O=c.icon,b=c.tooltip,C=c.color,E=c.onClick,S=function(N){d(N),E&&E(N)},T=f*2*I-I-3,A=g*2*I-I-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:A+"px",left:T+"px",onMouseDown:S,children:[(0,e.createComponentVNode)(2,r.Icon,{name:O,color:C,fontSize:"6px"}),(0,e.createComponentVNode)(2,r.Tooltip,{content:b})]}),2)};h.Marker=s;var l=function(c,p){var f=(0,o.useBackend)(p),g=f.act,m=f.config,I=f.data;return(0,e.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,r.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(){function O(b){return b+"x"}return O}(),value:c.zoom,onDrag:function(){function O(b,C){return c.onZoom(b,C)}return O}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Z-Level",children:I.map_levels.sort(function(O,b){return Number(O)-Number(b)}).map(function(O){return(0,e.createComponentVNode)(2,r.Button,{selected:~~O===~~m.mapZLevel,content:O,onClick:function(){function b(){g("setZLevel",{mapZLevel:O})}return b}()},O)})})]})})};h.Zoomer=l},38874:function(y,n,t){"use strict";n.__esModule=!0,n.NoticeBox=void 0;var e=t(58734),r=t(59641),o=t(2433),a=["className","color","info","warning","success","danger"];/** + */function d(h,s){if(h==null)return{};var l={},v=Object.keys(h),c,p;for(p=0;p=0)&&(l[c]=h[c]);return l}var u=n.Modal=function(){function h(s){var l=s.className,v=s.children,c=s.onEnter,p=d(s,i),f;return c&&(f=function(){function g(m){var I=m.which||m.keyCode;I===13&&c(m)}return g}()),(0,e.createComponentVNode)(2,a.Dimmer,{onKeyDown:f,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,r.classes)(["Modal",l,(0,o.computeBoxClassName)(p)]),v,0,Object.assign({},(0,o.computeBoxProps)(p))))})}return h}()},82161:function(y,n,t){"use strict";n.__esModule=!0,n.NanoMap=void 0;var e=t(58734),r=t(35239),o=t(54777);function a(v,c){v.prototype=Object.create(c.prototype),v.prototype.constructor=v,i(v,c)}function i(v,c){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(f,g){return f.__proto__=g,f}return p}(),i(v,c)}var d=function(c){return c.stopPropagation&&c.stopPropagation(),c.preventDefault&&c.preventDefault(),c.cancelBubble=!0,c.returnValue=!1,!1},u=320,h=n.NanoMap=function(v){a(c,v);function c(f){var g;g=v.call(this,f)||this;var m=window.innerWidth/2-256,I=window.innerHeight/2-256;return g.state={offsetX:m,offsetY:I,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},g.handleDragStart=function(O){g.ref=O.target,g.setState({dragging:!1,originX:O.screenX,originY:O.screenY}),document.addEventListener("mousemove",g.handleDragMove),document.addEventListener("mouseup",g.handleDragEnd),d(O)},g.handleDragMove=function(O){g.setState(function(b){var C=Object.assign({},b),E=O.screenX-C.originX,S=O.screenY-C.originY;return b.dragging?(C.offsetX+=E,C.offsetY+=S,C.originX=O.screenX,C.originY=O.screenY):C.dragging=!0,C}),d(O)},g.handleDragEnd=function(O){g.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",g.handleDragMove),document.removeEventListener("mouseup",g.handleDragEnd),d(O)},g.handleOnClick=function(O){var b=O.offsetX/g.state.zoom/u,C=1-O.offsetY/g.state.zoom/u;O.byondX=b,O.byondY=C,typeof g.props.onClick=="function"&&g.props.onClick(O)},g.handleZoom=function(O,b){g.setState(function(C){var E=Math.min(Math.max(b,1),8),S=(E-C.zoom)*1.5;C.zoom=E;var T=C.offsetX-262*S;T<-500&&(T=-500),T>500&&(T=500);var A=C.offsetY-256*S;return A<-200&&(A=-200),A>200&&(A=200),C.offsetX=T,C.offsetY=A,f.onZoom&&f.onZoom(C.zoom),C})},g}var p=c.prototype;return p.render=function(){function f(){var g=(0,o.useBackend)(this.context),m=g.config,I=this.state,O=I.dragging,b=I.offsetX,C=I.offsetY,E=I.zoom,S=E===void 0?1:E,T=this.props.children,A=m.map+"_nanomap_z"+m.mapZLevel+".png",P=u*S+"px",N={width:P,height:P,"margin-top":C+"px","margin-left":b+"px",overflow:"hidden",position:"relative","background-image":"url("+A+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:O?"move":"auto"};return(0,e.createComponentVNode)(2,r.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,r.Box,{style:N,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.createComponentVNode)(2,r.Box,{children:T})}),(0,e.createComponentVNode)(2,l,{zoom:S,onZoom:this.handleZoom})]})}return f}(),c}(e.Component),s=function(c,p){var f=c.x,g=c.y,m=c.zoom,I=m===void 0?1:m,O=c.icon,b=c.tooltip,C=c.color,E=c.onClick,S=function(N){d(N),E&&E(N)},T=f*2*I-I-3,A=g*2*I-I-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,r.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:A+"px",left:T+"px",onMouseDown:S,children:[(0,e.createComponentVNode)(2,r.Icon,{name:O,color:C,fontSize:"6px"}),(0,e.createComponentVNode)(2,r.Tooltip,{content:b})]}),2)};h.Marker=s;var l=function(c,p){var f=(0,o.useBackend)(p),g=f.act,m=f.config,I=f.data;return(0,e.createComponentVNode)(2,r.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,r.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(){function O(b){return b+"x"}return O}(),value:c.zoom,onDrag:function(){function O(b,C){return c.onZoom(b,C)}return O}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Z-Level",children:I.map_levels.sort(function(O,b){return Number(O)-Number(b)}).map(function(O){return(0,e.createComponentVNode)(2,r.Button,{selected:~~O===~~m.mapZLevel,content:O,onClick:function(){function b(){g("setZLevel",{mapZLevel:O})}return b}()},O)})})]})})};h.Zoomer=l},38874:function(y,n,t){"use strict";n.__esModule=!0,n.NoticeBox=void 0;var e=t(58734),r=t(59641),o=t(2433),a=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 785b5ecf7c5..0fbff566d2c 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,8 +1,8 @@ -(function(){(function(){var qt={50252:function(x,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=d;var e=s(n(4254)),a=s(n(92957)),t=s(n(97262)),o=s(n(66689)),f=s(n(47307)),V=s(n(63889)),y=s(n(27343)),k=s(n(49883));r.detectOverflow=k.default;var C=n(75011);function s(c){return c&&c.__esModule?c:{default:c}}var m={placement:"bottom",modifiers:[],strategy:"absolute"};function u(){for(var c=arguments.length,l=new Array(c),h=0;h0&&(0,a.round)(s.width)/y.offsetWidth||1,u=y.offsetHeight>0&&(0,a.round)(s.height)/y.offsetHeight||1);var d=(0,e.isElement)(y)?(0,t.default)(y):window,i=d.visualViewport,c=!(0,o.default)()&&C,l=(s.left+(c&&i?i.offsetLeft:0))/m,h=(s.top+(c&&i?i.offsetTop:0))/u,p=s.width/m,v=s.height/u;return{width:p,height:v,top:h,right:l+p,bottom:h+v,left:l,x:l,y:h}}},35823:function(x,r,n){"use strict";r.__esModule=!0,r.default=v;var e=n(83996),a=c(n(75047)),t=c(n(37407)),o=c(n(97262)),f=c(n(66689)),V=c(n(36748)),y=c(n(77060)),k=n(75011),C=c(n(97617)),s=c(n(84330)),m=c(n(89691)),u=c(n(72793)),d=c(n(14834)),i=n(14194);function c(b){return b&&b.__esModule?b:{default:b}}function l(b,g){var N=(0,C.default)(b,!1,g==="fixed");return N.top=N.top+b.clientTop,N.left=N.left+b.clientLeft,N.bottom=N.top+b.clientHeight,N.right=N.left+b.clientWidth,N.width=b.clientWidth,N.height=b.clientHeight,N.x=N.left,N.y=N.top,N}function h(b,g,N){return g===e.viewport?(0,d.default)((0,a.default)(b,N)):(0,k.isElement)(g)?l(g,N):(0,d.default)((0,t.default)((0,V.default)(b)))}function p(b){var g=(0,o.default)((0,s.default)(b)),N=["absolute","fixed"].indexOf((0,y.default)(b).position)>=0,B=N&&(0,k.isHTMLElement)(b)?(0,f.default)(b):b;return(0,k.isElement)(B)?g.filter(function(S){return(0,k.isElement)(S)&&(0,m.default)(S,B)&&(0,u.default)(S)!=="body"}):[]}function v(b,g,N,B){var S=g==="clippingParents"?p(b):[].concat(g),L=[].concat(S,[N]),I=L[0],w=L.reduce(function(T,E){var A=h(b,E,B);return T.top=(0,i.max)(A.top,T.top),T.right=(0,i.min)(A.right,T.right),T.bottom=(0,i.min)(A.bottom,T.bottom),T.left=(0,i.max)(A.left,T.left),T},h(b,I,B));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},4254:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=C(n(97617)),a=C(n(86394)),t=C(n(72793)),o=n(75011),f=C(n(44653)),V=C(n(36748)),y=C(n(9135)),k=n(14194);function C(u){return u&&u.__esModule?u:{default:u}}function s(u){var d=u.getBoundingClientRect(),i=(0,k.round)(d.width)/u.offsetWidth||1,c=(0,k.round)(d.height)/u.offsetHeight||1;return i!==1||c!==1}function m(u,d,i){i===void 0&&(i=!1);var c=(0,o.isHTMLElement)(d),l=(0,o.isHTMLElement)(d)&&s(d),h=(0,V.default)(d),p=(0,e.default)(u,l,i),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(c||!c&&!i)&&(((0,t.default)(d)!=="body"||(0,y.default)(h))&&(v=(0,a.default)(d)),(0,o.isHTMLElement)(d)?(b=(0,e.default)(d,!0),b.x+=d.clientLeft,b.y+=d.clientTop):h&&(b.x=(0,f.default)(h))),{x:p.left+v.scrollLeft-b.x,y:p.top+v.scrollTop-b.y,width:p.width,height:p.height}}},77060:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},36748:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75011);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},37407:function(x,r,n){"use strict";r.__esModule=!0,r.default=y;var e=V(n(36748)),a=V(n(77060)),t=V(n(44653)),o=V(n(10416)),f=n(14194);function V(k){return k&&k.__esModule?k:{default:k}}function y(k){var C,s=(0,e.default)(k),m=(0,o.default)(k),u=(C=k.ownerDocument)==null?void 0:C.body,d=(0,f.max)(s.scrollWidth,s.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),i=(0,f.max)(s.scrollHeight,s.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),c=-m.scrollLeft+(0,t.default)(k),l=-m.scrollTop;return(0,a.default)(u||s).direction==="rtl"&&(c+=(0,f.max)(s.clientWidth,u?u.clientWidth:0)-d),{width:d,height:i,x:c,y:l}}},89821:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},92957:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97617));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:y}}},72793:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},86394:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(10416)),a=f(n(1866)),t=n(75011),o=f(n(89821));function f(y){return y&&y.__esModule?y:{default:y}}function V(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},66689:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=k(n(1866)),a=k(n(72793)),t=k(n(77060)),o=n(75011),f=k(n(46795)),V=k(n(84330)),y=k(n(36110));function k(u){return u&&u.__esModule?u:{default:u}}function C(u){return!(0,o.isHTMLElement)(u)||(0,t.default)(u).position==="fixed"?null:u.offsetParent}function s(u){var d=/firefox/i.test((0,y.default)()),i=/Trident/i.test((0,y.default)());if(i&&(0,o.isHTMLElement)(u)){var c=(0,t.default)(u);if(c.position==="fixed")return null}var l=(0,V.default)(u);for((0,o.isShadowRoot)(l)&&(l=l.host);(0,o.isHTMLElement)(l)&&["html","body"].indexOf((0,a.default)(l))<0;){var h=(0,t.default)(l);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||d&&h.willChange==="filter"||d&&h.filter&&h.filter!=="none")return l;l=l.parentNode}return null}function m(u){for(var d=(0,e.default)(u),i=C(u);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=C(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?d:i||s(u)||d}},84330:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(72793)),a=o(n(36748)),t=n(75011);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},89523:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(84330)),a=f(n(9135)),t=f(n(72793)),o=n(75011);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:V((0,e.default)(y))}},75047:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(1866)),a=f(n(36748)),t=f(n(44653)),o=f(n(45407));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){var C=(0,e.default)(y),s=(0,a.default)(y),m=C.visualViewport,u=s.clientWidth,d=s.clientHeight,i=0,c=0;if(m){u=m.width,d=m.height;var l=(0,o.default)();(l||!l&&k==="fixed")&&(i=m.offsetLeft,c=m.offsetTop)}return{width:u,height:d,x:i+(0,t.default)(y),y:c}}},1866:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},10416:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:V,scrollTop:y}}},44653:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(97617)),a=o(n(36748)),t=o(n(10416));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},75011:function(x,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var y=(0,e.default)(V).Element;return V instanceof y||V instanceof Element}function o(V){var y=(0,e.default)(V).HTMLElement;return V instanceof y||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(V).ShadowRoot;return V instanceof y||V instanceof ShadowRoot}},45407:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(36110));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},9135:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(77060));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,y=f.overflowX,k=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+k+y)}},46795:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(72793));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},97262:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(89523)),a=f(n(84330)),t=f(n(1866)),o=f(n(9135));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){var C;k===void 0&&(k=[]);var s=(0,e.default)(y),m=s===((C=y.ownerDocument)==null?void 0:C.body),u=(0,t.default)(s),d=m?[u].concat(u.visualViewport||[],(0,o.default)(s)?s:[]):s,i=k.concat(d);return m?i:i.concat(V((0,a.default)(d)))}},83996:function(x,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",C=r.viewport="viewport",s=r.popper="popper",m=r.reference="reference",u=r.variationPlacements=f.reduce(function(S,L){return S.concat([L+"-"+V,L+"-"+y])},[]),d=r.placements=[].concat(f,[o]).reduce(function(S,L){return S.concat([L,L+"-"+V,L+"-"+y])},[]),i=r.beforeRead="beforeRead",c=r.read="read",l=r.afterRead="afterRead",h=r.beforeMain="beforeMain",p=r.main="main",v=r.afterMain="afterMain",b=r.beforeWrite="beforeWrite",g=r.write="write",N=r.afterWrite="afterWrite",B=r.modifierPhases=[i,c,l,h,p,v,b,g,N]},92935:function(x,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(83996);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(97934);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(50252);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(1728);r.createPopper=f.createPopper;var V=n(88037);r.createPopperLite=V.createPopper},38621:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(72793)),a=n(75011);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(C){var s=k.styles[C]||{},m=k.attributes[C]||{},u=k.elements[C];!(0,a.isHTMLElement)(u)||!(0,e.default)(u)||(Object.assign(u.style,s),Object.keys(m).forEach(function(d){var i=m[d];i===!1?u.removeAttribute(d):u.setAttribute(d,i===!0?"":i)}))})}function f(y){var k=y.state,C={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,C.popper),k.styles=C,k.elements.arrow&&Object.assign(k.elements.arrow.style,C.arrow),function(){Object.keys(k.elements).forEach(function(s){var m=k.elements[s],u=k.attributes[s]||{},d=Object.keys(k.styles.hasOwnProperty(s)?k.styles[s]:C[s]),i=d.reduce(function(c,l){return c[l]="",c},{});!(0,a.isHTMLElement)(m)||!(0,e.default)(m)||(Object.assign(m.style,i),Object.keys(u).forEach(function(c){m.removeAttribute(c)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},90860:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=s(n(85312)),a=s(n(92957)),t=s(n(89691)),o=s(n(66689)),f=s(n(86274)),V=n(52855),y=s(n(10632)),k=s(n(59597)),C=n(83996);function s(c){return c&&c.__esModule?c:{default:c}}var m=function(){function c(l,h){return l=typeof l=="function"?l(Object.assign({},h.rects,{placement:h.placement})):l,(0,y.default)(typeof l!="number"?l:(0,k.default)(l,C.basePlacements))}return c}();function u(c){var l,h=c.state,p=c.name,v=c.options,b=h.elements.arrow,g=h.modifiersData.popperOffsets,N=(0,e.default)(h.placement),B=(0,f.default)(N),S=[C.left,C.right].indexOf(N)>=0,L=S?"height":"width";if(!(!b||!g)){var I=m(v.padding,h),w=(0,a.default)(b),T=B==="y"?C.top:C.left,E=B==="y"?C.bottom:C.right,A=h.rects.reference[L]+h.rects.reference[B]-g[B]-h.rects.popper[L],M=g[B]-h.rects.reference[B],R=(0,o.default)(b),O=R?B==="y"?R.clientHeight||0:R.clientWidth||0:0,F=A/2-M/2,D=I[T],j=O-w[L]-I[E],_=O/2-w[L]/2+F,z=(0,V.within)(D,_,j),H=B;h.modifiersData[p]=(l={},l[H]=z,l.centerOffset=z-_,l)}}function d(c){var l=c.state,h=c.options,p=h.element,v=p===void 0?"[data-popper-arrow]":p;v!=null&&(typeof v=="string"&&(v=l.elements.popper.querySelector(v),!v)||(0,t.default)(l.elements.popper,v)&&(l.elements.arrow=v))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:u,effect:d,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},15224:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=u;var e=n(83996),a=C(n(66689)),t=C(n(1866)),o=C(n(36748)),f=C(n(77060)),V=C(n(85312)),y=C(n(48218)),k=n(14194);function C(c){return c&&c.__esModule?c:{default:c}}var s={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m(c,l){var h=c.x,p=c.y,v=l.devicePixelRatio||1;return{x:(0,k.round)(h*v)/v||0,y:(0,k.round)(p*v)/v||0}}function u(c){var l,h=c.popper,p=c.popperRect,v=c.placement,b=c.variation,g=c.offsets,N=c.position,B=c.gpuAcceleration,S=c.adaptive,L=c.roundOffsets,I=c.isFixed,w=g.x,T=w===void 0?0:w,E=g.y,A=E===void 0?0:E,M=typeof L=="function"?L({x:T,y:A}):{x:T,y:A};T=M.x,A=M.y;var R=g.hasOwnProperty("x"),O=g.hasOwnProperty("y"),F=e.left,D=e.top,j=window;if(S){var _=(0,a.default)(h),z="clientHeight",H="clientWidth";if(_===(0,t.default)(h)&&(_=(0,o.default)(h),(0,f.default)(_).position!=="static"&&N==="absolute"&&(z="scrollHeight",H="scrollWidth")),_=_,v===e.top||(v===e.left||v===e.right)&&b===e.end){D=e.bottom;var Q=I&&_===j&&j.visualViewport?j.visualViewport.height:_[z];A-=Q-p.height,A*=B?1:-1}if(v===e.left||(v===e.top||v===e.bottom)&&b===e.end){F=e.right;var Y=I&&_===j&&j.visualViewport?j.visualViewport.width:_[H];T-=Y-p.width,T*=B?1:-1}}var X=Object.assign({position:N},S&&s),$=L===!0?m({x:T,y:A},(0,t.default)(h)):{x:T,y:A};if(T=$.x,A=$.y,B){var G;return Object.assign({},X,(G={},G[D]=O?"0":"",G[F]=R?"0":"",G.transform=(j.devicePixelRatio||1)<=1?"translate("+T+"px, "+A+"px)":"translate3d("+T+"px, "+A+"px, 0)",G))}return Object.assign({},X,(l={},l[D]=O?A+"px":"",l[F]=R?T+"px":"",l.transform="",l))}function d(c){var l=c.state,h=c.options,p=h.gpuAcceleration,v=p===void 0?!0:p,b=h.adaptive,g=b===void 0?!0:b,N=h.roundOffsets,B=N===void 0?!0:N,S={placement:(0,V.default)(l.placement),variation:(0,y.default)(l.placement),popper:l.elements.popper,popperRect:l.rects.popper,gpuAcceleration:v,isFixed:l.options.strategy==="fixed"};l.modifiersData.popperOffsets!=null&&(l.styles.popper=Object.assign({},l.styles.popper,u(Object.assign({},S,{offsets:l.modifiersData.popperOffsets,position:l.options.strategy,adaptive:g,roundOffsets:B})))),l.modifiersData.arrow!=null&&(l.styles.arrow=Object.assign({},l.styles.arrow,u(Object.assign({},S,{offsets:l.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:B})))),l.attributes.popper=Object.assign({},l.attributes.popper,{"data-popper-placement":l.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:d,data:{}}},59953:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var y=V.state,k=V.instance,C=V.options,s=C.scroll,m=s===void 0?!0:s,u=C.resize,d=u===void 0?!0:u,i=(0,e.default)(y.elements.popper),c=[].concat(y.scrollParents.reference,y.scrollParents.popper);return m&&c.forEach(function(l){l.addEventListener("scroll",k.update,t)}),d&&i.addEventListener("resize",k.update,t),function(){m&&c.forEach(function(l){l.removeEventListener("scroll",k.update,t)}),d&&i.removeEventListener("resize",k.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},21128:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(72310)),a=k(n(85312)),t=k(n(53379)),o=k(n(49883)),f=k(n(67450)),V=n(83996),y=k(n(48218));function k(u){return u&&u.__esModule?u:{default:u}}function C(u){if((0,a.default)(u)===V.auto)return[];var d=(0,e.default)(u);return[(0,t.default)(u),d,(0,t.default)(d)]}function s(u){var d=u.state,i=u.options,c=u.name;if(!d.modifiersData[c]._skip){for(var l=i.mainAxis,h=l===void 0?!0:l,p=i.altAxis,v=p===void 0?!0:p,b=i.fallbackPlacements,g=i.padding,N=i.boundary,B=i.rootBoundary,S=i.altBoundary,L=i.flipVariations,I=L===void 0?!0:L,w=i.allowedAutoPlacements,T=d.options.placement,E=(0,a.default)(T),A=E===T,M=b||(A||!I?[(0,e.default)(T)]:C(T)),R=[T].concat(M).reduce(function(re,ie){return re.concat((0,a.default)(ie)===V.auto?(0,f.default)(d,{placement:ie,boundary:N,rootBoundary:B,padding:g,flipVariations:I,allowedAutoPlacements:w}):ie)},[]),O=d.rects.reference,F=d.rects.popper,D=new Map,j=!0,_=R[0],z=0;z=0,$=X?"width":"height",G=(0,o.default)(d,{placement:H,boundary:N,rootBoundary:B,altBoundary:S,padding:g}),Z=X?Y?V.right:V.left:Y?V.bottom:V.top;O[$]>F[$]&&(Z=(0,e.default)(Z));var te=(0,e.default)(Z),q=[];if(h&&q.push(G[Q]<=0),v&&q.push(G[Z]<=0,G[te]<=0),q.every(function(re){return re})){_=H,j=!1;break}D.set(H,q)}if(j)for(var me=I?3:1,pe=function(){function re(ie){var Ve=R.find(function(ke){var Be=D.get(ke);if(Be)return Be.slice(0,ie).every(function(ue){return ue})});if(Ve)return _=Ve,"break"}return re}(),Ne=me;Ne>0;Ne--){var le=pe(Ne);if(le==="break")break}d.placement!==_&&(d.modifiersData[c]._skip=!0,d.placement=_,d.reset=!0)}}var m=r.default={name:"flip",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"],data:{_skip:!1}}},17945:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=t(n(49883));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,C,s){return s===void 0&&(s={x:0,y:0}),{top:k.top-C.height-s.y,right:k.right-C.width+s.x,bottom:k.bottom-C.height+s.y,left:k.left-C.width-s.x}}function f(k){return[e.top,e.right,e.bottom,e.left].some(function(C){return k[C]>=0})}function V(k){var C=k.state,s=k.name,m=C.rects.reference,u=C.rects.popper,d=C.modifiersData.preventOverflow,i=(0,a.default)(C,{elementContext:"reference"}),c=(0,a.default)(C,{altBoundary:!0}),l=o(i,m),h=o(c,u,d),p=f(l),v=f(h);C.modifiersData[s]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:v},C.attributes.popper=Object.assign({},C.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},97934:function(x,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=s(n(38621));r.applyStyles=e.default;var a=s(n(90860));r.arrow=a.default;var t=s(n(15224));r.computeStyles=t.default;var o=s(n(59953));r.eventListeners=o.default;var f=s(n(21128));r.flip=f.default;var V=s(n(17945));r.hide=V.default;var y=s(n(90642));r.offset=y.default;var k=s(n(23786));r.popperOffsets=k.default;var C=s(n(78230));r.preventOverflow=C.default;function s(m){return m&&m.__esModule?m:{default:m}}},90642:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(85312)),a=n(83996);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,C){var s=(0,e.default)(y),m=[a.left,a.top].indexOf(s)>=0?-1:1,u=typeof C=="function"?C(Object.assign({},k,{placement:y})):C,d=u[0],i=u[1];return d=d||0,i=(i||0)*m,[a.left,a.right].indexOf(s)>=0?{x:i,y:d}:{x:d,y:i}}function f(y){var k=y.state,C=y.options,s=y.name,m=C.offset,u=m===void 0?[0,0]:m,d=a.placements.reduce(function(h,p){return h[p]=o(p,k.rects,u),h},{}),i=d[k.placement],c=i.x,l=i.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=c,k.modifiersData.popperOffsets.y+=l),k.modifiersData[s]=d}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},23786:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(85694));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,y=f.name;V.modifiersData[y]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},78230:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=u(n(85312)),t=u(n(86274)),o=u(n(4320)),f=n(52855),V=u(n(92957)),y=u(n(66689)),k=u(n(49883)),C=u(n(48218)),s=u(n(23941)),m=n(14194);function u(c){return c&&c.__esModule?c:{default:c}}function d(c){var l=c.state,h=c.options,p=c.name,v=h.mainAxis,b=v===void 0?!0:v,g=h.altAxis,N=g===void 0?!1:g,B=h.boundary,S=h.rootBoundary,L=h.altBoundary,I=h.padding,w=h.tether,T=w===void 0?!0:w,E=h.tetherOffset,A=E===void 0?0:E,M=(0,k.default)(l,{boundary:B,rootBoundary:S,padding:I,altBoundary:L}),R=(0,a.default)(l.placement),O=(0,C.default)(l.placement),F=!O,D=(0,t.default)(R),j=(0,o.default)(D),_=l.modifiersData.popperOffsets,z=l.rects.reference,H=l.rects.popper,Q=typeof A=="function"?A(Object.assign({},l.rects,{placement:l.placement})):A,Y=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),X=l.modifiersData.offset?l.modifiersData.offset[l.placement]:null,$={x:0,y:0};if(_){if(b){var G,Z=D==="y"?e.top:e.left,te=D==="y"?e.bottom:e.right,q=D==="y"?"height":"width",me=_[D],pe=me+M[Z],Ne=me-M[te],le=T?-H[q]/2:0,re=O===e.start?z[q]:H[q],ie=O===e.start?-H[q]:-z[q],Ve=l.elements.arrow,ke=T&&Ve?(0,V.default)(Ve):{width:0,height:0},Be=l.modifiersData["arrow#persistent"]?l.modifiersData["arrow#persistent"].padding:(0,s.default)(),ue=Be[Z],oe=Be[te],Ce=(0,f.within)(0,z[q],ke[q]),ae=F?z[q]/2-le-Ce-ue-Y.mainAxis:re-Ce-ue-Y.mainAxis,ee=F?-z[q]/2+le+Ce+oe+Y.mainAxis:ie+Ce+oe+Y.mainAxis,se=l.elements.arrow&&(0,y.default)(l.elements.arrow),xe=se?D==="y"?se.clientTop||0:se.clientLeft||0:0,Le=(G=X==null?void 0:X[D])!=null?G:0,Pe=me+ae-Le-xe,Fe=me+ee-Le,je=(0,f.within)(T?(0,m.min)(pe,Pe):pe,me,T?(0,m.max)(Ne,Fe):Ne);_[D]=je,$[D]=je-me}if(N){var Me,be=D==="x"?e.top:e.left,ve=D==="x"?e.bottom:e.right,he=_[j],ye=j==="y"?"height":"width",Ie=he+M[be],we=he-M[ve],_e=[e.top,e.left].indexOf(R)!==-1,ze=(Me=X==null?void 0:X[j])!=null?Me:0,Ue=_e?Ie:he-z[ye]-H[ye]-ze+Y.altAxis,Ge=_e?he+z[ye]+H[ye]-ze-Y.altAxis:we,Ke=T&&_e?(0,f.withinMaxClamp)(Ue,he,Ge):(0,f.within)(T?Ue:Ie,he,T?Ge:we);_[j]=Ke,$[j]=Ke-he}l.modifiersData[p]=$}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:d,requiresIfExists:["offset"]}},88037:function(x,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(50252);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(59953)),t=V(n(23786)),o=V(n(15224)),f=V(n(38621));function V(C){return C&&C.__esModule?C:{default:C}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},1728:function(x,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(50252);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(59953)),o=i(n(23786)),f=i(n(15224)),V=i(n(38621)),y=i(n(90642)),k=i(n(21128)),C=i(n(78230)),s=i(n(90860)),m=i(n(17945)),u=n(88037);r.createPopperLite=u.createPopper;var d=n(97934);Object.keys(d).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(e,h)||h in r&&r[h]===d[h]||(r[h]=d[h])});function i(h){return h&&h.__esModule?h:{default:h}}var c=r.defaultModifiers=[t.default,o.default,f.default,V.default,y.default,k.default,C.default,s.default,m.default],l=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:c})},67450:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(48218)),a=n(83996),t=f(n(49883)),o=f(n(85312));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){k===void 0&&(k={});var C=k,s=C.placement,m=C.boundary,u=C.rootBoundary,d=C.padding,i=C.flipVariations,c=C.allowedAutoPlacements,l=c===void 0?a.placements:c,h=(0,e.default)(s),p=h?i?a.variationPlacements:a.variationPlacements.filter(function(g){return(0,e.default)(g)===h}):a.basePlacements,v=p.filter(function(g){return l.indexOf(g)>=0});v.length===0&&(v=p);var b=v.reduce(function(g,N){return g[N]=(0,t.default)(y,{placement:N,boundary:m,rootBoundary:u,padding:d})[(0,o.default)(N)],g},{});return Object.keys(b).sort(function(g,N){return b[g]-b[N]})}},85694:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(85312)),a=f(n(48218)),t=f(n(86274)),o=n(83996);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){var k=y.reference,C=y.element,s=y.placement,m=s?(0,e.default)(s):null,u=s?(0,a.default)(s):null,d=k.x+k.width/2-C.width/2,i=k.y+k.height/2-C.height/2,c;switch(m){case o.top:c={x:d,y:k.y-C.height};break;case o.bottom:c={x:d,y:k.y+k.height};break;case o.right:c={x:k.x+k.width,y:i};break;case o.left:c={x:k.x-C.width,y:i};break;default:c={x:k.x,y:k.y}}var l=m?(0,t.default)(m):null;if(l!=null){var h=l==="y"?"height":"width";switch(u){case o.start:c[l]=c[l]-(k[h]/2-C[h]/2);break;case o.end:c[l]=c[l]+(k[h]/2-C[h]/2);break;default:}}return c}},63889:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},49883:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=s(n(35823)),a=s(n(36748)),t=s(n(97617)),o=s(n(85694)),f=s(n(14834)),V=n(83996),y=n(75011),k=s(n(10632)),C=s(n(59597));function s(u){return u&&u.__esModule?u:{default:u}}function m(u,d){d===void 0&&(d={});var i=d,c=i.placement,l=c===void 0?u.placement:c,h=i.strategy,p=h===void 0?u.strategy:h,v=i.boundary,b=v===void 0?V.clippingParents:v,g=i.rootBoundary,N=g===void 0?V.viewport:g,B=i.elementContext,S=B===void 0?V.popper:B,L=i.altBoundary,I=L===void 0?!1:L,w=i.padding,T=w===void 0?0:w,E=(0,k.default)(typeof T!="number"?T:(0,C.default)(T,V.basePlacements)),A=S===V.popper?V.reference:V.popper,M=u.rects.popper,R=u.elements[I?A:S],O=(0,e.default)((0,y.isElement)(R)?R:R.contextElement||(0,a.default)(u.elements.popper),b,N,p),F=(0,t.default)(u.elements.reference),D=(0,o.default)({reference:F,element:M,strategy:"absolute",placement:l}),j=(0,f.default)(Object.assign({},M,D)),_=S===V.popper?j:F,z={top:O.top-_.top+E.top,bottom:_.bottom-O.bottom+E.bottom,left:O.left-_.left+E.left,right:_.right-O.right+E.right},H=u.modifiersData.offset;if(S===V.popper&&H){var Q=H[l];Object.keys(z).forEach(function(Y){var X=[V.right,V.bottom].indexOf(Y)>=0?1:-1,$=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";z[Y]+=Q[$]*X})}return z}},59597:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},4320:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},85312:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(83996);function a(t){return t.split("-")[0]}},23941:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},86274:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},72310:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},53379:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},48218:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},14194:function(x,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},27343:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},10632:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(23941));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},47307:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(83996);function a(o){var f=new Map,V=new Set,y=[];o.forEach(function(C){f.set(C.name,C)});function k(C){V.add(C.name);var s=[].concat(C.requires||[],C.requiresIfExists||[]);s.forEach(function(m){if(!V.has(m)){var u=f.get(m);u&&k(u)}}),y.push(C)}return o.forEach(function(C){V.has(C.name)||k(C)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,y){return V.concat(f.filter(function(k){return k.phase===y}))},[])}},14834:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},36110:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},52855:function(x,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(14194);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var y=a(o,f,V);return y>V?V:y}},22182:function(x,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=K,r._HI=pe,r._M=$e,r._MCCC=zt,r._ME=Wt,r._MFCC=Ut,r._MP=St,r._MR=at,r._RFC=Se,r.__render=Kt,r.createComponentVNode=z,r.createFragment=Q,r.createPortal=Z,r.createRef=wt,r.createRenderer=kn,r.createTextVNode=H,r.createVNode=F,r.directClone=$,r.findDOMfromVNode=N,r.forwardRef=Tt,r.getFlagsForElementVnode=q,r.linkEvent=s,r.normalizeProps=Y,r.options=void 0,r.render=$t,r.rerender=Xt,r.version=void 0;var n=Array.isArray;function e(P){var W=typeof P;return W==="string"||W==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function V(P){return typeof P=="number"}function y(P){return P===null}function k(P){return P===void 0}function C(P,W){var U={};if(P)for(var J in P)U[J]=P[J];if(W)for(var ce in W)U[ce]=W[ce];return U}function s(P,W){return o(W)?{data:P,event:W}:null}function m(P){return!y(P)&&typeof P=="object"}var u=r.EMPTY_OBJ={},d=r.Fragment="$F";function i(P){return P.substr(2).toLowerCase()}function c(P,W){P.appendChild(W)}function l(P,W,U){y(U)?c(P,W):P.insertBefore(W,U)}function h(P,W){return W?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function p(P,W,U){P.replaceChild(W,U)}function v(P,W){P.removeChild(W)}function b(P){for(var W=0;W0,Te=y(ge),Ee=f(ge)&&ge[0]===R;Ae||Te||Ee?(U=U||W.slice(0,de),(Ae||Ee)&&(fe=$(fe)),(Te||Ee)&&(fe.key=R+de),U.push(fe)):U&&U.push(fe),fe.flags|=65536}}U=U||W,U.length===0?J=1:J=8}else U=W,U.flags|=65536,W.flags&81920&&(U=$(W)),J=2;return P.children=U,P.childFlags=J,P}function pe(P){return t(P)||e(P)?H(P,null):n(P)?Q(P,0,null):P.flags&16384?$(P):P}var Ne="http://www.w3.org/1999/xlink",le="http://www.w3.org/XML/1998/namespace",re={"xlink:actuate":Ne,"xlink:arcrole":Ne,"xlink:href":Ne,"xlink:role":Ne,"xlink:show":Ne,"xlink:title":Ne,"xlink:type":Ne,"xml:base":le,"xml:lang":le,"xml:space":le};function ie(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var Ve=ie(0),ke=ie(null),Be=ie(!0);function ue(P,W){var U=W.$EV;return U||(U=W.$EV=ie(null)),U[P]||++Ve[P]===1&&(ke[P]=Me(P)),U}function oe(P,W){var U=W.$EV;U&&U[P]&&(--Ve[P]===0&&(document.removeEventListener(i(P),ke[P]),ke[P]=null),U[P]=null)}function Ce(P,W,U,J){if(o(U))ue(P,J)[P]=U;else if(m(U)){if(E(W,U))return;ue(P,J)[P]=U}else oe(P,J)}function ae(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function ee(P,W,U,J){var ce=ae(P);do{if(W&&ce.disabled)return;var de=ce.$EV;if(de){var fe=de[U];if(fe&&(J.dom=ce,fe.event?fe.event(fe.data,P):fe(P),P.cancelBubble))return}ce=ce.parentNode}while(!y(ce))}function se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function xe(){return this.defaultPrevented}function Le(){return this.cancelBubble}function Pe(P){var W={dom:document};return P.isDefaultPrevented=xe,P.isPropagationStopped=Le,P.stopPropagation=se,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function U(){return W.dom}return U}()}),W}function Fe(P){return function(W){if(W.button!==0){W.stopPropagation();return}ee(W,!0,P,Pe(W))}}function je(P){return function(W){ee(W,!1,P,Pe(W))}}function Me(P){var W=P==="onClick"||P==="onDblClick"?Fe(P):je(P);return document.addEventListener(i(P),W),W}function be(P,W){var U=document.createElement("i");return U.innerHTML=W,U.innerHTML===P.innerHTML}function ve(P,W,U){if(P[W]){var J=P[W];J.event?J.event(J.data,U):J(U)}else{var ce=W.toLowerCase();P[ce]&&P[ce](U)}}function he(P,W){var U=function(ce){var de=this.$V;if(de){var fe=de.props||u,ge=de.dom;if(f(P))ve(fe,P,ce);else for(var Ae=0;Ae-1&&W.options[de]&&(ge=W.options[de].value),U&&a(ge)&&(ge=P.defaultValue),Ke(J,ge)}}var Vt=he("onInput",mt),yt=he("onChange");function kt(P,W){ye(P,"input",Vt),W.onChange&&ye(P,"change",yt)}function mt(P,W,U){var J=P.value,ce=W.value;if(a(J)){if(U){var de=P.defaultValue;!a(de)&&de!==ce&&(W.defaultValue=de,W.value=de)}}else ce!==J&&(W.defaultValue=J,W.value=J)}function ft(P,W,U,J,ce,de){P&64?Ge(J,U):P&256?st(J,U,ce,W):P&128&&mt(J,U,ce),de&&(U.$V=W)}function Bt(P,W,U){P&64?Ue(W,U):P&256?bt(W):P&128&&kt(W,U)}function pt(P){return P.type&&Ie(P.type)?!a(P.checked):!a(P.value)}function wt(){return{current:null}}function Tt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function at(P,W,U){P&&(o(P)||P.current!==void 0)&&U.push(function(){!M(P,W)&&P.current!==void 0&&(P.current=W)})}function Ze(P,W){qe(P),B(P,W)}function qe(P){var W=P.flags,U=P.children,J;if(W&481){J=P.ref;var ce=P.props;lt(J);var de=P.childFlags;if(!y(ce))for(var fe=Object.keys(ce),ge=0,Ae=fe.length;ge0;fe&&(de=pt(U),de&&Bt(W,J,U));for(var ge in U)Ct(ge,null,U[ge],J,ce,de,null);fe&&ft(W,P,J,U,!0,de)}function Lt(P,W,U){var J=pe(P.render(W,P.state,U)),ce=U;return o(P.getChildContext)&&(ce=C(U,P.getChildContext())),P.$CX=ce,J}function K(P,W,U,J,ce,de){var fe=new W(U,J),ge=fe.$N=!!(W.getDerivedStateFromProps||fe.getSnapshotBeforeUpdate);if(fe.$SVG=ce,fe.$L=de,P.children=fe,fe.$BS=!1,fe.context=J,fe.props===u&&(fe.props=U),ge)fe.state=L(fe,U,fe.state);else if(o(fe.componentWillMount)){fe.$BR=!0,fe.componentWillMount();var Ae=fe.$PS;if(!y(Ae)){var Te=fe.state;if(y(Te))fe.state=Ae;else for(var Ee in Ae)Te[Ee]=Ae[Ee];fe.$PS=null}fe.$BR=!1}return fe.$LI=Lt(fe,U,J),fe}function Se(P,W){var U=P.props||u;return P.flags&32768?P.type.render(U,P.ref,W):P.type(U,W)}function $e(P,W,U,J,ce,de){var fe=P.flags|=16384;fe&481?Wt(P,W,U,J,ce,de):fe&4?nn(P,W,U,J,ce,de):fe&8?(on(P,W,U,J,ce,de),Ut(P,de)):fe&512||fe&16?jt(P,W,ce):fe&8192?tn(P,U,W,J,ce,de):fe&1024&&en(P,U,W,ce,de)}function en(P,W,U,J,ce){$e(P.children,P.ref,W,!1,null,ce);var de=G();jt(de,U,J),P.dom=de.dom}function tn(P,W,U,J,ce,de){var fe=P.children,ge=P.childFlags;ge&12&&fe.length===0&&(ge=P.childFlags=2,fe=P.children=G()),ge===2?$e(fe,U,W,J,ce,de):ct(fe,U,W,J,ce,de)}function jt(P,W,U){var J=P.dom=document.createTextNode(P.children);y(W)||l(W,J,U)}function Wt(P,W,U,J,ce,de){var fe=P.flags,ge=P.props,Ae=P.className,Te=P.childFlags,Ee=P.dom=h(P.type,J=J||(fe&32)>0),Oe=P.children;if(!a(Ae)&&Ae!==""&&(J?Ee.setAttribute("class",Ae):Ee.className=Ae),Te===16)T(Ee,Oe);else if(Te!==1){var De=J&&P.type!=="foreignObject";Te===2?(Oe.flags&16384&&(P.children=Oe=$(Oe)),$e(Oe,Ee,U,De,null,de)):(Te===8||Te===4)&&ct(Oe,Ee,U,De,null,de)}y(W)||l(W,Ee,ce),y(ge)||St(P,fe,ge,Ee,J),at(P.ref,Ee,de)}function ct(P,W,U,J,ce,de){for(var fe=0;feDe)&&(Ee=N(fe[De-1],!1).nextSibling)}Ot(Ae,Te,fe,ge,U,J,ce,Ee,P,de)}function sn(P,W,U,J){var ce=P.ref,de=W.ref,fe=W.children;if(Ot(P.childFlags,W.childFlags,P.children,fe,ce,U,!1,null,P,J),W.dom=P.dom,ce!==de&&!t(fe)){var ge=fe.dom;v(ce,ge),c(de,ge)}}function mn(P,W,U,J,ce,de){var fe=W.dom=P.dom,ge=P.props,Ae=W.props,Te=!1,Ee=!1,Oe;if(J=J||(ce&32)>0,ge!==Ae){var De=ge||u;if(Oe=Ae||u,Oe!==u){Te=(ce&448)>0,Te&&(Ee=pt(Oe));for(var He in Oe){var Re=De[He],Xe=Oe[He];Re!==Xe&&Ct(He,Re,Xe,fe,J,Ee,P)}}if(De!==u)for(var We in De)a(Oe[We])&&!a(De[We])&&Ct(We,De[We],null,fe,J,Ee,P)}var ot=W.children,Je=W.className;P.className!==Je&&(a(Je)?fe.removeAttribute("class"):J?fe.setAttribute("class",Je):fe.className=Je),ce&4096?un(fe,ot):Ot(P.childFlags,W.childFlags,P.children,ot,fe,U,J&&W.type!=="foreignObject",null,P,de),Te&&ft(ce,W,fe,Oe,!1,Ee);var ht=W.ref,et=P.ref;et!==ht&&(lt(et),at(ht,fe,de))}function fn(P,W,U,J,ce,de){qe(P),ct(W,U,J,ce,N(P,!0),de),B(P,U)}function Ot(P,W,U,J,ce,de,fe,ge,Ae,Te){switch(P){case 2:switch(W){case 2:tt(U,J,ce,de,fe,ge,Te);break;case 1:Ze(U,ce);break;case 16:qe(U),T(ce,J);break;default:fn(U,J,ce,de,fe,Te);break}break;case 1:switch(W){case 2:$e(J,ce,de,fe,ge,Te);break;case 1:break;case 16:T(ce,J);break;default:ct(J,ce,de,fe,ge,Te);break}break;case 16:switch(W){case 16:ln(U,J,ce);break;case 2:ut(ce),$e(J,ce,de,fe,ge,Te);break;case 1:ut(ce);break;default:ut(ce),ct(J,ce,de,fe,ge,Te);break}break;default:switch(W){case 16:it(U),T(ce,J);break;case 2:dt(ce,Ae,U),$e(J,ce,de,fe,ge,Te);break;case 1:dt(ce,Ae,U);break;default:var Ee=U.length|0,Oe=J.length|0;Ee===0?Oe>0&&ct(J,ce,de,fe,ge,Te):Oe===0?dt(ce,Ae,U):W===8&&P===8?Nn(U,J,ce,de,fe,Ee,Oe,ge,Ae,Te):gn(U,J,ce,de,fe,Ee,Oe,ge,Te);break}break}}function pn(P,W,U,J,ce){ce.push(function(){P.componentDidUpdate(W,U,J)})}function Ht(P,W,U,J,ce,de,fe,ge,Ae){var Te=P.state,Ee=P.props,Oe=!!P.$N,De=o(P.shouldComponentUpdate);if(Oe&&(W=L(P,U,W!==Te?C(Te,W):W)),fe||!De||De&&P.shouldComponentUpdate(U,W,ce)){!Oe&&o(P.componentWillUpdate)&&P.componentWillUpdate(U,W,ce),P.props=U,P.state=W,P.context=ce;var He=null,Re=Lt(P,U,ce);Oe&&o(P.getSnapshotBeforeUpdate)&&(He=P.getSnapshotBeforeUpdate(Ee,Te)),tt(P.$LI,Re,J,P.$CX,de,ge,Ae),P.$LI=Re,o(P.componentDidUpdate)&&pn(P,Ee,Te,He,Ae)}else P.props=U,P.state=W,P.context=ce}function Cn(P,W,U,J,ce,de,fe){var ge=W.children=P.children;if(!y(ge)){ge.$L=fe;var Ae=W.props||u,Te=W.ref,Ee=P.ref,Oe=ge.state;if(!ge.$N){if(o(ge.componentWillReceiveProps)){if(ge.$BR=!0,ge.componentWillReceiveProps(Ae,J),ge.$UN)return;ge.$BR=!1}y(ge.$PS)||(Oe=C(Oe,ge.$PS),ge.$PS=null)}Ht(ge,Oe,Ae,U,J,ce,!1,de,fe),Ee!==Te&&(lt(Ee),at(Te,ge,fe))}}function hn(P,W,U,J,ce,de,fe){var ge=!0,Ae=W.props||u,Te=W.ref,Ee=P.props,Oe=!a(Te),De=P.children;if(Oe&&o(Te.onComponentShouldUpdate)&&(ge=Te.onComponentShouldUpdate(Ee,Ae)),ge!==!1){Oe&&o(Te.onComponentWillUpdate)&&Te.onComponentWillUpdate(Ee,Ae);var He=pe(Se(W,J));tt(De,He,U,J,ce,de,fe),W.children=He,Oe&&o(Te.onComponentDidUpdate)&&Te.onComponentDidUpdate(Ee,Ae)}else W.children=De}function vn(P,W){var U=W.children,J=W.dom=P.dom;U!==P.children&&(J.nodeValue=U)}function gn(P,W,U,J,ce,de,fe,ge,Ae){for(var Te=de>fe?fe:de,Ee=0,Oe,De;Eefe)for(Ee=Te;EeEe||De>Oe)break e;He=P[De],Re=W[De]}for(He=P[Ee],Re=W[Oe];He.key===Re.key;){if(Re.flags&16384&&(W[Oe]=Re=$(Re)),tt(He,Re,U,J,ce,ge,Te),P[Ee]=Re,Ee--,Oe--,De>Ee||De>Oe)break e;He=P[Ee],Re=W[Oe]}}if(De>Ee){if(De<=Oe)for(Xe=Oe+1,We=XeOe)for(;De<=Ee;)Ze(P[De++],U);else bn(P,W,J,de,fe,Ee,Oe,De,U,ce,ge,Ae,Te)}function bn(P,W,U,J,ce,de,fe,ge,Ae,Te,Ee,Oe,De){var He,Re,Xe,We=0,ot=ge,Je=ge,ht=de-ge+1,et=fe-ge+1,vt=new Int32Array(et+1),rt=ht===J,Ft=!1,Qe=0,gt=0;if(ce<4||(ht|et)<32)for(We=ot;We<=de;++We)if(He=P[We],gtge?Ft=!0:Qe=ge,Re.flags&16384&&(W[ge]=Re=$(Re)),tt(He,Re,Ae,U,Te,Ee,De),++gt;break}!rt&&ge>fe&&Ze(He,Ae)}else rt||Ze(He,Ae);else{var Zt={};for(We=Je;We<=fe;++We)Zt[W[We].key]=We;for(We=ot;We<=de;++We)if(He=P[We],gtot;)Ze(P[ot++],Ae);vt[ge-Je]=We+1,Qe>ge?Ft=!0:Qe=ge,Re=W[ge],Re.flags&16384&&(W[ge]=Re=$(Re)),tt(He,Re,Ae,U,Te,Ee,De),++gt}else rt||Ze(He,Ae);else rt||Ze(He,Ae)}if(rt)dt(Ae,Oe,P),ct(W,Ae,U,Te,Ee,De);else if(Ft){var Jt=Vn(vt);for(ge=Jt.length-1,We=et-1;We>=0;We--)vt[We]===0?(Qe=We+Je,Re=W[Qe],Re.flags&16384&&(W[Qe]=Re=$(Re)),Xe=Qe+1,$e(Re,Ae,U,Te,Xe=0;We--)vt[We]===0&&(Qe=We+Je,Re=W[Qe],Re.flags&16384&&(W[Qe]=Re=$(Re)),Xe=Qe+1,$e(Re,Ae,U,Te,XeGt&&(Gt=Ae,nt=new Int32Array(Ae),It=new Int32Array(Ae));U>1,P[nt[ge]]0&&(It[U]=nt[de-1]),nt[de]=U)}de=ce+1;var Te=new Int32Array(de);for(fe=nt[de-1];de-- >0;)Te[de]=fe,fe=It[fe],nt[de]=0;return Te}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Kt(P,W,U,J){var ce=[],de=W.$V;I.v=!0,a(de)?a(P)||(P.flags&16384&&(P=$(P)),$e(P,W,J,!1,null,ce),W.$V=P,de=P):a(P)?(Ze(de,W),W.$V=null):(P.flags&16384&&(P=$(P)),tt(de,P,W,J,!1,null,ce),de=W.$V=P),b(ce),I.v=!1,o(U)&&U(),o(w.renderComplete)&&w.renderComplete(de,W)}function $t(P,W,U,J){U===void 0&&(U=null),J===void 0&&(J=u),Kt(P,W,U,J)}function kn(P){return function(){function W(U,J,ce,de){P||(P=U),$t(J,P,ce,de)}return W}()}var xt=[],Bn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},Rt=!1;function Yt(P,W,U,J){var ce=P.$PS;if(o(W)&&(W=W(ce?C(P.state,ce):P.state,P.props,P.context)),a(ce))P.$PS=W;else for(var de in W)ce[de]=W[de];if(P.$BR)o(U)&&P.$L.push(U.bind(P));else{if(!I.v&&xt.length===0){Qt(P,J),o(U)&&U.call(P);return}if(xt.indexOf(P)===-1&&xt.push(P),J&&(P.$F=!0),Rt||(Rt=!0,Bn(Xt)),o(U)){var fe=P.$QU;fe||(fe=P.$QU=[]),fe.push(U)}}}function Sn(P){for(var W=P.$QU,U=0;U=0;--_){var z=this.tryEntries[_],H=z.completion;if(z.tryLoc==="root")return j("end");if(z.tryLoc<=this.prev){var Q=a.call(z,"catchLoc"),Y=a.call(z,"finallyLoc");if(Q&&Y){if(this.prev=0;--j){var _=this.tryEntries[j];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var z=_;break}}z&&(F==="break"||F==="continue")&&z.tryLoc<=D&&D<=z.finallyLoc&&(z=null);var H=z?z.completion:{};return H.type=F,H.arg=D,z?(this.method="next",this.next=z.finallyLoc,l):this.complete(H)}return O}(),complete:function(){function O(F,D){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&D&&(this.next=D),l}return O}(),finish:function(){function O(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.finallyLoc===F)return this.complete(j.completion,j.afterLoc),E(j),l}}return O}(),catch:function(){function O(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.tryLoc===F){var _=j.completion;if(_.type==="throw"){var z=_.arg;E(j)}return z}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(F,D,j){return this.delegate={iterator:M(F),resultName:D,nextLoc:j},this.method==="next"&&(this.arg=o),l}return O}()},n}(x.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9084:function(){"use strict";self.fetch||(self.fetch=function(x,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o=[],f={},V=function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function C(){return Promise.resolve(a.responseText)}return C}(),json:function(){function C(){return Promise.resolve(a.responseText).then(JSON.parse)}return C}(),blob:function(){function C(){return Promise.resolve(new Blob([a.response]))}return C}(),clone:k,headers:{keys:function(){function C(){return t}return C}(),entries:function(){function C(){return o}return C}(),get:function(){function C(s){return f[s.toLowerCase()]}return C}(),has:function(){function C(s){return s.toLowerCase()in f}return C}()}}};for(var y in a.open(r.method||"get",x,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(k,C,s){t.push(C=C.toLowerCase()),o.push([C,s]),f[C]=f[C]?f[C]+","+s:s}),n(V())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(y,r.headers[y]);a.send(r.body||null)})})},45445:function(x,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.sortStrings=r.sortBy=r.sort=r.reduce=r.range=r.paginate=r.map=r.filterMap=r.filter=r.deepMerge=r.binaryInsertWith=void 0;function n(g,N){var B=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(B)return(B=B.call(g)).next.bind(B);if(Array.isArray(g)||(B=e(g))||N&&g&&typeof g.length=="number"){B&&(g=B);var S=0;return function(){return S>=g.length?{done:!0}:{done:!1,value:g[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(g,N){if(g){if(typeof g=="string")return a(g,N);var B=Object.prototype.toString.call(g).slice(8,-1);if(B==="Object"&&g.constructor&&(B=g.constructor.name),B==="Map"||B==="Set")return Array.from(g);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return a(g,N)}}function a(g,N){(N==null||N>g.length)&&(N=g.length);for(var B=0,S=new Array(N);B0&&(0,a.round)(s.width)/y.offsetWidth||1,d=y.offsetHeight>0&&(0,a.round)(s.height)/y.offsetHeight||1);var u=(0,e.isElement)(y)?(0,t.default)(y):window,i=u.visualViewport,l=!(0,o.default)()&&C,c=(s.left+(l&&i?i.offsetLeft:0))/m,v=(s.top+(l&&i?i.offsetTop:0))/d,p=s.width/m,h=s.height/d;return{width:p,height:h,top:v,right:c+p,bottom:v+h,left:c,x:c,y:v}}},35823:function(x,r,n){"use strict";r.__esModule=!0,r.default=h;var e=n(83996),a=l(n(75047)),t=l(n(37407)),o=l(n(97262)),f=l(n(66689)),V=l(n(36748)),y=l(n(77060)),k=n(75011),C=l(n(97617)),s=l(n(84330)),m=l(n(89691)),d=l(n(72793)),u=l(n(14834)),i=n(14194);function l(b){return b&&b.__esModule?b:{default:b}}function c(b,g){var N=(0,C.default)(b,!1,g==="fixed");return N.top=N.top+b.clientTop,N.left=N.left+b.clientLeft,N.bottom=N.top+b.clientHeight,N.right=N.left+b.clientWidth,N.width=b.clientWidth,N.height=b.clientHeight,N.x=N.left,N.y=N.top,N}function v(b,g,N){return g===e.viewport?(0,u.default)((0,a.default)(b,N)):(0,k.isElement)(g)?c(g,N):(0,u.default)((0,t.default)((0,V.default)(b)))}function p(b){var g=(0,o.default)((0,s.default)(b)),N=["absolute","fixed"].indexOf((0,y.default)(b).position)>=0,B=N&&(0,k.isHTMLElement)(b)?(0,f.default)(b):b;return(0,k.isElement)(B)?g.filter(function(S){return(0,k.isElement)(S)&&(0,m.default)(S,B)&&(0,d.default)(S)!=="body"}):[]}function h(b,g,N,B){var S=g==="clippingParents"?p(b):[].concat(g),L=[].concat(S,[N]),I=L[0],w=L.reduce(function(T,E){var A=v(b,E,B);return T.top=(0,i.max)(A.top,T.top),T.right=(0,i.min)(A.right,T.right),T.bottom=(0,i.min)(A.bottom,T.bottom),T.left=(0,i.max)(A.left,T.left),T},v(b,I,B));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},4254:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=C(n(97617)),a=C(n(86394)),t=C(n(72793)),o=n(75011),f=C(n(44653)),V=C(n(36748)),y=C(n(9135)),k=n(14194);function C(d){return d&&d.__esModule?d:{default:d}}function s(d){var u=d.getBoundingClientRect(),i=(0,k.round)(u.width)/d.offsetWidth||1,l=(0,k.round)(u.height)/d.offsetHeight||1;return i!==1||l!==1}function m(d,u,i){i===void 0&&(i=!1);var l=(0,o.isHTMLElement)(u),c=(0,o.isHTMLElement)(u)&&s(u),v=(0,V.default)(u),p=(0,e.default)(d,c,i),h={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(l||!l&&!i)&&(((0,t.default)(u)!=="body"||(0,y.default)(v))&&(h=(0,a.default)(u)),(0,o.isHTMLElement)(u)?(b=(0,e.default)(u,!0),b.x+=u.clientLeft,b.y+=u.clientTop):v&&(b.x=(0,f.default)(v))),{x:p.left+h.scrollLeft-b.x,y:p.top+h.scrollTop-b.y,width:p.width,height:p.height}}},77060:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},36748:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75011);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},37407:function(x,r,n){"use strict";r.__esModule=!0,r.default=y;var e=V(n(36748)),a=V(n(77060)),t=V(n(44653)),o=V(n(10416)),f=n(14194);function V(k){return k&&k.__esModule?k:{default:k}}function y(k){var C,s=(0,e.default)(k),m=(0,o.default)(k),d=(C=k.ownerDocument)==null?void 0:C.body,u=(0,f.max)(s.scrollWidth,s.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),i=(0,f.max)(s.scrollHeight,s.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),l=-m.scrollLeft+(0,t.default)(k),c=-m.scrollTop;return(0,a.default)(d||s).direction==="rtl"&&(l+=(0,f.max)(s.clientWidth,d?d.clientWidth:0)-u),{width:u,height:i,x:l,y:c}}},89821:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},92957:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97617));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:y}}},72793:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},86394:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(10416)),a=f(n(1866)),t=n(75011),o=f(n(89821));function f(y){return y&&y.__esModule?y:{default:y}}function V(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},66689:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=k(n(1866)),a=k(n(72793)),t=k(n(77060)),o=n(75011),f=k(n(46795)),V=k(n(84330)),y=k(n(36110));function k(d){return d&&d.__esModule?d:{default:d}}function C(d){return!(0,o.isHTMLElement)(d)||(0,t.default)(d).position==="fixed"?null:d.offsetParent}function s(d){var u=/firefox/i.test((0,y.default)()),i=/Trident/i.test((0,y.default)());if(i&&(0,o.isHTMLElement)(d)){var l=(0,t.default)(d);if(l.position==="fixed")return null}var c=(0,V.default)(d);for((0,o.isShadowRoot)(c)&&(c=c.host);(0,o.isHTMLElement)(c)&&["html","body"].indexOf((0,a.default)(c))<0;){var v=(0,t.default)(c);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||u&&v.willChange==="filter"||u&&v.filter&&v.filter!=="none")return c;c=c.parentNode}return null}function m(d){for(var u=(0,e.default)(d),i=C(d);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=C(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?u:i||s(d)||u}},84330:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(72793)),a=o(n(36748)),t=n(75011);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},89523:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(84330)),a=f(n(9135)),t=f(n(72793)),o=n(75011);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:V((0,e.default)(y))}},75047:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(1866)),a=f(n(36748)),t=f(n(44653)),o=f(n(45407));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){var C=(0,e.default)(y),s=(0,a.default)(y),m=C.visualViewport,d=s.clientWidth,u=s.clientHeight,i=0,l=0;if(m){d=m.width,u=m.height;var c=(0,o.default)();(c||!c&&k==="fixed")&&(i=m.offsetLeft,l=m.offsetTop)}return{width:d,height:u,x:i+(0,t.default)(y),y:l}}},1866:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},10416:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1866));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:V,scrollTop:y}}},44653:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(97617)),a=o(n(36748)),t=o(n(10416));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},75011:function(x,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var y=(0,e.default)(V).Element;return V instanceof y||V instanceof Element}function o(V){var y=(0,e.default)(V).HTMLElement;return V instanceof y||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(V).ShadowRoot;return V instanceof y||V instanceof ShadowRoot}},45407:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(36110));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},9135:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(77060));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,y=f.overflowX,k=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+k+y)}},46795:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(72793));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},97262:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(89523)),a=f(n(84330)),t=f(n(1866)),o=f(n(9135));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){var C;k===void 0&&(k=[]);var s=(0,e.default)(y),m=s===((C=y.ownerDocument)==null?void 0:C.body),d=(0,t.default)(s),u=m?[d].concat(d.visualViewport||[],(0,o.default)(s)?s:[]):s,i=k.concat(u);return m?i:i.concat(V((0,a.default)(u)))}},83996:function(x,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",C=r.viewport="viewport",s=r.popper="popper",m=r.reference="reference",d=r.variationPlacements=f.reduce(function(S,L){return S.concat([L+"-"+V,L+"-"+y])},[]),u=r.placements=[].concat(f,[o]).reduce(function(S,L){return S.concat([L,L+"-"+V,L+"-"+y])},[]),i=r.beforeRead="beforeRead",l=r.read="read",c=r.afterRead="afterRead",v=r.beforeMain="beforeMain",p=r.main="main",h=r.afterMain="afterMain",b=r.beforeWrite="beforeWrite",g=r.write="write",N=r.afterWrite="afterWrite",B=r.modifierPhases=[i,l,c,v,p,h,b,g,N]},92935:function(x,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(83996);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(97934);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(50252);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(1728);r.createPopper=f.createPopper;var V=n(88037);r.createPopperLite=V.createPopper},38621:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(72793)),a=n(75011);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(C){var s=k.styles[C]||{},m=k.attributes[C]||{},d=k.elements[C];!(0,a.isHTMLElement)(d)||!(0,e.default)(d)||(Object.assign(d.style,s),Object.keys(m).forEach(function(u){var i=m[u];i===!1?d.removeAttribute(u):d.setAttribute(u,i===!0?"":i)}))})}function f(y){var k=y.state,C={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,C.popper),k.styles=C,k.elements.arrow&&Object.assign(k.elements.arrow.style,C.arrow),function(){Object.keys(k.elements).forEach(function(s){var m=k.elements[s],d=k.attributes[s]||{},u=Object.keys(k.styles.hasOwnProperty(s)?k.styles[s]:C[s]),i=u.reduce(function(l,c){return l[c]="",l},{});!(0,a.isHTMLElement)(m)||!(0,e.default)(m)||(Object.assign(m.style,i),Object.keys(d).forEach(function(l){m.removeAttribute(l)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},90860:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=s(n(85312)),a=s(n(92957)),t=s(n(89691)),o=s(n(66689)),f=s(n(86274)),V=n(52855),y=s(n(10632)),k=s(n(59597)),C=n(83996);function s(l){return l&&l.__esModule?l:{default:l}}var m=function(){function l(c,v){return c=typeof c=="function"?c(Object.assign({},v.rects,{placement:v.placement})):c,(0,y.default)(typeof c!="number"?c:(0,k.default)(c,C.basePlacements))}return l}();function d(l){var c,v=l.state,p=l.name,h=l.options,b=v.elements.arrow,g=v.modifiersData.popperOffsets,N=(0,e.default)(v.placement),B=(0,f.default)(N),S=[C.left,C.right].indexOf(N)>=0,L=S?"height":"width";if(!(!b||!g)){var I=m(h.padding,v),w=(0,a.default)(b),T=B==="y"?C.top:C.left,E=B==="y"?C.bottom:C.right,A=v.rects.reference[L]+v.rects.reference[B]-g[B]-v.rects.popper[L],M=g[B]-v.rects.reference[B],R=(0,o.default)(b),O=R?B==="y"?R.clientHeight||0:R.clientWidth||0:0,F=A/2-M/2,D=I[T],j=O-w[L]-I[E],_=O/2-w[L]/2+F,z=(0,V.within)(D,_,j),H=B;v.modifiersData[p]=(c={},c[H]=z,c.centerOffset=z-_,c)}}function u(l){var c=l.state,v=l.options,p=v.element,h=p===void 0?"[data-popper-arrow]":p;h!=null&&(typeof h=="string"&&(h=c.elements.popper.querySelector(h),!h)||(0,t.default)(c.elements.popper,h)&&(c.elements.arrow=h))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:d,effect:u,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},15224:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=d;var e=n(83996),a=C(n(66689)),t=C(n(1866)),o=C(n(36748)),f=C(n(77060)),V=C(n(85312)),y=C(n(48218)),k=n(14194);function C(l){return l&&l.__esModule?l:{default:l}}var s={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m(l,c){var v=l.x,p=l.y,h=c.devicePixelRatio||1;return{x:(0,k.round)(v*h)/h||0,y:(0,k.round)(p*h)/h||0}}function d(l){var c,v=l.popper,p=l.popperRect,h=l.placement,b=l.variation,g=l.offsets,N=l.position,B=l.gpuAcceleration,S=l.adaptive,L=l.roundOffsets,I=l.isFixed,w=g.x,T=w===void 0?0:w,E=g.y,A=E===void 0?0:E,M=typeof L=="function"?L({x:T,y:A}):{x:T,y:A};T=M.x,A=M.y;var R=g.hasOwnProperty("x"),O=g.hasOwnProperty("y"),F=e.left,D=e.top,j=window;if(S){var _=(0,a.default)(v),z="clientHeight",H="clientWidth";if(_===(0,t.default)(v)&&(_=(0,o.default)(v),(0,f.default)(_).position!=="static"&&N==="absolute"&&(z="scrollHeight",H="scrollWidth")),_=_,h===e.top||(h===e.left||h===e.right)&&b===e.end){D=e.bottom;var Q=I&&_===j&&j.visualViewport?j.visualViewport.height:_[z];A-=Q-p.height,A*=B?1:-1}if(h===e.left||(h===e.top||h===e.bottom)&&b===e.end){F=e.right;var Y=I&&_===j&&j.visualViewport?j.visualViewport.width:_[H];T-=Y-p.width,T*=B?1:-1}}var X=Object.assign({position:N},S&&s),$=L===!0?m({x:T,y:A},(0,t.default)(v)):{x:T,y:A};if(T=$.x,A=$.y,B){var G;return Object.assign({},X,(G={},G[D]=O?"0":"",G[F]=R?"0":"",G.transform=(j.devicePixelRatio||1)<=1?"translate("+T+"px, "+A+"px)":"translate3d("+T+"px, "+A+"px, 0)",G))}return Object.assign({},X,(c={},c[D]=O?A+"px":"",c[F]=R?T+"px":"",c.transform="",c))}function u(l){var c=l.state,v=l.options,p=v.gpuAcceleration,h=p===void 0?!0:p,b=v.adaptive,g=b===void 0?!0:b,N=v.roundOffsets,B=N===void 0?!0:N,S={placement:(0,V.default)(c.placement),variation:(0,y.default)(c.placement),popper:c.elements.popper,popperRect:c.rects.popper,gpuAcceleration:h,isFixed:c.options.strategy==="fixed"};c.modifiersData.popperOffsets!=null&&(c.styles.popper=Object.assign({},c.styles.popper,d(Object.assign({},S,{offsets:c.modifiersData.popperOffsets,position:c.options.strategy,adaptive:g,roundOffsets:B})))),c.modifiersData.arrow!=null&&(c.styles.arrow=Object.assign({},c.styles.arrow,d(Object.assign({},S,{offsets:c.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:B})))),c.attributes.popper=Object.assign({},c.attributes.popper,{"data-popper-placement":c.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u,data:{}}},59953:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var y=V.state,k=V.instance,C=V.options,s=C.scroll,m=s===void 0?!0:s,d=C.resize,u=d===void 0?!0:d,i=(0,e.default)(y.elements.popper),l=[].concat(y.scrollParents.reference,y.scrollParents.popper);return m&&l.forEach(function(c){c.addEventListener("scroll",k.update,t)}),u&&i.addEventListener("resize",k.update,t),function(){m&&l.forEach(function(c){c.removeEventListener("scroll",k.update,t)}),u&&i.removeEventListener("resize",k.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},21128:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(72310)),a=k(n(85312)),t=k(n(53379)),o=k(n(49883)),f=k(n(67450)),V=n(83996),y=k(n(48218));function k(d){return d&&d.__esModule?d:{default:d}}function C(d){if((0,a.default)(d)===V.auto)return[];var u=(0,e.default)(d);return[(0,t.default)(d),u,(0,t.default)(u)]}function s(d){var u=d.state,i=d.options,l=d.name;if(!u.modifiersData[l]._skip){for(var c=i.mainAxis,v=c===void 0?!0:c,p=i.altAxis,h=p===void 0?!0:p,b=i.fallbackPlacements,g=i.padding,N=i.boundary,B=i.rootBoundary,S=i.altBoundary,L=i.flipVariations,I=L===void 0?!0:L,w=i.allowedAutoPlacements,T=u.options.placement,E=(0,a.default)(T),A=E===T,M=b||(A||!I?[(0,e.default)(T)]:C(T)),R=[T].concat(M).reduce(function(re,ie){return re.concat((0,a.default)(ie)===V.auto?(0,f.default)(u,{placement:ie,boundary:N,rootBoundary:B,padding:g,flipVariations:I,allowedAutoPlacements:w}):ie)},[]),O=u.rects.reference,F=u.rects.popper,D=new Map,j=!0,_=R[0],z=0;z=0,$=X?"width":"height",G=(0,o.default)(u,{placement:H,boundary:N,rootBoundary:B,altBoundary:S,padding:g}),Z=X?Y?V.right:V.left:Y?V.bottom:V.top;O[$]>F[$]&&(Z=(0,e.default)(Z));var te=(0,e.default)(Z),q=[];if(v&&q.push(G[Q]<=0),h&&q.push(G[Z]<=0,G[te]<=0),q.every(function(re){return re})){_=H,j=!1;break}D.set(H,q)}if(j)for(var me=I?3:1,pe=function(){function re(ie){var Ve=R.find(function(ke){var Be=D.get(ke);if(Be)return Be.slice(0,ie).every(function(de){return de})});if(Ve)return _=Ve,"break"}return re}(),Ne=me;Ne>0;Ne--){var le=pe(Ne);if(le==="break")break}u.placement!==_&&(u.modifiersData[l]._skip=!0,u.placement=_,u.reset=!0)}}var m=r.default={name:"flip",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"],data:{_skip:!1}}},17945:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=t(n(49883));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,C,s){return s===void 0&&(s={x:0,y:0}),{top:k.top-C.height-s.y,right:k.right-C.width+s.x,bottom:k.bottom-C.height+s.y,left:k.left-C.width-s.x}}function f(k){return[e.top,e.right,e.bottom,e.left].some(function(C){return k[C]>=0})}function V(k){var C=k.state,s=k.name,m=C.rects.reference,d=C.rects.popper,u=C.modifiersData.preventOverflow,i=(0,a.default)(C,{elementContext:"reference"}),l=(0,a.default)(C,{altBoundary:!0}),c=o(i,m),v=o(l,d,u),p=f(c),h=f(v);C.modifiersData[s]={referenceClippingOffsets:c,popperEscapeOffsets:v,isReferenceHidden:p,hasPopperEscaped:h},C.attributes.popper=Object.assign({},C.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},97934:function(x,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=s(n(38621));r.applyStyles=e.default;var a=s(n(90860));r.arrow=a.default;var t=s(n(15224));r.computeStyles=t.default;var o=s(n(59953));r.eventListeners=o.default;var f=s(n(21128));r.flip=f.default;var V=s(n(17945));r.hide=V.default;var y=s(n(90642));r.offset=y.default;var k=s(n(23786));r.popperOffsets=k.default;var C=s(n(78230));r.preventOverflow=C.default;function s(m){return m&&m.__esModule?m:{default:m}}},90642:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(85312)),a=n(83996);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,C){var s=(0,e.default)(y),m=[a.left,a.top].indexOf(s)>=0?-1:1,d=typeof C=="function"?C(Object.assign({},k,{placement:y})):C,u=d[0],i=d[1];return u=u||0,i=(i||0)*m,[a.left,a.right].indexOf(s)>=0?{x:i,y:u}:{x:u,y:i}}function f(y){var k=y.state,C=y.options,s=y.name,m=C.offset,d=m===void 0?[0,0]:m,u=a.placements.reduce(function(v,p){return v[p]=o(p,k.rects,d),v},{}),i=u[k.placement],l=i.x,c=i.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=l,k.modifiersData.popperOffsets.y+=c),k.modifiersData[s]=u}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},23786:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(85694));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,y=f.name;V.modifiersData[y]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},78230:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(83996),a=d(n(85312)),t=d(n(86274)),o=d(n(4320)),f=n(52855),V=d(n(92957)),y=d(n(66689)),k=d(n(49883)),C=d(n(48218)),s=d(n(23941)),m=n(14194);function d(l){return l&&l.__esModule?l:{default:l}}function u(l){var c=l.state,v=l.options,p=l.name,h=v.mainAxis,b=h===void 0?!0:h,g=v.altAxis,N=g===void 0?!1:g,B=v.boundary,S=v.rootBoundary,L=v.altBoundary,I=v.padding,w=v.tether,T=w===void 0?!0:w,E=v.tetherOffset,A=E===void 0?0:E,M=(0,k.default)(c,{boundary:B,rootBoundary:S,padding:I,altBoundary:L}),R=(0,a.default)(c.placement),O=(0,C.default)(c.placement),F=!O,D=(0,t.default)(R),j=(0,o.default)(D),_=c.modifiersData.popperOffsets,z=c.rects.reference,H=c.rects.popper,Q=typeof A=="function"?A(Object.assign({},c.rects,{placement:c.placement})):A,Y=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),X=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,$={x:0,y:0};if(_){if(b){var G,Z=D==="y"?e.top:e.left,te=D==="y"?e.bottom:e.right,q=D==="y"?"height":"width",me=_[D],pe=me+M[Z],Ne=me-M[te],le=T?-H[q]/2:0,re=O===e.start?z[q]:H[q],ie=O===e.start?-H[q]:-z[q],Ve=c.elements.arrow,ke=T&&Ve?(0,V.default)(Ve):{width:0,height:0},Be=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:(0,s.default)(),de=Be[Z],oe=Be[te],Ce=(0,f.within)(0,z[q],ke[q]),ae=F?z[q]/2-le-Ce-de-Y.mainAxis:re-Ce-de-Y.mainAxis,ee=F?-z[q]/2+le+Ce+oe+Y.mainAxis:ie+Ce+oe+Y.mainAxis,se=c.elements.arrow&&(0,y.default)(c.elements.arrow),xe=se?D==="y"?se.clientTop||0:se.clientLeft||0:0,Le=(G=X==null?void 0:X[D])!=null?G:0,Pe=me+ae-Le-xe,Fe=me+ee-Le,je=(0,f.within)(T?(0,m.min)(pe,Pe):pe,me,T?(0,m.max)(Ne,Fe):Ne);_[D]=je,$[D]=je-me}if(N){var Me,be=D==="x"?e.top:e.left,ve=D==="x"?e.bottom:e.right,he=_[j],ye=j==="y"?"height":"width",Ie=he+M[be],we=he-M[ve],_e=[e.top,e.left].indexOf(R)!==-1,ze=(Me=X==null?void 0:X[j])!=null?Me:0,Ue=_e?Ie:he-z[ye]-H[ye]-ze+Y.altAxis,Ge=_e?he+z[ye]+H[ye]-ze-Y.altAxis:we,Ke=T&&_e?(0,f.withinMaxClamp)(Ue,he,Ge):(0,f.within)(T?Ue:Ie,he,T?Ge:we);_[j]=Ke,$[j]=Ke-he}c.modifiersData[p]=$}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:u,requiresIfExists:["offset"]}},88037:function(x,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(50252);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(59953)),t=V(n(23786)),o=V(n(15224)),f=V(n(38621));function V(C){return C&&C.__esModule?C:{default:C}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},1728:function(x,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(50252);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(59953)),o=i(n(23786)),f=i(n(15224)),V=i(n(38621)),y=i(n(90642)),k=i(n(21128)),C=i(n(78230)),s=i(n(90860)),m=i(n(17945)),d=n(88037);r.createPopperLite=d.createPopper;var u=n(97934);Object.keys(u).forEach(function(v){v==="default"||v==="__esModule"||Object.prototype.hasOwnProperty.call(e,v)||v in r&&r[v]===u[v]||(r[v]=u[v])});function i(v){return v&&v.__esModule?v:{default:v}}var l=r.defaultModifiers=[t.default,o.default,f.default,V.default,y.default,k.default,C.default,s.default,m.default],c=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:l})},67450:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(48218)),a=n(83996),t=f(n(49883)),o=f(n(85312));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,k){k===void 0&&(k={});var C=k,s=C.placement,m=C.boundary,d=C.rootBoundary,u=C.padding,i=C.flipVariations,l=C.allowedAutoPlacements,c=l===void 0?a.placements:l,v=(0,e.default)(s),p=v?i?a.variationPlacements:a.variationPlacements.filter(function(g){return(0,e.default)(g)===v}):a.basePlacements,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var b=h.reduce(function(g,N){return g[N]=(0,t.default)(y,{placement:N,boundary:m,rootBoundary:d,padding:u})[(0,o.default)(N)],g},{});return Object.keys(b).sort(function(g,N){return b[g]-b[N]})}},85694:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(85312)),a=f(n(48218)),t=f(n(86274)),o=n(83996);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){var k=y.reference,C=y.element,s=y.placement,m=s?(0,e.default)(s):null,d=s?(0,a.default)(s):null,u=k.x+k.width/2-C.width/2,i=k.y+k.height/2-C.height/2,l;switch(m){case o.top:l={x:u,y:k.y-C.height};break;case o.bottom:l={x:u,y:k.y+k.height};break;case o.right:l={x:k.x+k.width,y:i};break;case o.left:l={x:k.x-C.width,y:i};break;default:l={x:k.x,y:k.y}}var c=m?(0,t.default)(m):null;if(c!=null){var v=c==="y"?"height":"width";switch(d){case o.start:l[c]=l[c]-(k[v]/2-C[v]/2);break;case o.end:l[c]=l[c]+(k[v]/2-C[v]/2);break;default:}}return l}},63889:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},49883:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=s(n(35823)),a=s(n(36748)),t=s(n(97617)),o=s(n(85694)),f=s(n(14834)),V=n(83996),y=n(75011),k=s(n(10632)),C=s(n(59597));function s(d){return d&&d.__esModule?d:{default:d}}function m(d,u){u===void 0&&(u={});var i=u,l=i.placement,c=l===void 0?d.placement:l,v=i.strategy,p=v===void 0?d.strategy:v,h=i.boundary,b=h===void 0?V.clippingParents:h,g=i.rootBoundary,N=g===void 0?V.viewport:g,B=i.elementContext,S=B===void 0?V.popper:B,L=i.altBoundary,I=L===void 0?!1:L,w=i.padding,T=w===void 0?0:w,E=(0,k.default)(typeof T!="number"?T:(0,C.default)(T,V.basePlacements)),A=S===V.popper?V.reference:V.popper,M=d.rects.popper,R=d.elements[I?A:S],O=(0,e.default)((0,y.isElement)(R)?R:R.contextElement||(0,a.default)(d.elements.popper),b,N,p),F=(0,t.default)(d.elements.reference),D=(0,o.default)({reference:F,element:M,strategy:"absolute",placement:c}),j=(0,f.default)(Object.assign({},M,D)),_=S===V.popper?j:F,z={top:O.top-_.top+E.top,bottom:_.bottom-O.bottom+E.bottom,left:O.left-_.left+E.left,right:_.right-O.right+E.right},H=d.modifiersData.offset;if(S===V.popper&&H){var Q=H[c];Object.keys(z).forEach(function(Y){var X=[V.right,V.bottom].indexOf(Y)>=0?1:-1,$=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";z[Y]+=Q[$]*X})}return z}},59597:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},4320:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},85312:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(83996);function a(t){return t.split("-")[0]}},23941:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},86274:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},72310:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},53379:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},48218:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},14194:function(x,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},27343:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},10632:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(23941));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},47307:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(83996);function a(o){var f=new Map,V=new Set,y=[];o.forEach(function(C){f.set(C.name,C)});function k(C){V.add(C.name);var s=[].concat(C.requires||[],C.requiresIfExists||[]);s.forEach(function(m){if(!V.has(m)){var d=f.get(m);d&&k(d)}}),y.push(C)}return o.forEach(function(C){V.has(C.name)||k(C)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,y){return V.concat(f.filter(function(k){return k.phase===y}))},[])}},14834:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},36110:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},52855:function(x,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(14194);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var y=a(o,f,V);return y>V?V:y}},22182:function(x,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=K,r._HI=pe,r._M=$e,r._MCCC=zt,r._ME=Wt,r._MFCC=Ut,r._MP=St,r._MR=at,r._RFC=Se,r.__render=Kt,r.createComponentVNode=z,r.createFragment=Q,r.createPortal=Z,r.createRef=wt,r.createRenderer=kn,r.createTextVNode=H,r.createVNode=F,r.directClone=$,r.findDOMfromVNode=N,r.forwardRef=Tt,r.getFlagsForElementVnode=q,r.linkEvent=s,r.normalizeProps=Y,r.options=void 0,r.render=$t,r.rerender=Xt,r.version=void 0;var n=Array.isArray;function e(P){var W=typeof P;return W==="string"||W==="number"}function a(P){return P==null}function t(P){return P===null||P===!1||P===!0||P===void 0}function o(P){return typeof P=="function"}function f(P){return typeof P=="string"}function V(P){return typeof P=="number"}function y(P){return P===null}function k(P){return P===void 0}function C(P,W){var U={};if(P)for(var J in P)U[J]=P[J];if(W)for(var ce in W)U[ce]=W[ce];return U}function s(P,W){return o(W)?{data:P,event:W}:null}function m(P){return!y(P)&&typeof P=="object"}var d=r.EMPTY_OBJ={},u=r.Fragment="$F";function i(P){return P.substr(2).toLowerCase()}function l(P,W){P.appendChild(W)}function c(P,W,U){y(U)?l(P,W):P.insertBefore(W,U)}function v(P,W){return W?document.createElementNS("http://www.w3.org/2000/svg",P):document.createElement(P)}function p(P,W,U){P.replaceChild(W,U)}function h(P,W){P.removeChild(W)}function b(P){for(var W=0;W0,Te=y(ge),Ee=f(ge)&&ge[0]===R;Ae||Te||Ee?(U=U||W.slice(0,ue),(Ae||Ee)&&(fe=$(fe)),(Te||Ee)&&(fe.key=R+ue),U.push(fe)):U&&U.push(fe),fe.flags|=65536}}U=U||W,U.length===0?J=1:J=8}else U=W,U.flags|=65536,W.flags&81920&&(U=$(W)),J=2;return P.children=U,P.childFlags=J,P}function pe(P){return t(P)||e(P)?H(P,null):n(P)?Q(P,0,null):P.flags&16384?$(P):P}var Ne="http://www.w3.org/1999/xlink",le="http://www.w3.org/XML/1998/namespace",re={"xlink:actuate":Ne,"xlink:arcrole":Ne,"xlink:href":Ne,"xlink:role":Ne,"xlink:show":Ne,"xlink:title":Ne,"xlink:type":Ne,"xml:base":le,"xml:lang":le,"xml:space":le};function ie(P){return{onClick:P,onDblClick:P,onFocusIn:P,onFocusOut:P,onKeyDown:P,onKeyPress:P,onKeyUp:P,onMouseDown:P,onMouseMove:P,onMouseUp:P,onTouchEnd:P,onTouchMove:P,onTouchStart:P}}var Ve=ie(0),ke=ie(null),Be=ie(!0);function de(P,W){var U=W.$EV;return U||(U=W.$EV=ie(null)),U[P]||++Ve[P]===1&&(ke[P]=Me(P)),U}function oe(P,W){var U=W.$EV;U&&U[P]&&(--Ve[P]===0&&(document.removeEventListener(i(P),ke[P]),ke[P]=null),U[P]=null)}function Ce(P,W,U,J){if(o(U))de(P,J)[P]=U;else if(m(U)){if(E(W,U))return;de(P,J)[P]=U}else oe(P,J)}function ae(P){return o(P.composedPath)?P.composedPath()[0]:P.target}function ee(P,W,U,J){var ce=ae(P);do{if(W&&ce.disabled)return;var ue=ce.$EV;if(ue){var fe=ue[U];if(fe&&(J.dom=ce,fe.event?fe.event(fe.data,P):fe(P),P.cancelBubble))return}ce=ce.parentNode}while(!y(ce))}function se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function xe(){return this.defaultPrevented}function Le(){return this.cancelBubble}function Pe(P){var W={dom:document};return P.isDefaultPrevented=xe,P.isPropagationStopped=Le,P.stopPropagation=se,Object.defineProperty(P,"currentTarget",{configurable:!0,get:function(){function U(){return W.dom}return U}()}),W}function Fe(P){return function(W){if(W.button!==0){W.stopPropagation();return}ee(W,!0,P,Pe(W))}}function je(P){return function(W){ee(W,!1,P,Pe(W))}}function Me(P){var W=P==="onClick"||P==="onDblClick"?Fe(P):je(P);return document.addEventListener(i(P),W),W}function be(P,W){var U=document.createElement("i");return U.innerHTML=W,U.innerHTML===P.innerHTML}function ve(P,W,U){if(P[W]){var J=P[W];J.event?J.event(J.data,U):J(U)}else{var ce=W.toLowerCase();P[ce]&&P[ce](U)}}function he(P,W){var U=function(ce){var ue=this.$V;if(ue){var fe=ue.props||d,ge=ue.dom;if(f(P))ve(fe,P,ce);else for(var Ae=0;Ae-1&&W.options[ue]&&(ge=W.options[ue].value),U&&a(ge)&&(ge=P.defaultValue),Ke(J,ge)}}var Vt=he("onInput",mt),yt=he("onChange");function kt(P,W){ye(P,"input",Vt),W.onChange&&ye(P,"change",yt)}function mt(P,W,U){var J=P.value,ce=W.value;if(a(J)){if(U){var ue=P.defaultValue;!a(ue)&&ue!==ce&&(W.defaultValue=ue,W.value=ue)}}else ce!==J&&(W.defaultValue=J,W.value=J)}function ft(P,W,U,J,ce,ue){P&64?Ge(J,U):P&256?st(J,U,ce,W):P&128&&mt(J,U,ce),ue&&(U.$V=W)}function Bt(P,W,U){P&64?Ue(W,U):P&256?bt(W):P&128&&kt(W,U)}function pt(P){return P.type&&Ie(P.type)?!a(P.checked):!a(P.value)}function wt(){return{current:null}}function Tt(P){return{render:P}}function lt(P){P&&!M(P,null)&&P.current&&(P.current=null)}function at(P,W,U){P&&(o(P)||P.current!==void 0)&&U.push(function(){!M(P,W)&&P.current!==void 0&&(P.current=W)})}function Ze(P,W){qe(P),B(P,W)}function qe(P){var W=P.flags,U=P.children,J;if(W&481){J=P.ref;var ce=P.props;lt(J);var ue=P.childFlags;if(!y(ce))for(var fe=Object.keys(ce),ge=0,Ae=fe.length;ge0;fe&&(ue=pt(U),ue&&Bt(W,J,U));for(var ge in U)Ct(ge,null,U[ge],J,ce,ue,null);fe&&ft(W,P,J,U,!0,ue)}function Lt(P,W,U){var J=pe(P.render(W,P.state,U)),ce=U;return o(P.getChildContext)&&(ce=C(U,P.getChildContext())),P.$CX=ce,J}function K(P,W,U,J,ce,ue){var fe=new W(U,J),ge=fe.$N=!!(W.getDerivedStateFromProps||fe.getSnapshotBeforeUpdate);if(fe.$SVG=ce,fe.$L=ue,P.children=fe,fe.$BS=!1,fe.context=J,fe.props===d&&(fe.props=U),ge)fe.state=L(fe,U,fe.state);else if(o(fe.componentWillMount)){fe.$BR=!0,fe.componentWillMount();var Ae=fe.$PS;if(!y(Ae)){var Te=fe.state;if(y(Te))fe.state=Ae;else for(var Ee in Ae)Te[Ee]=Ae[Ee];fe.$PS=null}fe.$BR=!1}return fe.$LI=Lt(fe,U,J),fe}function Se(P,W){var U=P.props||d;return P.flags&32768?P.type.render(U,P.ref,W):P.type(U,W)}function $e(P,W,U,J,ce,ue){var fe=P.flags|=16384;fe&481?Wt(P,W,U,J,ce,ue):fe&4?nn(P,W,U,J,ce,ue):fe&8?(on(P,W,U,J,ce,ue),Ut(P,ue)):fe&512||fe&16?jt(P,W,ce):fe&8192?tn(P,U,W,J,ce,ue):fe&1024&&en(P,U,W,ce,ue)}function en(P,W,U,J,ce){$e(P.children,P.ref,W,!1,null,ce);var ue=G();jt(ue,U,J),P.dom=ue.dom}function tn(P,W,U,J,ce,ue){var fe=P.children,ge=P.childFlags;ge&12&&fe.length===0&&(ge=P.childFlags=2,fe=P.children=G()),ge===2?$e(fe,U,W,J,ce,ue):ct(fe,U,W,J,ce,ue)}function jt(P,W,U){var J=P.dom=document.createTextNode(P.children);y(W)||c(W,J,U)}function Wt(P,W,U,J,ce,ue){var fe=P.flags,ge=P.props,Ae=P.className,Te=P.childFlags,Ee=P.dom=v(P.type,J=J||(fe&32)>0),Oe=P.children;if(!a(Ae)&&Ae!==""&&(J?Ee.setAttribute("class",Ae):Ee.className=Ae),Te===16)T(Ee,Oe);else if(Te!==1){var De=J&&P.type!=="foreignObject";Te===2?(Oe.flags&16384&&(P.children=Oe=$(Oe)),$e(Oe,Ee,U,De,null,ue)):(Te===8||Te===4)&&ct(Oe,Ee,U,De,null,ue)}y(W)||c(W,Ee,ce),y(ge)||St(P,fe,ge,Ee,J),at(P.ref,Ee,ue)}function ct(P,W,U,J,ce,ue){for(var fe=0;feDe)&&(Ee=N(fe[De-1],!1).nextSibling)}Ot(Ae,Te,fe,ge,U,J,ce,Ee,P,ue)}function sn(P,W,U,J){var ce=P.ref,ue=W.ref,fe=W.children;if(Ot(P.childFlags,W.childFlags,P.children,fe,ce,U,!1,null,P,J),W.dom=P.dom,ce!==ue&&!t(fe)){var ge=fe.dom;h(ce,ge),l(ue,ge)}}function mn(P,W,U,J,ce,ue){var fe=W.dom=P.dom,ge=P.props,Ae=W.props,Te=!1,Ee=!1,Oe;if(J=J||(ce&32)>0,ge!==Ae){var De=ge||d;if(Oe=Ae||d,Oe!==d){Te=(ce&448)>0,Te&&(Ee=pt(Oe));for(var He in Oe){var Re=De[He],Xe=Oe[He];Re!==Xe&&Ct(He,Re,Xe,fe,J,Ee,P)}}if(De!==d)for(var We in De)a(Oe[We])&&!a(De[We])&&Ct(We,De[We],null,fe,J,Ee,P)}var ot=W.children,Je=W.className;P.className!==Je&&(a(Je)?fe.removeAttribute("class"):J?fe.setAttribute("class",Je):fe.className=Je),ce&4096?dn(fe,ot):Ot(P.childFlags,W.childFlags,P.children,ot,fe,U,J&&W.type!=="foreignObject",null,P,ue),Te&&ft(ce,W,fe,Oe,!1,Ee);var ht=W.ref,et=P.ref;et!==ht&&(lt(et),at(ht,fe,ue))}function fn(P,W,U,J,ce,ue){qe(P),ct(W,U,J,ce,N(P,!0),ue),B(P,U)}function Ot(P,W,U,J,ce,ue,fe,ge,Ae,Te){switch(P){case 2:switch(W){case 2:tt(U,J,ce,ue,fe,ge,Te);break;case 1:Ze(U,ce);break;case 16:qe(U),T(ce,J);break;default:fn(U,J,ce,ue,fe,Te);break}break;case 1:switch(W){case 2:$e(J,ce,ue,fe,ge,Te);break;case 1:break;case 16:T(ce,J);break;default:ct(J,ce,ue,fe,ge,Te);break}break;case 16:switch(W){case 16:ln(U,J,ce);break;case 2:dt(ce),$e(J,ce,ue,fe,ge,Te);break;case 1:dt(ce);break;default:dt(ce),ct(J,ce,ue,fe,ge,Te);break}break;default:switch(W){case 16:it(U),T(ce,J);break;case 2:ut(ce,Ae,U),$e(J,ce,ue,fe,ge,Te);break;case 1:ut(ce,Ae,U);break;default:var Ee=U.length|0,Oe=J.length|0;Ee===0?Oe>0&&ct(J,ce,ue,fe,ge,Te):Oe===0?ut(ce,Ae,U):W===8&&P===8?Nn(U,J,ce,ue,fe,Ee,Oe,ge,Ae,Te):gn(U,J,ce,ue,fe,Ee,Oe,ge,Te);break}break}}function pn(P,W,U,J,ce){ce.push(function(){P.componentDidUpdate(W,U,J)})}function Ht(P,W,U,J,ce,ue,fe,ge,Ae){var Te=P.state,Ee=P.props,Oe=!!P.$N,De=o(P.shouldComponentUpdate);if(Oe&&(W=L(P,U,W!==Te?C(Te,W):W)),fe||!De||De&&P.shouldComponentUpdate(U,W,ce)){!Oe&&o(P.componentWillUpdate)&&P.componentWillUpdate(U,W,ce),P.props=U,P.state=W,P.context=ce;var He=null,Re=Lt(P,U,ce);Oe&&o(P.getSnapshotBeforeUpdate)&&(He=P.getSnapshotBeforeUpdate(Ee,Te)),tt(P.$LI,Re,J,P.$CX,ue,ge,Ae),P.$LI=Re,o(P.componentDidUpdate)&&pn(P,Ee,Te,He,Ae)}else P.props=U,P.state=W,P.context=ce}function Cn(P,W,U,J,ce,ue,fe){var ge=W.children=P.children;if(!y(ge)){ge.$L=fe;var Ae=W.props||d,Te=W.ref,Ee=P.ref,Oe=ge.state;if(!ge.$N){if(o(ge.componentWillReceiveProps)){if(ge.$BR=!0,ge.componentWillReceiveProps(Ae,J),ge.$UN)return;ge.$BR=!1}y(ge.$PS)||(Oe=C(Oe,ge.$PS),ge.$PS=null)}Ht(ge,Oe,Ae,U,J,ce,!1,ue,fe),Ee!==Te&&(lt(Ee),at(Te,ge,fe))}}function hn(P,W,U,J,ce,ue,fe){var ge=!0,Ae=W.props||d,Te=W.ref,Ee=P.props,Oe=!a(Te),De=P.children;if(Oe&&o(Te.onComponentShouldUpdate)&&(ge=Te.onComponentShouldUpdate(Ee,Ae)),ge!==!1){Oe&&o(Te.onComponentWillUpdate)&&Te.onComponentWillUpdate(Ee,Ae);var He=pe(Se(W,J));tt(De,He,U,J,ce,ue,fe),W.children=He,Oe&&o(Te.onComponentDidUpdate)&&Te.onComponentDidUpdate(Ee,Ae)}else W.children=De}function vn(P,W){var U=W.children,J=W.dom=P.dom;U!==P.children&&(J.nodeValue=U)}function gn(P,W,U,J,ce,ue,fe,ge,Ae){for(var Te=ue>fe?fe:ue,Ee=0,Oe,De;Eefe)for(Ee=Te;EeEe||De>Oe)break e;He=P[De],Re=W[De]}for(He=P[Ee],Re=W[Oe];He.key===Re.key;){if(Re.flags&16384&&(W[Oe]=Re=$(Re)),tt(He,Re,U,J,ce,ge,Te),P[Ee]=Re,Ee--,Oe--,De>Ee||De>Oe)break e;He=P[Ee],Re=W[Oe]}}if(De>Ee){if(De<=Oe)for(Xe=Oe+1,We=XeOe)for(;De<=Ee;)Ze(P[De++],U);else bn(P,W,J,ue,fe,Ee,Oe,De,U,ce,ge,Ae,Te)}function bn(P,W,U,J,ce,ue,fe,ge,Ae,Te,Ee,Oe,De){var He,Re,Xe,We=0,ot=ge,Je=ge,ht=ue-ge+1,et=fe-ge+1,vt=new Int32Array(et+1),rt=ht===J,Ft=!1,Qe=0,gt=0;if(ce<4||(ht|et)<32)for(We=ot;We<=ue;++We)if(He=P[We],gtge?Ft=!0:Qe=ge,Re.flags&16384&&(W[ge]=Re=$(Re)),tt(He,Re,Ae,U,Te,Ee,De),++gt;break}!rt&&ge>fe&&Ze(He,Ae)}else rt||Ze(He,Ae);else{var Zt={};for(We=Je;We<=fe;++We)Zt[W[We].key]=We;for(We=ot;We<=ue;++We)if(He=P[We],gtot;)Ze(P[ot++],Ae);vt[ge-Je]=We+1,Qe>ge?Ft=!0:Qe=ge,Re=W[ge],Re.flags&16384&&(W[ge]=Re=$(Re)),tt(He,Re,Ae,U,Te,Ee,De),++gt}else rt||Ze(He,Ae);else rt||Ze(He,Ae)}if(rt)ut(Ae,Oe,P),ct(W,Ae,U,Te,Ee,De);else if(Ft){var Jt=Vn(vt);for(ge=Jt.length-1,We=et-1;We>=0;We--)vt[We]===0?(Qe=We+Je,Re=W[Qe],Re.flags&16384&&(W[Qe]=Re=$(Re)),Xe=Qe+1,$e(Re,Ae,U,Te,Xe=0;We--)vt[We]===0&&(Qe=We+Je,Re=W[Qe],Re.flags&16384&&(W[Qe]=Re=$(Re)),Xe=Qe+1,$e(Re,Ae,U,Te,XeGt&&(Gt=Ae,nt=new Int32Array(Ae),It=new Int32Array(Ae));U>1,P[nt[ge]]0&&(It[U]=nt[ue-1]),nt[ue]=U)}ue=ce+1;var Te=new Int32Array(ue);for(fe=nt[ue-1];ue-- >0;)Te[ue]=fe,fe=It[fe],nt[ue]=0;return Te}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Kt(P,W,U,J){var ce=[],ue=W.$V;I.v=!0,a(ue)?a(P)||(P.flags&16384&&(P=$(P)),$e(P,W,J,!1,null,ce),W.$V=P,ue=P):a(P)?(Ze(ue,W),W.$V=null):(P.flags&16384&&(P=$(P)),tt(ue,P,W,J,!1,null,ce),ue=W.$V=P),b(ce),I.v=!1,o(U)&&U(),o(w.renderComplete)&&w.renderComplete(ue,W)}function $t(P,W,U,J){U===void 0&&(U=null),J===void 0&&(J=d),Kt(P,W,U,J)}function kn(P){return function(){function W(U,J,ce,ue){P||(P=U),$t(J,P,ce,ue)}return W}()}var xt=[],Bn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(P){window.setTimeout(P,0)},Rt=!1;function Yt(P,W,U,J){var ce=P.$PS;if(o(W)&&(W=W(ce?C(P.state,ce):P.state,P.props,P.context)),a(ce))P.$PS=W;else for(var ue in W)ce[ue]=W[ue];if(P.$BR)o(U)&&P.$L.push(U.bind(P));else{if(!I.v&&xt.length===0){Qt(P,J),o(U)&&U.call(P);return}if(xt.indexOf(P)===-1&&xt.push(P),J&&(P.$F=!0),Rt||(Rt=!0,Bn(Xt)),o(U)){var fe=P.$QU;fe||(fe=P.$QU=[]),fe.push(U)}}}function Sn(P){for(var W=P.$QU,U=0;U=0;--_){var z=this.tryEntries[_],H=z.completion;if(z.tryLoc==="root")return j("end");if(z.tryLoc<=this.prev){var Q=a.call(z,"catchLoc"),Y=a.call(z,"finallyLoc");if(Q&&Y){if(this.prev=0;--j){var _=this.tryEntries[j];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var z=_;break}}z&&(F==="break"||F==="continue")&&z.tryLoc<=D&&D<=z.finallyLoc&&(z=null);var H=z?z.completion:{};return H.type=F,H.arg=D,z?(this.method="next",this.next=z.finallyLoc,c):this.complete(H)}return O}(),complete:function(){function O(F,D){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&D&&(this.next=D),c}return O}(),finish:function(){function O(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.finallyLoc===F)return this.complete(j.completion,j.afterLoc),E(j),c}}return O}(),catch:function(){function O(F){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.tryLoc===F){var _=j.completion;if(_.type==="throw"){var z=_.arg;E(j)}return z}}throw new Error("illegal catch attempt")}return O}(),delegateYield:function(){function O(F,D,j){return this.delegate={iterator:M(F),resultName:D,nextLoc:j},this.method==="next"&&(this.arg=o),c}return O}()},n}(x.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9084:function(){"use strict";self.fetch||(self.fetch=function(x,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o=[],f={},V=function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function C(){return Promise.resolve(a.responseText)}return C}(),json:function(){function C(){return Promise.resolve(a.responseText).then(JSON.parse)}return C}(),blob:function(){function C(){return Promise.resolve(new Blob([a.response]))}return C}(),clone:k,headers:{keys:function(){function C(){return t}return C}(),entries:function(){function C(){return o}return C}(),get:function(){function C(s){return f[s.toLowerCase()]}return C}(),has:function(){function C(s){return s.toLowerCase()in f}return C}()}}};for(var y in a.open(r.method||"get",x,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(k,C,s){t.push(C=C.toLowerCase()),o.push([C,s]),f[C]=f[C]?f[C]+","+s:s}),n(V())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(y,r.headers[y]);a.send(r.body||null)})})},45445:function(x,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.sortStrings=r.sortBy=r.sort=r.reduce=r.range=r.paginate=r.map=r.filterMap=r.filter=r.deepMerge=r.binaryInsertWith=void 0;function n(g,N){var B=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(B)return(B=B.call(g)).next.bind(B);if(Array.isArray(g)||(B=e(g))||N&&g&&typeof g.length=="number"){B&&(g=B);var S=0;return function(){return S>=g.length?{done:!0}:{done:!1,value:g[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(g,N){if(g){if(typeof g=="string")return a(g,N);var B=Object.prototype.toString.call(g).slice(8,-1);if(B==="Object"&&g.constructor&&(B=g.constructor.name),B==="Map"||B==="Set")return Array.from(g);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return a(g,N)}}function a(g,N){(N==null||N>g.length)&&(N=g.length);for(var B=0,S=new Array(N);BE)return 1}return 0},y=r.sortBy=function(){function g(){for(var N=arguments.length,B=new Array(N),S=0;S>1,E=N(B[A]),EL?A:A+1},h=r.binaryInsertWith=function(){function g(N){return function(B,S){var L=[].concat(B);return L.splice(l(N,B,S),0,S),L}}return g}(),p=r.paginate=function(){function g(N,B){for(var S=[],L=[],I=B,w=n(N),T;!(T=w()).done;){var E=T.value;L.push(E),I--,I||(I=B,S.push(L),L=[])}return L.length&&S.push(L),S}return g}(),v=function(N){return typeof N=="object"&&N!==null},b=r.deepMerge=function(){function g(){for(var N={},B=arguments.length,S=new Array(B),L=0;LE)return 1}return 0},y=r.sortBy=function(){function g(){for(var N=arguments.length,B=new Array(N),S=0;S>1,E=N(B[A]),EL?A:A+1},v=r.binaryInsertWith=function(){function g(N){return function(B,S){var L=[].concat(B);return L.splice(c(N,B,S),0,S),L}}return g}(),p=r.paginate=function(){function g(N,B){for(var S=[],L=[],I=B,w=n(N),T;!(T=w()).done;){var E=T.value;L.push(E),I--,I||(I=B,S.push(L),L=[])}return L.length&&S.push(L),S}return g}(),h=function(N){return typeof N=="object"&&N!==null},b=r.deepMerge=function(){function g(){for(var N={},B=arguments.length,S=new Array(B),L=0;L1?k-1:0),s=1;s1?C-1:0),m=1;m1?k-1:0),s=1;s1?C-1:0),m=1;mm?m:C}return k}(),e=r.clamp01=function(){function k(C){return C<0?0:C>1?1:C}return k}(),a=r.scale=function(){function k(C,s,m){return(C-s)/(m-s)}return k}(),t=r.round=function(){function k(C,s){if(!C||isNaN(C))return C;var m,u,d,i;return s|=0,m=Math.pow(10,s),C*=m,i=+(C>0)|-(C<0),d=Math.abs(C%1)>=.4999999999854481,u=Math.floor(C),d&&(C=u+(i>0)),(d?C:Math.round(C))/m}return k}(),o=r.toFixed=function(){function k(C,s){return s===void 0&&(s=0),Number(C).toFixed(Math.max(s,0))}return k}(),f=r.inRange=function(){function k(C,s){return s&&C>=s[0]&&C<=s[1]}return k}(),V=r.keyOfMatchingRange=function(){function k(C,s){for(var m=0,u=Object.keys(s);mm?m:C}return k}(),e=r.clamp01=function(){function k(C){return C<0?0:C>1?1:C}return k}(),a=r.scale=function(){function k(C,s,m){return(C-s)/(m-s)}return k}(),t=r.round=function(){function k(C,s){if(!C||isNaN(C))return C;var m,d,u,i;return s|=0,m=Math.pow(10,s),C*=m,i=+(C>0)|-(C<0),u=Math.abs(C%1)>=.4999999999854481,d=Math.floor(C),u&&(C=d+(i>0)),(u?C:Math.round(C))/m}return k}(),o=r.toFixed=function(){function k(C,s){return s===void 0&&(s=0),Number(C).toFixed(Math.max(s,0))}return k}(),f=r.inRange=function(){function k(C,s){return s&&C>=s[0]&&C<=s[1]}return k}(),V=r.keyOfMatchingRange=function(){function k(C,s){for(var m=0,d=Object.keys(s);m1?u-1:0),i=1;i1?g-1:0),B=1;B=0;--ke){var Be=this.tryEntries[ke],ue=Be.completion;if(Be.tryLoc==="root")return Ve("end");if(Be.tryLoc<=this.prev){var oe=N.call(Be,"catchLoc"),Ce=N.call(Be,"finallyLoc");if(oe&&Ce){if(this.prev=0;--Ve){var ke=this.tryEntries[Ve];if(ke.tryLoc<=this.prev&&N.call(ke,"finallyLoc")&&this.prev=0;--ie){var Ve=this.tryEntries[ie];if(Ve.finallyLoc===re)return this.complete(Ve.completion,Ve.afterLoc),me(Ve),D}}return le}(),catch:function(){function le(re){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ve=this.tryEntries[ie];if(Ve.tryLoc===re){var ke=Ve.completion;if(ke.type==="throw"){var Be=ke.arg;me(Ve)}return Be}}throw new Error("illegal catch attempt")}return le}(),delegateYield:function(){function le(re,ie,Ve){return this.delegate={iterator:Ne(re),resultName:ie,nextLoc:Ve},this.method==="next"&&(this.arg=v),D}return le}()},b}function e(v,b,g,N,B,S,L){try{var I=v[S](L),w=I.value}catch(T){g(T);return}I.done?b(w):Promise.resolve(w).then(N,B)}function a(v){return function(){var b=this,g=arguments;return new Promise(function(N,B){var S=v.apply(b,g);function L(w){e(S,N,B,L,I,"next",w)}function I(w){e(S,N,B,L,I,"throw",w)}L(void 0)})}}/** + */var n=r.createStore=function(){function V(y,k){if(k)return k(V)(y);var C,s=[],m=function(){function i(){return C}return i}(),d=function(){function i(l){s.push(l)}return i}(),u=function(){function i(l){C=y(C,l);for(var c=0;c1?d-1:0),i=1;i1?g-1:0),B=1;B=0;--ke){var Be=this.tryEntries[ke],de=Be.completion;if(Be.tryLoc==="root")return Ve("end");if(Be.tryLoc<=this.prev){var oe=N.call(Be,"catchLoc"),Ce=N.call(Be,"finallyLoc");if(oe&&Ce){if(this.prev=0;--Ve){var ke=this.tryEntries[Ve];if(ke.tryLoc<=this.prev&&N.call(ke,"finallyLoc")&&this.prev=0;--ie){var Ve=this.tryEntries[ie];if(Ve.finallyLoc===re)return this.complete(Ve.completion,Ve.afterLoc),me(Ve),D}}return le}(),catch:function(){function le(re){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ve=this.tryEntries[ie];if(Ve.tryLoc===re){var ke=Ve.completion;if(ke.type==="throw"){var Be=ke.arg;me(Ve)}return Be}}throw new Error("illegal catch attempt")}return le}(),delegateYield:function(){function le(re,ie,Ve){return this.delegate={iterator:Ne(re),resultName:ie,nextLoc:Ve},this.method==="next"&&(this.arg=h),D}return le}()},b}function e(h,b,g,N,B,S,L){try{var I=h[S](L),w=I.value}catch(T){g(T);return}I.done?b(w):Promise.resolve(w).then(N,B)}function a(h){return function(){var b=this,g=arguments;return new Promise(function(N,B){var S=h.apply(b,g);function L(w){e(S,N,B,L,I,"next",w)}function I(w){e(S,N,B,L,I,"throw",w)}L(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,f=r.IMPL_INDEXED_DB=2,V=1,y="virgo",k="storage-v1",C="readonly",s="readwrite",m=function(b){return function(){try{return!!b()}catch(g){return!1}}},u=m(function(){return window.localStorage&&window.localStorage.getItem}),d=m(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function v(){this.impl=t,this.store={}}var b=v.prototype;return b.get=function(){function g(N){return this.store[N]}return g}(),b.set=function(){function g(N,B){this.store[N]=B}return g}(),b.remove=function(){function g(N){this.store[N]=void 0}return g}(),b.clear=function(){function g(){this.store={}}return g}(),v}(),c=function(){function v(){this.impl=o}var b=v.prototype;return b.get=function(){function g(N){var B=localStorage.getItem(N);if(typeof B=="string")return JSON.parse(B)}return g}(),b.set=function(){function g(N,B){localStorage.setItem(N,JSON.stringify(B))}return g}(),b.remove=function(){function g(N){localStorage.removeItem(N)}return g}(),b.clear=function(){function g(){localStorage.clear()}return g}(),v}(),l=function(){function v(){this.impl=f,this.dbPromise=new Promise(function(g,N){var B=window.indexedDB||window.msIndexedDB,S=B.open(y,V);S.onupgradeneeded=function(){try{S.result.createObjectStore(k)}catch(L){N(new Error("Failed to upgrade IDB: "+S.error))}},S.onsuccess=function(){return g(S.result)},S.onerror=function(){N(new Error("Failed to open IDB: "+S.error))}})}var b=v.prototype;return b.getStore=function(){function g(N){return this.dbPromise.then(function(B){return B.transaction(k,N).objectStore(k)})}return g}(),b.get=function(){var g=a(n().mark(function(){function B(S){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(C);case 2:return L=w.sent,w.abrupt("return",new Promise(function(T,E){var A=L.get(S);A.onsuccess=function(){return T(A.result)},A.onerror=function(){return E(A.error)}}));case 4:case"end":return w.stop()}}return I}(),B,this)}return B}()));function N(B){return g.apply(this,arguments)}return N}(),b.set=function(){var g=a(n().mark(function(){function B(S,L){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return L===null&&(L=void 0),T.next=3,this.getStore(s);case 3:I=T.sent,I.put(L,S);case 5:case"end":return T.stop()}}return w}(),B,this)}return B}()));function N(B,S){return g.apply(this,arguments)}return N}(),b.remove=function(){var g=a(n().mark(function(){function B(S){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(s);case 2:L=w.sent,L.delete(S);case 4:case"end":return w.stop()}}return I}(),B,this)}return B}()));function N(B){return g.apply(this,arguments)}return N}(),b.clear=function(){var g=a(n().mark(function(){function B(){var S;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(s);case 2:S=I.sent,S.clear();case 4:case"end":return I.stop()}}return L}(),B,this)}return B}()));function N(){return g.apply(this,arguments)}return N}(),v}(),h=function(){function v(){this.backendPromise=a(n().mark(function(){function g(){var N;return n().wrap(function(){function B(S){for(;;)switch(S.prev=S.next){case 0:if(!d()){S.next=10;break}return S.prev=1,N=new l,S.next=5,N.dbPromise;case 5:return S.abrupt("return",N);case 8:S.prev=8,S.t0=S.catch(1);case 10:if(!u()){S.next=12;break}return S.abrupt("return",new c);case 12:return S.abrupt("return",new i);case 13:case"end":return S.stop()}}return B}(),g,null,[[1,8]])}return g}()))()}var b=v.prototype;return b.get=function(){var g=a(n().mark(function(){function B(S){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return L=w.sent,w.abrupt("return",L.get(S));case 4:case"end":return w.stop()}}return I}(),B,this)}return B}()));function N(B){return g.apply(this,arguments)}return N}(),b.set=function(){var g=a(n().mark(function(){function B(S,L){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.set(S,L));case 4:case"end":return T.stop()}}return w}(),B,this)}return B}()));function N(B,S){return g.apply(this,arguments)}return N}(),b.remove=function(){var g=a(n().mark(function(){function B(S){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return L=w.sent,w.abrupt("return",L.remove(S));case 4:case"end":return w.stop()}}return I}(),B,this)}return B}()));function N(B){return g.apply(this,arguments)}return N}(),b.clear=function(){var g=a(n().mark(function(){function B(){var S;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return S=I.sent,I.abrupt("return",S.clear());case 4:case"end":return I.stop()}}return L}(),B,this)}return B}()));function N(){return g.apply(this,arguments)}return N}(),v}(),p=r.storage=new h},40946:function(x,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalizeFirst=r.capitalizeAll=r.capitalize=r.buildQueryString=void 0;function n(u,d){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=e(u))||d&&u&&typeof u.length=="number"){i&&(u=i);var c=0;return function(){return c>=u.length?{done:!0}:{done:!1,value:u[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(u,d){if(u){if(typeof u=="string")return a(u,d);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(u,d)}}function a(u,d){(d==null||d>u.length)&&(d=u.length);for(var i=0,c=new Array(d);i=d.length?{done:!0}:{done:!1,value:d[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(d,u){if(d){if(typeof d=="string")return a(d,u);var i=Object.prototype.toString.call(d).slice(8,-1);if(i==="Object"&&d.constructor&&(i=d.constructor.name),i==="Map"||i==="Set")return Array.from(d);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(d,u)}}function a(d,u){(u==null||u>d.length)&&(u=d.length);for(var i=0,l=new Array(u);i",apos:"'"};return d.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(l,h){return c[h]}).replace(/&#?([0-9]+);/gi,function(l,h){var p=parseInt(h,10);return String.fromCharCode(p)}).replace(/&#x?([0-9a-f]+);/gi,function(l,h){var p=parseInt(h,16);return String.fromCharCode(p)})}return u}(),m=r.buildQueryString=function(){function u(d){return Object.keys(d).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(d[i])}).join("&")}return u}()},84710:function(x,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function d(u){if(Array.isArray(u))return d(u.join(""));for(var i=u.split("\n"),l,c=n(i),v;!(v=c()).done;)for(var p=v.value,h=0;h",apos:"'"};return u.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(c,v){return l[v]}).replace(/&#?([0-9]+);/gi,function(c,v){var p=parseInt(v,10);return String.fromCharCode(p)}).replace(/&#x?([0-9a-f]+);/gi,function(c,v){var p=parseInt(v,16);return String.fromCharCode(p)})}return d}(),m=r.buildQueryString=function(){function d(u){return Object.keys(u).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(u[i])}).join("&")}return d}()},84710:function(x,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,f,V){V===void 0&&(V=!1);var y;return function(){for(var k=arguments.length,C=new Array(k),s=0;s=f)o.apply(null,s),V=u;else{var d;y=setTimeout(function(){return k.apply(void 0,s)},f-(u-((d=V)!=null?d:0)))}}return k}()}return t}(),a=r.sleep=function(){function t(o){return new Promise(function(f){return setTimeout(f,o)})}return t}()},13212:function(x,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(45445);/** + */var n=r.debounce=function(){function t(o,f,V){V===void 0&&(V=!1);var y;return function(){for(var k=arguments.length,C=new Array(k),s=0;s=f)o.apply(null,s),V=d;else{var u;y=setTimeout(function(){return k.apply(void 0,s)},f-(d-((u=V)!=null?u:0)))}}return k}()}return t}(),a=r.sleep=function(){function t(o){return new Promise(function(f){return setTimeout(f,o)})}return t}()},13212:function(x,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(45445);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(c,l){return c+l},t=function(c,l){return c-l},o=function(c,l){return c*l},f=function(c,l){return c/l},V=r.vecAdd=function(){function i(){for(var c=arguments.length,l=new Array(c),h=0;h=0)&&(C[m]=y[m]);return C}var V=r.BlockQuote=function(){function y(k){var C=k.className,s=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",C])},s)))}return y}()},2433:function(x,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(59641),a=n(58734),t=n(33421),o=n(61994),f=["as","className","children"];/** + */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,d;for(d=0;d=0)&&(C[m]=y[m]);return C}var V=r.BlockQuote=function(){function y(k){var C=k.className,s=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",C])},s)))}return y}()},2433:function(x,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(59641),a=n(58734),t=n(33421),o=n(61994),f=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(b,g){if(b==null)return{};var N={},B=Object.keys(b),S,L;for(L=0;L=0)&&(N[S]=b[S]);return N}var y=r.unit=function(){function b(g){if(typeof g=="string")return g.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(g)/12+"rem":g;if(typeof g=="number")return Byond.IS_LTE_IE8?g*12+"px":g+"rem"}return b}(),k=r.halfUnit=function(){function b(g){if(typeof g=="string")return y(g);if(typeof g=="number")return y(g*.5)}return b}(),C=function(g){return!s(g)},s=function(g){return typeof g=="string"&&o.CSS_COLORS.includes(g)},m=function(g){return function(N,B){(typeof B=="number"||typeof B=="string")&&(N[g]=B)}},u=function(g,N){return function(B,S){(typeof S=="number"||typeof S=="string")&&(B[g]=N(S))}},d=function(g,N){return function(B,S){S&&(B[g]=N)}},i=function(g,N,B){return function(S,L){if(typeof L=="number"||typeof L=="string")for(var I=0;I0&&(N.style=E),N}return b}(),p=r.computeBoxClassName=function(){function b(g){var N=g.textColor||g.color,B=g.backgroundColor;return(0,e.classes)([s(N)&&"color-"+N,s(B)&&"color-bg-"+B])}return b}(),v=r.Box=function(){function b(g){var N=g.as,B=N===void 0?"div":N,S=g.className,L=g.children,I=V(g,f);if(typeof L=="function")return L(h(g));var w=typeof S=="string"?S+" "+p(I):p(I),T=h(I);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,B,w,L,t.ChildFlags.UnknownChildren,T,void 0)}return b}();v.defaultHooks=e.pureComponentHooks},24211:function(x,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonFile=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(37145),f=n(2433),V=n(19567),y=n(88078),k=["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","iconSize","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onclick","onClick","verticalAlignContent"],C=["checked"],s=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],m=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"],u=["onSelectFiles","accept","multiple"];/** + */function V(b,g){if(b==null)return{};var N={},B=Object.keys(b),S,L;for(L=0;L=0)&&(N[S]=b[S]);return N}var y=r.unit=function(){function b(g){if(typeof g=="string")return g.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(g)/12+"rem":g;if(typeof g=="number")return Byond.IS_LTE_IE8?g*12+"px":g+"rem"}return b}(),k=r.halfUnit=function(){function b(g){if(typeof g=="string")return y(g);if(typeof g=="number")return y(g*.5)}return b}(),C=function(g){return!s(g)},s=function(g){return typeof g=="string"&&o.CSS_COLORS.includes(g)},m=function(g){return function(N,B){(typeof B=="number"||typeof B=="string")&&(N[g]=B)}},d=function(g,N){return function(B,S){(typeof S=="number"||typeof S=="string")&&(B[g]=N(S))}},u=function(g,N){return function(B,S){S&&(B[g]=N)}},i=function(g,N,B){return function(S,L){if(typeof L=="number"||typeof L=="string")for(var I=0;I0&&(N.style=E),N}return b}(),p=r.computeBoxClassName=function(){function b(g){var N=g.textColor||g.color,B=g.backgroundColor;return(0,e.classes)([s(N)&&"color-"+N,s(B)&&"color-bg-"+B])}return b}(),h=r.Box=function(){function b(g){var N=g.as,B=N===void 0?"div":N,S=g.className,L=g.children,I=V(g,f);if(typeof L=="function")return L(v(g));var w=typeof S=="string"?S+" "+p(I):p(I),T=v(I);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,B,w,L,t.ChildFlags.UnknownChildren,T,void 0)}return b}();h.defaultHooks=e.pureComponentHooks},24211:function(x,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonFile=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(37145),f=n(2433),V=n(19567),y=n(88078),k=["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","iconSize","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onclick","onClick","verticalAlignContent"],C=["checked"],s=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],m=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"],d=["onSelectFiles","accept","multiple"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function d(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return I};var L,I={},w=Object.prototype,T=w.hasOwnProperty,E=Object.defineProperty||function(ue,oe,Ce){ue[oe]=Ce.value},A=typeof Symbol=="function"?Symbol:{},M=A.iterator||"@@iterator",R=A.asyncIterator||"@@asyncIterator",O=A.toStringTag||"@@toStringTag";function F(ue,oe,Ce){return Object.defineProperty(ue,oe,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),ue[oe]}try{F({},"")}catch(ue){F=function(Ce,ae,ee){return Ce[ae]=ee}}function D(ue,oe,Ce,ae){var ee=oe&&oe.prototype instanceof X?oe:X,se=Object.create(ee.prototype),xe=new ke(ae||[]);return E(se,"_invoke",{value:le(ue,Ce,xe)}),se}function j(ue,oe,Ce){try{return{type:"normal",arg:ue.call(oe,Ce)}}catch(ae){return{type:"throw",arg:ae}}}I.wrap=D;var _="suspendedStart",z="suspendedYield",H="executing",Q="completed",Y={};function X(){}function $(){}function G(){}var Z={};F(Z,M,function(){return this});var te=Object.getPrototypeOf,q=te&&te(te(Be([])));q&&q!==w&&T.call(q,M)&&(Z=q);var me=G.prototype=X.prototype=Object.create(Z);function pe(ue){["next","throw","return"].forEach(function(oe){F(ue,oe,function(Ce){return this._invoke(oe,Ce)})})}function Ne(ue,oe){function Ce(ee,se,xe,Le){var Pe=j(ue[ee],ue,se);if(Pe.type!=="throw"){var Fe=Pe.arg,je=Fe.value;return je&&typeof je=="object"&&T.call(je,"__await")?oe.resolve(je.__await).then(function(Me){Ce("next",Me,xe,Le)},function(Me){Ce("throw",Me,xe,Le)}):oe.resolve(je).then(function(Me){Fe.value=Me,xe(Fe)},function(Me){return Ce("throw",Me,xe,Le)})}Le(Pe.arg)}var ae;E(this,"_invoke",{value:function(){function ee(se,xe){function Le(){return new oe(function(Pe,Fe){Ce(se,xe,Pe,Fe)})}return ae=ae?ae.then(Le,Le):Le()}return ee}()})}function le(ue,oe,Ce){var ae=_;return function(ee,se){if(ae===H)throw new Error("Generator is already running");if(ae===Q){if(ee==="throw")throw se;return{value:L,done:!0}}for(Ce.method=ee,Ce.arg=se;;){var xe=Ce.delegate;if(xe){var Le=re(xe,Ce);if(Le){if(Le===Y)continue;return Le}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(ae===_)throw ae=Q,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);ae=H;var Pe=j(ue,oe,Ce);if(Pe.type==="normal"){if(ae=Ce.done?Q:z,Pe.arg===Y)continue;return{value:Pe.arg,done:Ce.done}}Pe.type==="throw"&&(ae=Q,Ce.method="throw",Ce.arg=Pe.arg)}}}function re(ue,oe){var Ce=oe.method,ae=ue.iterator[Ce];if(ae===L)return oe.delegate=null,Ce==="throw"&&ue.iterator.return&&(oe.method="return",oe.arg=L,re(ue,oe),oe.method==="throw")||Ce!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),Y;var ee=j(ae,ue.iterator,oe.arg);if(ee.type==="throw")return oe.method="throw",oe.arg=ee.arg,oe.delegate=null,Y;var se=ee.arg;return se?se.done?(oe[ue.resultName]=se.value,oe.next=ue.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=L),oe.delegate=null,Y):se:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,Y)}function ie(ue){var oe={tryLoc:ue[0]};1 in ue&&(oe.catchLoc=ue[1]),2 in ue&&(oe.finallyLoc=ue[2],oe.afterLoc=ue[3]),this.tryEntries.push(oe)}function Ve(ue){var oe=ue.completion||{};oe.type="normal",delete oe.arg,ue.completion=oe}function ke(ue){this.tryEntries=[{tryLoc:"root"}],ue.forEach(ie,this),this.reset(!0)}function Be(ue){if(ue||ue===""){var oe=ue[M];if(oe)return oe.call(ue);if(typeof ue.next=="function")return ue;if(!isNaN(ue.length)){var Ce=-1,ae=function(){function ee(){for(;++Ce=0;--ee){var se=this.tryEntries[ee],xe=se.completion;if(se.tryLoc==="root")return ae("end");if(se.tryLoc<=this.prev){var Le=T.call(se,"catchLoc"),Pe=T.call(se,"finallyLoc");if(Le&&Pe){if(this.prev=0;--ae){var ee=this.tryEntries[ae];if(ee.tryLoc<=this.prev&&T.call(ee,"finallyLoc")&&this.prev=0;--Ce){var ae=this.tryEntries[Ce];if(ae.finallyLoc===oe)return this.complete(ae.completion,ae.afterLoc),Ve(ae),Y}}return ue}(),catch:function(){function ue(oe){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var ae=this.tryEntries[Ce];if(ae.tryLoc===oe){var ee=ae.completion;if(ee.type==="throw"){var se=ee.arg;Ve(ae)}return se}}throw new Error("illegal catch attempt")}return ue}(),delegateYield:function(){function ue(oe,Ce,ae){return this.delegate={iterator:Be(oe),resultName:Ce,nextLoc:ae},this.method==="next"&&(this.arg=L),Y}return ue}()},I}function i(L,I,w,T,E,A,M){try{var R=L[A](M),O=R.value}catch(F){w(F);return}R.done?I(O):Promise.resolve(O).then(T,E)}function c(L){return function(){var I=this,w=arguments;return new Promise(function(T,E){var A=L.apply(I,w);function M(O){i(A,T,E,M,R,"next",O)}function R(O){i(A,T,E,M,R,"throw",O)}M(void 0)})}}function l(L,I){L.prototype=Object.create(I.prototype),L.prototype.constructor=L,h(L,I)}function h(L,I){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(T,E){return T.__proto__=E,T}return w}(),h(L,I)}function p(L,I){if(L==null)return{};var w={},T=Object.keys(L),E,A;for(A=0;A=0)&&(w[E]=L[E]);return w}var v=(0,o.createLogger)("Button"),b=r.Button=function(){function L(I){var w=I.className,T=I.fluid,E=I.icon,A=I.iconRotation,M=I.iconSpin,R=I.iconColor,O=I.iconPosition,F=I.iconSize,D=I.color,j=I.disabled,_=I.selected,z=I.tooltip,H=I.tooltipPosition,Q=I.ellipsis,Y=I.compact,X=I.circular,$=I.content,G=I.children,Z=I.onclick,te=I.onClick,q=I.verticalAlignContent,me=p(I,k),pe=!!($||G);Z&&v.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),me.onClick=function(le){!j&&te&&te(le)},Byond.IS_LTE_IE8&&(me.unselectable=!0);var Ne=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Button",T&&"Button--fluid",j&&"Button--disabled",_&&"Button--selected",pe&&"Button--hasContent",Q&&"Button--ellipsis",X&&"Button--circular",Y&&"Button--compact",O&&"Button--iconPosition--"+O,q&&"Button--flex",q&&T&&"Button--flex--fluid",q&&"Button--verticalAlignContent--"+q,D&&typeof D=="string"?"Button--color--"+D:"Button--color--default",w,(0,f.computeBoxClassName)(me)]),(0,e.createVNode)(1,"div","Button__content",[E&&O!=="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:E,color:R,rotation:A,spin:M}),$,G,E&&O==="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:E,color:R,rotation:A,spin:M,fontSize:F})],0),2,Object.assign({tabIndex:!j&&"0",onKeyDown:function(){function le(re){if(I.captureKeys!==!1){var ie=window.event?re.which:re.keyCode;if(ie===a.KEY_SPACE||ie===a.KEY_ENTER){re.preventDefault(),!j&&te&&te(re);return}if(ie===a.KEY_ESCAPE){re.preventDefault();return}}}return le}()},(0,f.computeBoxProps)(me))));return z&&(Ne=(0,e.createComponentVNode)(2,y.Tooltip,{content:z,position:H,children:Ne})),Ne}return L}();b.defaultHooks=t.pureComponentHooks;var g=r.ButtonCheckbox=function(){function L(I){var w=I.checked,T=p(I,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({color:"transparent",icon:w?"check-square-o":"square-o",selected:w},T)))}return L}();b.Checkbox=g;var N=r.ButtonConfirm=function(L){l(I,L);function I(){var T;return T=L.call(this)||this,T.state={clickedOnce:!1},T.handleClick=function(){T.state.clickedOnce&&T.setClickedOnce(!1)},T}var w=I.prototype;return w.setClickedOnce=function(){function T(E){var A=this;this.setState({clickedOnce:E}),E?setTimeout(function(){return window.addEventListener("click",A.handleClick)}):window.removeEventListener("click",this.handleClick)}return T}(),w.render=function(){function T(){var E=this,A=this.props,M=A.confirmContent,R=M===void 0?"Confirm?":M,O=A.confirmColor,F=O===void 0?"bad":O,D=A.confirmIcon,j=A.icon,_=A.color,z=A.content,H=A.onClick,Q=p(A,s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({content:this.state.clickedOnce?R:z,icon:this.state.clickedOnce?D:j,color:this.state.clickedOnce?F:_,onClick:function(){function Y(){return E.state.clickedOnce?H():E.setClickedOnce(!0)}return Y}()},Q)))}return T}(),I}(e.Component);b.Confirm=N;var B=r.ButtonInput=function(L){l(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T.state={inInput:!1},T}var w=I.prototype;return w.setInInput=function(){function T(E){if(this.setState({inInput:E}),this.inputRef){var A=this.inputRef.current;if(E){A.value=this.props.currentValue||"";try{A.focus(),A.select()}catch(M){}}}}return T}(),w.commitResult=function(){function T(E){if(this.inputRef){var A=this.inputRef.current,M=A.value!=="";if(M){this.props.onCommit(E,A.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(E,this.props.defaultValue)}}}return T}(),w.render=function(){function T(){var E=this,A=this.props,M=A.fluid,R=A.content,O=A.icon,F=A.iconRotation,D=A.iconSpin,j=A.tooltip,_=A.tooltipPosition,z=A.color,H=z===void 0?"default":z,Q=A.placeholder,Y=A.maxLength,X=p(A,m),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,t.classes)(["Button",M&&"Button--fluid","Button--color--"+H])},X,{onClick:function(){function G(){return E.setInInput(!0)}return G}(),children:[O&&(0,e.createComponentVNode)(2,V.Icon,{name:O,rotation:F,spin:D}),(0,e.createVNode)(1,"div",null,R,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function G(Z){E.state.inInput&&(E.setInInput(!1),E.commitResult(Z))}return G}(),onKeyDown:function(){function G(Z){if(Z.keyCode===a.KEY_ENTER){E.setInInput(!1),E.commitResult(Z);return}Z.keyCode===a.KEY_ESCAPE&&E.setInInput(!1)}return G}()},null,this.inputRef)]})));return j&&($=(0,e.createComponentVNode)(2,y.Tooltip,{content:j,position:_,children:$})),$}return T}(),I}(e.Component);b.Input=B;var S=r.ButtonFile=function(L){l(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T}var w=I.prototype;return w.read=function(){var T=c(d().mark(function(){function A(M){var R;return d().wrap(function(){function O(F){for(;;)switch(F.prev=F.next){case 0:return R=Array.from(M).map(function(D){var j=new FileReader;return new Promise(function(_){j.onload=function(){return _(j.result)},j.readAsText(D)})}),F.next=3,Promise.all(R);case 3:return F.abrupt("return",F.sent);case 4:case"end":return F.stop()}}return O}(),A)}return A}()));function E(A){return T.apply(this,arguments)}return E}(),w.render=function(){function T(){var E=this,A=this.props,M=A.onSelectFiles,R=A.accept,O=A.multiple,F=p(A,u),D=(0,e.createVNode)(64,"input",null,null,1,{hidden:!0,type:"file",accept:R,multiple:O,onChange:function(){var j=c(d().mark(function(){function z(){var H,Q;return d().wrap(function(){function Y(X){for(;;)switch(X.prev=X.next){case 0:if(H=E.inputRef.current.files,!H.length){X.next=6;break}return X.next=4,E.read(H);case 4:Q=X.sent,M(O?Q:Q[0]);case 6:case"end":return X.stop()}}return Y}(),z)}return z}()));function _(){return j.apply(this,arguments)}return _}()},null,this.inputRef);return(0,e.createFragment)([(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},F,{onClick:function(){function j(){E.inputRef.current.click()}return j}()}))),D],0)}return T}(),I}(e.Component);b.File=S},78581:function(x,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(58734),a=n(59641),t=n(84710),o=n(37145),f=n(2433),V=["params"],y=["params"],k=["params"];function C(h,p){if(h==null)return{};var v={},b=Object.keys(h),g,N;for(N=0;N=0)&&(v[g]=h[g]);return v}function s(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,m(h,p)}function m(h,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(b,g){return b.__proto__=g,b}return v}(),m(h,p)}/** + */function u(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return I};var L,I={},w=Object.prototype,T=w.hasOwnProperty,E=Object.defineProperty||function(de,oe,Ce){de[oe]=Ce.value},A=typeof Symbol=="function"?Symbol:{},M=A.iterator||"@@iterator",R=A.asyncIterator||"@@asyncIterator",O=A.toStringTag||"@@toStringTag";function F(de,oe,Ce){return Object.defineProperty(de,oe,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),de[oe]}try{F({},"")}catch(de){F=function(Ce,ae,ee){return Ce[ae]=ee}}function D(de,oe,Ce,ae){var ee=oe&&oe.prototype instanceof X?oe:X,se=Object.create(ee.prototype),xe=new ke(ae||[]);return E(se,"_invoke",{value:le(de,Ce,xe)}),se}function j(de,oe,Ce){try{return{type:"normal",arg:de.call(oe,Ce)}}catch(ae){return{type:"throw",arg:ae}}}I.wrap=D;var _="suspendedStart",z="suspendedYield",H="executing",Q="completed",Y={};function X(){}function $(){}function G(){}var Z={};F(Z,M,function(){return this});var te=Object.getPrototypeOf,q=te&&te(te(Be([])));q&&q!==w&&T.call(q,M)&&(Z=q);var me=G.prototype=X.prototype=Object.create(Z);function pe(de){["next","throw","return"].forEach(function(oe){F(de,oe,function(Ce){return this._invoke(oe,Ce)})})}function Ne(de,oe){function Ce(ee,se,xe,Le){var Pe=j(de[ee],de,se);if(Pe.type!=="throw"){var Fe=Pe.arg,je=Fe.value;return je&&typeof je=="object"&&T.call(je,"__await")?oe.resolve(je.__await).then(function(Me){Ce("next",Me,xe,Le)},function(Me){Ce("throw",Me,xe,Le)}):oe.resolve(je).then(function(Me){Fe.value=Me,xe(Fe)},function(Me){return Ce("throw",Me,xe,Le)})}Le(Pe.arg)}var ae;E(this,"_invoke",{value:function(){function ee(se,xe){function Le(){return new oe(function(Pe,Fe){Ce(se,xe,Pe,Fe)})}return ae=ae?ae.then(Le,Le):Le()}return ee}()})}function le(de,oe,Ce){var ae=_;return function(ee,se){if(ae===H)throw new Error("Generator is already running");if(ae===Q){if(ee==="throw")throw se;return{value:L,done:!0}}for(Ce.method=ee,Ce.arg=se;;){var xe=Ce.delegate;if(xe){var Le=re(xe,Ce);if(Le){if(Le===Y)continue;return Le}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(ae===_)throw ae=Q,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);ae=H;var Pe=j(de,oe,Ce);if(Pe.type==="normal"){if(ae=Ce.done?Q:z,Pe.arg===Y)continue;return{value:Pe.arg,done:Ce.done}}Pe.type==="throw"&&(ae=Q,Ce.method="throw",Ce.arg=Pe.arg)}}}function re(de,oe){var Ce=oe.method,ae=de.iterator[Ce];if(ae===L)return oe.delegate=null,Ce==="throw"&&de.iterator.return&&(oe.method="return",oe.arg=L,re(de,oe),oe.method==="throw")||Ce!=="return"&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),Y;var ee=j(ae,de.iterator,oe.arg);if(ee.type==="throw")return oe.method="throw",oe.arg=ee.arg,oe.delegate=null,Y;var se=ee.arg;return se?se.done?(oe[de.resultName]=se.value,oe.next=de.nextLoc,oe.method!=="return"&&(oe.method="next",oe.arg=L),oe.delegate=null,Y):se:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,Y)}function ie(de){var oe={tryLoc:de[0]};1 in de&&(oe.catchLoc=de[1]),2 in de&&(oe.finallyLoc=de[2],oe.afterLoc=de[3]),this.tryEntries.push(oe)}function Ve(de){var oe=de.completion||{};oe.type="normal",delete oe.arg,de.completion=oe}function ke(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(ie,this),this.reset(!0)}function Be(de){if(de||de===""){var oe=de[M];if(oe)return oe.call(de);if(typeof de.next=="function")return de;if(!isNaN(de.length)){var Ce=-1,ae=function(){function ee(){for(;++Ce=0;--ee){var se=this.tryEntries[ee],xe=se.completion;if(se.tryLoc==="root")return ae("end");if(se.tryLoc<=this.prev){var Le=T.call(se,"catchLoc"),Pe=T.call(se,"finallyLoc");if(Le&&Pe){if(this.prev=0;--ae){var ee=this.tryEntries[ae];if(ee.tryLoc<=this.prev&&T.call(ee,"finallyLoc")&&this.prev=0;--Ce){var ae=this.tryEntries[Ce];if(ae.finallyLoc===oe)return this.complete(ae.completion,ae.afterLoc),Ve(ae),Y}}return de}(),catch:function(){function de(oe){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var ae=this.tryEntries[Ce];if(ae.tryLoc===oe){var ee=ae.completion;if(ee.type==="throw"){var se=ee.arg;Ve(ae)}return se}}throw new Error("illegal catch attempt")}return de}(),delegateYield:function(){function de(oe,Ce,ae){return this.delegate={iterator:Be(oe),resultName:Ce,nextLoc:ae},this.method==="next"&&(this.arg=L),Y}return de}()},I}function i(L,I,w,T,E,A,M){try{var R=L[A](M),O=R.value}catch(F){w(F);return}R.done?I(O):Promise.resolve(O).then(T,E)}function l(L){return function(){var I=this,w=arguments;return new Promise(function(T,E){var A=L.apply(I,w);function M(O){i(A,T,E,M,R,"next",O)}function R(O){i(A,T,E,M,R,"throw",O)}M(void 0)})}}function c(L,I){L.prototype=Object.create(I.prototype),L.prototype.constructor=L,v(L,I)}function v(L,I){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(T,E){return T.__proto__=E,T}return w}(),v(L,I)}function p(L,I){if(L==null)return{};var w={},T=Object.keys(L),E,A;for(A=0;A=0)&&(w[E]=L[E]);return w}var h=(0,o.createLogger)("Button"),b=r.Button=function(){function L(I){var w=I.className,T=I.fluid,E=I.icon,A=I.iconRotation,M=I.iconSpin,R=I.iconColor,O=I.iconPosition,F=I.iconSize,D=I.color,j=I.disabled,_=I.selected,z=I.tooltip,H=I.tooltipPosition,Q=I.ellipsis,Y=I.compact,X=I.circular,$=I.content,G=I.children,Z=I.onclick,te=I.onClick,q=I.verticalAlignContent,me=p(I,k),pe=!!($||G);Z&&h.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),me.onClick=function(le){!j&&te&&te(le)},Byond.IS_LTE_IE8&&(me.unselectable=!0);var Ne=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Button",T&&"Button--fluid",j&&"Button--disabled",_&&"Button--selected",pe&&"Button--hasContent",Q&&"Button--ellipsis",X&&"Button--circular",Y&&"Button--compact",O&&"Button--iconPosition--"+O,q&&"Button--flex",q&&T&&"Button--flex--fluid",q&&"Button--verticalAlignContent--"+q,D&&typeof D=="string"?"Button--color--"+D:"Button--color--default",w,(0,f.computeBoxClassName)(me)]),(0,e.createVNode)(1,"div","Button__content",[E&&O!=="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:E,color:R,rotation:A,spin:M}),$,G,E&&O==="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:E,color:R,rotation:A,spin:M,fontSize:F})],0),2,Object.assign({tabIndex:!j&&"0",onKeyDown:function(){function le(re){if(I.captureKeys!==!1){var ie=window.event?re.which:re.keyCode;if(ie===a.KEY_SPACE||ie===a.KEY_ENTER){re.preventDefault(),!j&&te&&te(re);return}if(ie===a.KEY_ESCAPE){re.preventDefault();return}}}return le}()},(0,f.computeBoxProps)(me))));return z&&(Ne=(0,e.createComponentVNode)(2,y.Tooltip,{content:z,position:H,children:Ne})),Ne}return L}();b.defaultHooks=t.pureComponentHooks;var g=r.ButtonCheckbox=function(){function L(I){var w=I.checked,T=p(I,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({color:"transparent",icon:w?"check-square-o":"square-o",selected:w},T)))}return L}();b.Checkbox=g;var N=r.ButtonConfirm=function(L){c(I,L);function I(){var T;return T=L.call(this)||this,T.state={clickedOnce:!1},T.handleClick=function(){T.state.clickedOnce&&T.setClickedOnce(!1)},T}var w=I.prototype;return w.setClickedOnce=function(){function T(E){var A=this;this.setState({clickedOnce:E}),E?setTimeout(function(){return window.addEventListener("click",A.handleClick)}):window.removeEventListener("click",this.handleClick)}return T}(),w.render=function(){function T(){var E=this,A=this.props,M=A.confirmContent,R=M===void 0?"Confirm?":M,O=A.confirmColor,F=O===void 0?"bad":O,D=A.confirmIcon,j=A.icon,_=A.color,z=A.content,H=A.onClick,Q=p(A,s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({content:this.state.clickedOnce?R:z,icon:this.state.clickedOnce?D:j,color:this.state.clickedOnce?F:_,onClick:function(){function Y(){return E.state.clickedOnce?H():E.setClickedOnce(!0)}return Y}()},Q)))}return T}(),I}(e.Component);b.Confirm=N;var B=r.ButtonInput=function(L){c(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T.state={inInput:!1},T}var w=I.prototype;return w.setInInput=function(){function T(E){if(this.setState({inInput:E}),this.inputRef){var A=this.inputRef.current;if(E){A.value=this.props.currentValue||"";try{A.focus(),A.select()}catch(M){}}}}return T}(),w.commitResult=function(){function T(E){if(this.inputRef){var A=this.inputRef.current,M=A.value!=="";if(M){this.props.onCommit(E,A.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(E,this.props.defaultValue)}}}return T}(),w.render=function(){function T(){var E=this,A=this.props,M=A.fluid,R=A.content,O=A.icon,F=A.iconRotation,D=A.iconSpin,j=A.tooltip,_=A.tooltipPosition,z=A.color,H=z===void 0?"default":z,Q=A.placeholder,Y=A.maxLength,X=p(A,m),$=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,t.classes)(["Button",M&&"Button--fluid","Button--color--"+H])},X,{onClick:function(){function G(){return E.setInInput(!0)}return G}(),children:[O&&(0,e.createComponentVNode)(2,V.Icon,{name:O,rotation:F,spin:D}),(0,e.createVNode)(1,"div",null,R,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function G(Z){E.state.inInput&&(E.setInInput(!1),E.commitResult(Z))}return G}(),onKeyDown:function(){function G(Z){if(Z.keyCode===a.KEY_ENTER){E.setInInput(!1),E.commitResult(Z);return}Z.keyCode===a.KEY_ESCAPE&&E.setInInput(!1)}return G}()},null,this.inputRef)]})));return j&&($=(0,e.createComponentVNode)(2,y.Tooltip,{content:j,position:_,children:$})),$}return T}(),I}(e.Component);b.Input=B;var S=r.ButtonFile=function(L){c(I,L);function I(){var T;return T=L.call(this)||this,T.inputRef=(0,e.createRef)(),T}var w=I.prototype;return w.read=function(){var T=l(u().mark(function(){function A(M){var R;return u().wrap(function(){function O(F){for(;;)switch(F.prev=F.next){case 0:return R=Array.from(M).map(function(D){var j=new FileReader;return new Promise(function(_){j.onload=function(){return _(j.result)},j.readAsText(D)})}),F.next=3,Promise.all(R);case 3:return F.abrupt("return",F.sent);case 4:case"end":return F.stop()}}return O}(),A)}return A}()));function E(A){return T.apply(this,arguments)}return E}(),w.render=function(){function T(){var E=this,A=this.props,M=A.onSelectFiles,R=A.accept,O=A.multiple,F=p(A,d),D=(0,e.createVNode)(64,"input",null,null,1,{hidden:!0,type:"file",accept:R,multiple:O,onChange:function(){var j=l(u().mark(function(){function z(){var H,Q;return u().wrap(function(){function Y(X){for(;;)switch(X.prev=X.next){case 0:if(H=E.inputRef.current.files,!H.length){X.next=6;break}return X.next=4,E.read(H);case 4:Q=X.sent,M(O?Q:Q[0]);case 6:case"end":return X.stop()}}return Y}(),z)}return z}()));function _(){return j.apply(this,arguments)}return _}()},null,this.inputRef);return(0,e.createFragment)([(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},F,{onClick:function(){function j(){E.inputRef.current.click()}return j}()}))),D],0)}return T}(),I}(e.Component);b.File=S},78581:function(x,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(58734),a=n(59641),t=n(84710),o=n(37145),f=n(2433),V=["params"],y=["params"],k=["params"];function C(v,p){if(v==null)return{};var h={},b=Object.keys(v),g,N;for(N=0;N=0)&&(h[g]=v[g]);return h}function s(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,m(v,p)}function m(v,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(b,g){return b.__proto__=g,b}return h}(),m(v,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var u=(0,o.createLogger)("ByondUi"),d=[],i=function(p){var v=d.length;d.push(null);var b=p||"byondui_"+v;return u.log("allocated '"+b+"'"),{render:function(){function g(N){u.log("rendering '"+b+"'"),d[v]=b,Byond.winset(b,N)}return g}(),unmount:function(){function g(){u.log("unmounting '"+b+"'"),d[v]=null,Byond.winset(b,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var h=0;h=0)&&(l[p]=i[p]);return l}function y(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,k(i,c)}function k(i,c){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(h,p){return h.__proto__=p,h}return l}(),k(i,c)}/** +*/var d=(0,o.createLogger)("ByondUi"),u=[],i=function(p){var h=u.length;u.push(null);var b=p||"byondui_"+h;return d.log("allocated '"+b+"'"),{render:function(){function g(N){d.log("rendering '"+b+"'"),u[h]=b,Byond.winset(b,N)}return g}(),unmount:function(){function g(){d.log("unmounting '"+b+"'"),u[h]=null,Byond.winset(b,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var v=0;v=0)&&(c[p]=i[p]);return c}function y(i,l){i.prototype=Object.create(l.prototype),i.prototype.constructor=i,k(i,l)}function k(i,l){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(v,p){return v.__proto__=p,v}return c}(),k(i,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var C=function(c,l,h,p){if(c.length===0)return[];var v=(0,a.zipWith)(Math.min).apply(void 0,c),b=(0,a.zipWith)(Math.max).apply(void 0,c);h!==void 0&&(v[0]=h[0],b[0]=h[1]),p!==void 0&&(v[1]=p[0],b[1]=p[1]);var g=(0,a.map)(function(N){return(0,a.zipWith)(function(B,S,L,I){return(B-S)/(L-S)*I})(N,v,b,l)})(c);return g},s=function(c){for(var l="",h=0;h0){var O=R[0],F=R[R.length-1];R.push([M[0]+E,F[1]]),R.push([M[0]+E,-E]),R.push([-E,-E]),R.push([-E,O[1]])}var D=s(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function j(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:L,stroke:w,"stroke-width":E,points:D}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,p.ref))}return j}()})))}return h}(),c}(e.Component);m.defaultHooks=t.pureComponentHooks;var u=function(c){return null},d=r.Chart={Line:Byond.IS_LTE_IE8?u:m}},57988:function(x,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(58734),a=n(2433),t=n(24211),o=["children","color","title","buttons"];function f(C,s){if(C==null)return{};var m={},u=Object.keys(C),d,i;for(i=0;i=0)&&(m[d]=C[d]);return m}function V(C,s){C.prototype=Object.create(s.prototype),C.prototype.constructor=C,y(C,s)}function y(C,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function m(u,d){return u.__proto__=d,u}return m}(),y(C,s)}/** +*/var C=function(l,c,v,p){if(l.length===0)return[];var h=(0,a.zipWith)(Math.min).apply(void 0,l),b=(0,a.zipWith)(Math.max).apply(void 0,l);v!==void 0&&(h[0]=v[0],b[0]=v[1]),p!==void 0&&(h[1]=p[0],b[1]=p[1]);var g=(0,a.map)(function(N){return(0,a.zipWith)(function(B,S,L,I){return(B-S)/(L-S)*I})(N,h,b,c)})(l);return g},s=function(l){for(var c="",v=0;v0){var O=R[0],F=R[R.length-1];R.push([M[0]+E,F[1]]),R.push([M[0]+E,-E]),R.push([-E,-E]),R.push([-E,O[1]])}var D=s(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function j(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:L,stroke:w,"stroke-width":E,points:D}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,p.ref))}return j}()})))}return v}(),l}(e.Component);m.defaultHooks=t.pureComponentHooks;var d=function(l){return null},u=r.Chart={Line:Byond.IS_LTE_IE8?d:m}},57988:function(x,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(58734),a=n(2433),t=n(24211),o=["children","color","title","buttons"];function f(C,s){if(C==null)return{};var m={},d=Object.keys(C),u,i;for(i=0;i=0)&&(m[u]=C[u]);return m}function V(C,s){C.prototype=Object.create(s.prototype),C.prototype.constructor=C,y(C,s)}function y(C,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function m(d,u){return d.__proto__=u,d}return m}(),y(C,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Collapsible=function(C){V(s,C);function s(u){var d;d=C.call(this,u)||this;var i=u.open;return d.state={open:i||!1},d}var m=s.prototype;return m.render=function(){function u(){var d=this,i=this.props,c=this.state.open,l=i.children,h=i.color,p=h===void 0?"default":h,v=i.title,b=i.buttons,g=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:p,icon:c?"chevron-down":"chevron-right",onClick:function(){function N(){return d.setState({open:!c})}return N}()},g,{children:v}))),2),b&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",b,0)],0),c&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:l})]})}return u}(),s}(e.Component)},95576:function(x,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["content","children","className","color","backgroundColor"];/** +*/var k=r.Collapsible=function(C){V(s,C);function s(d){var u;u=C.call(this,d)||this;var i=d.open;return u.state={open:i||!1},u}var m=s.prototype;return m.render=function(){function d(){var u=this,i=this.props,l=this.state.open,c=i.children,v=i.color,p=v===void 0?"default":v,h=i.title,b=i.buttons,g=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:p,icon:l?"chevron-down":"chevron-right",onClick:function(){function N(){return u.setState({open:!l})}return N}()},g,{children:h}))),2),b&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",b,0)],0),l&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:c})]})}return d}(),s}(e.Component)},95576:function(x,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,u;for(u=0;u=0)&&(C[m]=y[m]);return C}var V=r.ColorBox=function(){function y(k){var C=k.content,s=k.children,m=k.className,u=k.color,d=k.backgroundColor,i=f(k,o);return i.color=C?null:"transparent",i.backgroundColor=u||d,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",m,(0,t.computeBoxClassName)(i)]),C||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return y}();V.defaultHooks=a.pureComponentHooks},59493:function(x,r,n){"use strict";r.__esModule=!0,r.UnsavedChangesDialog=r.Dialog=void 0;var e=n(58734),a=n(2433),t=n(24211);/** + */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,d;for(d=0;d=0)&&(C[m]=y[m]);return C}var V=r.ColorBox=function(){function y(k){var C=k.content,s=k.children,m=k.className,d=k.color,u=k.backgroundColor,i=f(k,o);return i.color=C?null:"transparent",i.backgroundColor=d||u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",m,(0,t.computeBoxClassName)(i)]),C||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return y}();V.defaultHooks=a.pureComponentHooks},59493:function(x,r,n){"use strict";r.__esModule=!0,r.UnsavedChangesDialog=r.Dialog=void 0;var e=n(58734),a=n(2433),t=n(24211);/** * @file * @copyright 2022 raffclar * @license MIT - */var o=r.Dialog=function(){function y(k){var C=k.title,s=k.onClose,m=k.children,u=k.width,d=k.height;return(0,e.createVNode)(1,"div","Dialog",(0,e.createComponentVNode)(2,a.Box,{className:"Dialog__content",width:u||"370px",height:d,children:[(0,e.createVNode)(1,"div","Dialog__header",[(0,e.createVNode)(1,"div","Dialog__title",C,0),(0,e.createComponentVNode)(2,a.Box,{mr:2,children:(0,e.createComponentVNode)(2,t.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:s})})],4),m]}),2)}return y}(),f=function(k){var C=k.onClick,s=k.children;return(0,e.createComponentVNode)(2,t.Button,{onClick:C,className:"Dialog__button",verticalAlignContent:"middle",children:s})};o.Button=f;var V=r.UnsavedChangesDialog=function(){function y(k){var C=k.documentName,s=k.onSave,m=k.onDiscard,u=k.onClose;return(0,e.createComponentVNode)(2,o,{title:"Notepad",onClose:u,children:[(0,e.createVNode)(1,"div","Dialog__body",[(0,e.createTextVNode)("Do you want to save changes to "),C,(0,e.createTextVNode)("?")],0),(0,e.createVNode)(1,"div","Dialog__footer",[(0,e.createComponentVNode)(2,f,{onClick:s,children:"Save"}),(0,e.createComponentVNode)(2,f,{onClick:m,children:"Don't Save"}),(0,e.createComponentVNode)(2,f,{onClick:u,children:"Cancel"})],4)]})}return y}()},85271:function(x,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","children"];/** + */var o=r.Dialog=function(){function y(k){var C=k.title,s=k.onClose,m=k.children,d=k.width,u=k.height;return(0,e.createVNode)(1,"div","Dialog",(0,e.createComponentVNode)(2,a.Box,{className:"Dialog__content",width:d||"370px",height:u,children:[(0,e.createVNode)(1,"div","Dialog__header",[(0,e.createVNode)(1,"div","Dialog__title",C,0),(0,e.createComponentVNode)(2,a.Box,{mr:2,children:(0,e.createComponentVNode)(2,t.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:s})})],4),m]}),2)}return y}(),f=function(k){var C=k.onClick,s=k.children;return(0,e.createComponentVNode)(2,t.Button,{onClick:C,className:"Dialog__button",verticalAlignContent:"middle",children:s})};o.Button=f;var V=r.UnsavedChangesDialog=function(){function y(k){var C=k.documentName,s=k.onSave,m=k.onDiscard,d=k.onClose;return(0,e.createComponentVNode)(2,o,{title:"Notepad",onClose:d,children:[(0,e.createVNode)(1,"div","Dialog__body",[(0,e.createTextVNode)("Do you want to save changes to "),C,(0,e.createTextVNode)("?")],0),(0,e.createVNode)(1,"div","Dialog__footer",[(0,e.createComponentVNode)(2,f,{onClick:s,children:"Save"}),(0,e.createComponentVNode)(2,f,{onClick:m,children:"Don't Save"}),(0,e.createComponentVNode)(2,f,{onClick:d,children:"Cancel"})],4)]})}return y}()},85271:function(x,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,u;for(u=0;u=0)&&(C[m]=y[m]);return C}var V=r.Dimmer=function(){function y(k){var C=k.className,s=k.children,m=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(C))},m,{children:(0,e.createVNode)(1,"div","Dimmer__inner",s,0)})))}return y}()},13823:function(x,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(58734),a=n(59641);/** + */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,d;for(d=0;d=0)&&(C[m]=y[m]);return C}var V=r.Dimmer=function(){function y(k){var C=k.className,s=k.children,m=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(C))},m,{children:(0,e.createVNode)(1,"div","Dimmer__inner",s,0)})))}return y}()},13823:function(x,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(58734),a=n(59641);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var V=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},42647:function(x,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380);function f(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,V(s,m)}function V(s,m){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(d,i){return d.__proto__=i,d}return u}(),V(s,m)}/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},42647:function(x,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380);function f(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,V(s,m)}function V(s,m){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,i){return u.__proto__=i,u}return d}(),V(s,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=400,k=function(m,u){return m.screenX*u[0]+m.screenY*u[1]},C=r.DraggableControl=function(s){f(m,s);function m(d){var i;return i=s.call(this,d)||this,i.inputRef=(0,e.createRef)(),i.state={value:d.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var c=i.props.suppressFlicker;c>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){i.setState({suppressingFlicker:!1})},c))},i.handleDragStart=function(c){var l=i.props,h=l.value,p=l.dragMatrix,v=i.state.editing;v||(document.body.style["pointer-events"]="none",i.ref=c.target,i.setState({dragging:!1,origin:k(c,p),value:h,internalValue:h}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var b=i.state,g=b.dragging,N=b.value,B=i.props.onDrag;g&&B&&B(c,N)},i.props.updateRate||y),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(c){var l=i.props,h=l.minValue,p=l.maxValue,v=l.step,b=l.stepPixelSize,g=l.dragMatrix;i.setState(function(N){var B=Object.assign({},N),S=k(c,g)-B.origin;if(N.dragging){var L=Number.isFinite(h)?h%v:0;B.internalValue=(0,a.clamp)(B.internalValue+S*v/b,h-v,p+v),B.value=(0,a.clamp)(B.internalValue-B.internalValue%v+L,h,p),B.origin=k(c,g)}else Math.abs(S)>4&&(B.dragging=!0);return B})},i.handleDragEnd=function(c){var l=i.props,h=l.onChange,p=l.onDrag,v=i.state,b=v.dragging,g=v.value,N=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!b,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),b)i.suppressFlicker(),h&&h(c,g),p&&p(c,g);else if(i.inputRef){var B=i.inputRef.current;B.value=N;try{B.focus(),B.select()}catch(S){}}},i}var u=m.prototype;return u.render=function(){function d(){var i=this,c=this.state,l=c.dragging,h=c.editing,p=c.value,v=c.suppressingFlicker,b=this.props,g=b.animated,N=b.value,B=b.unit,S=b.minValue,L=b.maxValue,I=b.unclamped,w=b.format,T=b.onChange,E=b.onDrag,A=b.children,M=b.height,R=b.lineHeight,O=b.fontSize,F=N;(l||v)&&(F=p);var D=(0,e.createFragment)([g&&!l&&!v?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:w}):w?w(F):F,B?" "+B:""],0),j=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:h?void 0:"none",height:M,"line-height":R,"font-size":O},onBlur:function(){function _(z){if(h){var H;if(I?H=parseFloat(z.target.value):H=(0,a.clamp)(parseFloat(z.target.value),S,L),Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),E&&E(z,H)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var H;if(I?H=parseFloat(z.target.value):H=(0,a.clamp)(parseFloat(z.target.value),S,L),Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),E&&E(z,H);return}if(z.keyCode===27){i.setState({editing:!1});return}}return _}()},null,this.inputRef);return A({dragging:l,editing:h,value:N,displayValue:F,displayElement:D,inputElement:j,handleDragStart:this.handleDragStart})}return d}(),m}(e.Component);C.defaultHooks=t.pureComponentHooks,C.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},3123:function(x,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(58734),a=n(92935),t=n(59641),o=n(2433),f=n(24211),V=n(19567),y=n(34559),k=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],C=["className"],s;function m(v,b){if(v==null)return{};var g={},N=Object.keys(v),B,S;for(S=0;S=0)&&(g[B]=v[B]);return g}function u(v,b){v.prototype=Object.create(b.prototype),v.prototype.constructor=v,d(v,b)}function d(v,b){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(N,B){return N.__proto__=B,N}return g}(),d(v,b)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},c={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function v(){return null}return v}()},l="Layout Dropdown__menu",h="Layout Dropdown__menu-scroll",p=r.Dropdown=function(v){u(b,v);function b(){for(var N,B=arguments.length,S=new Array(B),L=0;L200?S.className=h:S.className=l;var L=this.props.options,I=L===void 0?[]:L,w=I.map(function(E){var A,M;return typeof E=="string"?(M=E,A=E):E!==null&&(M=E.displayText,A=E.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",B.state.selected===A&&"selected"]),M,0,{onClick:function(){function R(){B.setSelected(A)}return R}()},A)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),S,function(){var E=b.singletonPopper;E===void 0?(E=(0,a.createPopper)(b.virtualElement,S,Object.assign({},i,{placement:"bottom-start"})),b.singletonPopper=E):(E.setOptions(Object.assign({},i,{placement:"bottom-start"})),E.update())})}}return N}(),g.setOpen=function(){function N(B){var S=this;this.setState(function(L){return Object.assign({},L,{open:B})}),B?setTimeout(function(){S.openMenu(),window.addEventListener("click",S.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),g.setSelected=function(){function N(B){this.setState(function(S){return Object.assign({},S,{selected:B})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(B)}return N}(),g.getOptionValue=function(){function N(B){return typeof B=="string"?B:B.value}return N}(),g.getSelectedIndex=function(){function N(){var B=this,S=this.state.selected||this.props.selected,L=this.props.options,I=L===void 0?[]:L;return I.findIndex(function(w){return B.getOptionValue(w)===S})}return N}(),g.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var B=this.getSelectedIndex(),S=0,L=this.props.options.length-1,I=B>=0;I||(B=S);var w=B===S?L:B-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),g.toNext=function(){function N(){if(!(this.props.options.length<1)){var B=this.getSelectedIndex(),S=0,L=this.props.options.length-1,I=B>=0;I||(B=L);var w=B===L?S:B+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),g.render=function(){function N(){var B=this,S=this.props,L=S.icon,I=S.iconRotation,w=S.iconSpin,T=S.clipSelectedText,E=T===void 0?!0:T,A=S.color,M=A===void 0?"default":A,R=S.dropdownStyle,O=S.over,F=S.nochevron,D=S.width,j=S.onClick,_=S.onSelected,z=S.selected,H=S.disabled,Q=S.displayText,Y=S.buttons,X=m(S,k),$=X.className,G=m(X,C),Z=O?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:D,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+M,H&&"Button--disabled",$]),onClick:function(){function te(q){H&&!B.state.open||(B.setOpen(!B.state.open),j&&j(q))}return te}()},G,{children:[L&&(0,e.createComponentVNode)(2,V.Icon,{name:L,rotation:I,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",Q||this.state.selected,0,{style:{overflow:E?"hidden":"visible"}}),F||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,V.Icon,{name:Z?"chevron-up":"chevron-down"}),2)]})))}),Y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:H,onClick:function(){function te(){H||B.toPrevious()}return te}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:H,onClick:function(){function te(){H||B.toNext()}return te}()})})],4)]})}return N}(),b}(e.Component);s=p,p.renderedMenu=void 0,p.singletonPopper=void 0,p.currentOpenMenu=void 0,p.virtualElement={getBoundingClientRect:function(){function v(){var b,g;return(b=(g=s.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?b:c}return v}()}},33309:function(x,r,n){"use strict";r.__esModule=!0,r.FitText=void 0;var e=n(58734);function a(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function t(y,k){y.prototype=Object.create(k.prototype),y.prototype.constructor=y,o(y,k)}function o(y,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(s,m){return s.__proto__=m,s}return C}(),o(y,k)}var f=5,V=r.FitText=function(y){t(k,y);function k(){var s;return s=y.call(this)||this,s.ref=(0,e.createRef)(),s.state={fontSize:0},s.resize=s.resize.bind(a(s)),window.addEventListener("resize",s.resize),s}var C=k.prototype;return C.componentDidUpdate=function(){function s(m){m.children!==this.props.children&&this.resize()}return s}(),C.componentWillUnmount=function(){function s(){window.removeEventListener("resize",this.resize)}return s}(),C.resize=function(){function s(){var m=this.ref.current;if(m){for(var u=this.props.maxWidth,d=0,i=this.props.maxFontSize,c=0;c<10;c++){var l,h=Math.round((d+i)/2);m.style.fontSize=h+"px";var p=m.offsetWidth-u;if(p>0)i=h;else if(p<((l=this.props.acceptableDifference)!=null?l:f))d=h;else break}this.setState({fontSize:Math.round((d+i)/2)})}}return s}(),C.componentDidMount=function(){function s(){this.resize()}return s}(),C.render=function(){function s(){var m;return(0,e.createVNode)(1,"span",null,this.props.children,0,{style:Object.assign({"font-size":this.state.fontSize+"px"},typeof((m=this.props.native)==null?void 0:m.style)=="object"&&this.props.native.style)},null,this.ref)}return s}(),k}(e.Component)},22427:function(x,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","direction","wrap","align","justify","inline"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],y=["className"];/** +*/var y=400,k=function(m,d){return m.screenX*d[0]+m.screenY*d[1]},C=r.DraggableControl=function(s){f(m,s);function m(u){var i;return i=s.call(this,u)||this,i.inputRef=(0,e.createRef)(),i.state={value:u.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var l=i.props.suppressFlicker;l>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){i.setState({suppressingFlicker:!1})},l))},i.handleDragStart=function(l){var c=i.props,v=c.value,p=c.dragMatrix,h=i.state.editing;h||(document.body.style["pointer-events"]="none",i.ref=l.target,i.setState({dragging:!1,origin:k(l,p),value:v,internalValue:v}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var b=i.state,g=b.dragging,N=b.value,B=i.props.onDrag;g&&B&&B(l,N)},i.props.updateRate||y),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(l){var c=i.props,v=c.minValue,p=c.maxValue,h=c.step,b=c.stepPixelSize,g=c.dragMatrix;i.setState(function(N){var B=Object.assign({},N),S=k(l,g)-B.origin;if(N.dragging){var L=Number.isFinite(v)?v%h:0;B.internalValue=(0,a.clamp)(B.internalValue+S*h/b,v-h,p+h),B.value=(0,a.clamp)(B.internalValue-B.internalValue%h+L,v,p),B.origin=k(l,g)}else Math.abs(S)>4&&(B.dragging=!0);return B})},i.handleDragEnd=function(l){var c=i.props,v=c.onChange,p=c.onDrag,h=i.state,b=h.dragging,g=h.value,N=h.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!b,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),b)i.suppressFlicker(),v&&v(l,g),p&&p(l,g);else if(i.inputRef){var B=i.inputRef.current;B.value=N;try{B.focus(),B.select()}catch(S){}}},i}var d=m.prototype;return d.render=function(){function u(){var i=this,l=this.state,c=l.dragging,v=l.editing,p=l.value,h=l.suppressingFlicker,b=this.props,g=b.animated,N=b.value,B=b.unit,S=b.minValue,L=b.maxValue,I=b.unclamped,w=b.format,T=b.onChange,E=b.onDrag,A=b.children,M=b.height,R=b.lineHeight,O=b.fontSize,F=N;(c||h)&&(F=p);var D=(0,e.createFragment)([g&&!c&&!h?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:w}):w?w(F):F,B?" "+B:""],0),j=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:v?void 0:"none",height:M,"line-height":R,"font-size":O},onBlur:function(){function _(z){if(v){var H;if(I?H=parseFloat(z.target.value):H=(0,a.clamp)(parseFloat(z.target.value),S,L),Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),E&&E(z,H)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var H;if(I?H=parseFloat(z.target.value):H=(0,a.clamp)(parseFloat(z.target.value),S,L),Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),E&&E(z,H);return}if(z.keyCode===27){i.setState({editing:!1});return}}return _}()},null,this.inputRef);return A({dragging:c,editing:v,value:N,displayValue:F,displayElement:D,inputElement:j,handleDragStart:this.handleDragStart})}return u}(),m}(e.Component);C.defaultHooks=t.pureComponentHooks,C.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},3123:function(x,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(58734),a=n(92935),t=n(59641),o=n(2433),f=n(24211),V=n(19567),y=n(34559),k=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],C=["className"],s;function m(h,b){if(h==null)return{};var g={},N=Object.keys(h),B,S;for(S=0;S=0)&&(g[B]=h[B]);return g}function d(h,b){h.prototype=Object.create(b.prototype),h.prototype.constructor=h,u(h,b)}function u(h,b){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(N,B){return N.__proto__=B,N}return g}(),u(h,b)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},l={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function h(){return null}return h}()},c="Layout Dropdown__menu",v="Layout Dropdown__menu-scroll",p=r.Dropdown=function(h){d(b,h);function b(){for(var N,B=arguments.length,S=new Array(B),L=0;L200?S.className=v:S.className=c;var L=this.props.options,I=L===void 0?[]:L,w=I.map(function(E){var A,M;return typeof E=="string"?(M=E,A=E):E!==null&&(M=E.displayText,A=E.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",B.state.selected===A&&"selected"]),M,0,{onClick:function(){function R(){B.setSelected(A)}return R}()},A)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),S,function(){var E=b.singletonPopper;E===void 0?(E=(0,a.createPopper)(b.virtualElement,S,Object.assign({},i,{placement:"bottom-start"})),b.singletonPopper=E):(E.setOptions(Object.assign({},i,{placement:"bottom-start"})),E.update())})}}return N}(),g.setOpen=function(){function N(B){var S=this;this.setState(function(L){return Object.assign({},L,{open:B})}),B?setTimeout(function(){S.openMenu(),window.addEventListener("click",S.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),g.setSelected=function(){function N(B){this.setState(function(S){return Object.assign({},S,{selected:B})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(B)}return N}(),g.getOptionValue=function(){function N(B){return typeof B=="string"?B:B.value}return N}(),g.getSelectedIndex=function(){function N(){var B=this,S=this.state.selected||this.props.selected,L=this.props.options,I=L===void 0?[]:L;return I.findIndex(function(w){return B.getOptionValue(w)===S})}return N}(),g.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var B=this.getSelectedIndex(),S=0,L=this.props.options.length-1,I=B>=0;I||(B=S);var w=B===S?L:B-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),g.toNext=function(){function N(){if(!(this.props.options.length<1)){var B=this.getSelectedIndex(),S=0,L=this.props.options.length-1,I=B>=0;I||(B=L);var w=B===L?S:B+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),g.render=function(){function N(){var B=this,S=this.props,L=S.icon,I=S.iconRotation,w=S.iconSpin,T=S.clipSelectedText,E=T===void 0?!0:T,A=S.color,M=A===void 0?"default":A,R=S.dropdownStyle,O=S.over,F=S.nochevron,D=S.width,j=S.onClick,_=S.onSelected,z=S.selected,H=S.disabled,Q=S.displayText,Y=S.buttons,X=m(S,k),$=X.className,G=m(X,C),Z=O?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:D,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+M,H&&"Button--disabled",$]),onClick:function(){function te(q){H&&!B.state.open||(B.setOpen(!B.state.open),j&&j(q))}return te}()},G,{children:[L&&(0,e.createComponentVNode)(2,V.Icon,{name:L,rotation:I,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",Q||this.state.selected,0,{style:{overflow:E?"hidden":"visible"}}),F||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,V.Icon,{name:Z?"chevron-up":"chevron-down"}),2)]})))}),Y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-left",disabled:H,onClick:function(){function te(){H||B.toPrevious()}return te}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,f.Button,{height:"100%",icon:"chevron-right",disabled:H,onClick:function(){function te(){H||B.toNext()}return te}()})})],4)]})}return N}(),b}(e.Component);s=p,p.renderedMenu=void 0,p.singletonPopper=void 0,p.currentOpenMenu=void 0,p.virtualElement={getBoundingClientRect:function(){function h(){var b,g;return(b=(g=s.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?b:l}return h}()}},33309:function(x,r,n){"use strict";r.__esModule=!0,r.FitText=void 0;var e=n(58734);function a(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function t(y,k){y.prototype=Object.create(k.prototype),y.prototype.constructor=y,o(y,k)}function o(y,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(s,m){return s.__proto__=m,s}return C}(),o(y,k)}var f=5,V=r.FitText=function(y){t(k,y);function k(){var s;return s=y.call(this)||this,s.ref=(0,e.createRef)(),s.state={fontSize:0},s.resize=s.resize.bind(a(s)),window.addEventListener("resize",s.resize),s}var C=k.prototype;return C.componentDidUpdate=function(){function s(m){m.children!==this.props.children&&this.resize()}return s}(),C.componentWillUnmount=function(){function s(){window.removeEventListener("resize",this.resize)}return s}(),C.resize=function(){function s(){var m=this.ref.current;if(m){for(var d=this.props.maxWidth,u=0,i=this.props.maxFontSize,l=0;l<10;l++){var c,v=Math.round((u+i)/2);m.style.fontSize=v+"px";var p=m.offsetWidth-d;if(p>0)i=v;else if(p<((c=this.props.acceptableDifference)!=null?c:f))u=v;else break}this.setState({fontSize:Math.round((u+i)/2)})}}return s}(),C.componentDidMount=function(){function s(){this.resize()}return s}(),C.render=function(){function s(){var m;return(0,e.createVNode)(1,"span",null,this.props.children,0,{style:Object.assign({"font-size":this.state.fontSize+"px"},typeof((m=this.props.native)==null?void 0:m.style)=="object"&&this.props.native.style)},null,this.ref)}return s}(),k}(e.Component)},22427:function(x,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","direction","wrap","align","justify","inline"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,l){if(c==null)return{};var h={},p=Object.keys(c),v,b;for(b=0;b=0)&&(h[v]=c[v]);return h}var C=r.computeFlexClassName=function(){function c(l){return(0,a.classes)(["Flex",l.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&l.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(l)])}return c}(),s=r.computeFlexProps=function(){function c(l){var h=l.className,p=l.direction,v=l.wrap,b=l.align,g=l.justify,N=l.inline,B=k(l,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},B.style,{"flex-direction":p,"flex-wrap":v===!0?"wrap":v,"align-items":b,"justify-content":g})},B))}return c}(),m=r.Flex=function(){function c(l){var h=l.className,p=k(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([h,C(p)]),null,1,Object.assign({},s(p))))}return c}();m.defaultHooks=a.pureComponentHooks;var u=r.computeFlexItemClassName=function(){function c(l){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(l)])}return c}(),d=r.computeFlexItemProps=function(){function c(l){var h,p=l.className,v=l.style,b=l.grow,g=l.order,N=l.shrink,B=l.basis,S=l.align,L=k(l,V),I=(h=B!=null?B:l.width)!=null?h:b!==void 0?0:void 0;return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":N!==void 0&&Number(N),"flex-basis":(0,t.unit)(I),order:g,"align-self":S})},L))}return c}(),i=function(l){var h=l.className,p=k(l,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([h,u(l)]),null,1,Object.assign({},d(p))))};i.defaultHooks=a.pureComponentHooks,m.Item=i},66550:function(x,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(58734),a=n(45731),t=n(59641),o=["children"],f=["size","style"];/** + */function k(l,c){if(l==null)return{};var v={},p=Object.keys(l),h,b;for(b=0;b=0)&&(v[h]=l[h]);return v}var C=r.computeFlexClassName=function(){function l(c){return(0,a.classes)(["Flex",c.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&c.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(c)])}return l}(),s=r.computeFlexProps=function(){function l(c){var v=c.className,p=c.direction,h=c.wrap,b=c.align,g=c.justify,N=c.inline,B=k(c,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},B.style,{"flex-direction":p,"flex-wrap":h===!0?"wrap":h,"align-items":b,"justify-content":g})},B))}return l}(),m=r.Flex=function(){function l(c){var v=c.className,p=k(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([v,C(p)]),null,1,Object.assign({},s(p))))}return l}();m.defaultHooks=a.pureComponentHooks;var d=r.computeFlexItemClassName=function(){function l(c){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(c)])}return l}(),u=r.computeFlexItemProps=function(){function l(c){var v,p=c.className,h=c.style,b=c.grow,g=c.order,N=c.shrink,B=c.basis,S=c.align,L=k(c,V),I=(v=B!=null?B:c.width)!=null?v:b!==void 0?0:void 0;return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":N!==void 0&&Number(N),"flex-basis":(0,t.unit)(I),order:g,"align-self":S})},L))}return l}(),i=function(c){var v=c.className,p=k(c,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([v,d(c)]),null,1,Object.assign({},u(p))))};i.defaultHooks=a.pureComponentHooks,m.Item=i},66550:function(x,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(58734),a=n(45731),t=n(59641),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(C,s){if(C==null)return{};var m={},u=Object.keys(C),d,i;for(i=0;i=0)&&(m[d]=C[d]);return m}var y=r.Grid=function(){function C(s){var m=s.children,u=V(s,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},u,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:m})})))}return C}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function C(s){var m=s.size,u=m===void 0?1:m,d=s.style,i=V(s,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:u+"%"},d)},i)))}return C}();y.defaultHooks=t.pureComponentHooks,y.Column=k},19567:function(x,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["style"],f=["name","size","spin","className","rotation"],V=["className","children"];/** + */function V(C,s){if(C==null)return{};var m={},d=Object.keys(C),u,i;for(i=0;i=0)&&(m[u]=C[u]);return m}var y=r.Grid=function(){function C(s){var m=s.children,d=V(s,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},d,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:m})})))}return C}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function C(s){var m=s.size,d=m===void 0?1:m,u=s.style,i=V(s,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:d+"%"},u)},i)))}return C}();y.defaultHooks=t.pureComponentHooks,y.Column=k},19567:function(x,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["style"],f=["name","size","spin","className","rotation"],V=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function y(m,u){if(m==null)return{};var d={},i=Object.keys(m),c,l;for(l=0;l=0)&&(d[c]=m[c]);return d}var k=/-o$/,C=r.Icon=function(){function m(u){var d=u.style,i=y(u,o),c=i.name,l=i.size,h=i.spin,p=i.className,v=i.rotation,b=y(i,f);l&&(d||(d={}),d["font-size"]=l*100+"%"),v&&(d||(d={}),d.transform="rotate("+v+"deg)"),b.style=d;var g=(0,t.computeBoxProps)(b),N="";if(c.startsWith("tg-"))N=c;else{var B=k.test(c),S=c.replace(k,""),L=!S.startsWith("fa-");N=B?"far ":"fas ",L&&(N+="fa-"),N+=S,h&&(N+=" fa-spin")}return(0,e.normalizeProps)((0,e.createVNode)(1,"i",(0,a.classes)(["Icon",N,p,(0,t.computeBoxClassName)(b)]),null,1,Object.assign({},g)))}return m}();C.defaultHooks=a.pureComponentHooks;var s=r.IconStack=function(){function m(u){var d=u.className,i=u.children,c=y(u,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"span",(0,a.classes)(["IconStack",d,(0,t.computeBoxClassName)(c)]),i,0,Object.assign({},(0,t.computeBoxProps)(c))))}return m}();C.Stack=s},37174:function(x,r,n){"use strict";r.__esModule=!0,r.InfinitePlane=void 0;var e=n(58734),a=n(2433),t=n(34559),o=n(79840),f=n(24211),V=["children","backgroundImage","imageWidth","initialLeft","initialTop"];function y(c,l){if(c==null)return{};var h={},p=Object.keys(c),v,b;for(b=0;b=0)&&(h[v]=c[v]);return h}function k(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function C(c,l){c.prototype=Object.create(l.prototype),c.prototype.constructor=c,s(c,l)}function s(c,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(p,v){return p.__proto__=v,p}return h}(),s(c,l)}var m=.5,u=1.5,d=.1,i=r.InfinitePlane=function(c){C(l,c);function l(){var p;return p=c.call(this)||this,p.state={mouseDown:!1,left:0,top:0,lastLeft:0,lastTop:0,zoom:1},p.handleMouseDown=p.handleMouseDown.bind(k(p)),p.handleMouseMove=p.handleMouseMove.bind(k(p)),p.handleZoomIncrease=p.handleZoomIncrease.bind(k(p)),p.handleZoomDecrease=p.handleZoomDecrease.bind(k(p)),p.onMouseUp=p.onMouseUp.bind(k(p)),p.doOffsetMouse=p.doOffsetMouse.bind(k(p)),p}var h=l.prototype;return h.componentDidMount=function(){function p(){window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousedown",this.doOffsetMouse),window.addEventListener("mousemove",this.doOffsetMouse),window.addEventListener("mouseup",this.doOffsetMouse)}return p}(),h.componentWillUnmount=function(){function p(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousedown",this.doOffsetMouse),window.removeEventListener("mousemove",this.doOffsetMouse),window.removeEventListener("mouseup",this.doOffsetMouse)}return p}(),h.doOffsetMouse=function(){function p(v){var b=this.state.zoom;v.screenZoomX=v.screenX*Math.pow(b,-1),v.screenZoomY=v.screenY*Math.pow(b,-1)}return p}(),h.handleMouseDown=function(){function p(v){this.setState(function(b){return{mouseDown:!0,lastLeft:v.clientX-b.left,lastTop:v.clientY-b.top}})}return p}(),h.onMouseUp=function(){function p(){this.setState({mouseDown:!1})}return p}(),h.handleZoomIncrease=function(){function p(v){var b=this.props.onZoomChange,g=this.state.zoom,N=Math.min(g+d,u);this.setState({zoom:N}),b&&b(N)}return p}(),h.handleZoomDecrease=function(){function p(v){var b=this.props.onZoomChange,g=this.state.zoom,N=Math.max(g-d,m);this.setState({zoom:N}),b&&b(N)}return p}(),h.handleMouseMove=function(){function p(v){var b=this.props,g=b.onBackgroundMoved,N=b.initialLeft,B=N===void 0?0:N,S=b.initialTop,L=S===void 0?0:S;if(this.state.mouseDown){var I,w;this.setState(function(T){return I=v.clientX-T.lastLeft,w=v.clientY-T.lastTop,{left:I,top:w}}),g&&g(I+B,w+L)}}return p}(),h.render=function(){function p(){var v=this.props,b=v.children,g=v.backgroundImage,N=v.imageWidth,B=v.initialLeft,S=B===void 0?0:B,L=v.initialTop,I=L===void 0?0:L,w=y(v,V),T=this.state,E=T.left,A=T.top,M=T.zoom,R=S+E,O=I+A;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"div",null,null,1,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",height:"100%",width:"100%","background-image":'url("'+g+'")',"background-position":R+"px "+O+"px","background-repeat":"repeat","background-size":M*N+"px"}}),(0,e.createVNode)(1,"div",null,b,0,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",transform:"translate("+R+"px, "+O+"px) scale("+M+")","transform-origin":"top left",height:"100%",width:"100%"}}),(0,e.createComponentVNode)(2,t.Stack,{position:"absolute",width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"minus",onClick:this.handleZoomDecrease})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:m,value:M,maxValue:u,children:[M,"x"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"plus",onClick:this.handleZoomIncrease})})]})],4,Object.assign({},(0,a.computeBoxProps)(Object.assign({},w,{style:Object.assign({},w.style,{overflow:"hidden",position:"relative"})}))),null,this.ref))}return p}(),l}(e.Component)},505:function(x,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(2433),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"],V=["className","fluid","monospace"];function y(u,d){if(u==null)return{};var i={},c=Object.keys(u),l,h;for(h=0;h=0)&&(i[l]=u[l]);return i}function k(u,d){u.prototype=Object.create(d.prototype),u.prototype.constructor=u,C(u,d)}function C(u,d){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,l){return c.__proto__=l,c}return i}(),C(u,d)}/** + */function y(m,d){if(m==null)return{};var u={},i=Object.keys(m),l,c;for(c=0;c=0)&&(u[l]=m[l]);return u}var k=/-o$/,C=r.Icon=function(){function m(d){var u=d.style,i=y(d,o),l=i.name,c=i.size,v=i.spin,p=i.className,h=i.rotation,b=y(i,f);c&&(u||(u={}),u["font-size"]=c*100+"%"),h&&(u||(u={}),u.transform="rotate("+h+"deg)"),b.style=u;var g=(0,t.computeBoxProps)(b),N="";if(l.startsWith("tg-"))N=l;else{var B=k.test(l),S=l.replace(k,""),L=!S.startsWith("fa-");N=B?"far ":"fas ",L&&(N+="fa-"),N+=S,v&&(N+=" fa-spin")}return(0,e.normalizeProps)((0,e.createVNode)(1,"i",(0,a.classes)(["Icon",N,p,(0,t.computeBoxClassName)(b)]),null,1,Object.assign({},g)))}return m}();C.defaultHooks=a.pureComponentHooks;var s=r.IconStack=function(){function m(d){var u=d.className,i=d.children,l=y(d,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"span",(0,a.classes)(["IconStack",u,(0,t.computeBoxClassName)(l)]),i,0,Object.assign({},(0,t.computeBoxProps)(l))))}return m}();C.Stack=s},37174:function(x,r,n){"use strict";r.__esModule=!0,r.InfinitePlane=void 0;var e=n(58734),a=n(2433),t=n(34559),o=n(79840),f=n(24211),V=["children","backgroundImage","imageWidth","initialLeft","initialTop"];function y(l,c){if(l==null)return{};var v={},p=Object.keys(l),h,b;for(b=0;b=0)&&(v[h]=l[h]);return v}function k(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function C(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,s(l,c)}function s(l,c){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(p,h){return p.__proto__=h,p}return v}(),s(l,c)}var m=.5,d=1.5,u=.1,i=r.InfinitePlane=function(l){C(c,l);function c(){var p;return p=l.call(this)||this,p.state={mouseDown:!1,left:0,top:0,lastLeft:0,lastTop:0,zoom:1},p.handleMouseDown=p.handleMouseDown.bind(k(p)),p.handleMouseMove=p.handleMouseMove.bind(k(p)),p.handleZoomIncrease=p.handleZoomIncrease.bind(k(p)),p.handleZoomDecrease=p.handleZoomDecrease.bind(k(p)),p.onMouseUp=p.onMouseUp.bind(k(p)),p.doOffsetMouse=p.doOffsetMouse.bind(k(p)),p}var v=c.prototype;return v.componentDidMount=function(){function p(){window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousedown",this.doOffsetMouse),window.addEventListener("mousemove",this.doOffsetMouse),window.addEventListener("mouseup",this.doOffsetMouse)}return p}(),v.componentWillUnmount=function(){function p(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousedown",this.doOffsetMouse),window.removeEventListener("mousemove",this.doOffsetMouse),window.removeEventListener("mouseup",this.doOffsetMouse)}return p}(),v.doOffsetMouse=function(){function p(h){var b=this.state.zoom;h.screenZoomX=h.screenX*Math.pow(b,-1),h.screenZoomY=h.screenY*Math.pow(b,-1)}return p}(),v.handleMouseDown=function(){function p(h){this.setState(function(b){return{mouseDown:!0,lastLeft:h.clientX-b.left,lastTop:h.clientY-b.top}})}return p}(),v.onMouseUp=function(){function p(){this.setState({mouseDown:!1})}return p}(),v.handleZoomIncrease=function(){function p(h){var b=this.props.onZoomChange,g=this.state.zoom,N=Math.min(g+u,d);this.setState({zoom:N}),b&&b(N)}return p}(),v.handleZoomDecrease=function(){function p(h){var b=this.props.onZoomChange,g=this.state.zoom,N=Math.max(g-u,m);this.setState({zoom:N}),b&&b(N)}return p}(),v.handleMouseMove=function(){function p(h){var b=this.props,g=b.onBackgroundMoved,N=b.initialLeft,B=N===void 0?0:N,S=b.initialTop,L=S===void 0?0:S;if(this.state.mouseDown){var I,w;this.setState(function(T){return I=h.clientX-T.lastLeft,w=h.clientY-T.lastTop,{left:I,top:w}}),g&&g(I+B,w+L)}}return p}(),v.render=function(){function p(){var h=this.props,b=h.children,g=h.backgroundImage,N=h.imageWidth,B=h.initialLeft,S=B===void 0?0:B,L=h.initialTop,I=L===void 0?0:L,w=y(h,V),T=this.state,E=T.left,A=T.top,M=T.zoom,R=S+E,O=I+A;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"div",null,null,1,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",height:"100%",width:"100%","background-image":'url("'+g+'")',"background-position":R+"px "+O+"px","background-repeat":"repeat","background-size":M*N+"px"}}),(0,e.createVNode)(1,"div",null,b,0,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",transform:"translate("+R+"px, "+O+"px) scale("+M+")","transform-origin":"top left",height:"100%",width:"100%"}}),(0,e.createComponentVNode)(2,t.Stack,{position:"absolute",width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"minus",onClick:this.handleZoomDecrease})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:m,value:M,maxValue:d,children:[M,"x"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"plus",onClick:this.handleZoomIncrease})})]})],4,Object.assign({},(0,a.computeBoxProps)(Object.assign({},w,{style:Object.assign({},w.style,{overflow:"hidden",position:"relative"})}))),null,this.ref))}return p}(),c}(e.Component)},505:function(x,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(58734),a=n(42678),t=n(59641),o=n(2433),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"],V=["className","fluid","monospace"];function y(d,u){if(d==null)return{};var i={},l=Object.keys(d),c,v;for(v=0;v=0)&&(i[c]=d[c]);return i}function k(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,C(d,u)}function C(d,u){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(l,c){return l.__proto__=c,l}return i}(),C(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var s=r.toInputValue=function(){function u(d){return typeof d!="number"&&typeof d!="string"?"":String(d)}return u}(),m=r.Input=function(u){k(d,u);function d(){var c;return c=u.call(this)||this,c.inputRef=(0,e.createRef)(),c.state={editing:!1},c.handleInput=function(l){var h=c.state.editing,p=c.props.onInput;h||c.setEditing(!0),p&&p(l,l.target.value)},c.handleFocus=function(l){var h=c.state.editing;h||c.setEditing(!0)},c.handleBlur=function(l){var h=c.state.editing,p=c.props.onChange;h&&(c.setEditing(!1),p&&p(l,l.target.value))},c.handleKeyDown=function(l){var h=c.props,p=h.onInput,v=h.onChange,b=h.onEnter;if(l.keyCode===a.KEY_ENTER){c.setEditing(!1),v&&v(l,l.target.value),p&&p(l,l.target.value),b&&b(l,l.target.value),c.props.selfClear?l.target.value="":l.target.blur();return}if(l.keyCode===a.KEY_ESCAPE){if(c.props.onEscape){c.props.onEscape(l);return}c.setEditing(!1),l.target.value=s(c.props.value),l.target.blur();return}},c}var i=d.prototype;return i.componentDidMount=function(){function c(){var l=this,h=this.props.value,p=this.inputRef.current;p&&(p.value=s(h)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),l.props.autoSelect&&p.select()},1)}return c}(),i.componentDidUpdate=function(){function c(l,h){var p=this.state.editing,v=l.value,b=this.props.value,g=this.inputRef.current;g&&!p&&v!==b&&(g.value=s(b))}return c}(),i.setEditing=function(){function c(l){this.setState({editing:l})}return c}(),i.render=function(){function c(){var l=this.props,h=l.selfClear,p=l.onInput,v=l.onChange,b=l.onEnter,g=l.value,N=l.maxLength,B=l.placeholder,S=y(l,f),L=S.className,I=S.fluid,w=S.monospace,T=y(S,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,t.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:B,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N},null,this.inputRef)]})))}return c}(),d}(e.Component)},1172:function(x,r,n){"use strict";r.__esModule=!0,r.KeyListener=void 0;var e=n(58734),a=n(82611);function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.KeyListener=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.dispose=void 0,C.dispose=(0,a.listenForKeyEvents)(function(s){C.props.onKey&&C.props.onKey(s),s.isDown()&&C.props.onKeyDown&&C.props.onKeyDown(s),s.isUp()&&C.props.onKeyUp&&C.props.onKeyUp(s)}),C}var k=y.prototype;return k.componentWillUnmount=function(){function C(){this.dispose()}return C}(),k.render=function(){function C(){return null}return C}(),y}(e.Component)},38993:function(x,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(2433),f=n(42647),V=n(79311),y=["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"];/** +*/var s=r.toInputValue=function(){function d(u){return typeof u!="number"&&typeof u!="string"?"":String(u)}return d}(),m=r.Input=function(d){k(u,d);function u(){var l;return l=d.call(this)||this,l.inputRef=(0,e.createRef)(),l.state={editing:!1},l.handleInput=function(c){var v=l.state.editing,p=l.props.onInput;v||l.setEditing(!0),p&&p(c,c.target.value)},l.handleFocus=function(c){var v=l.state.editing;v||l.setEditing(!0)},l.handleBlur=function(c){var v=l.state.editing,p=l.props.onChange;v&&(l.setEditing(!1),p&&p(c,c.target.value))},l.handleKeyDown=function(c){var v=l.props,p=v.onInput,h=v.onChange,b=v.onEnter;if(c.keyCode===a.KEY_ENTER){l.setEditing(!1),h&&h(c,c.target.value),p&&p(c,c.target.value),b&&b(c,c.target.value),l.props.selfClear?c.target.value="":c.target.blur();return}if(c.keyCode===a.KEY_ESCAPE){if(l.props.onEscape){l.props.onEscape(c);return}l.setEditing(!1),c.target.value=s(l.props.value),c.target.blur();return}},l}var i=u.prototype;return i.componentDidMount=function(){function l(){var c=this,v=this.props.value,p=this.inputRef.current;p&&(p.value=s(v)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),c.props.autoSelect&&p.select()},1)}return l}(),i.componentDidUpdate=function(){function l(c,v){var p=this.state.editing,h=c.value,b=this.props.value,g=this.inputRef.current;g&&!p&&h!==b&&(g.value=s(b))}return l}(),i.setEditing=function(){function l(c){this.setState({editing:c})}return l}(),i.render=function(){function l(){var c=this.props,v=c.selfClear,p=c.onInput,h=c.onChange,b=c.onEnter,g=c.value,N=c.maxLength,B=c.placeholder,S=y(c,f),L=S.className,I=S.fluid,w=S.monospace,T=y(S,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,t.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:B,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N},null,this.inputRef)]})))}return l}(),u}(e.Component)},1172:function(x,r,n){"use strict";r.__esModule=!0,r.KeyListener=void 0;var e=n(58734),a=n(82611);function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.KeyListener=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.dispose=void 0,C.dispose=(0,a.listenForKeyEvents)(function(s){C.props.onKey&&C.props.onKey(s),s.isDown()&&C.props.onKeyDown&&C.props.onKeyDown(s),s.isUp()&&C.props.onKeyUp&&C.props.onKeyUp(s)}),C}var k=y.prototype;return k.componentWillUnmount=function(){function C(){this.dispose()}return C}(),k.render=function(){function C(){return null}return C}(),y}(e.Component)},38993:function(x,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(2433),f=n(42647),V=n(79311),y=["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(s,m){if(s==null)return{};var u={},d=Object.keys(s),i,c;for(c=0;c=0)&&(u[i]=s[i]);return u}var C=r.Knob=function(){function s(m){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},m)));var u=m.animated,d=m.format,i=m.maxValue,c=m.minValue,l=m.unclamped,h=m.onChange,p=m.onDrag,v=m.step,b=m.stepPixelSize,g=m.suppressFlicker,N=m.unit,B=m.value,S=m.className,L=m.style,I=m.fillValue,w=m.color,T=m.ranges,E=T===void 0?{}:T,A=m.size,M=A===void 0?1:A,R=m.bipolar,O=m.children,F=k(m,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:u,format:d,maxValue:i,minValue:c,unclamped:l,onChange:h,onDrag:p,step:v,stepPixelSize:b,suppressFlicker:g,unit:N,value:B},{children:function(){function D(j){var _=j.dragging,z=j.editing,H=j.value,Q=j.displayValue,Y=j.displayElement,X=j.inputElement,$=j.handleDragStart,G=(0,a.scale)(I!=null?I:Q,c,i),Z=(0,a.scale)(Q,c,i),te=w||(0,a.keyOfMatchingRange)(I!=null?I:H,E)||"default",q=Math.min((Z-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+te,R&&"Knob--bipolar",S,(0,o.computeBoxClassName)(F)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),_&&(0,e.createVNode)(1,"div","Knob__popupValue",Y,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((R?2.75:2)-G*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":M+"em"},L)},F)),{onMouseDown:$})))}return D}()})))}return s}()},90749:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(58734),a=n(22427),t=["children","wrap"],o=["label","children","mx"];/** + */function k(s,m){if(s==null)return{};var d={},u=Object.keys(s),i,l;for(l=0;l=0)&&(d[i]=s[i]);return d}var C=r.Knob=function(){function s(m){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},m)));var d=m.animated,u=m.format,i=m.maxValue,l=m.minValue,c=m.unclamped,v=m.onChange,p=m.onDrag,h=m.step,b=m.stepPixelSize,g=m.suppressFlicker,N=m.unit,B=m.value,S=m.className,L=m.style,I=m.fillValue,w=m.color,T=m.ranges,E=T===void 0?{}:T,A=m.size,M=A===void 0?1:A,R=m.bipolar,O=m.children,F=k(m,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:d,format:u,maxValue:i,minValue:l,unclamped:c,onChange:v,onDrag:p,step:h,stepPixelSize:b,suppressFlicker:g,unit:N,value:B},{children:function(){function D(j){var _=j.dragging,z=j.editing,H=j.value,Q=j.displayValue,Y=j.displayElement,X=j.inputElement,$=j.handleDragStart,G=(0,a.scale)(I!=null?I:Q,l,i),Z=(0,a.scale)(Q,l,i),te=w||(0,a.keyOfMatchingRange)(I!=null?I:H,E)||"default",q=Math.min((Z-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+te,R&&"Knob--bipolar",S,(0,o.computeBoxClassName)(F)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),_&&(0,e.createVNode)(1,"div","Knob__popupValue",Y,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((R?2.75:2)-G*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":M+"em"},L)},F)),{onMouseDown:$})))}return D}()})))}return s}()},90749:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(58734),a=n(22427),t=["children","wrap"],o=["label","children","mx"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,C){if(k==null)return{};var s={},m=Object.keys(k),u,d;for(d=0;d=0)&&(s[u]=k[u]);return s}var V=r.LabeledControls=function(){function k(C){var s=C.children,m=C.wrap,u=f(C,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,wrap:m,align:"stretch",justify:"space-between"},u,{children:s})))}return k}(),y=function(C){var s=C.label,m=C.children,u=C.mx,d=u===void 0?1:u,i=f(C,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:d,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:m}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:s})]})))})};V.Item=y},37806:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(13823);/** + */function f(k,C){if(k==null)return{};var s={},m=Object.keys(k),d,u;for(u=0;u=0)&&(s[d]=k[d]);return s}var V=r.LabeledControls=function(){function k(C){var s=C.children,m=C.wrap,d=f(C,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,wrap:m,align:"stretch",justify:"space-between"},d,{children:s})))}return k}(),y=function(C){var s=C.label,m=C.children,d=C.mx,u=d===void 0?1:d,i=f(C,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:u,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:m}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:s})]})))})};V.Item=y},37806:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(13823);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=r.LabeledList=function(){function k(C){var s=C.children;return(0,e.createVNode)(1,"table","LabeledList",s,0)}return k}();f.defaultHooks=a.pureComponentHooks;var V=function(C){var s=C.className,m=C.label,u=C.labelColor,d=u===void 0?"label":u,i=C.labelWrap,c=C.color,l=C.textAlign,h=C.buttons,p=C.content,v=C.children,b=C.verticalAlign,g=b===void 0?"baseline":b;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",s]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell",!i&&"LabeledList__label--nowrap"]),verticalAlign:g,children:m?typeof m=="string"?m+":":m:null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:c,textAlign:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:h?void 0:2,verticalAlign:g,children:[p,v]}),h&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",h,0)],0)};V.defaultHooks=a.pureComponentHooks;var y=function(C){var s=C.size?(0,t.unit)(Math.max(0,C.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":s,"padding-bottom":s}}),2)};y.defaultHooks=a.pureComponentHooks,f.Item=V,f.Divider=y},90617:function(x,r,n){"use strict";r.__esModule=!0,r.MenuBar=r.Dropdown=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(37145),f=n(19567),V=["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"],y=["className"];function k(p,v){if(p==null)return{};var b={},g=Object.keys(p),N,B;for(B=0;B=0)&&(b[N]=p[N]);return b}function C(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,s(p,v)}function s(p,v){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(g,N){return g.__proto__=N,g}return b}(),s(p,v)}/** + */var f=r.LabeledList=function(){function k(C){var s=C.children;return(0,e.createVNode)(1,"table","LabeledList",s,0)}return k}();f.defaultHooks=a.pureComponentHooks;var V=function(C){var s=C.className,m=C.label,d=C.labelColor,u=d===void 0?"label":d,i=C.labelWrap,l=C.color,c=C.textAlign,v=C.buttons,p=C.content,h=C.children,b=C.verticalAlign,g=b===void 0?"baseline":b;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",s]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell",!i&&"LabeledList__label--nowrap"]),verticalAlign:g,children:m?typeof m=="string"?m+":":m:null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,textAlign:c,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:v?void 0:2,verticalAlign:g,children:[p,h]}),v&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",v,0)],0)};V.defaultHooks=a.pureComponentHooks;var y=function(C){var s=C.size?(0,t.unit)(Math.max(0,C.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":s,"padding-bottom":s}}),2)};y.defaultHooks=a.pureComponentHooks,f.Item=V,f.Divider=y},90617:function(x,r,n){"use strict";r.__esModule=!0,r.MenuBar=r.Dropdown=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(37145),f=n(19567),V=["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"],y=["className"];function k(p,h){if(p==null)return{};var b={},g=Object.keys(p),N,B;for(B=0;B=0)&&(b[N]=p[N]);return b}function C(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,s(p,h)}function s(p,h){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(g,N){return g.__proto__=N,g}return b}(),s(p,h)}/** * @file * @copyright 2022 Aleksej Komarov * @license MIT -*/var m=function(p){C(v,p);function v(g){var N;return N=p.call(this,g)||this,N.handleClick=void 0,N.handleClick=function(B){if(!N.props.menuRef.current){o.logger.log("Menu.handleClick(): No ref");return}N.props.menuRef.current.contains(B.target)?o.logger.log("Menu.handleClick(): Inside"):(o.logger.log("Menu.handleClick(): Outside"),N.props.onOutsideClick())},N}var b=v.prototype;return b.componentWillMount=function(){function g(){window.addEventListener("click",this.handleClick)}return g}(),b.componentWillUnmount=function(){function g(){window.removeEventListener("click",this.handleClick)}return g}(),b.render=function(){function g(){var N=this.props,B=N.width,S=N.children;return(0,e.createVNode)(1,"div","MenuBar__menu",S,0,{style:{width:B}})}return g}(),v}(e.Component),u=function(p){C(v,p);function v(g){var N;return N=p.call(this,g)||this,N.menuRef=void 0,N.menuRef=(0,e.createRef)(),N}var b=v.prototype;return b.render=function(){function g(){var N=this.props,B=N.open,S=N.openWidth,L=N.children,I=N.disabled,w=N.display,T=N.onMouseOver,E=N.onClick,A=N.onOutsideClick,M=k(N,V),R=M.className,O=k(M,y);return(0,e.createVNode)(1,"div",null,[(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",R])},O,{onClick:I?void 0:E,onmouseover:T,children:(0,e.createVNode)(1,"span","MenuBar__MenuBarButton-text",w,0)}))),B&&(0,e.createComponentVNode)(2,m,{width:S,menuRef:this.menuRef,onOutsideClick:A,children:L})],0,null,null,this.menuRef)}return g}(),v}(e.Component),d=r.Dropdown=function(){function p(v){var b=v.entry,g=v.children,N=v.openWidth,B=v.display,S=v.setOpenMenuBar,L=v.openMenuBar,I=v.setOpenOnHover,w=v.openOnHover,T=v.disabled,E=v.className;return(0,e.createComponentVNode)(2,u,{openWidth:N,display:B,disabled:T,open:L===b,className:E,onClick:function(){function A(){var M=L===b?null:b;S(M),I(!w)}return A}(),onOutsideClick:function(){function A(){S(null),I(!1)}return A}(),onMouseOver:function(){function A(){w&&S(b)}return A}(),children:g})}return p}(),i=function(v){var b=v.value,g=v.displayText,N=v.onClick,B=v.checked;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){function S(){return N(b)}return S}(),children:[(0,e.createVNode)(1,"div","MenuBar__MenuItemToggle__check",B&&(0,e.createComponentVNode)(2,f.Icon,{size:1.3,name:"check"}),0),g]})};d.MenuItemToggle=i;var c=function(v){var b=v.value,g=v.displayText,N=v.onClick;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){function B(){return N(b)}return B}(),children:g})};d.MenuItem=c;var l=function(){return(0,e.createVNode)(1,"div","MenuBar__Separator")};d.Separator=l;var h=r.MenuBar=function(){function p(v){var b=v.children;return(0,e.createComponentVNode)(2,t.Box,{className:"MenuBar",children:b})}return p}();h.Dropdown=d},68534:function(x,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(85271),f=["className","children","onEnter"];/** +*/var m=function(p){C(h,p);function h(g){var N;return N=p.call(this,g)||this,N.handleClick=void 0,N.handleClick=function(B){if(!N.props.menuRef.current){o.logger.log("Menu.handleClick(): No ref");return}N.props.menuRef.current.contains(B.target)?o.logger.log("Menu.handleClick(): Inside"):(o.logger.log("Menu.handleClick(): Outside"),N.props.onOutsideClick())},N}var b=h.prototype;return b.componentWillMount=function(){function g(){window.addEventListener("click",this.handleClick)}return g}(),b.componentWillUnmount=function(){function g(){window.removeEventListener("click",this.handleClick)}return g}(),b.render=function(){function g(){var N=this.props,B=N.width,S=N.children;return(0,e.createVNode)(1,"div","MenuBar__menu",S,0,{style:{width:B}})}return g}(),h}(e.Component),d=function(p){C(h,p);function h(g){var N;return N=p.call(this,g)||this,N.menuRef=void 0,N.menuRef=(0,e.createRef)(),N}var b=h.prototype;return b.render=function(){function g(){var N=this.props,B=N.open,S=N.openWidth,L=N.children,I=N.disabled,w=N.display,T=N.onMouseOver,E=N.onClick,A=N.onOutsideClick,M=k(N,V),R=M.className,O=k(M,y);return(0,e.createVNode)(1,"div",null,[(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",R])},O,{onClick:I?void 0:E,onmouseover:T,children:(0,e.createVNode)(1,"span","MenuBar__MenuBarButton-text",w,0)}))),B&&(0,e.createComponentVNode)(2,m,{width:S,menuRef:this.menuRef,onOutsideClick:A,children:L})],0,null,null,this.menuRef)}return g}(),h}(e.Component),u=r.Dropdown=function(){function p(h){var b=h.entry,g=h.children,N=h.openWidth,B=h.display,S=h.setOpenMenuBar,L=h.openMenuBar,I=h.setOpenOnHover,w=h.openOnHover,T=h.disabled,E=h.className;return(0,e.createComponentVNode)(2,d,{openWidth:N,display:B,disabled:T,open:L===b,className:E,onClick:function(){function A(){var M=L===b?null:b;S(M),I(!w)}return A}(),onOutsideClick:function(){function A(){S(null),I(!1)}return A}(),onMouseOver:function(){function A(){w&&S(b)}return A}(),children:g})}return p}(),i=function(h){var b=h.value,g=h.displayText,N=h.onClick,B=h.checked;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){function S(){return N(b)}return S}(),children:[(0,e.createVNode)(1,"div","MenuBar__MenuItemToggle__check",B&&(0,e.createComponentVNode)(2,f.Icon,{size:1.3,name:"check"}),0),g]})};u.MenuItemToggle=i;var l=function(h){var b=h.value,g=h.displayText,N=h.onClick;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){function B(){return N(b)}return B}(),children:g})};u.MenuItem=l;var c=function(){return(0,e.createVNode)(1,"div","MenuBar__Separator")};u.Separator=c;var v=r.MenuBar=function(){function p(h){var b=h.children;return(0,e.createComponentVNode)(2,t.Box,{className:"MenuBar",children:b})}return p}();v.Dropdown=u},68534:function(x,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(85271),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(k,C){if(k==null)return{};var s={},m=Object.keys(k),u,d;for(d=0;d=0)&&(s[u]=k[u]);return s}var y=r.Modal=function(){function k(C){var s=C.className,m=C.children,u=C.onEnter,d=V(C,f),i;return u&&(i=function(){function c(l){var h=l.which||l.keyCode;h===13&&u(l)}return c}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",s,(0,t.computeBoxClassName)(d)]),m,0,Object.assign({},(0,t.computeBoxProps)(d))))})}return k}()},82161:function(x,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(58734),a=n(35239),t=n(54777);function o(m,u){m.prototype=Object.create(u.prototype),m.prototype.constructor=m,f(m,u)}function f(m,u){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(i,c){return i.__proto__=c,i}return d}(),f(m,u)}var V=function(u){return u.stopPropagation&&u.stopPropagation(),u.preventDefault&&u.preventDefault(),u.cancelBubble=!0,u.returnValue=!1,!1},y=280,k=r.NanoMap=function(m){o(u,m);function u(i){var c;c=m.call(this,i)||this;var l=window.innerWidth/2-256,h=window.innerHeight/2-256;return c.state={offsetX:l,offsetY:h,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},c.handleDragStart=function(p){c.ref=p.target,c.setState({dragging:!1,originX:p.screenX,originY:p.screenY}),document.addEventListener("mousemove",c.handleDragMove),document.addEventListener("mouseup",c.handleDragEnd),V(p)},c.handleDragMove=function(p){c.setState(function(v){var b=Object.assign({},v),g=p.screenX-b.originX,N=p.screenY-b.originY;return v.dragging?(b.offsetX+=g,b.offsetY+=N,b.originX=p.screenX,b.originY=p.screenY):b.dragging=!0,b}),V(p)},c.handleDragEnd=function(p){c.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",c.handleDragMove),document.removeEventListener("mouseup",c.handleDragEnd),V(p)},c.handleOnClick=function(p){var v=p.offsetX/c.state.zoom/y,b=1-p.offsetY/c.state.zoom/y;p.byondX=v,p.byondY=b,typeof c.props.onClick=="function"&&c.props.onClick(p)},c.handleZoom=function(p,v){c.setState(function(b){var g=Math.min(Math.max(v,1),8),N=(g-b.zoom)*1.5;b.zoom=g;var B=b.offsetX-262*N;B<-500&&(B=-500),B>500&&(B=500);var S=b.offsetY-256*N;return S<-200&&(S=-200),S>200&&(S=200),b.offsetX=B,b.offsetY=S,i.onZoom&&i.onZoom(b.zoom),b})},c}var d=u.prototype;return d.render=function(){function i(){var c=(0,t.useBackend)(this.context),l=c.config,h=this.state,p=h.dragging,v=h.offsetX,b=h.offsetY,g=h.zoom,N=g===void 0?1:g,B=this.props.children,S=l.map+"_nanomap_z"+l.mapZLevel+".png",L=y*N+"px",I={width:L,height:L,"margin-top":b+"px","margin-left":v+"px",overflow:"hidden",position:"relative","background-image":"url("+S+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:p?"move":"auto"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:I,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.createComponentVNode)(2,a.Box,{children:B})}),(0,e.createComponentVNode)(2,s,{zoom:N,onZoom:this.handleZoom})]})}return i}(),u}(e.Component),C=function(u,d){var i=u.x,c=u.y,l=u.zoom,h=l===void 0?1:l,p=u.icon,v=u.tooltip,b=u.color,g=u.onClick,N=function(I){V(I),g&&g(I)},B=i*2*h-h-3,S=c*2*h-h-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:S+"px",left:B+"px",onMouseDown:N,children:[(0,e.createComponentVNode)(2,a.Icon,{name:p,color:b,fontSize:"6px"}),(0,e.createComponentVNode)(2,a.Tooltip,{content:v})]}),2)};k.Marker=C;var s=function(u,d){var i=(0,t.useBackend)(d),c=i.act,l=i.config,h=i.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,a.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(){function p(v){return v+"x"}return p}(),value:u.zoom,onDrag:function(){function p(v,b){return u.onZoom(v,b)}return p}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Z-Level",children:h.map_levels.sort(function(p,v){return Number(p)-Number(v)}).map(function(p){return(0,e.createComponentVNode)(2,a.Button,{selected:~~p===~~l.mapZLevel,content:p,onClick:function(){function v(){c("setZLevel",{mapZLevel:p})}return v}()},p)})})]})})};k.Zoomer=s},38874:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","color","info","warning","success","danger"];/** + */function V(k,C){if(k==null)return{};var s={},m=Object.keys(k),d,u;for(u=0;u=0)&&(s[d]=k[d]);return s}var y=r.Modal=function(){function k(C){var s=C.className,m=C.children,d=C.onEnter,u=V(C,f),i;return d&&(i=function(){function l(c){var v=c.which||c.keyCode;v===13&&d(c)}return l}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",s,(0,t.computeBoxClassName)(u)]),m,0,Object.assign({},(0,t.computeBoxProps)(u))))})}return k}()},82161:function(x,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(58734),a=n(35239),t=n(54777);function o(m,d){m.prototype=Object.create(d.prototype),m.prototype.constructor=m,f(m,d)}function f(m,d){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(i,l){return i.__proto__=l,i}return u}(),f(m,d)}var V=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},y=320,k=r.NanoMap=function(m){o(d,m);function d(i){var l;l=m.call(this,i)||this;var c=window.innerWidth/2-256,v=window.innerHeight/2-256;return l.state={offsetX:c,offsetY:v,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},l.handleDragStart=function(p){l.ref=p.target,l.setState({dragging:!1,originX:p.screenX,originY:p.screenY}),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd),V(p)},l.handleDragMove=function(p){l.setState(function(h){var b=Object.assign({},h),g=p.screenX-b.originX,N=p.screenY-b.originY;return h.dragging?(b.offsetX+=g,b.offsetY+=N,b.originX=p.screenX,b.originY=p.screenY):b.dragging=!0,b}),V(p)},l.handleDragEnd=function(p){l.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),V(p)},l.handleOnClick=function(p){var h=p.offsetX/l.state.zoom/y,b=1-p.offsetY/l.state.zoom/y;p.byondX=h,p.byondY=b,typeof l.props.onClick=="function"&&l.props.onClick(p)},l.handleZoom=function(p,h){l.setState(function(b){var g=Math.min(Math.max(h,1),8),N=(g-b.zoom)*1.5;b.zoom=g;var B=b.offsetX-262*N;B<-500&&(B=-500),B>500&&(B=500);var S=b.offsetY-256*N;return S<-200&&(S=-200),S>200&&(S=200),b.offsetX=B,b.offsetY=S,i.onZoom&&i.onZoom(b.zoom),b})},l}var u=d.prototype;return u.render=function(){function i(){var l=(0,t.useBackend)(this.context),c=l.config,v=this.state,p=v.dragging,h=v.offsetX,b=v.offsetY,g=v.zoom,N=g===void 0?1:g,B=this.props.children,S=c.map+"_nanomap_z"+c.mapZLevel+".png",L=y*N+"px",I={width:L,height:L,"margin-top":b+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-image":"url("+S+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:p?"move":"auto"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:I,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.createComponentVNode)(2,a.Box,{children:B})}),(0,e.createComponentVNode)(2,s,{zoom:N,onZoom:this.handleZoom})]})}return i}(),d}(e.Component),C=function(d,u){var i=d.x,l=d.y,c=d.zoom,v=c===void 0?1:c,p=d.icon,h=d.tooltip,b=d.color,g=d.onClick,N=function(I){V(I),g&&g(I)},B=i*2*v-v-3,S=l*2*v-v-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:S+"px",left:B+"px",onMouseDown:N,children:[(0,e.createComponentVNode)(2,a.Icon,{name:p,color:b,fontSize:"6px"}),(0,e.createComponentVNode)(2,a.Tooltip,{content:h})]}),2)};k.Marker=C;var s=function(d,u){var i=(0,t.useBackend)(u),l=i.act,c=i.config,v=i.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,a.Slider,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(){function p(h){return h+"x"}return p}(),value:d.zoom,onDrag:function(){function p(h,b){return d.onZoom(h,b)}return p}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Z-Level",children:v.map_levels.sort(function(p,h){return Number(p)-Number(h)}).map(function(p){return(0,e.createComponentVNode)(2,a.Button,{selected:~~p===~~c.mapZLevel,content:p,onClick:function(){function h(){l("setZLevel",{mapZLevel:p})}return h}()},p)})})]})})};k.Zoomer=s},38874:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,u;for(u=0;u=0)&&(C[m]=y[m]);return C}var V=r.NoticeBox=function(){function y(k){var C=k.className,s=k.color,m=k.info,u=k.warning,d=k.success,i=k.danger,c=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",s&&"NoticeBox--color--"+s,m&&"NoticeBox--type--info",d&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",C])},c)))}return y}();V.defaultHooks=a.pureComponentHooks},79311:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380),f=n(2433);function V(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,y(s,m)}function y(s,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(d,i){return d.__proto__=i,d}return u}(),y(s,m)}/** + */function f(y,k){if(y==null)return{};var C={},s=Object.keys(y),m,d;for(d=0;d=0)&&(C[m]=y[m]);return C}var V=r.NoticeBox=function(){function y(k){var C=k.className,s=k.color,m=k.info,d=k.warning,u=k.success,i=k.danger,l=f(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",s&&"NoticeBox--color--"+s,m&&"NoticeBox--type--info",u&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",C])},l)))}return y}();V.defaultHooks=a.pureComponentHooks},79311:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380),f=n(2433);function V(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,y(s,m)}function y(s,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,i){return u.__proto__=i,u}return d}(),y(s,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=400,C=r.NumberInput=function(s){V(m,s);function m(d){var i;i=s.call(this,d)||this;var c=d.value;return i.inputRef=(0,e.createRef)(),i.state={value:c,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var l=i.props.suppressFlicker;l>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},l))},i.handleDragStart=function(l){var h=i.props.value,p=i.state.editing;p||(document.body.style["pointer-events"]="none",i.ref=l.target,i.setState({dragging:!1,origin:l.screenY,value:h,internalValue:h}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var v=i.state,b=v.dragging,g=v.value,N=i.props.onDrag;b&&N&&N(l,g)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(l){var h=i.props,p=h.minValue,v=h.maxValue,b=h.step,g=h.stepPixelSize;i.setState(function(N){var B=Object.assign({},N),S=B.origin-l.screenY;if(N.dragging){var L=Number.isFinite(p)?p%b:0;B.internalValue=(0,a.clamp)(B.internalValue+S*b/g,p-b,v+b),B.value=(0,a.clamp)(B.internalValue-B.internalValue%b+L,p,v),B.origin=l.screenY}else Math.abs(S)>4&&(B.dragging=!0);return B})},i.handleDragEnd=function(l){var h=i.props,p=h.onChange,v=h.onDrag,b=i.state,g=b.dragging,N=b.value,B=b.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!g,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),g)i.suppressFlicker(),p&&p(l,N),v&&v(l,N);else if(i.inputRef){var S=i.inputRef.current;S.value=B;try{S.focus(),S.select()}catch(L){}}},i}var u=m.prototype;return u.render=function(){function d(){var i=this,c=this.state,l=c.dragging,h=c.editing,p=c.value,v=c.suppressingFlicker,b=this.props,g=b.className,N=b.fluid,B=b.animated,S=b.value,L=b.unit,I=b.minValue,w=b.maxValue,T=b.height,E=b.width,A=b.lineHeight,M=b.fontSize,R=b.format,O=b.onChange,F=b.onDrag,D=S;(l||v)&&(D=p);var j=(0,e.createVNode)(1,"div","NumberInput__content",[B&&!l&&!v?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:R}):R?R(D):D,L?" "+L:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",g]),minWidth:E,minHeight:T,lineHeight:A,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-I)/(w-I)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:h?void 0:"none",height:T,"line-height":A,"font-size":M},onBlur:function(){function _(z){if(h){var H=(0,a.clamp)(parseFloat(z.target.value),I,w);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),O&&O(z,H),F&&F(z,H)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var H=(0,a.clamp)(parseFloat(z.target.value),I,w);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),O&&O(z,H),F&&F(z,H);return}if(z.keyCode===27){i.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return d}(),m}(e.Component);C.defaultHooks=t.pureComponentHooks,C.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},88530:function(x,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(92935),a=n(58734);function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.Popper=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.renderedContent=void 0,C.popperInstance=void 0,y.id+=1,C}var k=y.prototype;return k.componentDidMount=function(){function C(){var s=this,m=this.props,u=m.additionalStyles,d=m.options;if(this.renderedContent=document.createElement("div"),u)for(var i=0,c=Object.entries(u);i0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},c))},i.handleDragStart=function(c){var v=i.props.value,p=i.state.editing;p||(document.body.style["pointer-events"]="none",i.ref=c.target,i.setState({dragging:!1,origin:c.screenY,value:v,internalValue:v}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,b=h.dragging,g=h.value,N=i.props.onDrag;b&&N&&N(c,g)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(c){var v=i.props,p=v.minValue,h=v.maxValue,b=v.step,g=v.stepPixelSize;i.setState(function(N){var B=Object.assign({},N),S=B.origin-c.screenY;if(N.dragging){var L=Number.isFinite(p)?p%b:0;B.internalValue=(0,a.clamp)(B.internalValue+S*b/g,p-b,h+b),B.value=(0,a.clamp)(B.internalValue-B.internalValue%b+L,p,h),B.origin=c.screenY}else Math.abs(S)>4&&(B.dragging=!0);return B})},i.handleDragEnd=function(c){var v=i.props,p=v.onChange,h=v.onDrag,b=i.state,g=b.dragging,N=b.value,B=b.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!g,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),g)i.suppressFlicker(),p&&p(c,N),h&&h(c,N);else if(i.inputRef){var S=i.inputRef.current;S.value=B;try{S.focus(),S.select()}catch(L){}}},i}var d=m.prototype;return d.render=function(){function u(){var i=this,l=this.state,c=l.dragging,v=l.editing,p=l.value,h=l.suppressingFlicker,b=this.props,g=b.className,N=b.fluid,B=b.animated,S=b.value,L=b.unit,I=b.minValue,w=b.maxValue,T=b.height,E=b.width,A=b.lineHeight,M=b.fontSize,R=b.format,O=b.onChange,F=b.onDrag,D=S;(c||h)&&(D=p);var j=(0,e.createVNode)(1,"div","NumberInput__content",[B&&!c&&!h?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:R}):R?R(D):D,L?" "+L:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",g]),minWidth:E,minHeight:T,lineHeight:A,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-I)/(w-I)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:v?void 0:"none",height:T,"line-height":A,"font-size":M},onBlur:function(){function _(z){if(v){var H=(0,a.clamp)(parseFloat(z.target.value),I,w);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),O&&O(z,H),F&&F(z,H)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var H=(0,a.clamp)(parseFloat(z.target.value),I,w);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),O&&O(z,H),F&&F(z,H);return}if(z.keyCode===27){i.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return u}(),m}(e.Component);C.defaultHooks=t.pureComponentHooks,C.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},88530:function(x,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(92935),a=n(58734);function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.Popper=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.renderedContent=void 0,C.popperInstance=void 0,y.id+=1,C}var k=y.prototype;return k.componentDidMount=function(){function C(){var s=this,m=this.props,d=m.additionalStyles,u=m.options;if(this.renderedContent=document.createElement("div"),d)for(var i=0,l=Object.entries(d);i=0)&&(m[d]=C[d]);return m}var k=r.ProgressBar=function(){function C(s){var m=s.className,u=s.value,d=s.minValue,i=d===void 0?0:d,c=s.maxValue,l=c===void 0?1:c,h=s.color,p=s.ranges,v=p===void 0?{}:p,b=s.children,g=y(s,V),N=(0,a.scale)(u,i,l),B=b!==void 0,S=h||(0,a.keyOfMatchingRange)(u,v)||"default",L=(0,o.computeBoxProps)(g),I=["ProgressBar",m,(0,o.computeBoxClassName)(g)],w={width:(0,a.clamp01)(N)*100+"%"};return f.CSS_COLORS.includes(S)||S==="default"?I.push("ProgressBar--color--"+S):(L.style=(L.style||"")+("border-color: "+S+";"),w["background-color"]=S),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(I),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:w}),(0,e.createVNode)(1,"div","ProgressBar__content",B?b:(0,a.toFixed)(N*100)+"%",0)],4,Object.assign({},L)))}return C}();k.defaultHooks=t.pureComponentHooks},96067:function(x,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(58734),a=n(59641),t=n(5339),o=n(2433),f=n(42678),V=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function k(c,l){if(c==null)return{};var h={},p=Object.keys(c),v,b;for(b=0;b=0)&&(h[v]=c[v]);return h}function C(c,l){c.prototype=Object.create(l.prototype),c.prototype.constructor=c,s(c,l)}function s(c,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(p,v){return p.__proto__=v,p}return h}(),s(c,l)}var m=0,u=1e4,d=function(l,h,p,v){var b=h||m,g=p||p===0?p:u;if(!l||!l.length)return String(b);var N=v?parseFloat(l.replace(/[^\-\d.]/g,"")):parseInt(l.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(b):String((0,t.clamp)(N,b,g))},i=r.RestrictedInput=function(c){C(l,c);function l(){var p;return p=c.call(this)||this,p.inputRef=(0,e.createRef)(),p.state={editing:!1},p.handleBlur=function(v){var b=p.state.editing;b&&p.setEditing(!1)},p.handleChange=function(v){var b=p.props,g=b.maxValue,N=b.minValue,B=b.onChange,S=b.allowFloats;v.target.value=d(v.target.value,N,g,S),B&&B(v,+v.target.value)},p.handleFocus=function(v){var b=p.state.editing;b||p.setEditing(!0)},p.handleInput=function(v){var b=p.state.editing,g=p.props.onInput;b||p.setEditing(!0),g&&g(v,+v.target.value)},p.handleKeyDown=function(v){var b=p.props,g=b.maxValue,N=b.minValue,B=b.onChange,S=b.onEnter,L=b.allowFloats;if(v.keyCode===f.KEY_ENTER){var I=d(v.target.value,N,g,L);p.setEditing(!1),B&&B(v,+I),S&&S(v,+I),v.target.blur();return}if(v.keyCode===f.KEY_ESCAPE){if(p.props.onEscape){p.props.onEscape(v);return}p.setEditing(!1),v.target.value=p.props.value,v.target.blur();return}},p}var h=l.prototype;return h.componentDidMount=function(){function p(){var v,b=this,g=this.props,N=g.maxValue,B=g.minValue,S=g.allowFloats,L=(v=this.props.value)==null?void 0:v.toString(),I=this.inputRef.current;I&&(I.value=d(L,B,N,S)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){I.focus(),b.props.autoSelect&&I.select()},1)}return p}(),h.componentDidUpdate=function(){function p(v,b){var g,N,B=this.props,S=B.maxValue,L=B.minValue,I=B.allowFloats,w=this.state.editing,T=(g=v.value)==null?void 0:g.toString(),E=(N=this.props.value)==null?void 0:N.toString(),A=this.inputRef.current;A&&!w&&E!==T&&E!==A.value&&(A.value=d(E,L,S,I))}return p}(),h.setEditing=function(){function p(v){this.setState({editing:v})}return p}(),h.render=function(){function p(){var v=this.props,b=v.onChange,g=v.onEnter,N=v.onInput,B=v.value,S=k(v,V),L=S.className,I=S.fluid,w=S.monospace,T=k(S,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return p}(),l}(e.Component)},84714:function(x,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380),f=n(2433),V=["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"];/** + */function y(C,s){if(C==null)return{};var m={},d=Object.keys(C),u,i;for(i=0;i=0)&&(m[u]=C[u]);return m}var k=r.ProgressBar=function(){function C(s){var m=s.className,d=s.value,u=s.minValue,i=u===void 0?0:u,l=s.maxValue,c=l===void 0?1:l,v=s.color,p=s.ranges,h=p===void 0?{}:p,b=s.children,g=y(s,V),N=(0,a.scale)(d,i,c),B=b!==void 0,S=v||(0,a.keyOfMatchingRange)(d,h)||"default",L=(0,o.computeBoxProps)(g),I=["ProgressBar",m,(0,o.computeBoxClassName)(g)],w={width:(0,a.clamp01)(N)*100+"%"};return f.CSS_COLORS.includes(S)||S==="default"?I.push("ProgressBar--color--"+S):(L.style=(L.style||"")+("border-color: "+S+";"),w["background-color"]=S),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(I),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:w}),(0,e.createVNode)(1,"div","ProgressBar__content",B?b:(0,a.toFixed)(N*100)+"%",0)],4,Object.assign({},L)))}return C}();k.defaultHooks=t.pureComponentHooks},96067:function(x,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(58734),a=n(59641),t=n(5339),o=n(2433),f=n(42678),V=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function k(l,c){if(l==null)return{};var v={},p=Object.keys(l),h,b;for(b=0;b=0)&&(v[h]=l[h]);return v}function C(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,s(l,c)}function s(l,c){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(p,h){return p.__proto__=h,p}return v}(),s(l,c)}var m=0,d=1e4,u=function(c,v,p,h){var b=v||m,g=p||p===0?p:d;if(!c||!c.length)return String(b);var N=h?parseFloat(c.replace(/[^\-\d.]/g,"")):parseInt(c.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(b):String((0,t.clamp)(N,b,g))},i=r.RestrictedInput=function(l){C(c,l);function c(){var p;return p=l.call(this)||this,p.inputRef=(0,e.createRef)(),p.state={editing:!1},p.handleBlur=function(h){var b=p.state.editing;b&&p.setEditing(!1)},p.handleChange=function(h){var b=p.props,g=b.maxValue,N=b.minValue,B=b.onChange,S=b.allowFloats;h.target.value=u(h.target.value,N,g,S),B&&B(h,+h.target.value)},p.handleFocus=function(h){var b=p.state.editing;b||p.setEditing(!0)},p.handleInput=function(h){var b=p.state.editing,g=p.props.onInput;b||p.setEditing(!0),g&&g(h,+h.target.value)},p.handleKeyDown=function(h){var b=p.props,g=b.maxValue,N=b.minValue,B=b.onChange,S=b.onEnter,L=b.allowFloats;if(h.keyCode===f.KEY_ENTER){var I=u(h.target.value,N,g,L);p.setEditing(!1),B&&B(h,+I),S&&S(h,+I),h.target.blur();return}if(h.keyCode===f.KEY_ESCAPE){if(p.props.onEscape){p.props.onEscape(h);return}p.setEditing(!1),h.target.value=p.props.value,h.target.blur();return}},p}var v=c.prototype;return v.componentDidMount=function(){function p(){var h,b=this,g=this.props,N=g.maxValue,B=g.minValue,S=g.allowFloats,L=(h=this.props.value)==null?void 0:h.toString(),I=this.inputRef.current;I&&(I.value=u(L,B,N,S)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){I.focus(),b.props.autoSelect&&I.select()},1)}return p}(),v.componentDidUpdate=function(){function p(h,b){var g,N,B=this.props,S=B.maxValue,L=B.minValue,I=B.allowFloats,w=this.state.editing,T=(g=h.value)==null?void 0:g.toString(),E=(N=this.props.value)==null?void 0:N.toString(),A=this.inputRef.current;A&&!w&&E!==T&&E!==A.value&&(A.value=u(E,L,S,I))}return p}(),v.setEditing=function(){function p(h){this.setState({editing:h})}return p}(),v.render=function(){function p(){var h=this.props,b=h.onChange,g=h.onEnter,N=h.onInput,B=h.value,S=k(h,V),L=S.className,I=S.fluid,w=S.monospace,T=k(S,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",I&&"Input--fluid",w&&"Input--monospace",L])},T,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return p}(),c}(e.Component)},84714:function(x,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(73380),f=n(2433),V=["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function y(C,s){if(C==null)return{};var m={},u=Object.keys(C),d,i;for(i=0;i=0)&&(m[d]=C[d]);return m}var k=r.RoundGauge=function(){function C(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},s)));var m=s.value,u=s.minValue,d=u===void 0?1:u,i=s.maxValue,c=i===void 0?1:i,l=s.ranges,h=s.alertAfter,p=s.alertBefore,v=s.format,b=s.size,g=b===void 0?1:b,N=s.className,B=s.style,S=y(s,V),L=(0,a.scale)(m,d,c),I=(0,a.clamp01)(L),w=l?{}:{primary:[0,1]};l&&Object.keys(l).forEach(function(A){var M=l[A];w[A]=[(0,a.scale)(M[0],d,c),(0,a.scale)(M[1],d,c)]});var T=function(){function A(){if(h&&p&&hm)return!0}else if(hm)return!0;return!1}return A}(),E=T()&&(0,a.keyOfMatchingRange)(I,w);return(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",N,(0,f.computeBoxClassName)(S)]),(0,e.createVNode)(32,"svg",null,[(h||p)&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",E?"active RoundGauge__alert--"+E:""]),(0,e.createVNode)(32,"path",null,null,1,{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"}),2),(0,e.createVNode)(32,"g",null,(0,e.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,e.createVNode)(32,"g",null,Object.keys(w).map(function(A,M){var R=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(R[1]-R[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*R[0])+" 50 50)",cx:"50",cy:"50",r:"45"},M)}),0),(0,e.createVNode)(32,"g","RoundGauge__needle",[(0,e.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,e.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(I*180-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,f.computeBoxProps)(Object.assign({style:Object.assign({"font-size":g+"em"},B)},S))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:m,format:v,size:g})]})}return C}()},95657:function(x,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(58734),a=n(59641),t=n(81721),o=n(2433),f=["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"];function V(s,m){if(s==null)return{};var u={},d=Object.keys(s),i,c;for(c=0;c=0)&&(u[i]=s[i]);return u}function y(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,k(s,m)}function k(s,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(d,i){return d.__proto__=i,d}return u}(),k(s,m)}/** + */function y(C,s){if(C==null)return{};var m={},d=Object.keys(C),u,i;for(i=0;i=0)&&(m[u]=C[u]);return m}var k=r.RoundGauge=function(){function C(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},s)));var m=s.value,d=s.minValue,u=d===void 0?1:d,i=s.maxValue,l=i===void 0?1:i,c=s.ranges,v=s.alertAfter,p=s.alertBefore,h=s.format,b=s.size,g=b===void 0?1:b,N=s.className,B=s.style,S=y(s,V),L=(0,a.scale)(m,u,l),I=(0,a.clamp01)(L),w=c?{}:{primary:[0,1]};c&&Object.keys(c).forEach(function(A){var M=c[A];w[A]=[(0,a.scale)(M[0],u,l),(0,a.scale)(M[1],u,l)]});var T=function(){function A(){if(v&&p&&vm)return!0}else if(vm)return!0;return!1}return A}(),E=T()&&(0,a.keyOfMatchingRange)(I,w);return(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",N,(0,f.computeBoxClassName)(S)]),(0,e.createVNode)(32,"svg",null,[(v||p)&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",E?"active RoundGauge__alert--"+E:""]),(0,e.createVNode)(32,"path",null,null,1,{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"}),2),(0,e.createVNode)(32,"g",null,(0,e.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,e.createVNode)(32,"g",null,Object.keys(w).map(function(A,M){var R=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(R[1]-R[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*R[0])+" 50 50)",cx:"50",cy:"50",r:"45"},M)}),0),(0,e.createVNode)(32,"g","RoundGauge__needle",[(0,e.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,e.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(I*180-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,f.computeBoxProps)(Object.assign({style:Object.assign({"font-size":g+"em"},B)},S))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:m,format:h,size:g})]})}return C}()},95657:function(x,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(58734),a=n(59641),t=n(81721),o=n(2433),f=["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"];function V(s,m){if(s==null)return{};var d={},u=Object.keys(s),i,l;for(l=0;l=0)&&(d[i]=s[i]);return d}function y(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,k(s,m)}function k(s,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,i){return u.__proto__=i,u}return d}(),k(s,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var C=r.Section=function(s){y(m,s);function m(d){var i;return i=s.call(this,d)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.onScroll=void 0,i.scrollableHorizontal=void 0,i.scrollableRef=d.scrollableRef||(0,e.createRef)(),i.scrollable=d.scrollable,i.onScroll=d.onScroll,i.scrollableHorizontal=d.scrollableHorizontal,i}var u=m.prototype;return u.componentDidMount=function(){function d(){(this.scrollable||this.scrollableHorizontal)&&((0,t.addScrollableNode)(this.scrollableRef.current),this.onScroll&&this.scrollableRef.current&&(this.scrollableRef.current.onscroll=this.onScroll))}return d}(),u.componentWillUnmount=function(){function d(){(this.scrollable||this.scrollableHorizontal)&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return d}(),u.render=function(){function d(){var i=this.props,c=i.className,l=i.title,h=i.buttons,p=i.fill,v=i.fitted,b=i.scrollable,g=i.scrollableHorizontal,N=i.flexGrow,B=i.noTopPadding,S=i.stretchContents,L=i.children,I=i.onScroll,w=V(i,f),T=(0,a.canRender)(l)||(0,a.canRender)(h);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",p&&"Section--fill",v&&"Section--fitted",b&&"Section--scrollable",g&&"Section--scrollableHorizontal",N&&"Section--flex",c,(0,o.computeBoxClassName)(w)]),[T&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",l,0),(0,e.createVNode)(1,"div","Section__buttons",h,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div",(0,a.classes)(["Section__content",!!S&&"Section__content--stretchContents",!!B&&"Section__content--noTopPadding"]),L,0,{onScroll:I},null,this.scrollableRef),0)],0,Object.assign({},(0,o.computeBoxProps)(w))))}return d}(),m}(e.Component)},1613:function(x,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(2433),f=n(42647),V=n(79311),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"];/** +*/var C=r.Section=function(s){y(m,s);function m(u){var i;return i=s.call(this,u)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.onScroll=void 0,i.scrollableHorizontal=void 0,i.scrollableRef=u.scrollableRef||(0,e.createRef)(),i.scrollable=u.scrollable,i.onScroll=u.onScroll,i.scrollableHorizontal=u.scrollableHorizontal,i}var d=m.prototype;return d.componentDidMount=function(){function u(){(this.scrollable||this.scrollableHorizontal)&&((0,t.addScrollableNode)(this.scrollableRef.current),this.onScroll&&this.scrollableRef.current&&(this.scrollableRef.current.onscroll=this.onScroll))}return u}(),d.componentWillUnmount=function(){function u(){(this.scrollable||this.scrollableHorizontal)&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return u}(),d.render=function(){function u(){var i=this.props,l=i.className,c=i.title,v=i.buttons,p=i.fill,h=i.fitted,b=i.scrollable,g=i.scrollableHorizontal,N=i.flexGrow,B=i.noTopPadding,S=i.stretchContents,L=i.children,I=i.onScroll,w=V(i,f),T=(0,a.canRender)(c)||(0,a.canRender)(v);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",p&&"Section--fill",h&&"Section--fitted",b&&"Section--scrollable",g&&"Section--scrollableHorizontal",N&&"Section--flex",l,(0,o.computeBoxClassName)(w)]),[T&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",c,0),(0,e.createVNode)(1,"div","Section__buttons",v,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div",(0,a.classes)(["Section__content",!!S&&"Section__content--stretchContents",!!B&&"Section__content--noTopPadding"]),L,0,{onScroll:I},null,this.scrollableRef),0)],0,Object.assign({},(0,o.computeBoxProps)(w))))}return u}(),m}(e.Component)},1613:function(x,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(58734),a=n(5339),t=n(59641),o=n(2433),f=n(42647),V=n(79311),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(s,m){if(s==null)return{};var u={},d=Object.keys(s),i,c;for(c=0;c=0)&&(u[i]=s[i]);return u}var C=r.Slider=function(){function s(m){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},m)));var u=m.animated,d=m.format,i=m.maxValue,c=m.minValue,l=m.onChange,h=m.onDrag,p=m.step,v=m.stepPixelSize,b=m.suppressFlicker,g=m.unit,N=m.value,B=m.className,S=m.fillValue,L=m.color,I=m.ranges,w=I===void 0?{}:I,T=m.children,E=k(m,y),A=T!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:u,format:d,maxValue:i,minValue:c,onChange:l,onDrag:h,step:p,stepPixelSize:v,suppressFlicker:b,unit:g,value:N},{children:function(){function M(R){var O=R.dragging,F=R.editing,D=R.value,j=R.displayValue,_=R.displayElement,z=R.inputElement,H=R.handleDragStart,Q=S!=null,Y=(0,a.scale)(D,c,i),X=(0,a.scale)(S!=null?S:j,c,i),$=(0,a.scale)(j,c,i),G=L||(0,a.keyOfMatchingRange)(S!=null?S:D,w)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider","ProgressBar","ProgressBar--color--"+G,B,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Q&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(X)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(X,$))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),O&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)($)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?T:_,0),z],0,Object.assign({},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return M}()})))}return s}()},34559:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(59641),t=n(22427),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** + */function k(s,m){if(s==null)return{};var d={},u=Object.keys(s),i,l;for(l=0;l=0)&&(d[i]=s[i]);return d}var C=r.Slider=function(){function s(m){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},m)));var d=m.animated,u=m.format,i=m.maxValue,l=m.minValue,c=m.onChange,v=m.onDrag,p=m.step,h=m.stepPixelSize,b=m.suppressFlicker,g=m.unit,N=m.value,B=m.className,S=m.fillValue,L=m.color,I=m.ranges,w=I===void 0?{}:I,T=m.children,E=k(m,y),A=T!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:d,format:u,maxValue:i,minValue:l,onChange:c,onDrag:v,step:p,stepPixelSize:h,suppressFlicker:b,unit:g,value:N},{children:function(){function M(R){var O=R.dragging,F=R.editing,D=R.value,j=R.displayValue,_=R.displayElement,z=R.inputElement,H=R.handleDragStart,Q=S!=null,Y=(0,a.scale)(D,l,i),X=(0,a.scale)(S!=null?S:j,l,i),$=(0,a.scale)(j,l,i),G=L||(0,a.keyOfMatchingRange)(S!=null?S:D,w)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider","ProgressBar","ProgressBar--color--"+G,B,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",Q&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(X)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(X,$))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),O&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)($)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?T:_,0),z],0,Object.assign({},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return M}()})))}return s}()},34559:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(59641),t=n(22427),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function y(m,u){if(m==null)return{};var d={},i=Object.keys(m),c,l;for(l=0;l=0)&&(d[c]=m[c]);return d}var k=r.Stack=function(){function m(u){var d=u.className,i=u.vertical,c=u.fill,l=y(u,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",c&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",d,(0,t.computeFlexClassName)(u)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},l)))))}return m}(),C=function(u){var d=u.className,i=u.innerRef,c=y(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",d,(0,t.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c)),null,i))};k.Item=C;var s=function(u){var d=u.className,i=u.hidden,c=y(u,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",d,(0,t.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c))))};k.Divider=s},27414:function(x,r,n){"use strict";r.__esModule=!0,r.StyleableSection=void 0;var e=n(58734),a=n(2433),t=r.StyleableSection=function(){function o(f){return(0,e.createComponentVNode)(2,a.Box,{style:f.style,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__title",style:f.titleStyle,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__titleText",style:f.textStyle,children:f.title}),(0,e.createVNode)(1,"div","Section__buttons",f.titleSubtext,0)]}),(0,e.createComponentVNode)(2,a.Box,{class:"Section__rest",children:(0,e.createComponentVNode)(2,a.Box,{class:"Section__content",children:f.children})})]})}return o}()},45731:function(x,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","collapsing","children"],f=["className","header"],V=["className","collapsing","header"];/** + */function y(m,d){if(m==null)return{};var u={},i=Object.keys(m),l,c;for(c=0;c=0)&&(u[l]=m[l]);return u}var k=r.Stack=function(){function m(d){var u=d.className,i=d.vertical,l=d.fill,c=y(d,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",l&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",u,(0,t.computeFlexClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},c)))))}return m}(),C=function(d){var u=d.className,i=d.innerRef,l=y(d,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",u,(0,t.computeFlexItemClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(l)),null,i))};k.Item=C;var s=function(d){var u=d.className,i=d.hidden,l=y(d,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",u,(0,t.computeFlexItemClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(l))))};k.Divider=s},27414:function(x,r,n){"use strict";r.__esModule=!0,r.StyleableSection=void 0;var e=n(58734),a=n(2433),t=r.StyleableSection=function(){function o(f){return(0,e.createComponentVNode)(2,a.Box,{style:f.style,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__title",style:f.titleStyle,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__titleText",style:f.textStyle,children:f.title}),(0,e.createVNode)(1,"div","Section__buttons",f.titleSubtext,0)]}),(0,e.createComponentVNode)(2,a.Box,{class:"Section__rest",children:(0,e.createComponentVNode)(2,a.Box,{class:"Section__content",children:f.children})})]})}return o}()},45731:function(x,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(58734),a=n(59641),t=n(2433),o=["className","collapsing","children"],f=["className","header"],V=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(m,u){if(m==null)return{};var d={},i=Object.keys(m),c,l;for(l=0;l=0)&&(d[c]=m[c]);return d}var k=r.Table=function(){function m(u){var d=u.className,i=u.collapsing,c=u.children,l=y(u,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",d,(0,t.computeBoxClassName)(l)]),(0,e.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,t.computeBoxProps)(l))))}return m}();k.defaultHooks=a.pureComponentHooks;var C=r.TableRow=function(){function m(u){var d=u.className,i=u.header,c=y(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",d,(0,t.computeBoxClassName)(u)]),null,1,Object.assign({},(0,t.computeBoxProps)(c))))}return m}();C.defaultHooks=a.pureComponentHooks;var s=r.TableCell=function(){function m(u){var d=u.className,i=u.collapsing,c=u.header,l=y(u,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",c&&"Table__cell--header",d,(0,t.computeBoxClassName)(u)]),null,1,Object.assign({},(0,t.computeBoxProps)(l))))}return m}();s.defaultHooks=a.pureComponentHooks,k.Row=C,k.Cell=s},63340:function(x,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(19567),f=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + */function y(m,d){if(m==null)return{};var u={},i=Object.keys(m),l,c;for(c=0;c=0)&&(u[l]=m[l]);return u}var k=r.Table=function(){function m(d){var u=d.className,i=d.collapsing,l=d.children,c=y(d,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",u,(0,t.computeBoxClassName)(c)]),(0,e.createVNode)(1,"tbody",null,l,0),2,Object.assign({},(0,t.computeBoxProps)(c))))}return m}();k.defaultHooks=a.pureComponentHooks;var C=r.TableRow=function(){function m(d){var u=d.className,i=d.header,l=y(d,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",u,(0,t.computeBoxClassName)(d)]),null,1,Object.assign({},(0,t.computeBoxProps)(l))))}return m}();C.defaultHooks=a.pureComponentHooks;var s=r.TableCell=function(){function m(d){var u=d.className,i=d.collapsing,l=d.header,c=y(d,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",l&&"Table__cell--header",u,(0,t.computeBoxClassName)(d)]),null,1,Object.assign({},(0,t.computeBoxProps)(c))))}return m}();s.defaultHooks=a.pureComponentHooks,k.Row=C,k.Cell=s},63340:function(x,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(19567),f=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(s,m){if(s==null)return{};var u={},d=Object.keys(s),i,c;for(c=0;c=0)&&(u[i]=s[i]);return u}var k=r.Tabs=function(){function s(m){var u=m.className,d=m.vertical,i=m.fill,c=m.fluid,l=m.children,h=y(m,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",d?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",c&&"Tabs--fluid",u,(0,t.computeBoxClassName)(h)]),l,0,Object.assign({},(0,t.computeBoxProps)(h))))}return s}(),C=function(m){var u=m.className,d=m.selected,i=m.color,c=m.icon,l=m.leftSlot,h=m.rightSlot,p=m.children,v=y(m,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,d&&"Tab--selected",u].concat((0,t.computeBoxClassName)(v))),[(0,a.canRender)(l)&&(0,e.createVNode)(1,"div","Tab__left",l,0)||!!c&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:c}),2),(0,e.createVNode)(1,"div","Tab__text",p,0),(0,a.canRender)(h)&&(0,e.createVNode)(1,"div","Tab__right",h,0)],0,Object.assign({},(0,t.computeBoxProps)(v))))};k.Tab=C},15847:function(x,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(505),f=n(42678),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"],y=["className","fluid","nowrap"];function k(u,d){if(u==null)return{};var i={},c=Object.keys(u),l,h;for(h=0;h=0)&&(i[l]=u[l]);return i}function C(u,d){u.prototype=Object.create(d.prototype),u.prototype.constructor=u,s(u,d)}function s(u,d){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,l){return c.__proto__=l,c}return i}(),s(u,d)}/** + */function y(s,m){if(s==null)return{};var d={},u=Object.keys(s),i,l;for(l=0;l=0)&&(d[i]=s[i]);return d}var k=r.Tabs=function(){function s(m){var d=m.className,u=m.vertical,i=m.fill,l=m.fluid,c=m.children,v=y(m,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",u?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",l&&"Tabs--fluid",d,(0,t.computeBoxClassName)(v)]),c,0,Object.assign({},(0,t.computeBoxProps)(v))))}return s}(),C=function(m){var d=m.className,u=m.selected,i=m.color,l=m.icon,c=m.leftSlot,v=m.rightSlot,p=m.children,h=y(m,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,u&&"Tab--selected",d].concat((0,t.computeBoxClassName)(h))),[(0,a.canRender)(c)&&(0,e.createVNode)(1,"div","Tab__left",c,0)||!!l&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:l}),2),(0,e.createVNode)(1,"div","Tab__text",p,0),(0,a.canRender)(v)&&(0,e.createVNode)(1,"div","Tab__right",v,0)],0,Object.assign({},(0,t.computeBoxProps)(h))))};k.Tab=C},15847:function(x,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(58734),a=n(59641),t=n(2433),o=n(505),f=n(42678),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"],y=["className","fluid","nowrap"];function k(d,u){if(d==null)return{};var i={},l=Object.keys(d),c,v;for(v=0;v=0)&&(i[c]=d[c]);return i}function C(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,s(d,u)}function s(d,u){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(l,c){return l.__proto__=c,l}return i}(),s(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var m=r.TextArea=function(u){C(d,u);function d(c){var l;l=u.call(this,c)||this,l.textareaRef=c.innerRef||(0,e.createRef)(),l.state={editing:!1,scrolledAmount:0};var h=c.dontUseTabForIndent,p=h===void 0?!1:h;return l.handleOnInput=function(v){var b=l.state.editing,g=l.props.onInput;b||l.setEditing(!0),g&&g(v,v.target.value)},l.handleOnChange=function(v){var b=l.state.editing,g=l.props.onChange;b&&l.setEditing(!1),g&&g(v,v.target.value)},l.handleKeyPress=function(v){var b=l.state.editing,g=l.props.onKeyPress;b||l.setEditing(!0),g&&g(v,v.target.value)},l.handleKeyDown=function(v){var b=l.state.editing,g=l.props,N=g.onChange,B=g.onInput,S=g.onEnter,L=g.onKey;if(v.keyCode===f.KEY_ENTER){l.setEditing(!1),N&&N(v,v.target.value),B&&B(v,v.target.value),S&&S(v,v.target.value),l.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(v),l.setEditing(!1),l.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(l.props.value),v.target.blur());return}if(b||l.setEditing(!0),L&&L(v,v.target.value),!p){var I=v.keyCode||v.which;if(I===f.KEY_TAB){v.preventDefault();var w=v.target,T=w.value,E=w.selectionStart,A=w.selectionEnd;v.target.value=T.substring(0,E)+" "+T.substring(A),v.target.selectionEnd=E+1,B&&B(v,v.target.value)}}},l.handleFocus=function(v){var b=l.state.editing;b||l.setEditing(!0)},l.handleBlur=function(v){var b=l.state.editing,g=l.props.onChange;b&&(l.setEditing(!1),g&&g(v,v.target.value))},l.handleScroll=function(v){var b=l.props.displayedValue,g=l.textareaRef.current;b&&g&&l.setState({scrolledAmount:g.scrollTop})},l}var i=d.prototype;return i.componentDidMount=function(){function c(){var l=this,h=this.props.value,p=this.textareaRef.current;p&&(p.value=(0,o.toInputValue)(h)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),l.props.autoSelect&&p.select()},1)}return c}(),i.componentDidUpdate=function(){function c(l,h){var p=l.value,v=this.props.value,b=this.textareaRef.current;b&&typeof v=="string"&&p!==v&&(b.value=(0,o.toInputValue)(v))}return c}(),i.setEditing=function(){function c(l){this.setState({editing:l})}return c}(),i.getValue=function(){function c(){return this.textareaRef.current&&this.textareaRef.current.value}return c}(),i.render=function(){function c(){var l=this.props,h=l.onChange,p=l.onKeyDown,v=l.onKeyPress,b=l.onInput,g=l.onFocus,N=l.onBlur,B=l.onEnter,S=l.value,L=l.maxLength,I=l.placeholder,w=l.scrollbar,T=l.noborder,E=l.displayedValue,A=k(l,V),M=A.className,R=A.fluid,O=A.nowrap,F=k(A,y),D=this.state.scrolledAmount;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",R&&"TextArea--fluid",T&&"TextArea--noborder",M])},F,{children:[!!E&&(0,e.createComponentVNode)(2,t.Box,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.createVNode)(1,"div",(0,a.classes)(["TextArea__textarea","TextArea__textarea_custom"]),E,0,{style:{transform:"translateY(-"+D+"px)"}})}),(0,e.createVNode)(128,"textarea",(0,a.classes)(["TextArea__textarea",w&&"TextArea__textarea--scrollable",O&&"TextArea__nowrap"]),null,1,{placeholder:I,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:L,style:{color:E?"rgba(0, 0, 0, 0)":"inherit"}},null,this.textareaRef)]})))}return c}(),d}(e.Component)},82201:function(x,r,n){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var e=n(420),a=n(58734);function t(y,k){y.prototype=Object.create(k.prototype),y.prototype.constructor=y,o(y,k)}function o(y,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(s,m){return s.__proto__=m,s}return C}(),o(y,k)}var f=function(k){return typeof k=="number"&&Number.isFinite(k)&&!Number.isNaN(k)},V=r.TimeDisplay=function(y){t(k,y);function k(s){var m;return m=y.call(this,s)||this,m.timer=null,m.last_seen_value=void 0,m.state={value:0},f(s.value)&&(m.state.value=Number(s.value),m.last_seen_value=Number(s.value)),m}var C=k.prototype;return C.componentDidUpdate=function(){function s(){var m=this;this.props.auto!==void 0&&(clearInterval(this.timer),this.timer=setInterval(function(){return m.tick()},1e3))}return s}(),C.tick=function(){function s(){var m=Number(this.state.value);this.props.value!==this.last_seen_value&&(this.last_seen_value=this.props.value,m=this.props.value);var u=this.props.auto==="up"?10:-10,d=Math.max(0,m+u);this.setState({value:d})}return s}(),C.componentDidMount=function(){function s(){var m=this;this.props.auto!==void 0&&(this.timer=setInterval(function(){return m.tick()},1e3))}return s}(),C.componentWillUnmount=function(){function s(){clearInterval(this.timer)}return s}(),C.render=function(){function s(){var m=this.state.value;return f(m)?(0,e.formatTime)(m):this.state.value||null}return s}(),k}(a.Component)},88078:function(x,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(58734),a=n(92935),t;function o(C,s){C.prototype=Object.create(s.prototype),C.prototype.constructor=C,f(C,s)}function f(C,s){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function m(u,d){return u.__proto__=d,u}return m}(),f(C,s)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},k=r.Tooltip=function(C){o(s,C);function s(){return C.apply(this,arguments)||this}var m=s.prototype;return m.getDOMNode=function(){function u(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return u}(),m.componentDidMount=function(){function u(){var d=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var c=s.renderedTooltip;c===void 0&&(c=document.createElement("div"),c.className="Tooltip",document.body.appendChild(c),s.renderedTooltip=c),s.currentHoveredElement=i,c.style.opacity="1",d.renderPopperContent()}),i.addEventListener("mouseleave",function(){d.fadeOut()}))}return u}(),m.fadeOut=function(){function u(){s.currentHoveredElement===this.getDOMNode()&&(s.currentHoveredElement=void 0,s.renderedTooltip.style.opacity="0")}return u}(),m.renderPopperContent=function(){function u(){var d=this,i=s.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var c=s.singletonPopper;c===void 0?(c=(0,a.createPopper)(s.virtualElement,i,Object.assign({},V,{placement:d.props.position||"auto"})),s.singletonPopper=c):(c.setOptions(Object.assign({},V,{placement:d.props.position||"auto"})),c.update())},this.context)}return u}(),m.componentDidUpdate=function(){function u(){s.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return u}(),m.componentWillUnmount=function(){function u(){this.fadeOut()}return u}(),m.render=function(){function u(){return this.props.children}return u}(),s}(e.Component);t=k,k.renderedTooltip=void 0,k.singletonPopper=void 0,k.currentHoveredElement=void 0,k.virtualElement={getBoundingClientRect:function(){function C(){var s,m;return(s=(m=t.currentHoveredElement)==null?void 0:m.getBoundingClientRect())!=null?s:y}return C}()}},89636:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=void 0;var e=n(58734);function a(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.TrackOutsideClicks=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.ref=(0,e.createRef)(),C.handleOutsideClick=C.handleOutsideClick.bind(a(C)),document.addEventListener("click",C.handleOutsideClick),C}var k=y.prototype;return k.componentWillUnmount=function(){function C(){document.removeEventListener("click",this.handleOutsideClick)}return C}(),k.handleOutsideClick=function(){function C(s){s.target instanceof Node&&this.ref.current&&!this.ref.current.contains(s.target)&&this.props.onOutsideClick()}return C}(),k.render=function(){function C(){return(0,e.createVNode)(1,"div",null,this.props.children,0,null,null,this.ref)}return C}(),y}(e.Component)},35239:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.StyleableSection=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.MenuBar=r.LabeledList=r.LabeledControls=r.Knob=r.KeyListener=r.Input=r.InfinitePlane=r.Icon=r.Grid=r.Flex=r.FitText=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Dialog=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(73380);r.AnimatedNumber=e.AnimatedNumber;var a=n(87154);r.Autofocus=a.Autofocus;var t=n(46283);r.Blink=t.Blink;var o=n(79713);r.BlockQuote=o.BlockQuote;var f=n(2433);r.Box=f.Box;var V=n(24211);r.Button=V.Button;var y=n(78581);r.ByondUi=y.ByondUi;var k=n(44715);r.Chart=k.Chart;var C=n(57988);r.Collapsible=C.Collapsible;var s=n(95576);r.ColorBox=s.ColorBox;var m=n(85271);r.Dimmer=m.Dimmer;var u=n(13823);r.Divider=u.Divider;var d=n(42647);r.DraggableControl=d.DraggableControl;var i=n(3123);r.Dropdown=i.Dropdown;var c=n(22427);r.Flex=c.Flex;var l=n(33309);r.FitText=l.FitText;var h=n(66550);r.Grid=h.Grid;var p=n(19567);r.Icon=p.Icon;var v=n(37174);r.InfinitePlane=v.InfinitePlane;var b=n(505);r.Input=b.Input;var g=n(1172);r.KeyListener=g.KeyListener;var N=n(38993);r.Knob=N.Knob;var B=n(90749);r.LabeledControls=B.LabeledControls;var S=n(37806);r.LabeledList=S.LabeledList;var L=n(90617);r.MenuBar=L.MenuBar;var I=n(68534);r.Modal=I.Modal;var w=n(82161);r.NanoMap=w.NanoMap;var T=n(38874);r.NoticeBox=T.NoticeBox;var E=n(79311);r.NumberInput=E.NumberInput;var A=n(79840);r.ProgressBar=A.ProgressBar;var M=n(88530);r.Popper=M.Popper;var R=n(96067);r.RestrictedInput=R.RestrictedInput;var O=n(84714);r.RoundGauge=O.RoundGauge;var F=n(95657);r.Section=F.Section;var D=n(1613);r.Slider=D.Slider;var j=n(27414);r.StyleableSection=j.StyleableSection;var _=n(34559);r.Stack=_.Stack;var z=n(45731);r.Table=z.Table;var H=n(63340);r.Tabs=H.Tabs;var Q=n(15847);r.TextArea=Q.TextArea;var Y=n(82201);r.TimeDisplay=Y.TimeDisplay;var X=n(89636);r.TrackOutsideClicks=X.TrackOutsideClicks;var $=n(88078);r.Tooltip=$.Tooltip;var G=n(59493);r.Dialog=G.Dialog},61994:function(x,r){"use strict";r.__esModule=!0,r.getGasLabel=r.getGasFromId=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.T0C=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;/** +*/var m=r.TextArea=function(d){C(u,d);function u(l){var c;c=d.call(this,l)||this,c.textareaRef=l.innerRef||(0,e.createRef)(),c.state={editing:!1,scrolledAmount:0};var v=l.dontUseTabForIndent,p=v===void 0?!1:v;return c.handleOnInput=function(h){var b=c.state.editing,g=c.props.onInput;b||c.setEditing(!0),g&&g(h,h.target.value)},c.handleOnChange=function(h){var b=c.state.editing,g=c.props.onChange;b&&c.setEditing(!1),g&&g(h,h.target.value)},c.handleKeyPress=function(h){var b=c.state.editing,g=c.props.onKeyPress;b||c.setEditing(!0),g&&g(h,h.target.value)},c.handleKeyDown=function(h){var b=c.state.editing,g=c.props,N=g.onChange,B=g.onInput,S=g.onEnter,L=g.onKey;if(h.keyCode===f.KEY_ENTER){c.setEditing(!1),N&&N(h,h.target.value),B&&B(h,h.target.value),S&&S(h,h.target.value),c.props.selfClear&&(h.target.value="",h.target.blur());return}if(h.keyCode===f.KEY_ESCAPE){c.props.onEscape&&c.props.onEscape(h),c.setEditing(!1),c.props.selfClear?h.target.value="":(h.target.value=(0,o.toInputValue)(c.props.value),h.target.blur());return}if(b||c.setEditing(!0),L&&L(h,h.target.value),!p){var I=h.keyCode||h.which;if(I===f.KEY_TAB){h.preventDefault();var w=h.target,T=w.value,E=w.selectionStart,A=w.selectionEnd;h.target.value=T.substring(0,E)+" "+T.substring(A),h.target.selectionEnd=E+1,B&&B(h,h.target.value)}}},c.handleFocus=function(h){var b=c.state.editing;b||c.setEditing(!0)},c.handleBlur=function(h){var b=c.state.editing,g=c.props.onChange;b&&(c.setEditing(!1),g&&g(h,h.target.value))},c.handleScroll=function(h){var b=c.props.displayedValue,g=c.textareaRef.current;b&&g&&c.setState({scrolledAmount:g.scrollTop})},c}var i=u.prototype;return i.componentDidMount=function(){function l(){var c=this,v=this.props.value,p=this.textareaRef.current;p&&(p.value=(0,o.toInputValue)(v)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),c.props.autoSelect&&p.select()},1)}return l}(),i.componentDidUpdate=function(){function l(c,v){var p=c.value,h=this.props.value,b=this.textareaRef.current;b&&typeof h=="string"&&p!==h&&(b.value=(0,o.toInputValue)(h))}return l}(),i.setEditing=function(){function l(c){this.setState({editing:c})}return l}(),i.getValue=function(){function l(){return this.textareaRef.current&&this.textareaRef.current.value}return l}(),i.render=function(){function l(){var c=this.props,v=c.onChange,p=c.onKeyDown,h=c.onKeyPress,b=c.onInput,g=c.onFocus,N=c.onBlur,B=c.onEnter,S=c.value,L=c.maxLength,I=c.placeholder,w=c.scrollbar,T=c.noborder,E=c.displayedValue,A=k(c,V),M=A.className,R=A.fluid,O=A.nowrap,F=k(A,y),D=this.state.scrolledAmount;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",R&&"TextArea--fluid",T&&"TextArea--noborder",M])},F,{children:[!!E&&(0,e.createComponentVNode)(2,t.Box,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.createVNode)(1,"div",(0,a.classes)(["TextArea__textarea","TextArea__textarea_custom"]),E,0,{style:{transform:"translateY(-"+D+"px)"}})}),(0,e.createVNode)(128,"textarea",(0,a.classes)(["TextArea__textarea",w&&"TextArea__textarea--scrollable",O&&"TextArea__nowrap"]),null,1,{placeholder:I,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:L,style:{color:E?"rgba(0, 0, 0, 0)":"inherit"}},null,this.textareaRef)]})))}return l}(),u}(e.Component)},82201:function(x,r,n){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var e=n(420),a=n(58734);function t(y,k){y.prototype=Object.create(k.prototype),y.prototype.constructor=y,o(y,k)}function o(y,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(s,m){return s.__proto__=m,s}return C}(),o(y,k)}var f=function(k){return typeof k=="number"&&Number.isFinite(k)&&!Number.isNaN(k)},V=r.TimeDisplay=function(y){t(k,y);function k(s){var m;return m=y.call(this,s)||this,m.timer=null,m.last_seen_value=void 0,m.state={value:0},f(s.value)&&(m.state.value=Number(s.value),m.last_seen_value=Number(s.value)),m}var C=k.prototype;return C.componentDidUpdate=function(){function s(){var m=this;this.props.auto!==void 0&&(clearInterval(this.timer),this.timer=setInterval(function(){return m.tick()},1e3))}return s}(),C.tick=function(){function s(){var m=Number(this.state.value);this.props.value!==this.last_seen_value&&(this.last_seen_value=this.props.value,m=this.props.value);var d=this.props.auto==="up"?10:-10,u=Math.max(0,m+d);this.setState({value:u})}return s}(),C.componentDidMount=function(){function s(){var m=this;this.props.auto!==void 0&&(this.timer=setInterval(function(){return m.tick()},1e3))}return s}(),C.componentWillUnmount=function(){function s(){clearInterval(this.timer)}return s}(),C.render=function(){function s(){var m=this.state.value;return f(m)?(0,e.formatTime)(m):this.state.value||null}return s}(),k}(a.Component)},88078:function(x,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(58734),a=n(92935),t;function o(C,s){C.prototype=Object.create(s.prototype),C.prototype.constructor=C,f(C,s)}function f(C,s){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function m(d,u){return d.__proto__=u,d}return m}(),f(C,s)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function C(){return null}return C}()},k=r.Tooltip=function(C){o(s,C);function s(){return C.apply(this,arguments)||this}var m=s.prototype;return m.getDOMNode=function(){function d(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return d}(),m.componentDidMount=function(){function d(){var u=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var l=s.renderedTooltip;l===void 0&&(l=document.createElement("div"),l.className="Tooltip",document.body.appendChild(l),s.renderedTooltip=l),s.currentHoveredElement=i,l.style.opacity="1",u.renderPopperContent()}),i.addEventListener("mouseleave",function(){u.fadeOut()}))}return d}(),m.fadeOut=function(){function d(){s.currentHoveredElement===this.getDOMNode()&&(s.currentHoveredElement=void 0,s.renderedTooltip.style.opacity="0")}return d}(),m.renderPopperContent=function(){function d(){var u=this,i=s.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var l=s.singletonPopper;l===void 0?(l=(0,a.createPopper)(s.virtualElement,i,Object.assign({},V,{placement:u.props.position||"auto"})),s.singletonPopper=l):(l.setOptions(Object.assign({},V,{placement:u.props.position||"auto"})),l.update())},this.context)}return d}(),m.componentDidUpdate=function(){function d(){s.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return d}(),m.componentWillUnmount=function(){function d(){this.fadeOut()}return d}(),m.render=function(){function d(){return this.props.children}return d}(),s}(e.Component);t=k,k.renderedTooltip=void 0,k.singletonPopper=void 0,k.currentHoveredElement=void 0,k.virtualElement={getBoundingClientRect:function(){function C(){var s,m;return(s=(m=t.currentHoveredElement)==null?void 0:m.getBoundingClientRect())!=null?s:y}return C}()}},89636:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=void 0;var e=n(58734);function a(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function k(C,s){return C.__proto__=s,C}return k}(),o(V,y)}var f=r.TrackOutsideClicks=function(V){t(y,V);function y(){var C;return C=V.call(this)||this,C.ref=(0,e.createRef)(),C.handleOutsideClick=C.handleOutsideClick.bind(a(C)),document.addEventListener("click",C.handleOutsideClick),C}var k=y.prototype;return k.componentWillUnmount=function(){function C(){document.removeEventListener("click",this.handleOutsideClick)}return C}(),k.handleOutsideClick=function(){function C(s){s.target instanceof Node&&this.ref.current&&!this.ref.current.contains(s.target)&&this.props.onOutsideClick()}return C}(),k.render=function(){function C(){return(0,e.createVNode)(1,"div",null,this.props.children,0,null,null,this.ref)}return C}(),y}(e.Component)},35239:function(x,r,n){"use strict";r.__esModule=!0,r.TrackOutsideClicks=r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.StyleableSection=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.MenuBar=r.LabeledList=r.LabeledControls=r.Knob=r.KeyListener=r.Input=r.InfinitePlane=r.Icon=r.Grid=r.Flex=r.FitText=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Dialog=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(73380);r.AnimatedNumber=e.AnimatedNumber;var a=n(87154);r.Autofocus=a.Autofocus;var t=n(46283);r.Blink=t.Blink;var o=n(79713);r.BlockQuote=o.BlockQuote;var f=n(2433);r.Box=f.Box;var V=n(24211);r.Button=V.Button;var y=n(78581);r.ByondUi=y.ByondUi;var k=n(44715);r.Chart=k.Chart;var C=n(57988);r.Collapsible=C.Collapsible;var s=n(95576);r.ColorBox=s.ColorBox;var m=n(85271);r.Dimmer=m.Dimmer;var d=n(13823);r.Divider=d.Divider;var u=n(42647);r.DraggableControl=u.DraggableControl;var i=n(3123);r.Dropdown=i.Dropdown;var l=n(22427);r.Flex=l.Flex;var c=n(33309);r.FitText=c.FitText;var v=n(66550);r.Grid=v.Grid;var p=n(19567);r.Icon=p.Icon;var h=n(37174);r.InfinitePlane=h.InfinitePlane;var b=n(505);r.Input=b.Input;var g=n(1172);r.KeyListener=g.KeyListener;var N=n(38993);r.Knob=N.Knob;var B=n(90749);r.LabeledControls=B.LabeledControls;var S=n(37806);r.LabeledList=S.LabeledList;var L=n(90617);r.MenuBar=L.MenuBar;var I=n(68534);r.Modal=I.Modal;var w=n(82161);r.NanoMap=w.NanoMap;var T=n(38874);r.NoticeBox=T.NoticeBox;var E=n(79311);r.NumberInput=E.NumberInput;var A=n(79840);r.ProgressBar=A.ProgressBar;var M=n(88530);r.Popper=M.Popper;var R=n(96067);r.RestrictedInput=R.RestrictedInput;var O=n(84714);r.RoundGauge=O.RoundGauge;var F=n(95657);r.Section=F.Section;var D=n(1613);r.Slider=D.Slider;var j=n(27414);r.StyleableSection=j.StyleableSection;var _=n(34559);r.Stack=_.Stack;var z=n(45731);r.Table=z.Table;var H=n(63340);r.Tabs=H.Tabs;var Q=n(15847);r.TextArea=Q.TextArea;var Y=n(82201);r.TimeDisplay=Y.TimeDisplay;var X=n(89636);r.TrackOutsideClicks=X.TrackOutsideClicks;var $=n(88078);r.Tooltip=$.Tooltip;var G=n(59493);r.Dialog=G.Dialog},61994:function(x,r){"use strict";r.__esModule=!0,r.getGasLabel=r.getGasFromId=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.T0C=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.T0C=273.15,e=r.UI_INTERACTIVE=2,a=r.UI_UPDATE=1,t=r.UI_DISABLED=0,o=r.UI_CLOSE=-1,f=r.COLORS={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},V=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],y=r.RADIO_CHANNELS=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],k=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],C=r.getGasLabel=function(){function u(d,i){if(!d)return i||"None";for(var c=d.toLowerCase(),l=d.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()}),h=0;h=0;--Ie){var we=this.tryEntries[Ie],_e=we.completion;if(we.tryLoc==="root")return ye("end");if(we.tryLoc<=this.prev){var ze=Q.call(we,"catchLoc"),Ue=Q.call(we,"finallyLoc");if(ze&&Ue){if(this.prev=0;--ye){var Ie=this.tryEntries[ye];if(Ie.tryLoc<=this.prev&&Q.call(Ie,"finallyLoc")&&this.prev=0;--he){var ye=this.tryEntries[he];if(ye.finallyLoc===ve)return this.complete(ye.completion,ye.afterLoc),Fe(ye),ie}}return be}(),catch:function(){function be(ve){for(var he=this.tryEntries.length-1;he>=0;--he){var ye=this.tryEntries[he];if(ye.tryLoc===ve){var Ie=ye.completion;if(Ie.type==="throw"){var we=Ie.arg;Fe(ye)}return we}}throw new Error("illegal catch attempt")}return be}(),delegateYield:function(){function be(ve,he,ye){return this.delegate={iterator:Me(ve),resultName:he,nextLoc:ye},this.method==="next"&&(this.arg=_),ie}return be}()},z}function V(_,z,H,Q,Y,X,$){try{var G=_[X]($),Z=G.value}catch(te){H(te);return}G.done?z(Z):Promise.resolve(Z).then(Q,Y)}function y(_){return function(){var z=this,H=arguments;return new Promise(function(Q,Y){var X=_.apply(z,H);function $(Z){V(X,Q,Y,$,G,"next",Z)}function G(Z){V(X,Q,Y,$,G,"throw",Z)}$(void 0)})}}var k=(0,a.createLogger)("drag"),C=(o=window.devicePixelRatio)!=null?o:1,s=Byond.windowId,m=!1,u=!1,d=[0,0],i,c,l,h,p,v=r.setWindowKey=function(){function _(z){s=z}return _}(),b=r.getWindowPosition=function(){function _(){return[window.screenLeft*C,window.screenTop*C]}return _}(),g=r.getWindowSize=function(){function _(){return[window.innerWidth*C,window.innerHeight*C]}return _}(),N=function(z){var H=(0,e.vecAdd)(z,d);return Byond.winset(Byond.windowId,{pos:H[0]+","+H[1]})},B=function(z){return Byond.winset(Byond.windowId,{size:z[0]+"x"+z[1]})},S=function(){return[0-d[0],0-d[1]]},L=function(){return[window.screen.availWidth*C,window.screen.availHeight*C]},I=r.touchRecents=function(){function _(z,H,Q){Q===void 0&&(Q=50);for(var Y=[H],X,$=0;$te&&(X[G]=te-H[G],$=!0)}return[$,X]},M=r.dragStartHandler=function(){function _(z){var H;k.log("drag start"),m=!0,c=(0,e.vecSubtract)([z.screenX,z.screenY],b()),(H=z.target)==null||H.focus(),document.addEventListener("mousemove",O),document.addEventListener("mouseup",R),O(z)}return _}(),R=function _(z){k.log("drag end"),O(z),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),m=!1,w()},O=function(z){m&&(z.preventDefault(),N((0,e.vecSubtract)([z.screenX,z.screenY],c)))},F=r.resizeStartHandler=function(){function _(z,H){return function(Q){var Y;l=[z,H],k.log("resize start",l),u=!0,c=(0,e.vecSubtract)([Q.screenX,Q.screenY],b()),h=g(),(Y=Q.target)==null||Y.focus(),document.addEventListener("mousemove",j),document.addEventListener("mouseup",D),j(Q)}}return _}(),D=function _(z){k.log("resize end",p),j(z),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",_),u=!1,w()},j=function(z){if(u){z.preventDefault();var H=(0,e.vecSubtract)([z.screenX,z.screenY],b()),Q=(0,e.vecSubtract)(H,c);p=(0,e.vecAdd)(h,(0,e.vecMultiply)(l,Q),[1,1]),p[0]=Math.max(p[0],150*C),p[1]=Math.max(p[1],50*C),B(p)}}},81721:function(x,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(42678),a=n(20474);/** + */function f(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return z};var _,z={},H=Object.prototype,Q=H.hasOwnProperty,Y=Object.defineProperty||function(be,ve,he){be[ve]=he.value},X=typeof Symbol=="function"?Symbol:{},$=X.iterator||"@@iterator",G=X.asyncIterator||"@@asyncIterator",Z=X.toStringTag||"@@toStringTag";function te(be,ve,he){return Object.defineProperty(be,ve,{value:he,enumerable:!0,configurable:!0,writable:!0}),be[ve]}try{te({},"")}catch(be){te=function(he,ye,Ie){return he[ye]=Ie}}function q(be,ve,he,ye){var Ie=ve&&ve.prototype instanceof Ve?ve:Ve,we=Object.create(Ie.prototype),_e=new je(ye||[]);return Y(we,"_invoke",{value:xe(be,he,_e)}),we}function me(be,ve,he){try{return{type:"normal",arg:be.call(ve,he)}}catch(ye){return{type:"throw",arg:ye}}}z.wrap=q;var pe="suspendedStart",Ne="suspendedYield",le="executing",re="completed",ie={};function Ve(){}function ke(){}function Be(){}var de={};te(de,$,function(){return this});var oe=Object.getPrototypeOf,Ce=oe&&oe(oe(Me([])));Ce&&Ce!==H&&Q.call(Ce,$)&&(de=Ce);var ae=Be.prototype=Ve.prototype=Object.create(de);function ee(be){["next","throw","return"].forEach(function(ve){te(be,ve,function(he){return this._invoke(ve,he)})})}function se(be,ve){function he(Ie,we,_e,ze){var Ue=me(be[Ie],be,we);if(Ue.type!=="throw"){var Ge=Ue.arg,Ke=Ge.value;return Ke&&typeof Ke=="object"&&Q.call(Ke,"__await")?ve.resolve(Ke.__await).then(function(Ye){he("next",Ye,_e,ze)},function(Ye){he("throw",Ye,_e,ze)}):ve.resolve(Ke).then(function(Ye){Ge.value=Ye,_e(Ge)},function(Ye){return he("throw",Ye,_e,ze)})}ze(Ue.arg)}var ye;Y(this,"_invoke",{value:function(){function Ie(we,_e){function ze(){return new ve(function(Ue,Ge){he(we,_e,Ue,Ge)})}return ye=ye?ye.then(ze,ze):ze()}return Ie}()})}function xe(be,ve,he){var ye=pe;return function(Ie,we){if(ye===le)throw new Error("Generator is already running");if(ye===re){if(Ie==="throw")throw we;return{value:_,done:!0}}for(he.method=Ie,he.arg=we;;){var _e=he.delegate;if(_e){var ze=Le(_e,he);if(ze){if(ze===ie)continue;return ze}}if(he.method==="next")he.sent=he._sent=he.arg;else if(he.method==="throw"){if(ye===pe)throw ye=re,he.arg;he.dispatchException(he.arg)}else he.method==="return"&&he.abrupt("return",he.arg);ye=le;var Ue=me(be,ve,he);if(Ue.type==="normal"){if(ye=he.done?re:Ne,Ue.arg===ie)continue;return{value:Ue.arg,done:he.done}}Ue.type==="throw"&&(ye=re,he.method="throw",he.arg=Ue.arg)}}}function Le(be,ve){var he=ve.method,ye=be.iterator[he];if(ye===_)return ve.delegate=null,he==="throw"&&be.iterator.return&&(ve.method="return",ve.arg=_,Le(be,ve),ve.method==="throw")||he!=="return"&&(ve.method="throw",ve.arg=new TypeError("The iterator does not provide a '"+he+"' method")),ie;var Ie=me(ye,be.iterator,ve.arg);if(Ie.type==="throw")return ve.method="throw",ve.arg=Ie.arg,ve.delegate=null,ie;var we=Ie.arg;return we?we.done?(ve[be.resultName]=we.value,ve.next=be.nextLoc,ve.method!=="return"&&(ve.method="next",ve.arg=_),ve.delegate=null,ie):we:(ve.method="throw",ve.arg=new TypeError("iterator result is not an object"),ve.delegate=null,ie)}function Pe(be){var ve={tryLoc:be[0]};1 in be&&(ve.catchLoc=be[1]),2 in be&&(ve.finallyLoc=be[2],ve.afterLoc=be[3]),this.tryEntries.push(ve)}function Fe(be){var ve=be.completion||{};ve.type="normal",delete ve.arg,be.completion=ve}function je(be){this.tryEntries=[{tryLoc:"root"}],be.forEach(Pe,this),this.reset(!0)}function Me(be){if(be||be===""){var ve=be[$];if(ve)return ve.call(be);if(typeof be.next=="function")return be;if(!isNaN(be.length)){var he=-1,ye=function(){function Ie(){for(;++he=0;--Ie){var we=this.tryEntries[Ie],_e=we.completion;if(we.tryLoc==="root")return ye("end");if(we.tryLoc<=this.prev){var ze=Q.call(we,"catchLoc"),Ue=Q.call(we,"finallyLoc");if(ze&&Ue){if(this.prev=0;--ye){var Ie=this.tryEntries[ye];if(Ie.tryLoc<=this.prev&&Q.call(Ie,"finallyLoc")&&this.prev=0;--he){var ye=this.tryEntries[he];if(ye.finallyLoc===ve)return this.complete(ye.completion,ye.afterLoc),Fe(ye),ie}}return be}(),catch:function(){function be(ve){for(var he=this.tryEntries.length-1;he>=0;--he){var ye=this.tryEntries[he];if(ye.tryLoc===ve){var Ie=ye.completion;if(Ie.type==="throw"){var we=Ie.arg;Fe(ye)}return we}}throw new Error("illegal catch attempt")}return be}(),delegateYield:function(){function be(ve,he,ye){return this.delegate={iterator:Me(ve),resultName:he,nextLoc:ye},this.method==="next"&&(this.arg=_),ie}return be}()},z}function V(_,z,H,Q,Y,X,$){try{var G=_[X]($),Z=G.value}catch(te){H(te);return}G.done?z(Z):Promise.resolve(Z).then(Q,Y)}function y(_){return function(){var z=this,H=arguments;return new Promise(function(Q,Y){var X=_.apply(z,H);function $(Z){V(X,Q,Y,$,G,"next",Z)}function G(Z){V(X,Q,Y,$,G,"throw",Z)}$(void 0)})}}var k=(0,a.createLogger)("drag"),C=(o=window.devicePixelRatio)!=null?o:1,s=Byond.windowId,m=!1,d=!1,u=[0,0],i,l,c,v,p,h=r.setWindowKey=function(){function _(z){s=z}return _}(),b=r.getWindowPosition=function(){function _(){return[window.screenLeft*C,window.screenTop*C]}return _}(),g=r.getWindowSize=function(){function _(){return[window.innerWidth*C,window.innerHeight*C]}return _}(),N=function(z){var H=(0,e.vecAdd)(z,u);return Byond.winset(Byond.windowId,{pos:H[0]+","+H[1]})},B=function(z){return Byond.winset(Byond.windowId,{size:z[0]+"x"+z[1]})},S=function(){return[0-u[0],0-u[1]]},L=function(){return[window.screen.availWidth*C,window.screen.availHeight*C]},I=r.touchRecents=function(){function _(z,H,Q){Q===void 0&&(Q=50);for(var Y=[H],X,$=0;$te&&(X[G]=te-H[G],$=!0)}return[$,X]},M=r.dragStartHandler=function(){function _(z){var H;k.log("drag start"),m=!0,l=(0,e.vecSubtract)([z.screenX,z.screenY],b()),(H=z.target)==null||H.focus(),document.addEventListener("mousemove",O),document.addEventListener("mouseup",R),O(z)}return _}(),R=function _(z){k.log("drag end"),O(z),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),m=!1,w()},O=function(z){m&&(z.preventDefault(),N((0,e.vecSubtract)([z.screenX,z.screenY],l)))},F=r.resizeStartHandler=function(){function _(z,H){return function(Q){var Y;c=[z,H],k.log("resize start",c),d=!0,l=(0,e.vecSubtract)([Q.screenX,Q.screenY],b()),v=g(),(Y=Q.target)==null||Y.focus(),document.addEventListener("mousemove",j),document.addEventListener("mouseup",D),j(Q)}}return _}(),D=function _(z){k.log("resize end",p),j(z),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",_),d=!1,w()},j=function(z){if(d){z.preventDefault();var H=(0,e.vecSubtract)([z.screenX,z.screenY],b()),Q=(0,e.vecSubtract)(H,l);p=(0,e.vecAdd)(v,(0,e.vecMultiply)(c,Q),[1,1]),p[0]=Math.max(p[0],150*C),p[1]=Math.max(p[1],50*C),B(p)}}},81721:function(x,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(42678),a=n(20474);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new a.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function g(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return g}(),V,y=!0,k=function g(N,B){if(o){y=!0;return}if(V&&(clearTimeout(V),V=null),B){V=setTimeout(function(){return g(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},C=null,s=r.canStealFocus=function(){function g(N){var B=String(N.tagName).toLowerCase();return B==="input"||B==="textarea"}return g}(),m=function(N){u(),C=N,C.addEventListener("blur",u)},u=function g(){C&&(C.removeEventListener("blur",g),C=null)},d=null,i=null,c=[],l=r.addScrollableNode=function(){function g(N){c.push(N)}return g}(),h=r.removeScrollableNode=function(){function g(N){var B=c.indexOf(N);B>=0&&c.splice(B,1)}return g}(),p=function(N){if(!(C||!y))for(var B=document.body;N&&N!==B;){if(c.includes(N)){if(N.contains(d))return;d=N,N.focus();return}N=N.parentElement}};window.addEventListener("mousemove",function(g){var N=g.target;N!==i&&(i=N,p(N))}),window.addEventListener("focusin",function(g){if(i=null,d=g.target,k(!0),s(g.target)){m(g.target);return}}),window.addEventListener("focusout",function(g){i=null,k(!1,!0)}),window.addEventListener("blur",function(g){i=null,k(!1,!0)}),window.addEventListener("beforeunload",function(g){k(!1)});var v={},b=r.KeyEvent=function(){function g(B,S,L){this.event=void 0,this.type=void 0,this.code=void 0,this.ctrl=void 0,this.shift=void 0,this.alt=void 0,this.repeat=void 0,this._str=void 0,this.event=B,this.type=S,this.code=B.keyCode,this.ctrl=B.ctrlKey,this.shift=B.shiftKey,this.alt=B.altKey,this.repeat=!!L}var N=g.prototype;return N.hasModifierKeys=function(){function B(){return this.ctrl||this.alt||this.shift}return B}(),N.isModifierKey=function(){function B(){return this.code===e.KEY_CTRL||this.code===e.KEY_SHIFT||this.code===e.KEY_ALT}return B}(),N.isDown=function(){function B(){return this.type==="keydown"}return B}(),N.isUp=function(){function B(){return this.type==="keyup"}return B}(),N.toString=function(){function B(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=e.KEY_F1&&this.code<=e.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return B}(),g}();document.addEventListener("keydown",function(g){if(!s(g.target)){var N=g.keyCode,B=new b(g,"keydown",v[N]);t.emit("keydown",B),t.emit("key",B),v[N]=!0}}),document.addEventListener("keyup",function(g){if(!s(g.target)){var N=g.keyCode,B=new b(g,"keyup");t.emit("keyup",B),t.emit("key",B),v[N]=!1}})},20886:function(x,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new a.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function g(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return g}(),V,y=!0,k=function g(N,B){if(o){y=!0;return}if(V&&(clearTimeout(V),V=null),B){V=setTimeout(function(){return g(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},C=null,s=r.canStealFocus=function(){function g(N){var B=String(N.tagName).toLowerCase();return B==="input"||B==="textarea"}return g}(),m=function(N){d(),C=N,C.addEventListener("blur",d)},d=function g(){C&&(C.removeEventListener("blur",g),C=null)},u=null,i=null,l=[],c=r.addScrollableNode=function(){function g(N){l.push(N)}return g}(),v=r.removeScrollableNode=function(){function g(N){var B=l.indexOf(N);B>=0&&l.splice(B,1)}return g}(),p=function(N){if(!(C||!y))for(var B=document.body;N&&N!==B;){if(l.includes(N)){if(N.contains(u))return;u=N,N.focus();return}N=N.parentElement}};window.addEventListener("mousemove",function(g){var N=g.target;N!==i&&(i=N,p(N))}),window.addEventListener("focusin",function(g){if(i=null,u=g.target,k(!0),s(g.target)){m(g.target);return}}),window.addEventListener("focusout",function(g){i=null,k(!1,!0)}),window.addEventListener("blur",function(g){i=null,k(!1,!0)}),window.addEventListener("beforeunload",function(g){k(!1)});var h={},b=r.KeyEvent=function(){function g(B,S,L){this.event=void 0,this.type=void 0,this.code=void 0,this.ctrl=void 0,this.shift=void 0,this.alt=void 0,this.repeat=void 0,this._str=void 0,this.event=B,this.type=S,this.code=B.keyCode,this.ctrl=B.ctrlKey,this.shift=B.shiftKey,this.alt=B.altKey,this.repeat=!!L}var N=g.prototype;return N.hasModifierKeys=function(){function B(){return this.ctrl||this.alt||this.shift}return B}(),N.isModifierKey=function(){function B(){return this.code===e.KEY_CTRL||this.code===e.KEY_SHIFT||this.code===e.KEY_ALT}return B}(),N.isDown=function(){function B(){return this.type==="keydown"}return B}(),N.isUp=function(){function B(){return this.type==="keyup"}return B}(),N.toString=function(){function B(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=e.KEY_F1&&this.code<=e.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return B}(),g}();document.addEventListener("keydown",function(g){if(!s(g.target)){var N=g.keyCode,B=new b(g,"keydown",h[N]);t.emit("keydown",B),t.emit("key",B),h[N]=!0}}),document.addEventListener("keyup",function(g){if(!s(g.target)){var N=g.keyCode,B=new b(g,"keyup");t.emit("keyup",B),t.emit("key",B),h[N]=!1}})},20886:function(x,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -248,27 +248,27 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],e=n.indexOf(" "),a=r.formatSiUnit=function(){function s(m,u,d){if(u===void 0&&(u=-e),d===void 0&&(d=""),!isFinite(m))return m.toString();var i=Math.floor(Math.log10(Math.abs(m))),c=Math.max(u*3,i),l=Math.floor(c/3),h=n[Math.min(l+e,n.length-1)],p=m/Math.pow(1e3,l),v=p.toFixed(2);return v.endsWith(".00")?v=v.slice(0,-3):v.endsWith(".0")&&(v=v.slice(0,-2)),(v+" "+h.trim()+d).trim()}return s}(),t=r.formatPower=function(){function s(m,u){return u===void 0&&(u=0),a(m,u,"W")}return s}(),o=r.formatMoney=function(){function s(m,u){if(u===void 0&&(u=0),!Number.isFinite(m))return String(m);var d=Number(m.toFixed(u)),i=d<0,c=Math.abs(d),l=c.toString().split(".");l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var h=l.join(".");return i?"-"+h:h}return s}(),f=r.formatDb=function(){function s(m){var u=20*Math.log10(m),d=u>=0?"+":"-",i=Math.abs(u);return i===1/0?i="Inf":i=i.toFixed(2),""+d+i+" dB"}return s}(),V=["","\xB7 10\xB3","\xB7 10\u2076","\xB7 10\u2079","\xB7 10\xB9\xB2","\xB7 10\xB9\u2075","\xB7 10\xB9\u2078","\xB7 10\xB2\xB9","\xB7 10\xB2\u2074","\xB7 10\xB2\u2077","\xB7 10\xB3\u2070","\xB7 10\xB3\xB3","\xB7 10\xB3\u2076","\xB7 10\xB3\u2079"],y=r.formatSiBaseTenUnit=function(){function s(m,u,d){if(u===void 0&&(u=0),d===void 0&&(d=""),!isFinite(m))return"NaN";var i=Math.floor(Math.log10(m)),c=Math.max(u*3,i),l=Math.floor(c/3),h=V[l],p=m/Math.pow(1e3,l),v=Math.max(0,2-c%3),b=p.toFixed(v);return(b+" "+h+" "+d).trim()}return s}(),k=r.formatTime=function(){function s(m,u){u===void 0&&(u="default");var d=Math.floor(m/10),i=Math.floor(d/3600),c=Math.floor(d%3600/60),l=d%60;if(u==="short"){var h=i>0?i+"h":"",p=c>0?c+"m":"",v=l>0?l+"s":"";return""+h+p+v}var b=String(i).padStart(2,"0"),g=String(c).padStart(2,"0"),N=String(l).padStart(2,"0");return b+":"+g+":"+N}return s}(),C=r.formatCommaNumber=function(){function s(m){if(!Number.isFinite(m))return m;var u=m.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}return s}()},82611:function(x,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.listenForKeyEvents=r.acquireHotKey=void 0;var e=f(n(42678)),a=n(81721),t=n(37145);function o(p){if(typeof WeakMap!="function")return null;var v=new WeakMap,b=new WeakMap;return(o=function(N){return N?b:v})(p)}function f(p,v){if(!v&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=o(v);if(b&&b.has(p))return b.get(p);var g={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in p)if(B!=="default"&&Object.prototype.hasOwnProperty.call(p,B)){var S=N?Object.getOwnPropertyDescriptor(p,B):null;S&&(S.get||S.set)?Object.defineProperty(g,B,S):g[B]=p[B]}return g.default=p,b&&b.set(p,g),g}/** + */var n=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],e=n.indexOf(" "),a=r.formatSiUnit=function(){function s(m,d,u){if(d===void 0&&(d=-e),u===void 0&&(u=""),!isFinite(m))return m.toString();var i=Math.floor(Math.log10(Math.abs(m))),l=Math.max(d*3,i),c=Math.floor(l/3),v=n[Math.min(c+e,n.length-1)],p=m/Math.pow(1e3,c),h=p.toFixed(2);return h.endsWith(".00")?h=h.slice(0,-3):h.endsWith(".0")&&(h=h.slice(0,-2)),(h+" "+v.trim()+u).trim()}return s}(),t=r.formatPower=function(){function s(m,d){return d===void 0&&(d=0),a(m,d,"W")}return s}(),o=r.formatMoney=function(){function s(m,d){if(d===void 0&&(d=0),!Number.isFinite(m))return String(m);var u=Number(m.toFixed(d)),i=u<0,l=Math.abs(u),c=l.toString().split(".");c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var v=c.join(".");return i?"-"+v:v}return s}(),f=r.formatDb=function(){function s(m){var d=20*Math.log10(m),u=d>=0?"+":"-",i=Math.abs(d);return i===1/0?i="Inf":i=i.toFixed(2),""+u+i+" dB"}return s}(),V=["","\xB7 10\xB3","\xB7 10\u2076","\xB7 10\u2079","\xB7 10\xB9\xB2","\xB7 10\xB9\u2075","\xB7 10\xB9\u2078","\xB7 10\xB2\xB9","\xB7 10\xB2\u2074","\xB7 10\xB2\u2077","\xB7 10\xB3\u2070","\xB7 10\xB3\xB3","\xB7 10\xB3\u2076","\xB7 10\xB3\u2079"],y=r.formatSiBaseTenUnit=function(){function s(m,d,u){if(d===void 0&&(d=0),u===void 0&&(u=""),!isFinite(m))return"NaN";var i=Math.floor(Math.log10(m)),l=Math.max(d*3,i),c=Math.floor(l/3),v=V[c],p=m/Math.pow(1e3,c),h=Math.max(0,2-l%3),b=p.toFixed(h);return(b+" "+v+" "+u).trim()}return s}(),k=r.formatTime=function(){function s(m,d){d===void 0&&(d="default");var u=Math.floor(m/10),i=Math.floor(u/3600),l=Math.floor(u%3600/60),c=u%60;if(d==="short"){var v=i>0?i+"h":"",p=l>0?l+"m":"",h=c>0?c+"s":"";return""+v+p+h}var b=String(i).padStart(2,"0"),g=String(l).padStart(2,"0"),N=String(c).padStart(2,"0");return b+":"+g+":"+N}return s}(),C=r.formatCommaNumber=function(){function s(m){if(!Number.isFinite(m))return m;var d=m.toString().split(".");return d[0]=d[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),d.join(".")}return s}()},82611:function(x,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.listenForKeyEvents=r.acquireHotKey=void 0;var e=f(n(42678)),a=n(81721),t=n(37145);function o(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,b=new WeakMap;return(o=function(N){return N?b:h})(p)}function f(p,h){if(!h&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var b=o(h);if(b&&b.has(p))return b.get(p);var g={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in p)if(B!=="default"&&Object.prototype.hasOwnProperty.call(p,B)){var S=N?Object.getOwnPropertyDescriptor(p,B):null;S&&(S.get||S.set)?Object.defineProperty(g,B,S):g[B]=p[B]}return g.default=p,b&&b.set(p,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=(0,t.createLogger)("hotkeys"),y={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT,e.KEY_F5],C={},s=[],m=function(v){if(v===16)return"Shift";if(v===17)return"Ctrl";if(v===18)return"Alt";if(v===33)return"Northeast";if(v===34)return"Southeast";if(v===35)return"Southwest";if(v===36)return"Northwest";if(v===37)return"West";if(v===38)return"North";if(v===39)return"East";if(v===40)return"South";if(v===45)return"Insert";if(v===46)return"Delete";if(v>=48&&v<=57||v>=65&&v<=90)return String.fromCharCode(v);if(v>=96&&v<=105)return"Numpad"+(v-96);if(v>=112&&v<=123)return"F"+(v-111);if(v===188)return",";if(v===189)return"-";if(v===190)return"."},u=function(v){var b=String(v);if(b==="Ctrl+F5"||b==="Ctrl+R"){location.reload();return}if(b!=="Ctrl+F"&&!(v.event.defaultPrevented||v.isModifierKey()||k.includes(v.code))){var g=m(v.code);if(g){var N=y[g];if(N)return V.debug("macro",N),Byond.command(N);if(v.isDown()&&!C[g]){C[g]=!0;var B='TguiKeyDown "'+g+'"';return V.debug(B),Byond.command(B)}if(v.isUp()&&C[g]){C[g]=!1;var S='TguiKeyUp "'+g+'"';return V.debug(S),Byond.command(S)}}}},d=r.acquireHotKey=function(){function p(v){k.push(v)}return p}(),i=r.releaseHotKey=function(){function p(v){var b=k.indexOf(v);b>=0&&k.splice(b,1)}return p}(),c=r.releaseHeldKeys=function(){function p(){for(var v=0,b=Object.keys(C);v=75?v="green":u>=25?v="yellow":v="red";var b=null;return d>=75&&(b="green"),d>=25?b="yellow":b="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:470,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,display:"inline-block",children:(0,e.createVNode)(1,"h3",null,name,0)}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v,value:u/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:b,value:d/100})})]})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i===1?"Wipe of AI in progress...":"",0)})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",children:!!c&&(0,e.createComponentVNode)(2,t.Box,{children:l.map(function(g,N){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",children:g},N)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){function g(){return C("wireless")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){function g(){return C("radio")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Power",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:i||u===0,confirmColor:"red",content:"Shutdown",onClick:function(){function g(){return C("wipe")}return g}()})})]})})]})})}return V}()},74642:function(x,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(28571),V=n(77402),y=r.APC=function(){function d(i){var c=(0,a.useBackend)(),l=c.act,h=c.data,p=(0,e.createComponentVNode)(2,s);return h.gridCheck?p=(0,e.createComponentVNode)(2,m):h.failTime&&(p=(0,e.createComponentVNode)(2,u)),(0,e.createComponentVNode)(2,o.Window,{width:450,height:475,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:p})})}return d}(),k={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"}},C={1:{icon:"terminal",content:"Override Programming",action:"hack"}},s=function(i){var c=(0,a.useBackend)(),l=c.act,h=c.data,p=h.locked&&!h.siliconUser,v=h.normallyLocked,b=k[h.externalPower]||k[0],g=k[h.chargingStatus]||k[0],N=h.powerChannels||[],B=h.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox,{deny:h.emagged,denialMessage:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:h.isOperating?"power-off":"times",content:h.isOperating?"On":"Off",selected:h.isOperating&&!p,color:h.isOperating?"":"bad",disabled:p,onClick:function(){function S(){return l("breaker")}return S}()}),children:["[ ",b.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:B})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:h.chargeMode?"sync":"times",content:h.chargeMode?"Auto":"Off",selected:h.chargeMode,disabled:p,onClick:function(){function S(){return l("charge")}return S}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[N.map(function(S){var L=S.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:S.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:S.status>=2?"good":"bad",children:S.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!p&&(S.status===1||S.status===3),disabled:p,onClick:function(){function I(){return l("channel",L.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!p&&S.status===2,disabled:p,onClick:function(){function I(){return l("channel",L.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!p&&S.status===0,disabled:p,onClick:function(){function I(){return l("channel",L.off)}return I}()})],4),children:[S.powerLoad," W"]},S.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:h.totalCharging?(0,e.createVNode)(1,"b",null,[h.totalLoad,(0,e.createTextVNode)(" W (+ "),h.totalCharging,(0,e.createTextVNode)(" W charging)")],0):(0,e.createVNode)(1,"b",null,[h.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!h.siliconUser&&(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function S(){return l("overload")}return S}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:h.coverLocked?"lock":"unlock",content:h.coverLocked?"Engaged":"Disengaged",selected:h.coverLocked,disabled:p,onClick:function(){function S(){return l("cover")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Disabled",selected:h.nightshiftSetting===2,onClick:function(){function S(){return l("nightshift",{nightshift:2})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Automatic",selected:h.nightshiftSetting===1,onClick:function(){function S(){return l("nightshift",{nightshift:1})}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Enabled",selected:h.nightshiftSetting===3,onClick:function(){function S(){return l("nightshift",{nightshift:3})}return S}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:h.emergencyLights?"Enabled":"Disabled",selected:h.emergencyLights,onClick:function(){function S(){return l("emergency_lighting")}return S}()})})]})})],4)},m=function(i){return(0,e.createComponentVNode)(2,V.FullscreenNotice,{title:"System Failure",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(i){var c=(0,a.useBackend)(),l=c.data,h=c.act,p=(0,e.createComponentVNode)(2,t.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){function v(){return h("reboot")}return v}()});return l.locked&&!l.siliconUser&&(p=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["Automatic reboot in ",l.failTime," seconds..."]}),(0,e.createComponentVNode)(2,t.Box,{mt:4,children:p})]})}},21352:function(x,r,n){"use strict";r.__esModule=!0,r.AccountsTerminal=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AccountsTerminal=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.id_inserted,l=i.id_card,h=i.access_level,p=i.machine_id;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:640,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"eject":"sign-in-alt",fluid:!0,content:l,onClick:function(){function v(){return d("insert_card")}return v}()})})]})}),h>0&&(0,e.createComponentVNode)(2,V)]})})}return s}(),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.creating_new_account,l=i.detailed_account_view;return(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:!c&&!l,icon:"home",onClick:function(){function h(){return d("view_accounts_list")}return h}(),children:"Home"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c,icon:"cog",onClick:function(){function h(){return d("create_account")}return h}(),children:"New Account"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{disabled:c,icon:"print",onClick:function(){function h(){return d("print")}return h}(),children:"Print"})]}),c&&(0,e.createComponentVNode)(2,y)||l&&(0,e.createComponentVNode)(2,k)||(0,e.createComponentVNode)(2,C)]})},y=function(m){var u=(0,a.useBackend)(),d=u.act,i=(0,a.useSharedState)("holder",""),c=i[0],l=i[1],h=(0,a.useSharedState)("money",""),p=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Create Account",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,t.Input,{value:c,fluid:!0,onInput:function(){function b(g,N){return l(N)}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,t.Input,{value:p,fluid:!0,onInput:function(){function b(g,N){return v(N)}return b}()})})]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!c||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){function b(){return d("finalise_create_account",{holder_name:c,starting_funds:p})}return b}(),content:"Create"})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.access_level,l=i.station_account_number,h=i.account_number,p=i.owner_name,v=i.money,b=i.suspended,g=i.transactions;return(0,e.createComponentVNode)(2,t.Section,{title:"Account Details",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",selected:b,content:"Suspend",onClick:function(){function N(){return d("toggle_suspension")}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Holder",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Balance",children:[v,"\u20AE"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.createComponentVNode)(2,t.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Payroll",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:h===l,onClick:function(){function N(){return d("revoke_payroll")}return N}()})})})}),c>=2&&(0,e.createComponentVNode)(2,t.Section,{title:"Silent Funds Transfer",level:2,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function N(){return d("add_funds")}return N}(),content:"Add Funds"}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function N(){return d("remove_funds")}return N}(),content:"Remove Funds"})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",level:2,mt:1,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Target"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(N,B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[N.date," ",N.time]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.target_name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[N.amount,"\u20AE"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.source_terminal})]},B)})]})})]})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.owner_name+l.suspended,color:l.suspended?"bad":null,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"#"+l.account_number,onClick:function(){function h(){return d("view_account_detail",{account_index:l.account_index})}return h}()})},l.account_index)})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"There are no accounts available."})})}},68548:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleList=r.AdminShuttleController=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.AdminShuttleController=function(){function C(){return(0,e.createComponentVNode)(2,f.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,y)})})}return C}(),y=r.ShuttleList=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.shuttles,c=d.overmap_ships;return(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Classic Shuttles",children:(0,e.createComponentVNode)(2,o.Table,{children:(0,a.sortBy)(function(l){return l.name})(i).map(function(l){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{m:0,content:"JMP",onClick:function(){function h(){return u("adminobserve",{ref:l.ref})}return h}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{m:0,content:"Fly",onClick:function(){function h(){return u("classicmove",{ref:l.ref})}return h}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:l.current_location}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:k(l.status)})]},l.ref)})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Overmap Ships",children:(0,e.createComponentVNode)(2,o.Table,{children:(0,a.sortBy)(function(l){var h;return((h=l.name)==null?void 0:h.toLowerCase())||l.name||l.ref})(c).map(function(l){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:"JMP",onClick:function(){function h(){return u("adminobserve",{ref:l.ref})}return h}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:"Control",onClick:function(){function h(){return u("overmap_control",{ref:l.ref})}return h}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:l.name})]},l.ref)})})})]})}return C}(),k=function(s){switch(s){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},29527:function(x,r,n){"use strict";r.__esModule=!0,r.AdminTicketPanel=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},V=r.AdminTicketPanel=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.id,d=m.title,i=m.name,c=m.state,l=m.opened_at,h=m.closed_at,p=m.opened_at_date,v=m.closed_at_date,b=m.actions,g=m.log;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Ticket #"+u,buttons:(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function N(){return s("retitle")}return N}()})," ",(0,e.createComponentVNode)(2,t.Button,{content:"Legacy UI",onClick:function(){function N(){return s("legacy")}return N}()})]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Help Ticket",children:["#",u,": ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",children:f[c]}),f[c]===f.open?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Opened At",children:[p," (",Math.round(l/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Closed At",children:[v," (",Math.round(h/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,t.Button,{content:"Reopen",onClick:function(){function N(){return s("reopen")}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:b}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Log",children:Object.keys(g).map(function(N){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g[N]}})})})]})})})})}return y}()},89690:function(x,r,n){"use strict";r.__esModule=!0,r.AgentCard=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AgentCard=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.entries,u=s.electronic_warfare;return(0,e.createComponentVNode)(2,o.Window,{width:550,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Table,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function i(){return C(d.name.toLowerCase().replace(/ /g,""))}return i}(),icon:"cog"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.value})]},d.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Electronic Warfare",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,content:u?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){function d(){return C("electronic_warfare")}return d}()})})]})})}return V}()},93192:function(x,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},V=r.AiAirlock=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=f[m.power.main]||f[0],d=f[m.power.backup]||f[0],i=f[m.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:390,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",disabled:!m.power.main,content:"Disrupt",onClick:function(){function c(){return s("disrupt-main")}return c}()}),children:[m.power.main?"Online":"Offline"," ",(!m.wires.main_1||!m.wires.main_2)&&"[Wires have been cut!]"||m.power.main_timeleft>0&&"["+m.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",disabled:!m.power.backup,content:"Disrupt",onClick:function(){function c(){return s("disrupt-backup")}return c}()}),children:[m.power.backup?"Online":"Offline"," ",(!m.wires.backup_1||!m.wires.backup_2)&&"[Wires have been cut!]"||m.power.backup_timeleft>0&&"["+m.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:i.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!(m.wires.shock&&m.shock===0),content:"Restore",onClick:function(){function c(){return s("shock-restore")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!m.wires.shock,content:"Temporary",onClick:function(){function c(){return s("shock-temp")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!m.wires.shock,content:"Permanent",onClick:function(){function c(){return s("shock-perm")}return c}()})],4),children:[m.shock===2?"Safe":"Electrified"," ",!m.wires.shock&&"[Wires have been cut!]"||m.shock_timeleft>0&&"["+m.shock_timeleft+"s]"||m.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.id_scanner?"power-off":"times",content:m.id_scanner?"Enabled":"Disabled",selected:m.id_scanner,disabled:!m.wires.id_scanner,onClick:function(){function c(){return s("idscan-toggle")}return c}()}),children:!m.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.locked?"lock":"unlock",content:m.locked?"Lowered":"Raised",selected:m.locked,disabled:!m.wires.bolts,onClick:function(){function c(){return s("bolt-toggle")}return c}()}),children:!m.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.lights?"power-off":"times",content:m.lights?"Enabled":"Disabled",selected:m.lights,disabled:!m.wires.lights,onClick:function(){function c(){return s("light-toggle")}return c}()}),children:!m.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.safe?"power-off":"times",content:m.safe?"Enabled":"Disabled",selected:m.safe,disabled:!m.wires.safe,onClick:function(){function c(){return s("safe-toggle")}return c}()}),children:!m.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.speed?"power-off":"times",content:m.speed?"Enabled":"Disabled",selected:m.speed,disabled:!m.wires.timing,onClick:function(){function c(){return s("speed-toggle")}return c}()}),children:!m.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m.opened?"sign-out-alt":"sign-in-alt",content:m.opened?"Open":"Closed",selected:m.opened,disabled:m.locked||m.welded,onClick:function(){function c(){return s("open-close")}return c}()}),children:!!(m.locked||m.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),m.locked?"bolted":"",m.locked&&m.welded?" and ":"",m.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},47961:function(x,r,n){"use strict";r.__esModule=!0,r.AiRestorerContent=r.AiRestorer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AiRestorer=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:370,height:360,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.AiRestorerContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.AI_present,d=m.error,i=m.name,c=m.laws,l=m.isDead,h=m.restoring,p=m.health,v=m.ejectable;return(0,e.createFragment)([d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:d}),!!v&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:u?i:"----------",disabled:!u,onClick:function(){function b(){return s("PRG_eject")}return b}()}),!!u&&(0,e.createComponentVNode)(2,t.Section,{title:v?"System Status":i,buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,color:l?"bad":"good",children:l?"Nonfunctional":"Functional"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!h&&(0,e.createComponentVNode)(2,t.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:h,mt:1,onClick:function(){function b(){return s("PRG_beginReconstruction")}return b}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",level:2,children:c.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{className:"candystripe",children:b},b)})})]})],0)}return y}()},4e4:function(x,r,n){"use strict";r.__esModule=!0,r.AiSupermatter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(77402),V=r.AiSupermatter=function(){function C(s){var m=(0,a.useBackend)(),u=m.data,d=u.integrity_percentage,i=u.ambient_temp,c=u.ambient_pressure,l=u.detonating,h=(0,e.createComponentVNode)(2,k);return l&&(h=(0,e.createComponentVNode)(2,y)),(0,e.createComponentVNode)(2,o.Window,{width:500,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:h})})}return C}(),y=function(s){return(0,e.createComponentVNode)(2,f.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Evacuate area immediately"})]})})},k=function(s){var m=(0,a.useBackend)(),u=m.data,d=u.integrity_percentage,i=u.ambient_temp,c=u.ambient_pressure;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Environment Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[i," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Environment Pressure",children:[c," kPa"]})]})})}},21119:function(x,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(61994),V=n(47007),y=n(28571),k=n(5483),C=r.AirAlarm=function(){function v(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.locked&&!B.siliconUser&&!B.remoteUser;return(0,e.createComponentVNode)(2,V.Window,{width:440,height:650,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,y.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m),!S&&(0,e.createComponentVNode)(2,d)]})})}return v}(),s=function(b){var g=(0,t.useBackend)(),N=g.data,B=(N.environment_data||[]).filter(function(I){return I.value>=.01}),S={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},L=S[N.danger_level]||S[0];return(0,e.createComponentVNode)(2,o.Section,{title:"Air Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[B.length>0&&(0,e.createFragment)([B.map(function(I){var w=S[I.danger_level]||S[0];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,f.getGasLabel)(I.name),color:w.color,children:[(0,a.toFixed)(I.value,2),I.unit]},I.name)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Local status",color:L.color,children:L.localStatusText}),(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!N.emagged&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.target_temperature,L=B.rcon;return(0,e.createComponentVNode)(2,o.Section,{title:"Comfort Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remote Control",children:[(0,e.createComponentVNode)(2,o.Button,{selected:L===1,content:"Off",onClick:function(){function I(){return N("rcon",{rcon:1})}return I}()}),(0,e.createComponentVNode)(2,o.Button,{selected:L===2,content:"Auto",onClick:function(){function I(){return N("rcon",{rcon:2})}return I}()}),(0,e.createComponentVNode)(2,o.Button,{selected:L===3,content:"On",onClick:function(){function I(){return N("rcon",{rcon:3})}return I}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Button,{content:S,onClick:function(){function I(){return N("temperature")}return I}()})})]})})},u={home:{title:"Air Controls",component:function(){function v(){return i}return v}()},vents:{title:"Vent Controls",component:function(){function v(){return c}return v}()},scrubbers:{title:"Scrubber Controls",component:function(){function v(){return l}return v}()},modes:{title:"Operating Mode",component:function(){function v(){return h}return v}()},thresholds:{title:"Alarm Thresholds",component:function(){function v(){return p}return v}()}},d=function(b){var g=(0,t.useLocalState)("screen"),N=g[0],B=g[1],S=u[N]||u.home,L=S.component();return(0,e.createComponentVNode)(2,o.Section,{title:S.title,buttons:N&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function I(){return B()}return I}()}),children:(0,e.createComponentVNode)(2,L)})},i=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=(0,t.useLocalState)("screen"),L=S[0],I=S[1],w=B.mode,T=B.atmos_alarm;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:T?"exclamation-triangle":"exclamation",color:T&&"caution",content:"Area Atmosphere Alarm",onClick:function(){function E(){return N(T?"reset":"alarm")}return E}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:w===3?"exclamation-triangle":"exclamation",color:w===3&&"danger",content:"Panic Siphon",onClick:function(){function E(){return N("mode",{mode:w===3?1:3})}return E}()}),(0,e.createComponentVNode)(2,o.Box,{mt:2}),(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){function E(){return I("vents")}return E}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){function E(){return I("scrubbers")}return E}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",content:"Operating Mode",onClick:function(){function E(){return I("modes")}return E}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){function E(){return I("thresholds")}return E}()})],4)},c=function(b){var g=(0,t.useBackend)(),N=g.data,B=N.vents;return!B||B.length===0?"Nothing to show":B.map(function(S){return(0,e.createComponentVNode)(2,k.Vent,{vent:S},S.id_tag)})},l=function(b){var g=(0,t.useBackend)(),N=g.data,B=N.scrubbers;return!B||B.length===0?"Nothing to show":B.map(function(S){return(0,e.createComponentVNode)(2,k.Scrubber,{scrubber:S},S.id_tag)})},h=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.modes;return!S||S.length===0?"Nothing to show":S.map(function(L){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:L.selected?"check-square-o":"square-o",selected:L.selected,color:L.selected&&L.danger&&"danger",content:L.name,onClick:function(){function I(){return N("mode",{mode:L.mode})}return I}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1})],4,L.mode)})},p=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.thresholds;return(0,e.createVNode)(1,"table","LabeledList",[(0,e.createVNode)(1,"thead",null,(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td"),(0,e.createVNode)(1,"td","color-bad","min2",16),(0,e.createVNode)(1,"td","color-average","min1",16),(0,e.createVNode)(1,"td","color-average","max1",16),(0,e.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,e.createVNode)(1,"tbody",null,S.map(function(L){return(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td","LabeledList__label",(0,e.createVNode)(1,"span","color-"+(0,f.getGasColor)(L.name),(0,f.getGasLabel)(L.name),0),2),L.settings.map(function(I){return(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{content:(0,a.toFixed)(I.selected,2),onClick:function(){function w(){return N("threshold",{env:I.env,var:I.val})}return w}()}),2,null,I.val)})],0,null,L.name)}),0)],4,{style:{width:"100%"}})}},78274:function(x,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(58734),a=n(80132),t=n(54777),o=n(42678),f=n(35239),V=n(47007),y=-1,k=1,C=r.AlertModal=function(){function u(d){var i=(0,t.useBackend)(),c=i.act,l=i.data,h=l.autofocus,p=l.buttons,v=p===void 0?[]:p,b=l.large_buttons,g=l.message,N=g===void 0?"":g,B=l.timeout,S=l.title,L=(0,t.useLocalState)("selected",0),I=L[0],w=L[1],T=115+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&b?5:0),E=325+(v.length>2?55:0),A=function(){function M(R){I===0&&R===y?w(v.length-1):I===v.length-1&&R===k?w(0):w(I+R)}return M}();return(0,e.createComponentVNode)(2,V.Window,{height:T,title:S,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function M(R){var O=window.event?R.which:R.keyCode;O===o.KEY_SPACE||O===o.KEY_ENTER?c("choose",{choice:v[I]}):O===o.KEY_ESCAPE?c("cancel"):O===o.KEY_LEFT?(R.preventDefault(),A(y)):(O===o.KEY_TAB||O===o.KEY_RIGHT)&&(R.preventDefault(),A(k))}return M}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,s,{selected:I})]})]})})})]})}return u}(),s=function(d){var i=(0,t.useBackend)(),c=i.data,l=c.buttons,h=l===void 0?[]:l,p=c.large_buttons,v=c.swapped_buttons,b=d.selected;return(0,e.createComponentVNode)(2,f.Flex,{align:"center",direction:v?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(g,N){return p&&h.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{button:g,id:N.toString(),selected:b===N})},N):(0,e.createComponentVNode)(2,f.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{button:g,id:N.toString(),selected:b===N})},N)})})},m=function(d){var i=(0,t.useBackend)(),c=i.act,l=i.data,h=l.large_buttons,p=d.button,v=d.selected,b=p.length>7?p.length:7;return(0,e.createComponentVNode)(2,f.Button,{fluid:!!h,height:!!h&&2,onClick:function(){function g(){return c("choose",{choice:p})}return g}(),m:.5,pl:2,pr:2,pt:h?.33:0,selected:v,textAlign:"center",width:!h&&b,children:h?p.toUpperCase():p})}},13058:function(x,r,n){"use strict";r.__esModule=!0,r.AlgaeFarm=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=r.AlgaeFarm=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.usePower,d=m.materials,i=m.last_flow_rate,c=m.last_power_draw,l=m.inputDir,h=m.outputDir,p=m.input,v=m.output,b=m.errorText;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[b&&(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Processing",selected:u===2,onClick:function(){function g(){return s("toggle")}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[i," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw",children:[c," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:1}),d.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.capitalize)(g.display),children:[(0,e.createComponentVNode)(2,t.ProgressBar,{width:"80%",value:g.qty,maxValue:g.max,children:[g.qty,"/",g.max]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Eject",onClick:function(){function N(){return s("ejectMaterial",{mat:g.name})}return N}()})]},g.name)})]}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Gas Input ("+l+")",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[p.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,children:[p.percent,"% (",p.moles," moles)"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No connection detected."})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Gas Output ("+h+")",children:v?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[v.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,children:[v.percent,"% (",v.moles," moles)"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}return y}()},98691:function(x,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(54777),f=n(35239),V=n(47007),y=r.AppearanceChanger=function(){function h(p){var v=(0,o.useBackend)(),b=v.act,g=v.config,N=v.data,B=N.name,S=N.specimen,L=N.gender,I=N.gender_id,w=N.hair_style,T=N.facial_hair_style,E=N.ear_style,A=N.tail_style,M=N.wing_style,R=N.markings,O=N.change_race,F=N.change_gender,D=N.change_eye_color,j=N.change_skin_tone,_=N.change_skin_color,z=N.change_hair_color,H=N.change_facial_hair_color,Q=N.change_hair,Y=N.change_facial_hair,X=N.mapRef,$=g.title,G=D||j||_||z||H,Z=-1;O?Z=0:F?Z=1:G?Z=2:Q?Z=4:Y&&(Z=5);var te=(0,o.useLocalState)("tabIndex",Z),q=te[0],me=te[1];return(0,e.createComponentVNode)(2,V.Window,{width:700,height:650,title:(0,t.decodeHtmlEntities)($),children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,f.Section,{title:"Reflection",children:(0,e.createComponentVNode)(2,f.Flex,{children:[(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Species",color:O?null:"grey",children:S}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Biological Sex",color:F?null:"grey",children:L?(0,t.capitalize)(L):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Gender Identity",color:G?null:"grey",children:I?(0,t.capitalize)(I):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Hair Style",color:Q?null:"grey",children:w?(0,t.capitalize)(w):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Facial Hair Style",color:Y?null:"grey",children:T?(0,t.capitalize)(T):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Ear Style",color:Q?null:"grey",children:E?(0,t.capitalize)(E):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Tail Style",color:Q?null:"grey",children:A?(0,t.capitalize)(A):"Not Set"}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Wing Style",color:Q?null:"grey",children:M?(0,t.capitalize)(M):"Not Set"})]})}),(0,e.createComponentVNode)(2,f.Flex.Item,{children:(0,e.createComponentVNode)(2,f.ByondUi,{style:{width:"256px",height:"256px"},params:{id:X,type:"map"}})})]})}),(0,e.createComponentVNode)(2,f.Tabs,{children:[O?(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===0,onClick:function(){function pe(){return me(0)}return pe}(),children:"Race"}):null,F?(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===1,onClick:function(){function pe(){return me(1)}return pe}(),children:"Gender & Sex"}):null,G?(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===2,onClick:function(){function pe(){return me(2)}return pe}(),children:"Colors"}):null,Q?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===3,onClick:function(){function pe(){return me(3)}return pe}(),children:"Hair"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===5,onClick:function(){function pe(){return me(5)}return pe}(),children:"Ear"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===6,onClick:function(){function pe(){return me(6)}return pe}(),children:"Tail"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===7,onClick:function(){function pe(){return me(7)}return pe}(),children:"Wing"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===8,onClick:function(){function pe(){return me(8)}return pe}(),children:"Markings"})],4):null,Y?(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:q===4,onClick:function(){function pe(){return me(4)}return pe}(),children:"Facial Hair"}):null]}),(0,e.createComponentVNode)(2,f.Box,{height:"43%",children:[O&&q===0?(0,e.createComponentVNode)(2,k):null,F&&q===1?(0,e.createComponentVNode)(2,C):null,G&&q===2?(0,e.createComponentVNode)(2,s):null,Q&&q===3?(0,e.createComponentVNode)(2,m):null,Y&&q===4?(0,e.createComponentVNode)(2,u):null,Q&&q===5?(0,e.createComponentVNode)(2,d):null,Q&&q===6?(0,e.createComponentVNode)(2,i):null,Q&&q===7?(0,e.createComponentVNode)(2,c):null,Q&&q===8?(0,e.createComponentVNode)(2,l):null]})]})})}return h}(),k=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.species,B=g.specimen,S=(0,a.sortBy)(function(L){return L.specimen})(N||[]);return(0,e.createComponentVNode)(2,f.Section,{title:"Species",fill:!0,scrollable:!0,children:S.map(function(L){return(0,e.createComponentVNode)(2,f.Button,{content:L.specimen,selected:B===L.specimen,onClick:function(){function I(){return b("race",{race:L.specimen})}return I}()},L.specimen)})})},C=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.gender,B=g.gender_id,S=g.genders,L=g.id_genders;return(0,e.createComponentVNode)(2,f.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Biological Sex",children:S.map(function(I){return(0,e.createComponentVNode)(2,f.Button,{selected:I.gender_key===N,content:I.gender_name,onClick:function(){function w(){return b("gender",{gender:I.gender_key})}return w}()},I.gender_key)})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Gender Identity",children:L.map(function(I){return(0,e.createComponentVNode)(2,f.Button,{selected:I.gender_key===B,content:I.gender_name,onClick:function(){function w(){return b("gender_id",{gender_id:I.gender_key})}return w}()},I.gender_key)})})]})})},s=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.change_eye_color,B=g.change_skin_tone,S=g.change_skin_color,L=g.change_hair_color,I=g.change_facial_hair_color,w=g.eye_color,T=g.skin_color,E=g.hair_color,A=g.facial_hair_color,M=g.ears_color,R=g.ears2_color,O=g.tail_color,F=g.tail2_color,D=g.wing_color,j=g.wing2_color;return(0,e.createComponentVNode)(2,f.Section,{title:"Colors",fill:!0,scrollable:!0,children:[N?(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:w,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Eye Color",onClick:function(){function _(){return b("eye_color")}return _}()})]}):null,B?(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Change Skin Tone",onClick:function(){function _(){return b("skin_tone")}return _}()})}):null,S?(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:T,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Skin Color",onClick:function(){function _(){return b("skin_color")}return _}()})]}):null,L?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:E,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Hair Color",onClick:function(){function _(){return b("hair_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:M,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Ears Color",onClick:function(){function _(){return b("ears_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:R,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Secondary Ears Color",onClick:function(){function _(){return b("ears2_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:O,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Tail Color",onClick:function(){function _(){return b("tail_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:F,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Secondary Tail Color",onClick:function(){function _(){return b("tail2_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:D,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Wing Color",onClick:function(){function _(){return b("wing_color")}return _}()})]}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:j,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Secondary Wing Color",onClick:function(){function _(){return b("wing2_color")}return _}()})]})],4):null,I?(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:A,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Facial Hair Color",onClick:function(){function _(){return b("facial_hair_color")}return _}()})]}):null]})},m=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.hair_style,B=g.hair_styles;return(0,e.createComponentVNode)(2,f.Section,{title:"Hair",fill:!0,scrollable:!0,children:B.map(function(S){return(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function L(){return b("hair",{hair:S.hairstyle})}return L}(),selected:S.hairstyle===N,content:S.hairstyle},S.hairstyle)})})},u=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.facial_hair_style,B=g.facial_hair_styles;return(0,e.createComponentVNode)(2,f.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:B.map(function(S){return(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function L(){return b("facial_hair",{facial_hair:S.facialhairstyle})}return L}(),selected:S.facialhairstyle===N,content:S.facialhairstyle},S.facialhairstyle)})})},d=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.ear_style,B=g.ear_styles;return(0,e.createComponentVNode)(2,f.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function S(){return b("ear",{clear:!0})}return S}(),selected:N===null,content:"-- Not Set --"}),(0,a.sortBy)(function(S){return S.name.toLowerCase()})(B).map(function(S){return(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function L(){return b("ear",{ref:S.instance})}return L}(),selected:S.name===N,content:S.name},S.instance)})]})},i=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.tail_style,B=g.tail_styles;return(0,e.createComponentVNode)(2,f.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function S(){return b("tail",{clear:!0})}return S}(),selected:N===null,content:"-- Not Set --"}),(0,a.sortBy)(function(S){return S.name.toLowerCase()})(B).map(function(S){return(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function L(){return b("tail",{ref:S.instance})}return L}(),selected:S.name===N,content:S.name},S.instance)})]})},c=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.wing_style,B=g.wing_styles;return(0,e.createComponentVNode)(2,f.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function S(){return b("wing",{clear:!0})}return S}(),selected:N===null,content:"-- Not Set --"}),(0,a.sortBy)(function(S){return S.name.toLowerCase()})(B).map(function(S){return(0,e.createComponentVNode)(2,f.Button,{onClick:function(){function L(){return b("wing",{ref:S.instance})}return L}(),selected:S.name===N,content:S.name},S.instance)})]})},l=function(p){var v=(0,o.useBackend)(),b=v.act,g=v.data,N=g.markings;return(0,e.createComponentVNode)(2,f.Section,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Add Marking",onClick:function(){function B(){return b("marking",{todo:1,name:"na"})}return B}()})}),(0,e.createComponentVNode)(2,f.LabeledList,{children:N.map(function(B){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:B.marking_name,children:[(0,e.createComponentVNode)(2,f.ColorBox,{color:B.marking_color,mr:1}),(0,e.createComponentVNode)(2,f.Button,{content:"Change Color",onClick:function(){function S(){return b("marking",{todo:4,name:B.marking_name})}return S}()}),(0,e.createComponentVNode)(2,f.Button,{content:"-",onClick:function(){function S(){return b("marking",{todo:0,name:B.marking_name})}return S}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Move down",onClick:function(){function S(){return b("marking",{todo:3,name:B.marking_name})}return S}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Move up",onClick:function(){function S(){return b("marking",{todo:2,name:B.marking_name})}return S}()})]},B.marking_name)})})]})}},65107:function(x,r,n){"use strict";r.__esModule=!0,r.ArcadeBattle=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.ArcadeBattle=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.name,u=s.temp,d=s.enemyAction,i=s.enemyName,c=s.playerHP,l=s.playerMP,h=s.enemyHP,p=s.enemyMP,v=s.gameOver;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:240,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:i,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Section,{color:"label",children:[(0,e.createComponentVNode)(2,t.Box,{children:u}),(0,e.createComponentVNode)(2,t.Box,{children:!v&&d})]}),(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l,"MP"]})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enemy HP",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h,"HP"]})})})})]}),v&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){function b(){return C("newgame")}return b}()})||(0,e.createComponentVNode)(2,t.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){function b(){return C("attack")}return b}(),content:"Attack!"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){function b(){return C("heal")}return b}(),content:"Heal!"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){function b(){return C("charge")}return b}(),content:"Recharge!"})})]})]})})})}return V}()},59473:function(x,r,n){"use strict";r.__esModule=!0,r.AreaScrubberControl=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=n(40946),V=r.AreaScrubberControl=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=(0,t.useLocalState)("showArea",!1),i=d[0],c=d[1],l=u.scrubbers;return l?(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){function h(){return m("scan")}return h}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:i,onClick:function(){function h(){return c(!i)}return h}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){function h(){return m("allon")}return h}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){function h(){return m("alloff")}return h}()})})]}),(0,e.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map(function(h){return(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"32%",children:(0,e.createComponentVNode)(2,y,{scrubber:h,showArea:i})},h.id)})})]})})}):(0,e.createComponentVNode)(2,a.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,a.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){function h(){return m("scan")}return h}()})]})}return k}(),y=function(C){var s=(0,t.useBackend)(),m=s.act,u=C.scrubber,d=C.showArea;return(0,e.createComponentVNode)(2,a.Section,{title:u.name,children:[(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"power-off",content:u.on?"Enabled":"Disabled",selected:u.on,onClick:function(){function i(){return m("toggle",{id:u.id})}return i}()}),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[u.pressure," kPa"]}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate",children:[u.flow_rate," L/s"]}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",children:[u.load," W"]}),d&&(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Area",children:(0,f.toTitleCase)(u.area)})]})]})}},71903:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyInfrared=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AssemblyInfrared=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.visible;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Infrared Unit",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Laser",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",fluid:!0,selected:m,onClick:function(){function d(){return C("state")}return d}(),children:m?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",fluid:!0,selected:u,onClick:function(){function d(){return C("visible")}return d}(),children:u?"Able to be seen":"Invisible"})})]})})})})}return V}()},9576:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyProx=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.AssemblyProx=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.timing,i=u.time,c=u.range,l=u.maxRange,h=u.scanning;return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Timing Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Timer",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"stopwatch",selected:d,onClick:function(){function p(){return m("timing")}return p}(),children:d?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:i/10,minValue:0,maxValue:600,format:function(){function p(v){return(0,V.formatTime)((0,a.round)(v))}return p}(),onDrag:function(){function p(v,b){return m("set_time",{time:b})}return p}()})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Prox Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.NumberInput,{minValue:1,value:c,maxValue:l,onDrag:function(){function p(v,b){return m("range",{range:b})}return p}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Armed",children:[(0,e.createComponentVNode)(2,o.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){function p(){return m("scanning")}return p}(),children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}return k}()},36483:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyTimer=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.AssemblyTimer=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.timing,i=u.time;return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Timing Unit",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Timer",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"stopwatch",selected:d,onClick:function(){function c(){return m("timing")}return c}(),children:d?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:i/10,minValue:0,maxValue:600,format:function(){function c(l){return(0,V.formatTime)((0,a.round)(l))}return c}(),onDrag:function(){function c(l,h){return m("set_time",{time:h})}return c}()})})})})})})}return k}()},12583:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AtmosAlertConsole=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.priority_alarms||[],u=s.minor_alarms||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.name,color:"bad",onClick:function(){function i(){return C("clear",{ref:d.ref})}return i}()}),2,null,d.name)}),u.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),u.map(function(d){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.name,color:"average",onClick:function(){function i(){return C("clear",{ref:d.ref})}return i}()}),2,null,d.name)})],0)})})})}return V}()},75346:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosControlContent=r.AtmosControl=void 0;var e=n(58734),a=n(45445),t=n(47007),o=n(35239),f=n(54777),V=n(37145),y=(0,V.createLogger)("fuck"),k=r.AtmosControl=function(){function s(m){return(0,e.createComponentVNode)(2,t.Window,{width:600,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,C)})})}return s}(),C=r.AtmosControlContent=function(){function s(m){var u=(0,f.useBackend)(),d=u.act,i=u.data,c=u.config,l=(0,a.sortBy)(function(S){return S.name})(i.alarms||[]),h=(0,f.useLocalState)("tabIndex",0),p=h[0],v=h[1],b=(0,f.useLocalState)("zoom",1),g=b[0],N=b[1],B;return p===0?B=(0,e.createComponentVNode)(2,o.Section,{title:"Alarms",children:l.map(function(S){return(0,e.createComponentVNode)(2,o.Button,{content:S.name,color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){function L(){return d("alarm",{alarm:S.ref})}return L}()},S.name)})}):p===1&&(B=(0,e.createComponentVNode)(2,o.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,o.NanoMap,{onZoom:function(){function S(L){return N(L)}return S}(),children:l.filter(function(S){return~~S.z===~~c.mapZLevel}).map(function(S){return(0,e.createComponentVNode)(2,o.NanoMap.Marker,{x:S.x,y:S.y,zoom:g,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){function L(){return d("alarm",{alarm:S.ref})}return L}()},S.ref)})})})),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===0,onClick:function(){function S(){return v(0)}return S}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function S(){return v(1)}return S}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:B})],4)}return s}()},416:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AtmosFilter=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.filter_types||[];return(0,e.createComponentVNode)(2,o.Window,{width:390,height:187,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.on?"power-off":"times",content:s.on?"On":"Off",selected:s.on,onClick:function(){function u(){return C("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Rate",children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:1,children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.last_flow_rate,format:function(){function u(d){return d+" L/s"}return u}()})}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(s.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(){function u(d,i){return C("rate",{rate:i})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"plus",content:"Max",disabled:s.rate===s.max_rate,onClick:function(){function u(){return C("rate",{rate:"max"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.selected,content:u.name,onClick:function(){function d(){return C("filter",{filterset:u.f_type})}return d}()},u.name)})})]})})})})}return V}()},63419:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.AtmosMixer=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:370,height:195,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.on?"power-off":"times",content:s.on?"On":"Off",selected:s.on,onClick:function(){function m(){return C("power")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(s.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:s.max_pressure,step:10,onChange:function(){function m(u,d){return C("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"plus",content:"Max",disabled:s.set_pressure===s.max_pressure,onClick:function(){function m(){return C("pressure",{pressure:"max"})}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:1}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"label",children:(0,e.createVNode)(1,"u",null,"Concentrations",16)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Node 1 ("+s.node1_dir+")",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(){function m(u,d){return C("node1",{concentration:d})}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Node 2 ("+s.node2_dir+")",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(){function m(u,d){return C("node2",{concentration:d})}return m}()})})]})})})})}return V}()},38321:function(x,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(58734),a=n(75671),t=n(45445),o=n(54777),f=n(35239),V=n(47007),y=n(93685),k=n(40946),C=function(u,d,i){if(i===void 0&&(i=1),u.requirements===null)return!0;for(var c=Object.keys(u.requirements),l=function(){var g=v[p],N=d.find(function(B){return B.name===g});if(!N)return 0;if(N.amount=0)&&(l[p]=i[p]);return l}var k={Alphabetical:function(){function i(c,l){return c-l}return i}(),"By availability":function(){function i(c,l){return-(c.affordable-l.affordable)}return i}(),"By price":function(){function i(c,l){return c.price-l.price}return i}()},C=r.Biogenerator=function(){function i(c){var l=(0,t.useBackend)(),h=l.act,p=l.data;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:p.processing&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{children:[p.points," points available.",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"blender",onClick:function(){function v(){return h("activate")}return v}(),children:"Activate"}),(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",disabled:!p.beaker,onClick:function(){function v(){return h("detach")}return v}(),children:"Eject Beaker"})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,s)],4)})})}return i}(),s=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.points,b=p.items,g=(0,t.useLocalState)("search",""),N=g[0],B=g[1],S=(0,t.useLocalState)("sort","Alphabetical"),L=S[0],I=S[1],w=(0,t.useLocalState)("descending",!1),T=w[0],E=w[1],A=(0,a.createSearch)(N,function(O){return O[0]}),M=!1,R=Object.entries(b).map(function(O,F){var D=Object.entries(O[1]).filter(A).map(function(j){return j[1].affordable=v>=j[1].price/p.build_eff,j[1]}).sort(k[L]);if(D.length!==0)return T&&(D=D.reverse()),M=!0,(0,e.createComponentVNode)(2,d,{title:O[0],items:D},O[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(c){var l=(0,t.useLocalState)("search",""),h=l[0],p=l[1],v=(0,t.useLocalState)("sort",""),b=v[0],g=v[1],N=(0,t.useLocalState)("descending",!1),B=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(I,w){return p(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",lineHeight:"19px",onSelected:function(){function L(I){return g(I)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"19px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function L(){return S(!B)}return L}()})})]})})},u=function(c,l){return!(!c.affordable||c.reagent&&!l.beaker)},d=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=c.title,b=c.items,g=y(c,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:b.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:N.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!u(N,p),content:(N.price/p.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return h("purchase",{cat:v,name:N.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},17424:function(x,r,n){"use strict";r.__esModule=!0,r.BodyDesigner=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=r.BodyDesigner=function(){function d(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.menu,v=h.disk,b=h.diskStored,g=h.activeBodyRecord,N=u[p];return(0,e.createComponentVNode)(2,f.Window,{width:400,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[v?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Save To Disk",onClick:function(){function B(){return l("savetodisk")}return B}(),disabled:!g}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Load From Disk",onClick:function(){function B(){return l("loadfromdisk")}return B}(),disabled:!b}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function B(){return l("ejectdisk")}return B}()})]}):null,N]})})}return d}(),y=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Database Functions",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){function p(){return l("menu",{menu:"Body Records"})}return p}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){function p(){return l("menu",{menu:"Stock Records"})}return p}()})]})},k=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.bodyrecords;return(0,e.createComponentVNode)(2,o.Section,{title:"Body Records",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function v(){return l("menu",{menu:"Main"})}return v}()}),children:p.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:v.name,onClick:function(){function b(){return l("view_brec",{view_brec:v.recref})}return b}()},v.name)})})},C=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.stock_bodyrecords;return(0,e.createComponentVNode)(2,o.Section,{title:"Stock Records",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function v(){return l("menu",{menu:"Main"})}return v}()}),children:p.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:v,onClick:function(){function b(){return l("view_stock_brec",{view_stock_brec:v})}return b}()},v)})})},s=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.activeBodyRecord,v=h.mapRef;return p?(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"165px",children:(0,e.createComponentVNode)(2,o.Section,{title:"Specific Record",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function b(){return l("menu",{menu:"Main"})}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:p.real_name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:p.speciesname}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:(0,a.capitalize)(p.gender),onClick:function(){function b(){return l("href_conversion",{target_href:"bio_gender",target_value:1})}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:p.synthetic}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:[p.locked,(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!p.booc,onClick:function(){function b(){return l("boocnotes")}return b}()})]})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"130px",children:(0,e.createComponentVNode)(2,o.ByondUi,{style:{width:"100%",height:"128px"},params:{id:v,type:"map"}})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"300px",children:(0,e.createComponentVNode)(2,o.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scale",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:p.scale,onClick:function(){function b(){return l("href_conversion",{target_href:"size_multiplier",target_value:1})}return b}()})}),Object.keys(p.styles).map(function(b){var g=p.styles[b];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,children:[g.styleHref?(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.style,onClick:function(){function N(){return l("href_conversion",{target_href:g.styleHref,target_value:1})}return N}()}):null,g.colorHref?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.color,onClick:function(){function N(){return l("href_conversion",{target_href:g.colorHref,target_value:1})}return N}()}),(0,e.createComponentVNode)(2,o.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:g.color,style:{border:"1px solid #fff"}})]}):null,g.colorHref2?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.color2,onClick:function(){function N(){return l("href_conversion",{target_href:g.colorHref2,target_value:1})}return N}()}),(0,e.createComponentVNode)(2,o.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:g.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Body Markings",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add Marking",onClick:function(){function b(){return l("href_conversion",{target_href:"marking_style",target_value:1})}return b}()}),(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(p.markings).map(function(b){var g=p.markings[b];return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){function N(){return l("href_conversion",{target_href:"marking_remove",target_value:b})}return N}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,backgroundColor:g,content:b,onClick:function(){function N(){return l("href_conversion",{target_href:"marking_color",target_value:b})}return N}()})})]})},b)})})]})]})})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR: Record Not Found!"})},m=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.activeBodyRecord;return(0,e.createComponentVNode)(2,o.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function v(){return l("menu",{menu:"Specific Record"})}return v}()}),style:{"word-break":"break-all"},children:p&&p.booc||"ERROR: Body record not found!"})},u={Main:(0,e.createComponentVNode)(2,y),"Body Records":(0,e.createComponentVNode)(2,k),"Stock Records":(0,e.createComponentVNode)(2,C),"Specific Record":(0,e.createComponentVNode)(2,s),"OOC Notes":(0,e.createComponentVNode)(2,m)}},3298:function(x,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],y=[["hasBorer","bad",function(B){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(B){return"Viral pathogen detected in blood stream."}],["blind","average",function(B){return"Cataracts detected."}],["colourblind","average",function(B){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(B){return"Retinal misalignment detected."}],["humanPrey","average",function(B){return"Foreign Humanoid(s) detected: "+B.humanPrey}],["livingPrey","average",function(B){return"Foreign Creature(s) detected: "+B.livingPrey}],["objectPrey","average",function(B){return"Foreign Object(s) detected: "+B.objectPrey}]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],C={average:[.25,.5],bad:[.5,1/0]},s=function(S,L){for(var I=[],w=0;w0?S.reduce(function(L,I){return L===null?I:(0,e.createFragment)([L,!!I&&(0,e.createComponentVNode)(2,o.Box,{children:I})],0)}):null},u=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},d=r.BodyScanner=function(){function B(S){var L=(0,t.useBackend)(),I=L.data,w=I.occupied,T=I.occupant,E=T===void 0?{}:T,A=w?(0,e.createComponentVNode)(2,i,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:A})})}return B}(),i=function(S){var L=S.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,c,{occupant:L}),(0,e.createComponentVNode)(2,l,{occupant:L}),(0,e.createComponentVNode)(2,h,{occupant:L}),(0,e.createComponentVNode)(2,p,{occupant:L}),(0,e.createComponentVNode)(2,b,{organs:L.extOrgan}),(0,e.createComponentVNode)(2,g,{organs:L.intOrgan})]})},c=function(S){var L=(0,t.useBackend)(),I=L.act,w=L.data,T=w.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function E(){return I("ejectify")}return E}(),children:"Eject"}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function E(){return I("print_p")}return E}(),children:"Print Report"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(T.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(T.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Volume",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(T.blood.volume,0)})," ","units\xA0(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(T.blood.percent,0)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Weight",children:(0,a.round)(w.occupant.weight)+"lbs, "+(0,a.round)(w.occupant.weight/2.20463)+"kgs"})]})})},l=function(S){var L=S.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Blood Reagents",children:L.reagents?(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reagent"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Amount"})]}),L.reagents.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:[I.amount," Units"," ",I.overdose?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"OVERDOSING"}):null]})]},I.name)})]}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stomach Reagents",children:L.ingested?(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reagent"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Amount"})]}),L.ingested.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:[I.amount," Units"," ",I.overdose?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"OVERDOSING"}):null]})]},I.name)})]}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},h=function(S){var L=S.occupant,I=L.hasBorer||L.blind||L.colourblind||L.nearsighted||L.hasVirus;return I=I||L.humanPrey||L.livingPrey||L.objectPrey,I?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:y.map(function(w,T){if(L[w[0]])return(0,e.createComponentVNode)(2,o.Box,{color:w[1],bold:w[1]==="bad",children:w[2](L)})})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},p=function(S){var L=S.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:s(k,function(I,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[I[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,v,{value:L[I[1]],marginBottom:T0&&"0.5rem",value:L.totalLoss/100,ranges:C,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!L.bruteLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(L.bruteLoss,0),"\xA0",(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage"})]}),!!L.fireLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(L.fireLoss,0),(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(L.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",width:"33%",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:m([L.internalBleeding&&"Internal bleeding",!!L.status.bleeding&&"External bleeding",L.lungRuptured&&"Ruptured lung",L.destroyed&&"Destroyed",!!L.status.broken&&L.status.broken,u(L.germ_level),!!L.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[m([!!L.status.splinted&&"Splinted",!!L.status.robotic&&"Robotic",!!L.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})]),m(L.implants.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},I)})]})})},g=function(S){return S.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(L,I){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"33%",children:L.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L.maxHealth,value:L.damage/100,mt:I>0&&"0.5rem",ranges:C,children:(0,a.round)(L.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",width:"33%",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:m([u(L.germ_level),!!L.inflamed&&"Appendicitis detected."])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:m([L.robotic===1&&"Robotic",L.robotic===2&&"Assisted",!!L.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})])})]})]},I)})]})})},N=function(){return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},17929:function(x,r,n){"use strict";r.__esModule=!0,r.BombTester=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007);function f(C,s){C.prototype=Object.create(s.prototype),C.prototype.constructor=C,V(C,s)}function V(C,s){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function m(u,d){return u.__proto__=d,u}return m}(),V(C,s)}var y=r.BombTester=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.simulating,c=d.mode,l=d.tank1,h=d.tank1ref,p=d.tank2,v=d.tank2ref,b=d.canister,g=d.sim_canister_output;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i&&(0,e.createComponentVNode)(2,k)||(0,e.createComponentVNode)(2,t.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("set_mode",{mode:1})}return N}(),selected:c===1,children:"Single Tank"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("set_mode",{mode:2})}return N}(),selected:c===2,children:"Transfer Valve"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("set_mode",{mode:3})}return N}(),selected:c===3,children:"Canister"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Slot",children:l&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("remove_tank",{ref:h})}return N}(),icon:"eject",children:l})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("add_tank",{slot:1})}return N}(),icon:"upload",children:"Insert Tank"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Slot",children:p&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("remove_tank",{ref:v})}return N}(),icon:"eject",children:p})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("add_tank",{slot:2})}return N}(),icon:"upload",children:"Insert Tank"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected Canister",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function N(){return u("canister_scan")}return N}(),icon:"search",children:"Scan"}),children:b&&(0,e.createComponentVNode)(2,t.Box,{color:"label",children:b})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No tank connected."})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Canister Release Pressure",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,value:g,maxValue:1013.25,onDrag:function(){function N(B,S){return u("set_can_pressure",{pressure:S})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){function N(){return u("start_sim")}return N}(),fluid:!0,children:"Begin Simulation"})]})})})}return C}(),k=function(C){f(s,C);function s(u){var d;d=C.call(this,u)||this;var i=340,c=205,l=2,h=Math.random()>.5,p=Math.random()>.5;return d.state={x:h?i:0,y:p?c:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(v){var b=Object.assign({},v);return b.reverseX?b.x-l<-5?(b.reverseX=!1,b.x+=l):b.x-=l:b.x+l>i?(b.reverseX=!0,b.x-=l):b.x+=l,b.reverseY?b.y-l<-20?(b.reverseY=!1,b.y+=l):b.y-=l:b.y+l>c?(b.reverseY=!0,b.y-=l):b.y+=l,b})},1),d}var m=s.prototype;return m.componentWillUnmount=function(){function u(){clearInterval(this.process)}return u}(),m.render=function(){function u(){var d=this.state,i=d.x,c=d.y,l={position:"relative",left:i+"px",top:c+"px"};return(0,e.createComponentVNode)(2,t.Section,{title:"Simulation in progress!",fill:!0,children:(0,e.createComponentVNode)(2,t.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.createComponentVNode)(2,t.Icon,{style:l,name:"bomb",size:10,color:"red"})})})}return u}(),s}(e.Component)},36752:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyEditor=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.BotanyEditor=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.activity,u=s.degradation,d=s.disk,i=s.sourceName,c=s.locus,l=s.loaded;return m?(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Buffered Genetic Data",children:d&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene Decay",children:[u,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locus",children:c})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function h(){return C("eject_disk")}return h}(),children:"Eject Loaded Disk"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Loaded Material",children:l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:l})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function h(){return C("apply_gene")}return h}(),children:"Apply Gene Mods"}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function h(){return C("eject_packet")}return h}(),children:"Eject Target"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}return V}()},97760:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyIsolator=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.BotanyIsolator=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.geneMasks,u=s.activity,d=s.degradation,i=s.disk,c=s.loaded,l=s.hasGenetics,h=s.sourceName;return u?(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,e.createComponentVNode)(2,o.Window,{width:470,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Buffered Genetic Data",children:l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene decay",children:[d,"%"]}),i&&m.length&&m.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.mask,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:"download",onClick:function(){function v(){return C("get_gene",{get_gene:p.tag})}return v}(),children:"Extract"})},p.mask)})||null]}),i&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return C("eject_disk")}return p}(),children:"Eject Loaded Disk"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function p(){return C("clear_buffer")}return p}(),children:"Clear Genetic Buffer"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No Data Buffered."}),i&&(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return C("eject_disk")}return p}(),children:"Eject Loaded Disk"})||(0,e.createComponentVNode)(2,t.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Loaded Material",children:c&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Packet Loaded",children:c})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function p(){return C("scan_genome")}return p}(),children:"Process Genome"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return C("eject_packet")}return p}(),children:"Eject Packet"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}return V}()},88055:function(x,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.BrigTimer=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:138,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Cell Timer",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"clock-o",content:u.timing?"Stop":"Start",selected:u.timing,onClick:function(){function d(){return m(u.timing?"stop":"start")}return d}()}),u.flash_found&&(0,e.createComponentVNode)(2,o.Button,{icon:"lightbulb-o",content:u.flash_charging?"Recharging":"Flash",disabled:u.flash_charging,onClick:function(){function d(){return m("flash")}return d}()})||null],0),children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:u.time_left/10,minValue:0,maxValue:u.max_time_left/10,format:function(){function d(i){return(0,V.formatTime)((0,a.round)(i))}return d}(),onDrag:function(){function d(i,c){return m("time",{time:c})}return d}()}),(0,e.createComponentVNode)(2,o.Flex,{mt:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_short/10),onClick:function(){function d(){return m("preset",{preset:"short"})}return d}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_medium/10),onClick:function(){function d(){return m("preset",{preset:"medium"})}return d}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,V.formatTime)(u.preset_long/10),onClick:function(){function d(){return m("preset",{preset:"long"})}return d}()})})]})]})})})}return k}()},16073:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.CameraConsoleContent=r.CameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(59641),f=n(40946),V=n(54777),y=n(35239),k=n(47007),C=r.prevNextCamera=function(){function d(i,c){var l,h;if(!c)return[];var p=i.findIndex(function(v){return v.name===c.name});return[(l=i[p-1])==null?void 0:l.name,(h=i[p+1])==null?void 0:h.name]}return d}(),s=r.selectCameras=function(){function d(i,c,l){c===void 0&&(c=""),l===void 0&&(l="");var h=(0,f.createSearch)(c,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),c&&(0,a.filter)(h),l&&(0,a.filter)(function(p){return p.networks.includes(l)}),(0,a.sortBy)(function(p){return p.name})])(i)}return d}(),m=r.CameraConsole=function(){function d(i){var c=(0,V.useBackend)(),l=c.act,h=c.data,p=h.mapRef,v=h.activeCamera,b=s(h.cameras),g=C(b,v),N=g[0],B=g[1];return(0,e.createComponentVNode)(2,k.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,u)}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),v&&v.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!N,onClick:function(){function S(){return l("switch_camera",{name:N})}return S}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!B,onClick:function(){function S(){return l("switch_camera",{name:B})}return S}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",onClick:function(){function S(){return l("pan",{dir:8})}return S}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-up",onClick:function(){function S(){return l("pan",{dir:1})}return S}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",onClick:function(){function S(){return l("pan",{dir:4})}return S}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-down",onClick:function(){function S(){return l("pan",{dir:2})}return S}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return d}(),u=r.CameraConsoleContent=function(){function d(i){var c=(0,V.useBackend)(),l=c.act,h=c.data,p=(0,V.useLocalState)("searchText",""),v=p[0],b=p[1],g=(0,V.useLocalState)("networkFilter",""),N=g[0],B=g[1],S=h.activeCamera,L=h.allNetworks;L.sort();var I=s(h.cameras,v,N);return(0,e.createComponentVNode)(2,y.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,y.Flex.Item,{children:(0,e.createComponentVNode)(2,y.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(){function w(T,E){return b(E)}return w}()})}),(0,e.createComponentVNode)(2,y.Flex.Item,{children:(0,e.createComponentVNode)(2,y.Dropdown,{mb:1,width:"177px",displayText:N||"No Filter",options:L,onSelected:function(){function w(T){return B(T)}return w}()})}),(0,e.createComponentVNode)(2,y.Flex.Item,{height:"100%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:I.map(function(w){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",S&&w.name===S.name&&"Button--selected"]),w.name,0,{title:w.name,onClick:function(){function T(){return l("switch_camera",{name:w.name})}return T}()},w.name)})})})]})}return d}()},79647:function(x,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(420),V=n(47007),y=r.Canister=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.connected,i=u.can_relabel,c=u.pressure,l=u.releasePressure,h=u.defaultReleasePressure,p=u.minReleasePressure,v=u.maxReleasePressure,b=u.valveOpen,g=u.holding;return(0,e.createComponentVNode)(2,V.Window,{width:360,height:242,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Canister",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",disabled:!i,content:"Relabel",onClick:function(){function N(){return m("relabel")}return N}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c,format:function(){function N(B){return B<1e4?(0,a.toFixed)(B)+" kPa":(0,f.formatSiUnit)(B*1e3,1,"Pa")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:l,unit:"kPa",minValue:p,maxValue:v,stepPixelSize:1,onDrag:function(){function N(B,S){return m("pressure",{pressure:S})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){function N(){return m("pressure",{pressure:v})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){function N(){return m("pressure",{pressure:h})}return N}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?g?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){function N(){return m("valve")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:d?"plug":"times",color:d?"good":"bad"}),(0,e.createComponentVNode)(2,o.Tooltip,{content:d?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){function N(){return m("eject")}return N}()}),children:[!!g&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:g.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g.pressure})," kPa"]})]}),!g&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]})]})})}return k}()},71781:function(x,r,n){"use strict";r.__esModule=!0,r.Canvas=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=["res","value","dotsize"];function V(d,i){if(d==null)return{};var c={},l=Object.keys(d),h,p;for(p=0;p=0)&&(c[h]=d[h]);return c}function y(d,i){d.prototype=Object.create(i.prototype),d.prototype.constructor=d,k(d,i)}function k(d,i){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(l,h){return l.__proto__=h,l}return c}(),k(d,i)}var C=24,s=function(d){y(i,d);function i(l){var h;return h=d.call(this,l)||this,h.canvasRef=(0,e.createRef)(),h.onCVClick=l.onCanvasClick,h}var c=i.prototype;return c.componentDidMount=function(){function l(){this.drawCanvas(this.props)}return l}(),c.componentDidUpdate=function(){function l(){this.drawCanvas(this.props)}return l}(),c.drawCanvas=function(){function l(h){var p=this.canvasRef.current.getContext("2d"),v=h.value,b=v.length;if(b){var g=v[0].length,N=Math.round(this.canvasRef.current.width/b),B=Math.round(this.canvasRef.current.height/g);p.save(),p.scale(N,B);for(var S=0;S=0)&&(c[h]=d[h]);return c}var k={Alphabetical:function(){function d(i,c){return i-c}return d}(),"By availability":function(){function d(i,c){return-(i.affordable-c.affordable)}return d}(),"By price":function(){function d(i,c){return i.price-c.price}return d}()},C=r.CasinoPrizeDispenser=function(){function d(){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m)],4)})})}return d}(),s=function(i){var c=(0,t.useLocalState)("search",""),l=c[0],h=c[1],p=(0,t.useLocalState)("sort",""),v=p[0],b=p[1],g=(0,t.useLocalState)("descending",!1),N=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function S(L,I){return h(I)}return S}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",lineHeight:"19px",onSelected:function(){function S(L){return b(L)}return S}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:N?"arrow-down":"arrow-up",height:"19px",tooltip:N?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function S(){return B(!N)}return S}()})})]})})},m=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.points,v=h.items,b=(0,t.useLocalState)("search",""),g=b[0],N=b[1],B=(0,t.useLocalState)("sort","Alphabetical"),S=B[0],L=B[1],I=(0,t.useLocalState)("descending",!1),w=I[0],T=I[1],E=(0,a.createSearch)(g,function(R){return R[0]}),A=!1,M=Object.entries(v).map(function(R,O){var F=Object.entries(R[1]).filter(E).map(function(D){return D[1].affordable=p>=D[1].price,D[1]}).sort(k[S]);if(F.length!==0)return w&&(F=F.reverse()),A=!0,(0,e.createComponentVNode)(2,u,{title:R[0],items:F},R[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:A?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.title,v=i.items,b=y(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:p},b,{children:v.map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:g.name}),(0,e.createComponentVNode)(2,o.Button,{content:g.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function N(){return l("purchase",{cat:p,name:g.name,price:g.price,restriction:g.restriction})}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},g.name)})})))}},20275:function(x,r,n){"use strict";r.__esModule=!0,r.CharacterDirectory=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(m){switch(m){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},V=r.CharacterDirectory=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.personalVisibility,l=i.personalTag,h=i.personalErpTag,p=(0,a.useLocalState)("overlay",null),v=p[0],b=p[1],g=(0,a.useLocalState)("overwritePrefs",!1),N=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:640,height:480,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:v&&(0,e.createComponentVNode)(2,y)||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{icon:N?"toggle-on":"toggle-off",selected:N,content:N?"On":"Off",onClick:function(){function S(){return B(!N)}return S}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:c?"Shown":"Not Shown",onClick:function(){function S(){return d("setVisible",{overwrite_prefs:N})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:l,onClick:function(){function S(){return d("setTag",{overwrite_prefs:N})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:h,onClick:function(){function S(){return d("setErpTag",{overwrite_prefs:N})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Advertisement",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Edit Ad",onClick:function(){function S(){return d("editAd",{overwrite_prefs:N})}return S}()})})]})}),(0,e.createComponentVNode)(2,k)],4)})})}return s}(),y=function(m){var u=(0,a.useLocalState)("overlay",null),d=u[0],i=u[1];return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",onClick:function(){function c(){return i(null)}return c}()}),children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Species",children:(0,e.createComponentVNode)(2,t.Box,{children:d.species})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:f(d.tag),children:d.tag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Box,{children:d.erptag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Character Ad",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:d.character_ad||"Unset."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"OOC Notes",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:d.ooc_notes||"Unset."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Flavor Text",children:(0,e.createComponentVNode)(2,t.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:d.flavor_text||"Unset."})})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.directory,l=(0,a.useLocalState)("sortId","name"),h=l[0],p=l[1],v=(0,a.useLocalState)("sortOrder","name"),b=v[0],g=v[1],N=(0,a.useLocalState)("overlay",null),B=N[0],S=N[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Directory",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function L(){return d("refresh")}return L}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,C,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,C,{id:"species",children:"Species"}),(0,e.createComponentVNode)(2,C,{id:"tag",children:"Vore Tag"}),(0,e.createComponentVNode)(2,C,{id:"erptag",children:"ERP Tag"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),c.sort(function(L,I){var w=b?1:-1;return L[h].localeCompare(I[h])*w}).map(function(L,I){return(0,e.createComponentVNode)(2,t.Table.Row,{backgroundColor:f(L.tag),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{p:1,children:L.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.species}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.tag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.erptag}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return S(L)}return w}(),color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},I)})]})})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.id,l=m.children,h=(0,a.useLocalState)("sortId","name"),p=h[0],v=h[1],b=(0,a.useLocalState)("sortOrder","name"),g=b[0],N=b[1];return(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",color:p!==c&&"transparent",onClick:function(){function B(){p===c?N(!g):(v(c),N(!0))}return B}(),children:[l,p===c&&(0,e.createComponentVNode)(2,t.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},86714:function(x,r,n){"use strict";r.__esModule=!0,r.CheckboxInput=void 0;var e=n(58734),a=n(35239),t=n(45731),o=n(40946),f=n(54777),V=n(77921),y=n(80132),k=n(47007),C=r.CheckboxInput=function(){function s(m){var u=(0,f.useBackend)(),d=u.data,i=d.items,c=i===void 0?[]:i,l=d.min_checked,h=d.max_checked,p=d.message,v=d.timeout,b=d.title,g=(0,f.useLocalState)("selections",[]),N=g[0],B=g[1],S=(0,f.useLocalState)("searchQuery",""),L=S[0],I=S[1],w=(0,o.createSearch)(L,function(A){return A}),T=c.filter(w),E=function(){function A(M){var R=N.includes(M)?N.filter(function(O){return O!==M}):[].concat(N,[M]);B(R)}return A}();return(0,e.createComponentVNode)(2,k.Window,{title:b,width:425,height:300,children:[!!v&&(0,e.createComponentVNode)(2,y.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.NoticeBox,{info:!0,textAlign:"center",children:[(0,o.decodeHtmlEntities)(p)," ",l>0&&" (Min: "+l+")",h<50&&" (Max: "+h+")"]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,a.Table,{children:T.map(function(A,M){return(0,e.createComponentVNode)(2,t.TableRow,{className:"candystripe",children:(0,e.createComponentVNode)(2,t.TableCell,{children:(0,e.createComponentVNode)(2,a.Button.Checkbox,{checked:N.includes(A),disabled:N.length>=h&&!N.includes(A),fluid:!0,onClick:function(){function R(){return E(A)}return R}(),children:A})})},M)})})})}),(0,e.createComponentVNode)(2,a.Stack,{m:1,mb:0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Tooltip,{content:"Search",position:"bottom",children:(0,e.createComponentVNode)(2,a.Icon,{name:"search",mt:.5})})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Input,{fluid:!0,value:L,onInput:function(){function A(M,R){return I(R)}return A}()})})]}),(0,e.createComponentVNode)(2,a.Stack.Item,{mt:.7,children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,V.InputButtons,{input:N})})})]})})]})}return s}()},38244:function(x,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(39036),f=n(47007),V=[5,10,20,30,40,60],y=[1,5,10],k=r.ChemDispenser=function(){function u(d){return(0,e.createComponentVNode)(2,f.Window,{width:390,height:655,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m)]})})}return u}(),C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.amount;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",flex:"content",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:V.map(function(p,v){return(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",selected:h===p,content:p+"u",m:"0",onClick:function(){function b(){return c("amount",{amount:p})}return b}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Custom Amount",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:1,maxValue:120,onDrag:function(){function p(v,b){return c("amount",{amount:b})}return p}()})})]})})},s=function(d){for(var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.chemicals,p=h===void 0?[]:h,v=[],b=0;b<(p.length+1)%3;b++)v.push(!0);return(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[p.map(function(g,N){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:g.title+" ("+g.amount+")",onClick:function(){function B(){return c("dispense",{reagent:g.id})}return B}()})},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",basis:"25%",height:"20px"},N)})]})})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.isBeakerLoaded,p=l.beakerCurrentVolume,v=l.beakerMaxVolume,b=l.beakerContents,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[p," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function N(){return c("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function N(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function S(){return c("remove",{reagent:B.id,amount:-1})}return S}()}),y.map(function(S,L){return(0,e.createComponentVNode)(2,t.Button,{content:S,onClick:function(){function I(){return c("remove",{reagent:B.id,amount:S})}return I}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function S(){return c("remove",{reagent:B.id,amount:B.volume})}return S}()})],0)}return N}()})})}},50067:function(x,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(39036),V=n(57027),y=[1,5,10,30,60],k=null,C=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.data,g=h.args.analysis;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(g.desc||"").length>0?g.desc:"N/A"}),g.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:g.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:g.blood_dna})],4),!b.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",content:"Print",onClick:function(){function N(){return v("print",{idx:g.idx,beaker:h.args.beaker})}return N}()})]})})})},s=r.ChemMaster=function(){function l(h){var p=(0,a.useBackend)(),v=p.data,b=v.condi,g=v.beaker,N=v.beaker_reagents,B=N===void 0?[]:N,S=v.buffer_reagents,L=S===void 0?[]:S,I=v.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:500,resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,m,{beaker:g,beakerReagents:B,bufferNonEmpty:L.length>0}),(0,e.createComponentVNode)(2,u,{mode:I,bufferReagents:L}),(0,e.createComponentVNode)(2,d,{isCondiment:b,bufferNonEmpty:L.length>0})]})]})}return l}(),m=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.data,g=h.beaker,N=h.beakerReagents,B=h.bufferNonEmpty,S=B?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!g,content:"Eject and Clear Buffer",onClick:function(){function L(){return v("eject")}return L}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!g,content:"Eject and Clear Buffer",onClick:function(){function L(){return v("eject")}return L}()});return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",buttons:S,children:g?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:N,buttons:function(){function L(I,w){return(0,e.createComponentVNode)(2,t.Box,{mb:w0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:N,buttons:function(){function B(S,L){return(0,e.createComponentVNode)(2,t.Box,{mb:L1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:w[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:w[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:w[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:w[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!b.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function T(){return v("disk",{option:"load"})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function T(){return v("disk",{option:"save",savetype:"ui"})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function T(){return v("disk",{option:"save",savetype:"ue"})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function T(){return v("disk",{option:"save",savetype:"se"})}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!b.podready,icon:"user-plus",content:"Clone",onClick:function(){function T(){return v("clone",{ref:N})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function T(){return v("del_rec")}return T}()})]})]})})},C=r.CloningConsole=function(){function l(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.menu;return(0,V.modalRegisterBodyOverride)("view_rec",k),(0,e.createComponentVNode)(2,y.Window,{resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,m)})]})]})}return l}(),s=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===1,icon:"home",onClick:function(){function N(){return v("menu",{num:1})}return N}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===2,icon:"folder",onClick:function(){function N(){return v("menu",{num:2})}return N}(),children:"Records"})]})},m=function(h){var p=(0,t.useBackend)(),v=p.data,b=v.menu,g;return b===1?g=(0,e.createComponentVNode)(2,u):b===2&&(g=(0,e.createComponentVNode)(2,d)),g},u=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.loading,N=b.scantemp,B=b.occupant,S=b.locked,L=b.can_brainscan,I=b.scan_mode,w=b.numberofpods,T=b.pods,E=b.selected_pod,A=S&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){function M(){return v("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:A||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return v("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:g?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:N.color,children:N.text})}),!!L&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:I?"brain":"male",content:I?"Brain":"Body",onClick:function(){function M(){return v("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||g,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return v("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:w?T.map(function(M,R){var O;return M.status==="cloning"?O=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?O=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):O=(0,e.createComponentVNode)(2,o.Button,{selected:E===M.pod,icon:E===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function F(){return v("selectpod",{ref:M.pod})}return F}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+M.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",R+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),O]},R)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},d=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.records;return g.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:g.map(function(N,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:N.realname,onClick:function(){function S(){return v("view_rec",{ref:N.record})}return S}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},i=function(h){var p,v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.temp;if(!(!N||!N.text||N.text.length<=0)){var B=(p={},p[N.style]=!0,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:N.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function S(){return b("cleartemp")}return S}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},c=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.scanner,N=b.numberofpods,B=b.autoallowed,S=b.autoprocess,L=b.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"Enabled":"Disabled",onClick:function(){function I(){return v("autoprocess",{on:S?0:1})}return I}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,icon:"eject",content:"Eject Disk",onClick:function(){function I(){return v("disk",{option:"eject"})}return I}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:g?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[N," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},62902:function(x,r,n){"use strict";r.__esModule=!0,r.ColorMate=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.ColorMate=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.items,u=s.activecolor,d=Math.min(270+m.length*15,600);return(0,e.createComponentVNode)(2,o.Window,{width:300,height:d,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:m.length&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Paint",children:(0,e.createComponentVNode)(2,t.Flex,{justify:"center",align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:u,width:"120px",height:"120px"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50% ",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){function i(){return C("select")}return i}(),children:"Select Color"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fill-drip",onClick:function(){function i(){return C("paint")}return i}(),children:"Paint Items"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"tint-slash",onClick:function(){function i(){return C("clear")}return i}(),children:"Remove Paintjob"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",onClick:function(){function i(){return C("eject")}return i}(),children:"Eject Items"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Items",children:m.map(function(i,c){return(0,e.createComponentVNode)(2,t.Box,{children:["#",c+1,": ",i]},c)})})],4)||(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No items inserted."})})})})}return V}()},77474:function(x,r,n){"use strict";r.__esModule=!0,r.CommunicationsConsoleContent=r.CommunicationsConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.CommunicationsConsole=function(){function m(u){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return m}(),V=r.CommunicationsConsoleContent=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.menu_state,h=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",l,"Please report this to NT Technical Support."]});return l===1?h=(0,e.createComponentVNode)(2,y):l===2?h=(0,e.createComponentVNode)(2,s):l===3&&(h=(0,e.createComponentVNode)(2,C)),(0,e.createFragment)([(0,e.createComponentVNode)(2,k),h],0)}return m}(),y=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.messages,h=c.msg_cooldown,p=c.emagged,v=c.cc_cooldown,b=c.str_security_level,g=c.levels,N=c.authmax,B=c.security_level,S=c.security_level_color,L=c.authenticated,I=c.atcsquelch,w=c.boss_short,T="View ("+l.length+")",E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var A=p?"Message [UNKNOWN]":"Message "+w;v>0&&(A+=" ("+v+"s)");var M=b,R=g.map(function(O){return(0,e.createComponentVNode)(2,t.Button,{icon:O.icon,content:O.name,disabled:!L,selected:O.id===B,onClick:function(){function F(){return i("newalertlevel",{level:O.id})}return F}()},O.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Site Manager-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!N||h>0,onClick:function(){function O(){return i("announce")}return O}()})}),!!p&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:A,disabled:!N||v>0,onClick:function(){function O(){return i("MessageSyndicate")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!N,onClick:function(){function O(){return i("RestoreBackup")}return O}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:A,disabled:!N||v>0,onClick:function(){function O(){return i("MessageCentCom")}return O}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:S,children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:R}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!L,onClick:function(){function O(){return i("status")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:T,disabled:!L,onClick:function(){function O(){return i("messagelist")}return O}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"microphone",content:I?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!L,selected:I,onClick:function(){function O(){return i("toggleatc")}return O}()})})]})})],4)},k=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.authenticated,h=c.is_ai,p=c.esc_status,v=c.esc_callable,b=c.esc_recallable,g;return l?h?g="AI":l===1?g="Command":l===2?g="Site Director":g="ERROR: Report This Bug!":g="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sign-out-alt":"id-card",selected:l,content:l?"Log Out ("+g+")":"Log In",onClick:function(){function N(){return i("auth")}return N}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!p&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:p}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!l,onClick:function(){function N(){return i("callshuttle")}return N}()})}),!!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!l||h,onClick:function(){function N(){return i("cancelshuttle")}return N}()})})]})})],4)},C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.message_current,h=c.message_deletion_allowed,p=c.authenticated,v=c.messages;if(l)return(0,e.createComponentVNode)(2,t.Section,{title:l.title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function g(){return i("messagelist")}return g}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:l.contents})});var b=v.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||l&&l.title===g.title,onClick:function(){function N(){return i("messagelist",{msgid:g.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!p||!h,onClick:function(){function N(){return i("delmessage",{msgid:g.id})}return N}()})]},g.id)});return(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function g(){return i("main")}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.length&&b||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.stat_display,h=c.authenticated,p=l.presets.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{content:v.label,selected:v.name===l.type,disabled:!h,onClick:function(){function b(){return i("setstat",{statdisp:v.name})}return b}()},v.name)});return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function v(){return i("main")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.line_1,disabled:!h,onClick:function(){function v(){return i("setmsg1")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:l.line_2,disabled:!h,onClick:function(){function v(){return i("setmsg2")}return v}()})})]})})}},35915:function(x,r,n){"use strict";r.__esModule=!0,r.Communicator=void 0;var e=n(58734),a=n(45445),t=n(40946),o=n(54777),f=n(35239),V=n(47007),y=n(82034),k=1,C=2,s=3,m=4,u=40,d=5,i=6,c=7,l=8,h=9,p={},v=r.Communicator=function(){function Y(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.currentTab,q=Z.video_comm,me=Z.mapRef,pe=(0,o.useLocalState)("videoSetting",0),Ne=pe[0],le=pe[1];return(0,e.createComponentVNode)(2,V.Window,{width:475,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[q&&(0,e.createComponentVNode)(2,b,{videoSetting:Ne,setVideoSetting:le}),(!q||Ne!==0)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,f.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:p[te]||(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,B,{videoSetting:Ne,setVideoSetting:le})],4)]})})}return Y}(),b=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.video_comm,q=Z.mapRef,me=X.videoSetting,pe=X.setVideoSetting;return me===0?(0,e.createComponentVNode)(2,f.Box,{width:"100%",height:"100%",children:[(0,e.createComponentVNode)(2,f.ByondUi,{width:"100%",height:"95%",params:{id:q,type:"map"}}),(0,e.createComponentVNode)(2,f.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function Ne(){return pe(1)}return Ne}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function Ne(){return G("endvideo")}return Ne}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function Ne(){return G("hang_up")}return Ne}()})})]})]}):me===1?(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,e.createComponentVNode)(2,f.Section,{p:0,m:0,children:(0,e.createComponentVNode)(2,f.Flex,{justify:"space-between",spacing:1,children:[(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function Ne(){return pe(2)}return Ne}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){function Ne(){return pe(0)}return Ne}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function Ne(){return G("endvideo")}return Ne}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function Ne(){return G("hang_up")}return Ne}()})})]})}),(0,e.createComponentVNode)(2,f.ByondUi,{width:"200px",height:"200px",params:{id:q,type:"map"}})]}):null},g=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.currentTab;return(0,e.createComponentVNode)(2,f.Section,{title:"Error!",children:["You tried to access tab #",te,", but there was no template defined!"]})},N=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.time,q=Z.connectionStatus,me=Z.owner,pe=Z.occupation;return(0,e.createComponentVNode)(2,f.Section,{children:(0,e.createComponentVNode)(2,f.Flex,{align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,f.Flex.Item,{color:"average",children:te}),(0,e.createComponentVNode)(2,f.Flex.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{color:q===1?"good":"bad",name:q===1?"signal":"exclamation-triangle"})}),(0,e.createComponentVNode)(2,f.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(me)}),(0,e.createComponentVNode)(2,f.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(pe)})]})})},B=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.flashlight,q=X.videoSetting,me=X.setVideoSetting;return(0,e.createComponentVNode)(2,f.Flex,{children:[(0,e.createComponentVNode)(2,f.Flex.Item,{basis:q===2?"60%":"80%",children:(0,e.createComponentVNode)(2,f.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){function pe(){return G("switch_tab",{switch_tab:k})}return pe}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,f.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:te,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){function pe(){return G("Light")}return pe}()})}),q===2&&(0,e.createComponentVNode)(2,f.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,f.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){function pe(){return me(1)}return pe}()})})]})},S=function(X){var $=(0,o.useBackend)(),G=$.data,Z=G.voice_mobs,te=G.communicating,q=G.requestsReceived,me=G.invitesSent,pe=G.video_comm;return!!(X==="Phone"&&(Z.length||te.length||q.length||me.length||pe))},L=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.homeScreen;return(0,e.createComponentVNode)(2,f.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:te.map(function(q){return(0,e.createComponentVNode)(2,f.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.createComponentVNode)(2,f.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){function me(){return G("switch_tab",{switch_tab:q.number})}return me}(),children:(0,e.createComponentVNode)(2,f.Icon,{spin:S(q.module),color:S(q.module)?"bad":null,name:q.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,f.Box,{children:q.module})]},q.number)})})};p[k]=(0,e.createComponentVNode)(2,L);var I=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.targetAddress,q=Z.voice_mobs,me=Z.communicating,pe=Z.requestsReceived,Ne=Z.invitesSent,le=Z.video_comm,re=Z.selfie_mode;return(0,e.createComponentVNode)(2,f.Section,{title:"Phone",children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,f.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,f.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,f.Input,{fluid:!0,value:te,onInput:function(){function ie(Ve,ke){return G("write_target_address",{val:ke})}return ie}()})}),(0,e.createComponentVNode)(2,f.Flex.Item,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"times",onClick:function(){function ie(){return G("clear_target_address")}return ie}()})})]})})}),(0,e.createComponentVNode)(2,w),(0,e.createComponentVNode)(2,f.Section,{title:"Connection Management",mt:2,children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,content:re?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function ie(){return G("selfie_mode")}return ie}()})})}),(0,e.createComponentVNode)(2,f.Section,{title:"External Connections",children:!!q.length&&(0,e.createComponentVNode)(2,f.LabeledList,{children:q.map(function(ie){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(ie.name),children:(0,e.createComponentVNode)(2,f.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Ve(){return G("disconnect",{disconnect:ie.true_name})}return Ve}()})},ie.ref)})})||(0,e.createComponentVNode)(2,f.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Internal Connections",children:!!me.length&&(0,e.createComponentVNode)(2,f.Table,{children:me.map(function(ie){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:"label",children:(0,t.decodeHtmlEntities)(ie.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Ve(){return G("disconnect",{disconnect:ie.true_name})}return Ve}()}),le===null&&(0,e.createComponentVNode)(2,f.Button,{icon:"camera",content:"Start Video",onClick:function(){function Ve(){return G("startvideo",{startvideo:ie.ref})}return Ve}()})||le===ie.ref&&(0,e.createComponentVNode)(2,f.Button,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){function Ve(){return G("endvideo",{endvideo:ie.true_name})}return Ve}()})]})]},ie.address)})})||(0,e.createComponentVNode)(2,f.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Requests Received",children:!!pe.length&&(0,e.createComponentVNode)(2,f.LabeledList,{children:pe.map(function(ie){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(ie.name),children:[(0,e.createComponentVNode)(2,f.Box,{children:(0,t.decodeHtmlEntities)(ie.address)}),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{icon:"signal",content:"Accept",onClick:function(){function Ve(){return G("dial",{dial:ie.address})}return Ve}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"times",content:"Decline",onClick:function(){function Ve(){return G("decline",{decline:ie.ref})}return Ve}()})]})]},ie.address)})})||(0,e.createComponentVNode)(2,f.Box,{children:"No requests received."})}),(0,e.createComponentVNode)(2,f.Section,{title:"Invites Sent",children:!!Ne.length&&(0,e.createComponentVNode)(2,f.LabeledList,{children:Ne.map(function(ie){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(ie.name),children:[(0,e.createComponentVNode)(2,f.Box,{children:(0,t.decodeHtmlEntities)(ie.address)}),(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{icon:"pen",onClick:function(){function Ve(){G("copy",{copy:ie.address})}return Ve}(),content:"Copy"})})]},ie.address)})})||(0,e.createComponentVNode)(2,f.Box,{children:"No invites sent."})})]})]})},w=function(X){for(var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.targetAddress,q=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],me=q.map(function(le){return(0,e.createComponentVNode)(2,f.Button,{content:le,fontSize:2,fluid:!0,onClick:function(){function re(){return G("add_hex",{add_hex:le})}return re}()},le)}),pe=[],Ne=0;NeG?$.length>G?$.slice(0,G)+"...":$:X+$},R=function(X,$,G,Z){if(G<0||G>Z.length)return A(X,$)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var te=A(X,$),q=A(Z[G],$);return te&&q?"TinderMessage_Subsequent_Sent":!te&&!q?"TinderMessage_Subsequent_Received":te?"TinderMessage_First_Sent":"TinderMessage_First_Received"},O=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.targetAddressName,q=Z.targetAddress,me=Z.imList,pe=(0,o.useLocalState)("clipboardMode",!1),Ne=pe[0],le=pe[1];return Ne?(0,e.createComponentVNode)(2,f.Section,{title:(0,e.createComponentVNode)(2,f.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:M("Conversation with ",(0,t.decodeHtmlEntities)(te),30)}),buttons:(0,e.createComponentVNode)(2,f.Button,{icon:"eye",selected:Ne,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function re(){return le(!Ne)}return re}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,f.Section,{style:{height:"95%","overflow-y":"auto"},children:me.map(function(re,ie){return(re.to_address===q||re.address===q)&&(0,e.createComponentVNode)(2,f.Box,{className:A(re,q)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[A(re,q)?"You":"Them",": ",re.im]},ie)})}),(0,e.createComponentVNode)(2,f.Button,{icon:"comment",onClick:function(){function re(){return G("message",{message:q})}return re}(),content:"Message"})]}):(0,e.createComponentVNode)(2,f.Section,{title:(0,e.createComponentVNode)(2,f.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:M("Conversation with ",(0,t.decodeHtmlEntities)(te),30)}),buttons:(0,e.createComponentVNode)(2,f.Button,{icon:"eye",selected:Ne,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function re(){return le(!Ne)}return re}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,f.Section,{style:{height:"95%","overflow-y":"auto"},children:me.map(function(re,ie,Ve){return(re.to_address===q||re.address===q)&&(0,e.createComponentVNode)(2,f.Box,{textAlign:A(re,q)?"right":"left",mb:1,children:(0,e.createComponentVNode)(2,f.Box,{maxWidth:"75%",className:R(re,q,ie-1,Ve),inline:!0,children:(0,t.decodeHtmlEntities)(re.im)})},ie)})}),(0,e.createComponentVNode)(2,f.Button,{icon:"comment",onClick:function(){function re(){return G("message",{message:q})}return re}(),content:"Message"})]})};p[u]=(0,e.createComponentVNode)(2,O);var F=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.feeds,q=Z.target_feed;return(0,e.createComponentVNode)(2,f.Section,{title:"News",stretchContents:!0,height:"100%",children:!te.length&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||q&&(0,e.createComponentVNode)(2,D)||(0,e.createComponentVNode)(2,j)})},D=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.target_feed;return(0,e.createComponentVNode)(2,f.Section,{title:(0,t.decodeHtmlEntities)(te.name)+" by "+(0,t.decodeHtmlEntities)(te.author),buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Back",icon:"chevron-up",onClick:function(){function q(){return G("newsfeed",{newsfeed:null})}return q}()}),children:te.messages.map(function(q){return(0,e.createComponentVNode)(2,f.Section,{children:["- ",(0,t.decodeHtmlEntities)(q.body),!!q.img&&(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+q.img}),(0,t.decodeHtmlEntities)(q.caption)||null]}),(0,e.createComponentVNode)(2,f.Box,{color:"grey",children:["[",q.message_type," by ",(0,t.decodeHtmlEntities)(q.author)," -"," ",q.time_stamp,"]"]})]},q.ref)})})},j=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.feeds,q=Z.latest_news;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Section,{title:"Recent News",children:(0,e.createComponentVNode)(2,f.Section,{children:q.map(function(me){return(0,e.createComponentVNode)(2,f.Box,{mb:2,children:[(0,e.createVNode)(1,"h5",null,[(0,t.decodeHtmlEntities)(me.channel),(0,e.createComponentVNode)(2,f.Button,{ml:1,icon:"chevron-up",onClick:function(){function pe(){return G("newsfeed",{newsfeed:me.index})}return pe}(),content:"Go to"})],0),"- ",(0,t.decodeHtmlEntities)(me.body),!!me.img&&(0,e.createComponentVNode)(2,f.Box,{children:["[image omitted, view story for more details]",me.caption||null]}),(0,e.createComponentVNode)(2,f.Box,{fontSize:.9,children:["[",me.message_type," by"," ",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"average",children:me.author})," ","- ",me.time_stamp,"]"]})]},me.index)})})}),(0,e.createComponentVNode)(2,f.Section,{title:"News Feeds",children:te.map(function(me){return(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"chevron-up",onClick:function(){function pe(){return G("newsfeed",{newsfeed:me.index})}return pe}(),content:me.name},me.index)})})],4)};p[d]=(0,e.createComponentVNode)(2,F);var _=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.note;return(0,e.createComponentVNode)(2,f.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.createComponentVNode)(2,f.Button,{icon:"pen",onClick:function(){function q(){return G("edit")}return q}(),content:"Edit Notes"}),children:(0,e.createComponentVNode)(2,f.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:te})})};p[i]=(0,e.createComponentVNode)(2,_);var z=function(X,$,G,Z,te){return X<$?"bad":XZ?"average":X>te?"bad":"good"},H=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.aircontents,q=Z.weather,me="\xB0";return(0,e.createComponentVNode)(2,f.Section,{title:"Weather",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Current Conditions",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,a.filter)(function(pe){return pe.val!=="0"||pe.entry==="Pressure"||pe.entry==="Temperature"})(te).map(function(pe){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:pe.entry,color:z(pe.val,pe.bad_low,pe.poor_low,pe.poor_high,pe.bad_high),children:[pe.val,(0,t.decodeHtmlEntities)(pe.units)]},pe.entry)})})}),(0,e.createComponentVNode)(2,f.Section,{title:"Weather Reports",children:!!q.length&&(0,e.createComponentVNode)(2,f.LabeledList,{children:q.map(function(pe){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:pe.Planet,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Time",children:pe.Time}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Weather",children:(0,t.toTitleCase)(pe.Weather)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:["Current: ",pe.Temperature.toFixed()," ",me,"C | High:"," ",pe.High.toFixed()," ",me,"C | Low: ",pe.Low.toFixed()," ",me,"C"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Wind Direction",children:pe.WindDir}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Wind Speed",children:pe.WindSpeed}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Forecast",children:(0,t.decodeHtmlEntities)(pe.Forecast)})]})},pe.Planet)})})||(0,e.createComponentVNode)(2,f.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})};p[c]=(0,e.createComponentVNode)(2,H),p[l]=(0,e.createComponentVNode)(2,y.CrewManifestContent);var Q=function(X){var $=(0,o.useBackend)(),G=$.act,Z=$.data,te=Z.owner,q=Z.occupation,me=Z.connectionStatus,pe=Z.address,Ne=Z.visible,le=Z.ring,re=Z.selfie_mode;return(0,e.createComponentVNode)(2,f.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,f.Button,{icon:"pen",fluid:!0,content:(0,t.decodeHtmlEntities)(te),onClick:function(){function ie(){return G("rename")}return ie}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,content:re?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function ie(){return G("selfie_mode")}return ie}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Occupation",children:(0,t.decodeHtmlEntities)(q)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Connection",children:me===1?(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,f.Box,{color:"bad",children:"Disconnected"})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Device EPv2 Address",children:pe}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:Ne,selected:Ne,fluid:!0,content:Ne?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){function ie(){return G("toggle_visibility")}return ie}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Ringer",children:[(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:le,selected:le,fluid:!0,content:le?"Ringer on.":"Ringer off.",onClick:function(){function ie(){return G("toggle_ringer")}return ie}()}),(0,e.createComponentVNode)(2,f.Button,{fluid:!0,content:"Set Ringer Tone",onClick:function(){function ie(){return G("set_ringer_tone")}return ie}()})]})]})})};p[h]=(0,e.createComponentVNode)(2,Q)},88895:function(x,r,n){"use strict";r.__esModule=!0,r.ComputerFabricator=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=r.ComputerFabricator=function(){function m(u){var d=(0,t.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,f.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),c.state!==0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){function l(){return i("clean_order")}return l}()}),c.state===0&&(0,e.createComponentVNode)(2,y),c.state===1&&(0,e.createComponentVNode)(2,k),c.state===2&&(0,e.createComponentVNode)(2,C),c.state===3&&(0,e.createComponentVNode)(2,s)]})})}return m}(),y=function(u){var d=(0,t.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 1",minHeight:"306px",children:[(0,e.createComponentVNode)(2,o.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.createComponentVNode)(2,o.Box,{mt:3,children:(0,e.createComponentVNode)(2,o.Grid,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function l(){return i("pick_device",{pick:"1"})}return l}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function l(){return i("pick_device",{pick:"2"})}return l}()})})]})})]})},k=function(u){var d=(0,t.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",children:[c.totalprice,"\u20AE"]}),children:[(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_battery===1,onClick:function(){function l(){return i("hw_battery",{battery:"1"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:c.hw_battery===2,onClick:function(){function l(){return i("hw_battery",{battery:"2"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:c.hw_battery===3,onClick:function(){function l(){return i("hw_battery",{battery:"3"})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_disk===1,onClick:function(){function l(){return i("hw_disk",{disk:"1"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:c.hw_disk===2,onClick:function(){function l(){return i("hw_disk",{disk:"2"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:c.hw_disk===3,onClick:function(){function l(){return i("hw_disk",{disk:"3"})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:c.hw_netcard===0,onClick:function(){function l(){return i("hw_netcard",{netcard:"0"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_netcard===1,onClick:function(){function l(){return i("hw_netcard",{netcard:"1"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:c.hw_netcard===2,onClick:function(){function l(){return i("hw_netcard",{netcard:"2"})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:c.hw_nanoprint===0,onClick:function(){function l(){return i("hw_nanoprint",{print:"0"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_nanoprint===1,onClick:function(){function l(){return i("hw_nanoprint",{print:"1"})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:c.hw_card===0,onClick:function(){function l(){return i("hw_card",{card:"0"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_card===1,onClick:function(){function l(){return i("hw_card",{card:"1"})}return l}()})})]}),c.devtype!==2&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_cpu===1,onClick:function(){function l(){return i("hw_cpu",{cpu:"1"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:c.hw_cpu===2,onClick:function(){function l(){return i("hw_cpu",{cpu:"2"})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:c.hw_tesla===0,onClick:function(){function l(){return i("hw_tesla",{tesla:"0"})}return l}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:c.hw_tesla===1,onClick:function(){function l(){return i("hw_tesla",{tesla:"1"})}return l}()})})]})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){function l(){return i("confirm_order")}return l}()})]})},C=function(u){var d=(0,t.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:[c.totalprice,"\u20AE"]})]})]})},s=function(u){return(0,e.createComponentVNode)(2,o.Section,{minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.createComponentVNode)(2,o.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},29675:function(x,r,n){"use strict";r.__esModule=!0,r.CookingAppliance=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.CookingAppliance=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.temperature,u=s.optimalTemp,d=s.temperatureEnough,i=s.efficiency,c=s.containersRemovable,l=s.our_contents;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d?"good":"blue",value:m,maxValue:u,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:m}),"\xB0C / ",u,"\xB0C"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Efficiency",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i}),"%"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Containers",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(h,p){return h.empty?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(p+1),children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("slot",{slot:p+1})}return v}(),children:"Empty"})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(p+1),verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!c,onClick:function(){function v(){return C("slot",{slot:p+1})}return v}(),children:h.container||"No Container"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:h.progressText[0],value:h.progress,maxValue:1,children:h.progressText[1]})})]})},p)})})})]})})}return V}()},82034:function(x,r,n){"use strict";r.__esModule=!0,r.CrewManifestContent=r.CrewManifest=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(61994),V=n(40946),y=r.CrewManifest=function(){function C(){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return C}(),k=r.CrewManifestContent=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.manifest;return(0,e.createComponentVNode)(2,t.Section,{title:"Crew Manifest",noTopPadding:!0,children:i.map(function(c){return!!c.elems.length&&(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:f.COLORS.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Active"})]}),c.elems.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:"average",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,V.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},c.cat)})})}return C}()},76855:function(x,r,n){"use strict";r.__esModule=!0,r.CrewMonitorContent=r.CrewMonitor=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(54777),f=n(47007),V=n(35239),y=function(d){return d.dead?"Deceased":parseInt(d.stat,10)===1?"Unconscious":"Living"},k=function(d){return d.dead?"red":parseInt(d.stat,10)===1?"orange":"green"},C=r.CrewMonitor=function(){function u(){return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,s)})})}return u}(),s=r.CrewMonitorContent=function(){function u(d){var i=(0,o.useBackend)(),c=i.act,l=i.data,h=i.config,p=(0,o.useLocalState)("tabIndex",0),v=p[0],b=p[1],g=(0,t.flow)([(0,a.sortBy)(function(I){return I.name}),(0,a.sortBy)(function(I){return I==null?void 0:I.x}),(0,a.sortBy)(function(I){return I==null?void 0:I.y}),(0,a.sortBy)(function(I){return I==null?void 0:I.realZ})])(l.crewmembers||[]),N=(0,o.useLocalState)("zoom",1),B=N[0],S=N[1],L;return v===0?L=(0,e.createComponentVNode)(2,V.Table,{children:[(0,e.createComponentVNode)(2,V.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Location"})]}),g.map(function(I){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:[I.name," (",I.assignment,")"]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:[(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:k(I),children:y(I)}),I.sensor_type>=2?(0,e.createComponentVNode)(2,V.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"red",children:I.brute}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"orange",children:I.fire}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"green",children:I.tox}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"blue",children:I.oxy}),")"]}):null]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:I.sensor_type===3?l.isAI?(0,e.createComponentVNode)(2,V.Button,{fluid:!0,icon:"location-arrow",content:I.area+" ("+I.x+", "+I.y+")",onClick:function(){function w(){return c("track",{track:I.ref})}return w}()}):I.area+" ("+I.x+", "+I.y+", "+I.z+")":"Not Available"})]},I.ref)})]}):v===1?L=(0,e.createComponentVNode)(2,m):L="ERROR",(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:v===0,onClick:function(){function I(){return b(0)}return I}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:v===1,onClick:function(){function I(){return b(1)}return I}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,V.Box,{m:2,children:L})],4)}return u}(),m=function(d){var i=(0,o.useBackend)(),c=i.act,l=i.config,h=i.data,p=(0,o.useLocalState)("zoom",1),v=p[0],b=p[1];return(0,e.createComponentVNode)(2,V.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function g(N){return b(N)}return g}(),children:h.crewmembers.filter(function(g){return g.sensor_type===3&&~~g.realZ===~~l.mapZLevel}).map(function(g){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:g.x,y:g.y,zoom:v,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:k(g)},g.ref)})})})}},36089:function(x,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function s(m){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:470,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.isOperating,l=i.hasOccupant,h=i.occupant,p=h===void 0?[]:h,v=i.cellTemperature,b=i.cellTemperatureStatus,g=i.isBeakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",flexGrow:"1",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function N(){return d("ejectOccupant")}return N}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:p.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:p.health,max:p.maxHealth,value:p.health/p.maxHealth,color:p.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(p.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[p.stat][0],children:V[p.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(p.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p[N.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(p[N.type])})})},N.id)})]}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function N(){return d("ejectBeaker")}return N}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function N(){return d(c?"switchOff":"switchOn")}return N}(),selected:c,children:c?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:b,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,C)})]})})],4)},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.isBeakerLoaded,l=i.beakerLabel,h=i.beakerVolume;return c?(0,e.createFragment)([l||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No label"}),(0,e.createComponentVNode)(2,t.Box,{color:!h&&"bad",children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function p(v){return Math.round(v)+" units remaining"}return p}()}):"Beaker is empty"})],0):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded"})}},50864:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageItems=r.CryoStorageCrew=r.CryoStorage=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.CryoStorage=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.real_name,i=u.allow_items,c=(0,a.useLocalState)("tab",0),l=c[0],h=c[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===0,onClick:function(){function p(){return h(0)}return p}(),children:"Crew"}),!!i&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===1,onClick:function(){function p(){return h(1)}return p}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",d,"."]}),l===0&&(0,e.createComponentVNode)(2,V),!!i&&l===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),V=r.CryoStorageCrew=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.crew;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Crew",children:d.length&&d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:i},i)})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"No crew currently stored."})})}return k}(),y=r.CryoStorageItems=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function i(){return m("allitems")}return i}(),children:"Claim All"}),children:d.length&&d.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function c(){return m("item",{ref:i.ref})}return c}(),children:i.name},i.ref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return k}()},24201:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageVr=r.CryoStorageItemsVr=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(50864),V=r.CryoStorageVr=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.real_name,i=u.allow_items,c=(0,a.useLocalState)("tab",0),l=c[0],h=c[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===0,onClick:function(){function p(){return h(0)}return p}(),children:"Crew"}),!!i&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===1,onClick:function(){function p(){return h(1)}return p}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",d,"."]}),l===0&&(0,e.createComponentVNode)(2,f.CryoStorageCrew),!!i&&l===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),y=r.CryoStorageItemsVr=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",children:d.length&&d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:i},i)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return k}()},13286:function(x,r,n){"use strict";r.__esModule=!0,r.DNAForensics=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.DNAForensics=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.scan_progress,u=s.scanning,d=s.bloodsamp,i=s.bloodsamp_desc;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:326,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{selected:u,disabled:!d,icon:"power-off",onClick:function(){function c(){return C("scanItem")}return c}(),children:u?"Halt Scan":"Begin Scan"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"eject",onClick:function(){function c(){return C("ejectItem")}return c}(),children:"Eject Bloodsample"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:m,maxValue:100})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Blood Sample",children:d&&(0,e.createComponentVNode)(2,t.Box,{children:[d,(0,e.createComponentVNode)(2,t.Box,{color:"label",children:i})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No blood sample inserted."})})]})})}return V}()},84613:function(x,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(57027),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],C=r.DNAModifier=function(){function g(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.irradiating,w=L.dnaBlockSize,T=L.occupant;context.dnaBlockSize=w,context.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return I&&(E=(0,e.createComponentVNode)(2,v,{duration:I})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:700,resizable:!0,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m)]})]})}return g}(),s=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.locked,w=L.hasOccupant,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,selected:I,icon:I?"toggle-on":"toggle-off",content:I?"Engaged":"Disengaged",onClick:function(){function E(){return S("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w||I,icon:"user-slash",content:"Eject",onClick:function(){function E(){return S("ejectOccupant")}return E}()})],4),children:w?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),context.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:T.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},m=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.selectedMenuKey,w=L.hasOccupant,T=L.occupant;if(w){if(context.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return I==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i)],4):I==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,i)],4):I==="buffer"?E=(0,e.createComponentVNode)(2,c):I==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,p)),(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(A,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===A[0],onClick:function(){function R(){return S("selectMenuKey",{key:A[0]})}return R}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:A[2]}),A[1]]},M)})}),E]})},u=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.selectedUIBlock,w=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,e.createComponentVNode)(2,b,{dnaString:E.uniqueIdentity,selectedBlock:I,selectedSubblock:w,blockSize:context.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:T,format:function(){function A(M){return M.toString(16).toUpperCase()}return A}(),ml:"0",onChange:function(){function A(M,R){return S("changeUITarget",{value:R})}return A}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function A(){return S("pulseUIRadiation")}return A}()})]})},d=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.selectedSEBlock,w=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.createComponentVNode)(2,b,{dnaString:T.structuralEnzymes,selectedBlock:I,selectedSubblock:w,blockSize:context.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return S("pulseSERadiation")}return E}()})]})},i=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.radiationIntensity,w=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",level:"2",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:I,popUpPosition:"right",ml:"0",onChange:function(){function T(E,A){return S("radiationIntensity",{value:A})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,A){return S("radiationDuration",{value:A})}return T}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){function T(){return S("pulseRadiation")}return T}()})]})},c=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.buffers,w=I.map(function(T,E){return(0,e.createComponentVNode)(2,l,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Buffers",level:"2",children:w}),(0,e.createComponentVNode)(2,h)],4)},l=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=N.id,w=N.name,T=N.buffer,E=L.isInjectorReady,A=w+(T.data?" - "+T.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:A,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T.data,icon:"trash",content:"Clear",onClick:function(){function M(){return S("bufferOption",{option:"clear",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function M(){return S("bufferOption",{option:"changeLabel",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){function M(){return S("bufferOption",{option:"saveDisk",id:I})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"saveUI",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"saveUIAndUE",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"saveSE",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"loadDisk",id:I})}return M}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"createInjector",id:I})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"createInjector",id:I,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function M(){return S("bufferOption",{option:"transfer",id:I})}return M}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},h=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.hasDisk,w=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!I||!w.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return S("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){function T(){return S("ejectDisk")}return T}()})],4),children:I?w.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:w.label?w.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:w.owner?w.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[w.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!w.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},p=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.isBeakerLoaded,w=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){function E(){return S("ejectBeaker")}return E}()}),children:I?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,A){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>w,icon:"syringe",content:E,onClick:function(){function M(){return S("injectRejuvenators",{amount:E})}return M}()},A)}),(0,e.createComponentVNode)(2,t.Button,{disabled:w<=0,icon:"syringe",content:"All",onClick:function(){function E(){return S("injectRejuvenators",{amount:w})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),w?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[w," unit",w===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",size:"4"}),(0,e.createVNode)(1,"br"),"No beaker loaded."]})})},v=function(N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},b=function(N){for(var B=(0,a.useBackend)(),S=B.act,L=B.data,I=N.dnaString,w=N.selectedBlock,T=N.selectedSubblock,E=N.blockSize,A=N.action,M=I.split(""),R=0,O=[],F=function(){for(var _=D/E+1,z=[],H=function(){var X=Q+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:w===_&&T===X,content:M[D+Q],mb:"0",onClick:function(){function $(){return S(A,{block:_,subblock:X})}return $}()}))},Q=0;Q1?"Dangerous!":null]},p.stage)})||(0,e.createComponentVNode)(2,t.Box,{children:"No virus sample loaded."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Affected Species",color:"label",children:[!h||!h.length?"None":null,h.sort().join(", ")]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Reverse Engineering",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",mb:1,children:(0,e.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),i.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{content:p.stage,icon:"exchange-alt",onClick:function(){function v(){return m("grab",{grab:p.reference})}return v}()},p.stage)}),(0,e.createComponentVNode)(2,t.Button,{content:"Species",icon:"exchange-alt",onClick:function(){function p(){return m("affected_species")}return p}()})]})],4)]})},y=function(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.dish_inserted,i=u.buffer,c=u.species_buffer,l=u.effects,h=u.info,p=u.growth,v=u.affected_species,b=u.busy;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Memory Buffer",children:i?(0,e.createComponentVNode)(2,t.Box,{children:[i.name," (",i.stage,")"]}):c?(0,e.createComponentVNode)(2,t.Box,{children:c}):"Empty"})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!i&&!c,onClick:function(){function g(){return m("disk")}return g}()}),i?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #1",disabled:i.stage>1,onClick:function(){function g(){return m("splice",{splice:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #2",disabled:i.stage>2,onClick:function(){function g(){return m("splice",{splice:2})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #3",disabled:i.stage>3,onClick:function(){function g(){return m("splice",{splice:3})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #4",disabled:i.stage>4,onClick:function(){function g(){return m("splice",{splice:4})}return g}()})]}):c?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice Species",disabled:!c||h,onClick:function(){function g(){return m("splice",{splice:5})}return g}()})}):null]})}},51241:function(x,r,n){"use strict";r.__esModule=!0,r.DishIncubator=void 0;var e=n(58734),a=n(420),t=n(54777),o=n(35239),f=n(47007),V=r.DishIncubator=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.on,d=m.system_in_use,i=m.food_supply,c=m.radiation,l=m.growth,h=m.toxins,p=m.chemicals_inserted,v=m.can_breed_virus,b=m.chemical_volume,g=m.max_chemical_volume,N=m.dish_inserted,B=m.blood_already_infected,S=m.virus,L=m.analysed,I=m.infection_rate;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Environmental Conditions",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:u,content:u?"On":"Off",onClick:function(){function w(){return s("power")}return w}()}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){function w(){return s("rad")}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!d,onClick:function(){function w(){return s("flush")}return w}()})})]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Virus Food",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:i})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,color:c>=50?"bad":l>=25?"average":"good",value:c,children:[(0,a.formatCommaNumber)(c*1e4)," \xB5Sv"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toxicity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:h})})]})]}),(0,e.createComponentVNode)(2,o.Section,{title:v?"Vial":"Chemicals",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject "+(v?"Vial":"Chemicals"),disabled:!p,onClick:function(){function w(){return s("ejectchem")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Breed Virus",disabled:!v,onClick:function(){function w(){return s("virus")}return w}()})],4),children:p&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:g,value:b,children:[b,"/",g]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Breeding Environment",color:v?"good":"average",children:[N?v?"Suitable":"No hemolytic samples detected":"N/A",B?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No chemicals inserted."})}),(0,e.createComponentVNode)(2,o.Section,{title:"Virus Dish",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Dish",disabled:!N,onClick:function(){function w(){return s("ejectdish")}return w}()}),children:N?S?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Growth Density",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:l})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Infection Rate",children:L?I:"Unknown."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No virus detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No dish loaded."})})]})})}return y}()},98814:function(x,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.DisposalBin=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.mode,u=s.pressure,d=s.isAI,i=s.panel_open,c=s.flushing,l,h;return m===2?(l="good",h="Ready"):m<=0?(l="bad",h="N/A"):m===1?(l="average",h="Pressurizing"):(l="average",h="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Status"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",color:l,children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:u,minValue:0,maxValue:100})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Controls"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:d||i,content:"Disengaged",selected:c?null:"selected",onClick:function(){function p(){return C("disengageHandle")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:d||i,content:"Engaged",selected:c?"selected":null,onClick:function(){function p(){return C("engageHandle")}return p}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:m===-1,content:"Off",selected:m?null:"selected",onClick:function(){function p(){return C("pumpOff")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:m===-1,content:"On",selected:m?"selected":null,onClick:function(){function p(){return C("pumpOn")}return p}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:d,content:"Eject Contents",onClick:function(){function p(){return C("eject")}return p}()})})]})]})})})}return V}()},54686:function(x,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.DroneConsole=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.drones,u=s.areas,d=s.selected_area,i=s.fabricator,c=s.fabPower;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Drone Fabricator",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!i,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){function l(){return C("toggle_fab")}return l}()}),children:i?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Linked."}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Fabricator not detected.",(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){function l(){return C("search_fab")}return l}()})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Request Drone",children:[(0,e.createComponentVNode)(2,t.Dropdown,{options:u?u.sort():null,selected:d,width:"100%",onSelected:function(){function l(h){return C("set_dcall_area",{area:h})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",content:"Send Ping",onClick:function(){function l(){return C("ping")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Units",children:m&&m.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Resync",onClick:function(){function h(){return C("resync",{ref:l.ref})}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){function h(){return C("shutdown",{ref:l.ref})}return h}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.loc}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[l.charge," / ",l.maxCharge]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active",children:l.active?"Yes":"No"})]})},l.name)})}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No drones detected."})})]})})}return V}()},16157:function(x,r,n){"use strict";r.__esModule=!0,r.EmbeddedController=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(37145),V=(0,f.createLogger)("fuck"),y={},k=r.EmbeddedController=function(){function S(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=T.internalTemplateName,A=y[E];if(!A)throw Error("Unable to find Component for template name: "+E);return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,A)})})}return S}(),C=function(L){var I=L.bars;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:w.color(w.value),minValue:w.minValue,maxValue:w.maxValue,value:w.value,children:w.textValue})},w.label)})})})},s=function(L){var I=(0,a.useBackend)(),w=I.data,T=I.act,E=!0;w.interior_status&&w.interior_status.state==="open"?E=!1:w.external_pressure&&w.chamber_pressure&&(E=!(Math.abs(w.external_pressure-w.chamber_pressure)>5));var A=!0;return w.exterior_status&&w.exterior_status.state==="open"?A=!1:w.internal_pressure&&w.chamber_pressure&&(A=!(Math.abs(w.internal_pressure-w.chamber_pressure)>5)),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:w.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){function M(){return T("cycle_ext")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:w.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){function M(){return T("cycle_int")}return M}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:w.airlock_disabled,color:E?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){function M(){return T("force_ext")}return M}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:w.airlock_disabled,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){function M(){return T("force_int")}return M}()})]})],4)},m=function(L){var I=(0,a.useBackend)(),w=I.data,T=I.act,E={docked:(0,e.createComponentVNode)(2,u),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"INITIALIZING..."})},A=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return w.exterior_status.state==="open"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):w.exterior_status.lock==="unlocked"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):w.exterior_status.lock==="locked"&&(A=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Escape Pod Status",children:E[w.docking_status]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:A})]})})},u=function(L){var I=(0,a.useBackend)(),w=I.data,T=I.act;return w.armed?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"ARMED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SYSTEMS OK"})},d=function(L){var I=(0,a.useBackend)(),w=I.data,T=I.act;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!w.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:w.docking_status!=="docked"?"bad":"",onClick:function(){function E(){return T("force_door")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{selected:w.override_enabled,color:w.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){function E(){return T("toggle_override")}return E}()})]})},i=function(L){var I=(0,a.useBackend)(),w=I.data,T=I.act,E={docked:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"DOCKED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"DOCKING"}),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"NOT IN USE"})},A=E[w.docking_status];return w.override_enabled&&(A=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[w.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),A},c=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=function(R){return R<80||R>120?"bad":R<95||R>110?"average":"good"},A=[{minValue:0,maxValue:202,value:T.external_pressure,label:"External Pressure",textValue:T.external_pressure+" kPa",color:E},{minValue:0,maxValue:202,value:T.chamber_pressure,label:"Chamber Pressure",textValue:T.chamber_pressure+" kPa",color:E},{minValue:0,maxValue:202,value:T.internal_pressure,label:"Internal Pressure",textValue:T.internal_pressure+" kPa",color:E}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,C,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Purge",onClick:function(){function M(){return w("purge")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Secure",onClick:function(){function M(){return w("secure")}return M}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!T.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function M(){return w("abort")}return M}()})})]})],4)};y.AirlockConsoleAdvanced=c;var l=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=[{minValue:0,maxValue:202,value:T.chamber_pressure,label:"Chamber Pressure",textValue:T.chamber_pressure+" kPa",color:function(){function A(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}return A}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,C,{bars:E}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!T.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function A(){return w("abort")}return A}()})})]})],4)};y.AirlockConsoleSimple=l;var h=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=[{minValue:0,maxValue:202,value:T.chamber_pressure,label:"Chamber Pressure",textValue:T.chamber_pressure+" kPa",color:function(){function A(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}return A}()},{minValue:0,maxValue:100,value:T.chamber_phoron,label:"Chamber Phoron",textValue:T.chamber_phoron+" mol",color:function(){function A(M){return M>5?"bad":M>.5?"average":"good"}return A}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,C,{bars:E}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!T.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function A(){return w("abort")}return A}()})})]})],4)};y.AirlockConsolePhoron=h;var p=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=[{minValue:0,maxValue:202,value:T.chamber_pressure,label:"Chamber Pressure",textValue:T.chamber_pressure+" kPa",color:function(){function A(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}return A}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Dock",buttons:T.airlock_disabled||T.override_enabled?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:T.override_enabled?"red":"",content:"Override",onClick:function(){function A(){return w("toggle_override")}return A}()}):null,children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,C,{bars:E}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!T.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function A(){return w("abort")}return A}()})})]})],4)};y.AirlockConsoleDocking=p;var v=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return T.exterior_status.state==="open"?E=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):T.exterior_status.lock==="unlocked"?E=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):T.exterior_status.lock==="locked"&&(E=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!T.override_enabled,content:"Force exterior door",onClick:function(){function A(){return w("force_door")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:T.override_enabled?"red":"",content:"Override",onClick:function(){function A(){return w("toggle_override")}return A}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dock Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:E})]})})};y.DockingConsoleSimple=v;var b=function(L){var I=(0,a.useBackend)(),w=I.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Docking Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Airlocks",children:w.airlocks.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:w.airlocks.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:T.override_enabled?"bad":"good",label:T.name,children:T.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},T.name)})}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",mt:"0.5em",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No airlocks found."]})})})],4)};y.DockingConsoleMulti=b;var g=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data,E=T.interior_status.state==="open"||T.exterior_status.state==="closed",A=T.exterior_status.state==="open"||T.interior_status.state==="closed";return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:E?"arrow-left":"exclamation-triangle",content:E?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){function M(){w(E?"cycle_ext_door":"force_ext")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:A?"arrow-right":"exclamation-triangle",content:A?"Cycle To Interior":"Lock Interior Door",onClick:function(){function M(){w(A?"cycle_int_door":"force_int")}return M}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Exterior Door Status",children:T.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Interior Door Status",children:T.interior_status.state==="closed"?"Locked":"Open"})]})})};y.DoorAccessConsole=g;var N=function(L){var I=(0,a.useBackend)(),w=I.act,T=I.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:T.armed,color:T.armed?"bad":"average",content:"ARM",onClick:function(){function E(){return w("manual_arm")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!T.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){function E(){return w("force_launch")}return E}()})]})]})],4)};y.EscapePodConsole=N;var B=function(L){var I=(0,a.useBackend)(),w=I.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,d)})],4)};y.EscapePodBerthConsole=B},17183:function(x,r,n){"use strict";r.__esModule=!0,r.NarrationInput=r.ModeSelector=r.EntitySelection=r.EntityNarrate=r.DisplayDetails=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.EntityNarrate=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:470,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:.25,fill:!0,children:(0,e.createComponentVNode)(2,t.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:6.75,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Details",children:(0,e.createComponentVNode)(2,y)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Select Behaviour",children:(0,e.createComponentVNode)(2,k)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,C)})]})})})]})})})})}return s}(),V=r.EntitySelection=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.selection_mode,l=i.multi_id_selection,h=i.entity_names;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:!0,children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Choose!",buttons:(0,e.createComponentVNode)(2,t.Button,{selected:c,fill:!0,content:"Multi-Selection",onClick:function(){function p(){return d("change_mode_multi")}return p}()}),children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:h.map(function(p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l.includes(p),onClick:function(){function v(){return d("select_entity",{id_selected:p})}return v}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:p})},p)})})})})})}return s}(),y=r.DisplayDetails=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.selection_mode,l=i.number_mob_selected,h=i.selected_id,p=i.selected_name,v=i.selected_type;return c?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Number of entities selected:",16)," ",l]}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Selected ID:",16)," ",h," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Name:",16)," ",p," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Type:",16)," ",v," ",(0,e.createVNode)(1,"br")]})}return s}(),k=r.ModeSelector=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.privacy_select,l=i.mode_select;return(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function h(){return d("change_mode_privacy")}return h}(),selected:c,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(c?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:c?"Currently: Subtle":"Currently: Loud"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function h(){return d("change_mode_narration")}return h}(),selected:l,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(l?"Click here to emote visibly.":"Click here to talk audiably."),content:l?"Currently: Emoting":"Currently: Talking"})})]})}return s}(),C=r.NarrationInput=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=(0,a.useLocalState)("narration",""),l=c[0],h=c[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Narration Text",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return d("narrate",{message:l})}return p}(),content:"Send Narration"}),children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{width:"85%",children:(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function p(v,b){return h(b)}return p}(),value:l||""})})})})}return s}()},37559:function(x,r,n){"use strict";r.__esModule=!0,r.ExonetNode=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.ExonetNode=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.allowPDAs,d=s.allowCommunicators,i=s.allowNewscasters,c=s.logs;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,content:"Power "+(m?"On":"Off"),onClick:function(){function l(){return C("toggle_power")}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){function l(){return C("toggle_PDA_port")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Communicators",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:d?"Open":"Closed",onClick:function(){function l(){return C("toggle_communicator_port")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,content:i?"Open":"Closed",onClick:function(){function l(){return C("toggle_newscaster_port")}return l}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Logging",children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:[c.map(function(l,h){return(0,e.createComponentVNode)(2,t.Flex.Item,{m:"2px",basis:"49%",grow:h%2,children:l},h)}),!c||c.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No logs found."}):null]})})]})})}return V}()},93685:function(x,r,n){"use strict";r.__esModule=!0,r.Materials=r.ExosuitFabricator=void 0;var e=n(58734),a=n(59641),t=n(45445),o=n(54777),f=n(420),V=n(35239),y=n(47007),k=n(40946),C=n(5339),s;function m(D,j){var _=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(_)return(_=_.call(D)).next.bind(_);if(Array.isArray(D)||(_=u(D))||j&&D&&typeof D.length=="number"){_&&(D=_);var z=0;return function(){return z>=D.length?{done:!0}:{done:!1,value:D[z++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(D,j){if(D){if(typeof D=="string")return d(D,j);var _=Object.prototype.toString.call(D).slice(8,-1);if(_==="Object"&&D.constructor&&(_=D.constructor.name),_==="Map"||_==="Set")return Array.from(D);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return d(D,j)}}function d(D,j){(j==null||j>D.length)&&(j=D.length);for(var _=0,z=new Array(j);_z?{color:h,deficit:j-z}:_>z?{color:l,deficit:j}:j+_>z?{color:l,deficit:j+_-z}:{color:c,deficit:0}},g=function(j,_,z){var H={textColor:c};return Object.keys(z.cost).forEach(function(Q){H[Q]=b(z.cost[Q],_[Q],j[Q]),H[Q].color>H.textColor&&(H.textColor=H[Q].color)}),H},N=function(j,_){var z={},H={},Q={},Y={};return _.forEach(function(X,$){Y[$]=c,Object.keys(X.cost).forEach(function(G){z[G]=z[G]||0,Q[G]=Q[G]||0,H[G]=b(X.cost[G],z[G],j[G]),H[G].color!==c?Y[$]1&&X0});return $.length===0?(0,e.createComponentVNode)(2,V.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,V.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:$.map(function(G){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,w,{name:G.name,amount:G.amount,formatsi:!0}),!Y&&(0,e.createComponentVNode)(2,V.Box,{mt:1,style:{"text-align":"center"},children:(0,e.createComponentVNode)(2,L,{material:G})})]},G.name)||null})})}return D}(),w=function(j){var _=j.name,z=j.amount,H=j.formatsi,Q=j.formatmoney,Y=j.color,X=j.style,$="0";return z<1&&z>0?$=(0,C.toFixed)(z,2):H?$=(0,f.formatSiUnit)(z,0):Q?$=(0,f.formatMoney)(z):$=z,(0,e.createComponentVNode)(2,V.Flex,{direction:"column",align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Tooltip,{position:"bottom",content:(0,k.toTitleCase)(_),children:(0,e.createComponentVNode)(2,V.Box,{className:(0,a.classes)(["sheetmaterials32x32",i[_]]),position:"relative",style:X})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{textColor:Y,style:{"text-align":"center"},children:$})})]})},T=function(j){var _=(0,o.useBackend)(),z=_.data,H=z.partSets||[],Q=z.buildableParts||{},Y=(0,o.useSharedState)("part_tab",H.length?Q[0]:""),X=Y[0],$=Y[1];return(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:H.map(function(G){return!!Q[G]&&(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:G===X,disabled:!Q[G],onClick:function(){function Z(){return $(G)}return Z}(),children:G},G)})})},E=function(j){var _=(0,o.useBackend)(),z=_.data,H=function(ie){for(var Ve=m(ie),ke;!(ke=Ve()).done;){var Be=ke.value;if(Y[Be])return Be}return null},Q=z.partSets||[],Y=z.buildableParts||[],X=j.queueMaterials,$=j.materials,G=(0,o.useSharedState)("part_tab",H(Q)),Z=G[0],te=G[1],q=(0,o.useSharedState)("search_text",""),me=q[0],pe=q[1];if(!Z||!Y[Z]){var Ne=H(Q);if(Ne)te(Ne);else return}var le;return me?(le=[],B(me,Y).forEach(function(re){re.format=g($,X,re),le.push(re)})):(le={Parts:[]},Y[Z].forEach(function(re){if(re.format=g($,X,re),!re.subCategory){le.Parts.push(re);return}re.subCategory in le||(le[re.subCategory]=[]),le[re.subCategory].push(re)})),(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Section,{children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{mr:1,children:(0,e.createComponentVNode)(2,V.Icon,{name:"search"})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function re(ie,Ve){return pe(Ve)}return re}()})})]})}),!!me&&(0,e.createComponentVNode)(2,A,{name:"Search Results",parts:le,forceShow:!0,placeholder:"No matching results..."})||Object.keys(le).map(function(re){return(0,e.createComponentVNode)(2,A,{name:re,parts:le[re]},re)})],0)},A=function(j){var _=(0,o.useBackend)(),z=_.act,H=_.data,Q=H.buildingPart,Y=j.parts,X=j.name,$=j.forceShow,G=j.placeholder,Z=(0,o.useSharedState)("display_mats",!1),te=Z[0];return(!!Y.length||$)&&(0,e.createComponentVNode)(2,V.Section,{title:X,buttons:(0,e.createComponentVNode)(2,V.Button,{disabled:!Y.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){function q(){return z("add_queue_set",{part_list:Y.map(function(me){return me.id})})}return q}()}),children:[!Y.length&&G,Y.map(function(q){return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:Q||q.format.textColor===h,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){function me(){return z("build_part",{id:q.id})}return me}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){function me(){return z("add_queue_part",{id:q.id})}return me}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:p[q.format.textColor],children:q.name})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+q.printTime+"s. "+(q.desc||""),tooltipPosition:"left"})})]}),te&&(0,e.createComponentVNode)(2,V.Flex,{mb:2,children:Object.keys(q.cost).map(function(me){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"50px",color:p[q.format[me].color],children:(0,e.createComponentVNode)(2,w,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:me,amount:q.cost[me]})},me)})})],0,q.name)})]})},M=function(j){var _=(0,o.useBackend)(),z=_.act,H=_.data,Q=H.isProcessingQueue,Y=H.queue||[],X=j.queueMaterials,$=j.missingMaterials,G=j.textColors;return(0,e.createComponentVNode)(2,V.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,V.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Confirm,{disabled:!Y.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){function Z(){return z("clear_queue")}return Z}()}),!!Q&&(0,e.createComponentVNode)(2,V.Button,{disabled:!Y.length,content:"Stop",icon:"stop",onClick:function(){function Z(){return z("stop_queue")}return Z}()})||(0,e.createComponentVNode)(2,V.Button,{disabled:!Y.length,content:"Build Queue",icon:"play",onClick:function(){function Z(){return z("build_queue")}return Z}()})],0),children:(0,e.createComponentVNode)(2,V.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,F)}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,O,{textColors:G})})]})})}),!!Y.length&&(0,e.createComponentVNode)(2,V.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,V.Section,{title:"Material Cost",children:(0,e.createComponentVNode)(2,R,{queueMaterials:X,missingMaterials:$})})})]})},R=function(j){var _=j.queueMaterials,z=j.missingMaterials;return(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:Object.keys(_).map(function(H){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"12%",children:[(0,e.createComponentVNode)(2,w,{formatmoney:!0,name:H,amount:_[H]}),!!z[H]&&(0,e.createComponentVNode)(2,V.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,f.formatMoney)(z[H])})]},H)})})},O=function(j){var _=(0,o.useBackend)(),z=_.act,H=_.data,Q=j.textColors,Y=H.queue||[];return Y.length?Y.map(function(X,$){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.createComponentVNode)(2,V.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,V.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){function G(){return z("del_queue_part",{index:$+1})}return G}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:p[Q[$]],children:X.name})})]})},X.name)}):(0,e.createFragment)([(0,e.createTextVNode)("No parts in queue.")],4)},F=function(j){var _=(0,o.useBackend)(),z=_.data,H=z.buildingPart,Q=z.storedPart;if(Q){var Y=Q.name;return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:Y}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(H){var X=H.name,$=H.duration,G=H.printTime,Z=Math.ceil($/10);return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:G,value:$,children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:X}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:Z>=0&&Z+"s"||"Dispensing..."})]})})})}}},63313:function(x,r,n){"use strict";r.__esModule=!0,r.Farmbot=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Farmbot=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.locked,d=s.tank,i=s.tankVolume,c=s.tankMaxVolume,l=s.waters_trays,h=s.refills_water,p=s.uproots_weeds,v=s.replaces_nutriment,b=s.collects_produce,g=s.removes_dead;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:540,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,onClick:function(){function N(){return C("power")}return N}(),children:m?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water Tank",children:d&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:c,children:[i," / ",c]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No water tank detected."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Watering Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){function N(){return C("water")}return N}(),children:l?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Refill watertank",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function N(){return C("refill")}return N}(),children:h?"Yes":"No"})})]})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Weeding controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Weed plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function N(){return C("weed")}return N}(),children:p?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Nutriment controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Replace fertilizer",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return C("replacenutri")}return N}(),children:v?"Yes":"No"})})})})]})||null]})})}return V}()},54724:function(x,r,n){"use strict";r.__esModule=!0,r.FaxContent=r.Fax=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(49264),V=n(7117),y=r.Fax=function(){function m(u){var d=(0,a.useBackend)(),i=d.data,c=i.authenticated,l=i.copyItem,h=340;return l&&(h=358),c?(0,e.createComponentVNode)(2,o.Window,{width:600,height:h,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f.LoginInfo),(0,e.createComponentVNode)(2,k)]})}):(0,e.createComponentVNode)(2,o.Window,{width:600,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,V.LoginScreen,{machineType:"Fax"})]})})}return m}(),k=r.FaxContent=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.bossName,h=c.copyItem,p=c.cooldown,v=c.destination,b=c.adminDepartments,g=new Set(b);return(0,e.createComponentVNode)(2,t.Section,{children:[!!p&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),h&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Currently Sending",children:[h," ",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return i("rename")}return N}(),tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"map-marker-alt",content:v,onClick:function(){function N(){return i("dept")}return N}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function N(){return i("send")}return N}(),content:"Send",fluid:!0})]})||(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Please insert item to transmit."}),(0,e.createComponentVNode)(2,s)]})}return m}(),C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.copyItem;return l?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",onClick:function(){function h(){return i("remove")}return h}(),content:"Remove Item"})}):null},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.adminDepartments,h=c.destination,p=c.copyItem,v=new Set(l),b="1rem";return p&&(b="1.5rem"),!p||p&&v.has(h)?(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:[(0,e.createVNode)(1,"b",null,"Or submit an automated staff request.",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("It also works without requiring a written request to be composed.")],4),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function g(){return i("send_automated_staff_request")}return g}(),content:"Send Automated Staff Request",fluid:!0})})]}):null}},10411:function(x,r,n){"use strict";r.__esModule=!0,r.FileCabinet=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.FileCabinet=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.contents,d=(0,a.sortBy)(function(i){return i.name})(u||[]);return(0,e.createComponentVNode)(2,f.Window,{width:350,height:300,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:d.map(function(i){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"file",content:i.name,onClick:function(){function c(){return s("retrieve",{ref:i.ref})}return c}()},i.ref)})})})})}return y}()},52927:function(x,r,n){"use strict";r.__esModule=!0,r.Floorbot=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Floorbot=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.open,d=s.locked,i=s.vocal,c=s.amount,l=s.possible_bmode,h=s.improvefloors,p=s.eattiles,v=s.maketiles,b=s.bmode;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,onClick:function(){function g(){return C("start")}return g}(),children:m?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"toggle-on":"toggle-off",selected:i,onClick:function(){function g(){return C("vocal")}return g}(),children:i?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Improves Floors",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return C("improve")}return g}(),children:h?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Finds Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return C("tiles")}return g}(),children:p?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return C("make")}return g}(),children:v?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bridge Mode",children:(0,e.createComponentVNode)(2,t.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:l,onSelected:function(){function g(N){return C("bridgemode",{dir:N})}return g}()})})]})})||null]})})}return V}()},30752:function(x,r,n){"use strict";r.__esModule=!0,r.GasPump=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.GasPump=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.pressure_set,d=s.last_flow_rate,i=s.last_power_draw,c=s.max_power_draw;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d/10})," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Load",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:c,color:i=100?l="Running":!m&&u>0&&(l="DISCHARGING"),(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:m?"This will disable gravity!":"This will enable gravity!",onClick:function(){function h(){return C("gentoggle")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Breaker Setting",children:m?"Generator Enabled":"Generator Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",children:["Generator ",l]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Status",children:[u,"%"]})]})})})})}return V}()},77324:function(x,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.GuestPass=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.access,d=m.area,i=m.giver,c=m.giveName,l=m.reason,h=m.duration,p=m.mode,v=m.log,b=m.uid;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:p===1&&(0,e.createComponentVNode)(2,o.Section,{title:"Activity Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){function g(){return s("mode",{mode:0})}return g}()}),children:[(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("print")}return g}(),fluid:!0,mb:1}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Logs",children:v.length&&v.map(function(g){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}},g)})||(0,e.createComponentVNode)(2,o.Box,{children:"No logs."})})]})||(0,e.createComponentVNode)(2,o.Section,{title:"Guest pass terminal #"+b,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",onClick:function(){function g(){return s("mode",{mode:1})}return g}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issuing ID",children:(0,e.createComponentVNode)(2,o.Button,{content:i||"Insert ID",onClick:function(){function g(){return s("id")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issued To",children:(0,e.createComponentVNode)(2,o.Button,{content:c,onClick:function(){function g(){return s("giv_name")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,o.Button,{content:l,onClick:function(){function g(){return s("reason")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Duration (minutes)",children:(0,e.createComponentVNode)(2,o.Button,{content:h,onClick:function(){function g(){return s("duration")}return g}()})})]}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){function g(){return s("issue")}return g}()}),(0,e.createComponentVNode)(2,o.Section,{title:"Access",level:2,children:(0,a.sortBy)(function(g){return g.area_name})(d).map(function(g){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:g.on,content:g.area_name,onClick:function(){function N(){return s("access",{access:g.area})}return N}()},g.area)})})]})})})}return y}()},29498:function(x,r,n){"use strict";r.__esModule=!0,r.GyrotronControlContent=r.GyrotronControl=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.GyrotronControl=function(){function y(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.GyrotronControlContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.gyros;return(0,e.createComponentVNode)(2,o.Section,{title:"Gyrotrons",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function d(){return s("set_tag")}return d}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fire Delay"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Strength"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.active?"Online":"Offline",selected:d.active,disabled:!d.deployed,onClick:function(){function i(){return s("toggle_active",{gyro:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!d.active&&"yellow",value:d.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(){function i(c,l){return s("set_rate",{gyro:d.ref,rate:l})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!d.active&&"yellow",value:d.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(){function i(c,l){return s("set_str",{gyro:d.ref,str:l})}return i}()})})]},d.name)})]})})}return y}()},35661:function(x,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Holodeck=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.supportedPrograms,u=s.restrictedPrograms,d=s.currentProgram,i=s.isSilicon,c=s.safetyDisabled,l=s.emagged,h=s.gravity,p=m;return c&&(p=p.concat(u)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:610,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{color:u.indexOf(v)!==-1?"bad":null,icon:"eye",content:v,selected:d===v,fluid:!0,onClick:function(){function b(){return C("program",{program:v})}return b}()},v)})}),!!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Override",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",fluid:!0,disabled:l,color:c?"good":"bad",onClick:function(){function v(){return C("AIoverride")}return v}(),children:[!!l&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"ENABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{icon:"user-astronaut",selected:h,onClick:function(){function v(){return C("gravity")}return v}(),children:h?"Enabled":"Disabled"})})]})})]})})}return V}()},20726:function(x,r,n){"use strict";r.__esModule=!0,r.ICAssembly=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.ICAssembly=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.total_parts,c=d.max_components,l=d.total_complexity,h=d.max_complexity,p=d.battery_charge,v=d.battery_max,b=d.net_power,g=d.unremovable_circuits,N=d.removable_circuits;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Space in Assembly",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:i/c,maxValue:1,children:[i," / ",c," (",(0,a.round)(i/c*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Complexity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:l/h,maxValue:1,children:[l," / ",h," (",(0,a.round)(l/h*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:p&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:p/v,maxValue:1,children:[p," / ",v," (",(0,a.round)(p/v*100,1),"%)"]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No cell detected."})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function B(S){return"-"+(0,V.formatPower)(Math.abs(S))+"/s"}return B}()})})]})}),g.length&&(0,e.createComponentVNode)(2,k,{title:"Built-in Components",circuits:g})||null,N.length&&(0,e.createComponentVNode)(2,k,{title:"Removable Components",circuits:N})||null]})})}return C}(),k=function(s){var m=(0,t.useBackend)(),u=m.act,d=s.title,i=s.circuits;return(0,e.createComponentVNode)(2,o.Section,{title:d,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:i.map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return u("open_circuit",{ref:c.ref})}return l}(),children:"View"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return u("rename_circuit",{ref:c.ref})}return l}(),children:"Rename"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return u("scan_circuit",{ref:c.ref})}return l}(),children:"Debugger Scan"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return u("remove_circuit",{ref:c.ref})}return l}(),children:"Remove"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return u("bottom_circuit",{ref:c.ref})}return l}(),children:"Move to Bottom"})]},c.ref)})})})}},96372:function(x,r,n){"use strict";r.__esModule=!0,r.ICCircuit=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=n(420),y=r.ICCircuit=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.name,l=i.desc,h=i.displayed_name,p=i.removable,v=i.complexity,b=i.power_draw_idle,g=i.power_draw_per_use,N=i.extended_desc,B=i.inputs,S=i.outputs,L=i.activators;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,title:h,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function I(){return d("rename")}return I}(),children:"Rename"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function I(){return d("scan")}return I}(),children:"Scan with Device"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function I(){return d("remove")}return I}(),children:"Remove"})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:v}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,V.formatPower)(b)})||null,g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Active)",children:(0,V.formatPower)(g)})||null]}),N]}),(0,e.createComponentVNode)(2,t.Section,{title:"Circuit",children:[(0,e.createComponentVNode)(2,t.Flex,{textAlign:"center",spacing:1,children:[B.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Inputs",children:(0,e.createComponentVNode)(2,k,{list:B})})})||null,(0,e.createComponentVNode)(2,t.Flex.Item,{basis:B.length&&S.length?"33%":B.length||S.length?"45%":"100%",children:(0,e.createComponentVNode)(2,t.Section,{title:h,mb:1,children:(0,e.createComponentVNode)(2,t.Box,{children:l})})}),S.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Outputs",children:(0,e.createComponentVNode)(2,k,{list:S})})})||null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Triggers",children:L.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return d("pin_name",{pin:I.ref})}return w}(),children:I.pulse_out?"":""}),(0,e.createComponentVNode)(2,C,{pin:I})]},I.name)})})]})]})})}return s}(),k=function(m){var u=(0,a.useBackend)(),d=u.act,i=m.list;return i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return d("pin_name",{pin:c.ref})}return l}(),children:[(0,f.decodeHtmlEntities)(c.type),": ",c.name]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return d("pin_data",{pin:c.ref})}return l}(),children:c.data}),(0,e.createComponentVNode)(2,C,{pin:c})]},c.ref)})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=m.pin;return i.linked.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return d("pin_unwire",{pin:i.ref,link:c.ref})}return l}(),children:c.name}),"@\xA0",(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return d("examine",{ref:c.holder_ref})}return l}(),children:c.holder_name})]},c.ref)})}},16627:function(x,r,n){"use strict";r.__esModule=!0,r.ICDetailer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=r.ICDetailer=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.detail_color,d=m.color_list;return(0,e.createComponentVNode)(2,o.Window,{width:420,height:254,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:Object.keys(d).map(function(i,c){return(0,e.createComponentVNode)(2,t.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,f.toTitleCase)(i),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){function l(){return s("change_color",{color:i})}return l}(),style:d[i]===u?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:d[i]},i)})})})})}return y}()},85701:function(x,r,n){"use strict";r.__esModule=!0,r.ICPrinter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45445),V=r.ICPrinter=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.metal,c=d.max_metal,l=d.metal_per_sheet,h=d.debug,p=d.upgraded,v=d.can_clone,b=d.assembly_to_clone,g=d.categories;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:630,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Metal",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:c,children:[i/l," / ",c/l," sheets"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuits Available",children:p?"Advanced":"Regular"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Assembly Cloning",children:v?"Available":"Unavailable"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.createComponentVNode)(2,k)]})})}return C}(),y=function(s,m){return!(!s.can_build||s.cost>m.metal)},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.categories,c=d.debug,l=(0,a.useSharedState)("categoryTarget",null),h=l[0],p=l[1],v=(0,f.filter)(function(b){return b.name===h})(i)[0];return(0,e.createComponentVNode)(2,t.Section,{title:"Circuits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:2,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:(0,f.sortBy)(function(b){return b.name})(i).map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===b.name,onClick:function(){function g(){return p(b.name)}return g}(),children:b.name},b.name)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,f.sortBy)(function(b){return b.name})(v.items).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!y(b,d),icon:"print",onClick:function(){function g(){return u("build",{build:b.path})}return g}(),children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},40806:function(x,r,n){"use strict";r.__esModule=!0,r.IDCard=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=n(60918),V=r.IDCard=function(){function y(k){var C=(0,t.useBackend)(),s=C.data,m=s.registered_name,u=s.sex,d=s.species,i=s.age,c=s.assignment,l=s.fingerprint_hash,h=s.blood_type,p=s.dna_hash,v=s.photo_front,b=[{name:"Sex",val:u},{name:"Species",val:d},{name:"Age",val:i},{name:"Blood Type",val:h},{name:"Fingerprint",val:l},{name:"DNA Hash",val:p}];return(0,e.createComponentVNode)(2,o.Window,{width:470,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{basis:"25%",textAlign:"left",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:v&&(0,e.createVNode)(1,"img",null,null,1,{src:v.substr(1,v.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.createComponentVNode)(2,a.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,children:(0,e.createComponentVNode)(2,a.LabeledList,{children:b.map(function(g){return(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:g.name,children:g.val},g.name)})})})]}),(0,e.createComponentVNode)(2,a.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:m})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.RankIcon,{rank:c})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:c})})]})]})})})}return y}()},99728:function(x,r,n){"use strict";r.__esModule=!0,r.IdentificationComputerRegions=r.IdentificationComputerPrinting=r.IdentificationComputerContent=r.IdentificationComputerAccessModification=r.IdentificationComputer=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=n(40946),y=n(82034),k=r.IdentificationComputer=function(){function d(){return(0,e.createComponentVNode)(2,f.Window,{width:600,height:700,children:(0,e.createComponentVNode)(2,f.Window.Content,{resizable:!0,children:(0,e.createComponentVNode)(2,C)})})}return d}(),C=r.IdentificationComputerContent=function(){function d(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.ntos,v=h.mode,b=h.has_modify,g=h.printing,N=(0,e.createComponentVNode)(2,m,{ntos:p});return p&&!h.have_id_slot?N=(0,e.createComponentVNode)(2,y.CrewManifestContent):g?N=(0,e.createComponentVNode)(2,s):v===1&&(N=(0,e.createComponentVNode)(2,y.CrewManifestContent)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(!p||!!h.have_id_slot)&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:v===0,onClick:function(){function B(){return l("mode",{mode_target:0})}return B}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:v===1,onClick:function(){function B(){return l("mode",{mode_target:1})}return B}(),children:"Crew Manifest"}),!p||!!h.have_printer&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{float:"right",icon:"print",onClick:function(){function B(){return l("print")}return B}(),disabled:!v&&!b,color:"",children:"Print"})]}),N],0)}return d}(),s=r.IdentificationComputerPrinting=function(){function d(i){return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",children:"Please wait..."})}return d}(),m=r.IdentificationComputerAccessModification=function(){function d(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.ntos,v=h.station_name,b=h.target_name,g=h.target_owner,N=h.scan_name,B=h.authenticated,S=h.has_modify,L=h.account_number,I=h.centcom_access,w=h.all_centcom_access,T=h.regions,E=h.id_rank,A=h.departments;return(0,e.createComponentVNode)(2,o.Section,{title:"Access Modification",children:[!B&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:b,onClick:function(){function M(){return l("modify")}return M}()})}),!p&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authorized Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:N,onClick:function(){function M(){return l("scan")}return M}()})})]}),!!B&&!!S&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Details",level:2,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Registered Name",children:(0,e.createComponentVNode)(2,o.Input,{value:g,fluid:!0,onInput:function(){function M(R,O){return l("reg",{reg:O})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,o.Input,{value:L,fluid:!0,onInput:function(){function M(R,O){return l("account",{account:O})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Dismissals",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+g,confirmContent:"You are dismissing "+g+", confirm?",onClick:function(){function M(){return l("terminate")}return M}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Assignment",level:2,children:(0,e.createComponentVNode)(2,o.Table,{children:[A.map(function(M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:M.department_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Button,{selected:R.job===E,onClick:function(){function O(){return l("assign",{assign_target:R.job})}return O}(),children:(0,V.decodeHtmlEntities)(R.display_name)},R.job)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:-1,children:"\xA0"})," "],0,M.department_name)}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function M(){return l("assign",{assign_target:"Custom"})}return M}(),children:"Custom"})})]})]})}),!!I&&(0,e.createComponentVNode)(2,o.Section,{title:"Central Command",level:2,children:w.map(function(M){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:M.allowed,onClick:function(){function R(){return l("access",{access_target:M.ref,allowed:M.allowed})}return R}(),children:(0,V.decodeHtmlEntities)(M.desc)})},M.ref)})})||(0,e.createComponentVNode)(2,o.Section,{title:v,level:2,children:(0,e.createComponentVNode)(2,u,{actName:"access"})})],0)]})}return d}(),u=r.IdentificationComputerRegions=function(){function d(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.actName,v=h.regions;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",spacing:1,children:(0,a.sortBy)(function(b){return b.name})(v).map(function(b){return(0,e.createComponentVNode)(2,o.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,e.createComponentVNode)(2,o.Section,{title:b.name,height:"100%",children:(0,a.sortBy)(function(g){return g.desc})(b.accesses).map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:g.allowed,onClick:function(){function N(){return l(p,{access_target:g.ref,allowed:g.allowed})}return N}(),children:(0,V.decodeHtmlEntities)(g.desc)})},g.ref)})})},b.name)})})}return d}()},16291:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanel=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.InventoryPanel=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.slots,u=s.internalsValid;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m&&m.length&&m.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:d.item?"hand-paper":"gift",onClick:function(){function i(){return C(d.act)}return i}(),children:d.item||"Nothing"})},d.name)})})}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:u&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function d(){return C("internals")}return d}(),children:"Set Internals"})||null})||null]})})}return V}()},28487:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanelHuman=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.InventoryPanelHuman=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.slots,u=s.specialSlots,d=s.internals,i=s.internalsValid,c=s.sensors,l=s.handcuffed,h=s.handcuffedParams,p=s.legcuffed,v=s.legcuffedParams,b=s.accessory;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&m.length&&m.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function N(){return C(g.act,g.params)}return N}(),children:g.item||"Nothing"})},g.name)}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),u&&u.length&&u.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function N(){return C(g.act,g.params)}return N}(),children:g.item||"Nothing"})},g.name)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",onClick:function(){function g(){return C("targetSlot",{slot:"splints"})}return g}(),children:"Remove Splints"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-paper",onClick:function(){function g(){return C("targetSlot",{slot:"pockets"})}return g}(),children:"Empty Pockets"}),i&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function g(){return C("targetSlot",{slot:"internals"})}return g}(),children:"Set Internals"})||null,c&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book-medical",onClick:function(){function g(){return C("targetSlot",{slot:"sensors"})}return g}(),children:"Set Sensors"})||null,l&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return C("targetSlot",h)}return g}(),children:"Handcuffed"})||null,p&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return C("targetSlot",v)}return g}(),children:"Legcuffed"})||null,b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return C("targetSlot",{slot:"tie"})}return g}(),children:"Remove Accessory"})||null]})]})})}return V}()},34038:function(x,r,n){"use strict";r.__esModule=!0,r.IsolationCentrifuge=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.IsolationCentrifuge=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.busy,u=s.antibodies,d=s.pathogens,i=s.is_antibody_sample,c=s.sample_inserted,l=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No vial detected."});return c&&(!u&&!d?l=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No antibodies or viral strains detected."}):l=(0,e.createFragment)([u?(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",children:u}):null,d.length?(0,e.createComponentVNode)(2,t.Section,{title:"Pathogens",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.name,children:h.spread_type},h.name)})})}):null],0)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m?(0,e.createComponentVNode)(2,t.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:m}),2)}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:i?"Antibody Sample":"Blood Sample",children:[(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"print",content:"Print",disabled:!u&&!d.length,onClick:function(){function h(){return C("print")}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){function h(){return C("sample")}return h}()})})]}),l]}),u&&!i||d.length?(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u&&!i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Antibodies",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:u,onClick:function(){function h(){return C("antibody")}return h}()})}):null,d.length?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Strain",children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:h.name,onClick:function(){function p(){return C("isolate",{isolate:h.reference})}return p}()},h.name)})}):null]})}):null],0)})})}return V}()},68767:function(x,r,n){"use strict";r.__esModule=!0,r.JanitorCart=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.JanitorCart=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.mybag,i=u.mybucket,c=u.mymop,l=u.myspray,h=u.myreplacer,p=u.signs,v=u.icons;return(0,e.createComponentVNode)(2,o.Window,{width:210,height:180,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:d||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){function b(){return m("bag")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"mybag"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:i||"Bucket Slot",tooltipPosition:"bottom",color:i?"grey":"transparent",style:{border:i?null:"2px solid grey"},onClick:function(){function b(){return m("bucket")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"mybucket"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){function b(){return m("mop")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"mymop"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:l||"Spray Slot",tooltipPosition:"top-end",color:l?"grey":"transparent",style:{border:l?null:"2px solid grey"},onClick:function(){function b(){return m("spray")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"myspray"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Light Replacer Slot",tooltipPosition:"top",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){function b(){return m("replacer")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"myreplacer"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Signs Slot",tooltipPosition:"top-start",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){function b(){return m("sign")}return b}(),children:(0,e.createComponentVNode)(2,y,{iconkey:"signs"})})]})})}return k}(),V={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},y=function(C){var s=(0,a.useBackend)(),m=s.data,u=C.iconkey,d=m.icons;return u in d?(0,e.createVNode)(1,"img",null,null,1,{src:d[u].substr(1,d[u].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.createComponentVNode)(2,t.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:V[u]})}},71285:function(x,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.Jukebox=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.playing,d=m.loop_mode,i=m.volume,c=m.current_track_ref,l=m.current_track,h=m.current_genre,p=m.percent,v=m.tracks,b=v.length&&v.reduce(function(N,B){var S=B.genre||"Uncategorized";return N[S]||(N[S]=[]),N[S].push(B),N},{}),g=u&&(h||"Uncategorized");return(0,e.createComponentVNode)(2,f.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Currently Playing",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:u&&l&&(0,e.createComponentVNode)(2,o.Box,{children:[l.title," by ",l.artist||"Unkown"]})||(0,e.createComponentVNode)(2,o.Box,{children:"Stopped"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",disabled:u,onClick:function(){function N(){return s("play")}return N}(),children:"Play"}),(0,e.createComponentVNode)(2,o.Button,{icon:"stop",disabled:!u,onClick:function(){function N(){return s("stop")}return N}(),children:"Stop"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Loop Mode",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",onClick:function(){function N(){return s("loopmode",{loopmode:1})}return N}(),selected:d===1,children:"Next"}),(0,e.createComponentVNode)(2,o.Button,{icon:"random",onClick:function(){function N(){return s("loopmode",{loopmode:2})}return N}(),selected:d===2,children:"Shuffle"}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",onClick:function(){function N(){return s("loopmode",{loopmode:3})}return N}(),selected:d===3,children:"Repeat"}),(0,e.createComponentVNode)(2,o.Button,{icon:"step-forward",onClick:function(){function N(){return s("loopmode",{loopmode:4})}return N}(),selected:d===4,children:"Once"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:p,maxValue:1,color:"good"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:0,step:1,value:i*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(){function N(B){return(0,a.round)(B,1)+"%"}return N}(),onChange:function(){function N(B,S){return s("volume",{val:(0,a.round)(S/100,2)})}return N}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Available Tracks",children:v.length&&Object.keys(b).sort().map(function(N){return(0,e.createComponentVNode)(2,o.Collapsible,{title:N,color:g===N?"green":"default",child_mt:0,children:(0,e.createVNode)(1,"div",null,b[N].map(function(B){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"play",selected:c===B.ref,onClick:function(){function S(){return s("change_track",{change_track:B.ref})}return S}(),children:B.title},B.ref)}),0,{style:{"margin-left":"1em"}})},N)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}return y}()},88427:function(x,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=["laws","title","noButtons"];function V(u,d){if(u==null)return{};var i={},c=Object.keys(u),l,h;for(h=0;h=0)&&(i[l]=u[l]);return i}var y=r.LawManager=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.isSlaved;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[h&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Law-synced to ",h]})||null,(0,e.createComponentVNode)(2,k)]})})}return u}(),k=function(d){var i=(0,a.useSharedState)("lawsTabIndex",0),c=i[0],l=i[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function h(){return l(0)}return h}(),children:"Law Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function h(){return l(1)}return h}(),children:"Law Sets"})]}),c===0&&(0,e.createComponentVNode)(2,C)||null,c===1&&(0,e.createComponentVNode)(2,m)||null],0)},C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.ion_law_nr,p=l.ion_law,v=l.zeroth_law,b=l.inherent_law,g=l.supplied_law,N=l.supplied_law_position,B=l.zeroth_laws,S=l.has_zeroth_laws,L=l.ion_laws,I=l.has_ion_laws,w=l.inherent_laws,T=l.has_inherent_laws,E=l.supplied_laws,A=l.has_supplied_laws,M=l.isAI,R=l.isMalf,O=l.isAdmin,F=l.channel,D=l.channels,j=B.map(function(_){return _.zero=!0,_}).concat(w);return(0,e.createComponentVNode)(2,t.Section,{children:[I&&(0,e.createComponentVNode)(2,s,{laws:L,title:h+" Laws:",mt:-2})||null,(S||T)&&(0,e.createComponentVNode)(2,s,{laws:j,title:"Inherent Laws",mt:-2})||null,A&&(0,e.createComponentVNode)(2,s,{laws:E,title:"Supplied Laws",mt:-2})||null,(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Controls",mt:-2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:D.map(function(_){return(0,e.createComponentVNode)(2,t.Button,{content:_.channel,selected:F===_.channel,onClick:function(){function z(){return c("law_channel",{law_channel:_.channel})}return z}()},_.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function _(){return c("state_laws")}return _}(),children:"State Laws"})}),M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",onClick:function(){function _(){return c("notify_laws")}return _}(),children:"Notify"})})||null]})}),R&&(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Add Laws",mt:-2,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Add"})]}),O&&!S&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:v,fluid:!0,onChange:function(){function _(z,H){return c("change_zeroth_law",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function _(){return c("add_zeroth_law")}return _}(),children:"Add"})})]})||null,(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:p,fluid:!0,onChange:function(){function _(z,H){return c("change_ion_law",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function _(){return c("add_ion_law")}return _}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:b,fluid:!0,onChange:function(){function _(z,H){return c("change_inherent_law",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function _(){return c("add_inherent_law")}return _}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:g,fluid:!0,onChange:function(){function _(z,H){return c("change_supplied_law",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function _(){return c("change_supplied_law_position")}return _}(),children:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function _(){return c("add_supplied_law")}return _}(),children:"Add"})})]})]})})||null]})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.isMalf,p=l.isAdmin,v=d.laws,b=d.title,g=d.noButtons,N=V(d,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({level:2,title:b},N,{children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"State"})||null,h&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),v.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[B.index,"."]}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:B.zero?"bad":null,children:B.law}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"volume-up",selected:B.state,onClick:function(){function S(){return c("state_law",{ref:B.ref,state_law:!B.state})}return S}(),children:B.state?"Yes":"No"})})||null,h&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!p,icon:"pen",onClick:function(){function S(){return c("edit_law",{edit_law:B.ref})}return S}(),children:"Edit"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!p,color:"bad",icon:"trash",onClick:function(){function S(){return c("delete_law",{delete_law:B.ref})}return S}(),children:"Delete"})})],4)||null]},B.index)})]})})))},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.isMalf,p=l.law_sets;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),p.length&&p.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!h,icon:"sync",onClick:function(){function b(){return c("transfer_laws",{transfer_laws:v.ref})}return b}(),children:"Load Laws"}),(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function b(){return c("state_law_set",{state_law_set:v.ref})}return b}(),children:"State Laws"})],4),children:[v.laws.has_ion_laws&&(0,e.createComponentVNode)(2,s,{noButtons:!0,laws:v.laws.ion_laws,title:v.laws.ion_law_nr+" Laws:"})||null,(v.laws.has_zeroth_laws||v.laws.has_inherent_laws)&&(0,e.createComponentVNode)(2,s,{noButtons:!0,laws:v.laws.zeroth_laws.concat(v.laws.inherent_laws),title:v.header})||null,v.laws.has_supplied_laws&&(0,e.createComponentVNode)(2,s,{noButtons:!0,laws:v.laws.supplied_laws,title:"Supplied Laws"})||null]},v.name)})||null],0)}},52689:function(x,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(58734),a=n(80132),t=n(77921),o=n(35239),f=n(54777),V=n(42678),y=n(47007),k=r.ListInputModal=function(){function m(u){var d=(0,f.useBackend)(),i=d.act,c=d.data,l=c.items,h=l===void 0?[]:l,p=c.message,v=p===void 0?"":p,b=c.init_value,g=c.large_buttons,N=c.timeout,B=c.title,S=(0,f.useLocalState)("selected",h.indexOf(b)),L=S[0],I=S[1],w=(0,f.useLocalState)("searchBarVisible",h.length>9),T=w[0],E=w[1],A=(0,f.useLocalState)("searchQuery",""),M=A[0],R=A[1],O=function(){function Y(X){var $=H.length-1;if(X===V.KEY_DOWN)if(L===null||L===$){var G;I(0),(G=document.getElementById("0"))==null||G.scrollIntoView()}else{var Z;I(L+1),(Z=document.getElementById((L+1).toString()))==null||Z.scrollIntoView()}else if(X===V.KEY_UP)if(L===null||L===0){var te;I($),(te=document.getElementById($.toString()))==null||te.scrollIntoView()}else{var q;I(L-1),(q=document.getElementById((L-1).toString()))==null||q.scrollIntoView()}}return Y}(),F=function(){function Y(X){X!==L&&I(X)}return Y}(),D=function(){function Y(){E(!1),E(!0)}return Y}(),j=function(){function Y(X){var $=String.fromCharCode(X),G=h.find(function(q){return q==null?void 0:q.toLowerCase().startsWith($==null?void 0:$.toLowerCase())});if(G){var Z,te=h.indexOf(G);I(te),(Z=document.getElementById(te.toString()))==null||Z.scrollIntoView()}}return Y}(),_=function(){function Y(X){var $;X!==M&&(R(X),I(0),($=document.getElementById("0"))==null||$.scrollIntoView())}return Y}(),z=function(){function Y(){E(!T),R("")}return Y}(),H=h.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(M.toLowerCase())}),Q=325+Math.ceil(v.length/3)+(g?5:0);return T||setTimeout(function(){var Y;return(Y=document.getElementById(L.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:Q,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function Y(X){var $=window.event?X.which:X.keyCode;($===V.KEY_DOWN||$===V.KEY_UP)&&(X.preventDefault(),O($)),$===V.KEY_ENTER&&(X.preventDefault(),i("submit",{entry:H[L]})),!T&&$>=V.KEY_A&&$<=V.KEY_Z&&(X.preventDefault(),j($)),$===V.KEY_ESCAPE&&(X.preventDefault(),i("cancel"))}return Y}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:T?"search":"font",selected:!0,tooltip:T?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function Y(){return z()}return Y}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C,{filteredItems:H,onClick:F,onFocusSearch:D,searchBarVisible:T,selected:L})}),T&&(0,e.createComponentVNode)(2,s,{filteredItems:H,onSearch:_,searchQuery:M,selected:L}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[L]})})]})})})]})}return m}(),C=function(u){var d=(0,f.useBackend)(),i=d.act,c=u.filteredItems,l=u.onClick,h=u.onFocusSearch,p=u.searchBarVisible,v=u.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(b,g){return(0,e.createComponentVNode)(2,o.Button,{color:"transparent",fluid:!0,id:g,onClick:function(){function N(){return l(g)}return N}(),onDblClick:function(){function N(B){B.preventDefault(),i("submit",{entry:c[v]})}return N}(),onKeyDown:function(){function N(B){var S=window.event?B.which:B.keyCode;p&&S>=V.KEY_A&&S<=V.KEY_Z&&(B.preventDefault(),h())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},s=function(u){var d=(0,f.useBackend)(),i=d.act,c=u.filteredItems,l=u.onSearch,h=u.searchQuery,p=u.selected;return(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){function v(b){b.preventDefault(),i("submit",{entry:c[p]})}return v}(),onInput:function(){function v(b,g){return l(g)}return v}(),placeholder:"Search...",value:h})}},65203:function(x,r,n){"use strict";r.__esModule=!0,r.LookingGlass=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.LookingGlass=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.supportedPrograms,u=s.currentProgram,d=s.immersion,i=s.gravity,c=Math.min(180+m.length*23,600);return(0,e.createComponentVNode)(2,o.Window,{width:300,height:c,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",selected:l===u,onClick:function(){function h(){return C("program",{program:l})}return h}(),children:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-astronaut",selected:i,onClick:function(){function l(){return C("gravity")}return l}(),children:i?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Full Immersion",children:(0,e.createComponentVNode)(2,t.Button,{mt:-1,fluid:!0,icon:"eye",selected:d,onClick:function(){function l(){return C("immersion")}return l}(),children:d?"Enabled":"Disabled"})})]})})]})})}return V}()},97275:function(x,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=r.MechaControlConsole=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.beacons,d=m.stored_data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d.length&&(0,e.createComponentVNode)(2,t.Modal,{children:(0,e.createComponentVNode)(2,t.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"window-close",onClick:function(){function i(){return s("clear_log")}return i}()}),children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["(",i.time,") (",i.year,")"]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,f.decodeHtmlEntities)(i.message)})]},i.time)})})})||null,u.length&&u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"comment",onClick:function(){function c(){return s("send_message",{mt:i.ref})}return c}(),children:"Message"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function c(){return s("get_log",{mt:i.ref})}return c}(),children:"View Log"}),(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function c(){return s("shock",{mt:i.ref})}return c}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[i.maxHealth*.75,1/0],average:[i.maxHealth*.5,i.maxHealth*.75],bad:[-1/0,i.maxHealth*.5]},value:i.health,maxValue:i.maxHealth})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:i.cell&&(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[i.cellMaxCharge*.75,1/0],average:[i.cellMaxCharge*.5,i.cellMaxCharge*.75],bad:[-1/0,i.cellMaxCharge*.5]},value:i.cellCharge,maxValue:i.cellMaxCharge})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Air Tank",children:[i.airtank,"kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:i.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,f.toTitleCase)(i.location)||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active Equipment",children:i.active||"None"}),i.cargoMax&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[i.cargoMax*.75,1/0],average:[i.cargoMax*.5,i.cargoMax*.75],good:[-1/0,i.cargoMax*.5]},value:i.cargoUsed,maxValue:i.cargoMax})})||null]})},i.name)})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mecha beacons found."})]})})}return y}()},31335:function(x,r,n){"use strict";r.__esModule=!0,r.Medbot=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Medbot=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.open,d=s.beaker,i=s.beaker_total,c=s.beaker_max,l=s.locked,h=s.heal_threshold,p=s.heal_threshold_max,v=s.injection_amount_min,b=s.injection_amount,g=s.injection_amount_max,N=s.use_beaker,B=s.declare_treatment,S=s.vocal;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,onClick:function(){function L(){return C("power")}return L}(),children:m?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"eject",onClick:function(){function L(){return C("eject")}return L}(),children:"Eject"}),children:d&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,maxValue:c,children:[i," / ",c]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavioral Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:0,maxValue:p,value:h,onDrag:function(){function L(I,w){return C("adj_threshold",{val:w})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Amount",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:v,maxValue:g,value:b,onDrag:function(){function L(I,w){return C("adj_inject",{val:w})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){function L(){return C("use_beaker")}return L}(),children:N?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Treatment Report",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return C("declaretreatment")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return C("togglevoice")}return L}(),children:S?"On":"Off"})})]})})||null]})})}return V}()},85300:function(x,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(57027),f=n(47007),V=n(49264),y=n(7117),k=n(43396),C={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},s=function(N){(0,o.modalOpen)("edit",{field:N.edit,value:N.value})},m=function(N){var B=(0,a.useBackend)(),S=B.act,L=N.args;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",title:L.name||"Virus",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",color:"red",onClick:function(){function I(){return S("modal_close")}return I}()}),children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread",children:[L.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible cure",children:L.antigen}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate of Progression",children:L.rate}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Antibiotic Resistance",children:[L.resistance,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species Affected",children:L.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.symptoms.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.stage+". "+I.name,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Strength:"})," ",I.strength,"\xA0",(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",I.aggressiveness]},I.stage)})})})]})})})},u=r.MedicalRecords=function(){function g(N){var B=(0,a.useBackend)(),S=B.data,L=S.authenticated,I=S.screen;if(!L)return(0,e.createComponentVNode)(2,f.Window,{width:800,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var w;return I===2?w=(0,e.createComponentVNode)(2,d):I===3?w=(0,e.createComponentVNode)(2,i):I===4?w=(0,e.createComponentVNode)(2,c):I===5?w=(0,e.createComponentVNode)(2,p):I===6&&(w=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,f.Window,{width:800,height:380,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:w})]})]})}return g}(),d=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function w(T,E){return S("search",{t1:E})}return w}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",content:w.id+": "+w.name,onClick:function(){function E(){return S("d_rec",{d_rec:w.ref})}return E}()},T)})})],4)},i=function(N){var B=(0,a.useBackend)(),S=B.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){function L(){return S("del_all")}return L}()})],0)},c=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.medical,w=L.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",level:2,mt:"-6px",children:(0,e.createComponentVNode)(2,l)}),(0,e.createComponentVNode)(2,t.Section,{title:"Medical Data",level:2,children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",level:2,children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Medical Record",color:"bad",onClick:function(){function T(){return S("del_r")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:w?"spinner":"print",disabled:w,iconSpin:!!w,content:"Print Entry",ml:"0.5rem",onClick:function(){function T(){return S("print_p")}return T}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function T(){return S("screen",{screen:2})}return T}()})]})],4)},l=function(N){var B=(0,a.useBackend)(),S=B.data,L=S.general;return!L||!L.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.fields.map(function(I,w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:I.value}),!!I.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function T(){return s(I)}return T}()})]},w)})})}),(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"right",textAlign:"right",children:!!L.has_photos&&L.photos.map(function(I,w){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:I.substr(1,I.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})})],4)},h=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.medical;return!I||!I.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Medical records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function w(){return S("new")}return w}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[w.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function E(){return s(w)}return E}()})]})},T)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",level:2,children:[I.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):I.comments.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:w.header}),(0,e.createVNode)(1,"br"),w.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function E(){return S("del_c",{del_c:T+1})}return E}()})]},T)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function w(){return(0,o.modalOpen)("add_c")}return w}()})]})],4)},p=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.virus;return I.sort(function(w,T){return w.name>T.name?1:-1}),I.map(function(w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"flask",content:w.name,mb:"0.5rem",onClick:function(){function E(){return S("vir",{vir:w.D})}return E}()}),(0,e.createVNode)(1,"br")],4,T)})},v=function(N){var B=(0,a.useBackend)(),S=B.data,L=S.medbots;return L.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"There are no Medbots."}):L.map(function(I,w){return(0,e.createComponentVNode)(2,t.Collapsible,{open:!0,title:I.name,children:(0,e.createComponentVNode)(2,t.Box,{px:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:[I.area||"Unknown"," (",I.x,", ",I.y,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:I.on?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Online"}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:I.use_beaker?"Reservoir: "+I.total_volume+"/"+I.maximum_volume:"Using internal synthesizer."})],4):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Offline"})})]})})},w)})},b=function(N){var B=(0,a.useBackend)(),S=B.act,L=B.data,I=L.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return S("screen",{screen:2})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===5,onClick:function(){function w(){return S("screen",{screen:5})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"database"}),"Virus Database"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===6,onClick:function(){function w(){return S("screen",{screen:6})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function w(){return S("screen",{screen:3})}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",m)},65655:function(x,r,n){"use strict";r.__esModule=!0,r.MentorTicketPanel=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f={open:"Open",resolved:"Resolved",unknown:"Unknown"},V=r.MentorTicketPanel=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.id,d=m.title,i=m.name,c=m.state,l=m.opened_at,h=m.closed_at,p=m.opened_at_date,v=m.closed_at_date,b=m.actions,g=m.log;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Ticket #"+u,buttons:(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",content:"Escalate",onClick:function(){function N(){return s("escalate")}return N}()})," ",(0,e.createComponentVNode)(2,t.Button,{content:"Legacy UI",onClick:function(){function N(){return s("legacy")}return N}()})]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mentor Help Ticket",children:["#",u,": ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",children:f[c]}),f[c]===f.open?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Opened At",children:[p," (",Math.round(l/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Closed At",children:[v," (",Math.round(h/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,t.Button,{content:"Reopen",onClick:function(){function N(){return s("reopen")}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:b}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Log",children:Object.keys(g).map(function(N){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g[N]}})})})]})})})})}return y}()},25028:function(x,r,n){"use strict";r.__esModule=!0,r.MessageMonitor=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=n(43396),y=n(77402),k=r.MessageMonitor=function(){function l(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.auth,N=b.linkedServer,B=b.message,S=b.hacking,L=b.emag,I;return S||L?I=(0,e.createComponentVNode)(2,C):g?N?I=(0,e.createComponentVNode)(2,m):I=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"}):I=(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,f.Window,{width:670,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice),I]})})}return l}(),C=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,y.FullscreenNotice,{title:"ERROR",children:g?(0,e.createComponentVNode)(2,o.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.createComponentVNode)(2,o.Box,{children:["01000010011100100111010101110100011001010010110",(0,e.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,e.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,e.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,e.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,e.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,e.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,e.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,e.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,e.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,e.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,e.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,e.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,e.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,e.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,e.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,e.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,e.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,e.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,e.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,e.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,e.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,e.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,e.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,e.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,e.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,e.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,e.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,e.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,e.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,e.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},s=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,y.FullscreenNotice,{title:"Welcome",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.createComponentVNode)(2,o.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(){function N(B,S){return v("auth",{key:S})}return N}()})]}),!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"terminal",content:"Hack",onClick:function(){function N(){return v("hack")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.linkedServer,N=(0,t.useLocalState)("tabIndex",0),B=N[0],S=N[1],L;return B===0?L=(0,e.createComponentVNode)(2,u):B===1?L=(0,e.createComponentVNode)(2,d,{logs:g.pda_msgs,pda:!0}):B===2?L=(0,e.createComponentVNode)(2,d,{logs:g.rc_msgs,rc:!0}):B===3?L=(0,e.createComponentVNode)(2,i):B===4&&(L=(0,e.createComponentVNode)(2,c)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===0,onClick:function(){function I(){return S(0)}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function I(){return S(1)}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function I(){return S(2)}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===3,onClick:function(){function I(){return S(3)}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===4,onClick:function(){function I(){return S(4)}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{color:"red",onClick:function(){function I(){return v("deauth")}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:L})],4)},u=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"link",content:"Server Link",onClick:function(){function N(){return v("find")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:"Server "+(g.active?"Enabled":"Disabled"),selected:g.active,onClick:function(){function N(){return v("active")}return N}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Server Status",children:(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Good"})})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){function N(){return v("pass")}return N}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},d=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=h.logs,N=h.pda,B=h.rc;return(0,e.createComponentVNode)(2,o.Section,{title:N?"PDA Logs":B?"Request Logs":"Logs",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){function S(){return v(N?"del_pda":"del_rc")}return S}()}),children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:g.map(function(S,L){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:L%2,children:(0,e.createComponentVNode)(2,o.Section,{title:S.sender+" -> "+S.recipient,buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function I(){return v("delete",{id:S.ref,type:B?"rc":"pda"})}return I}()}),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",children:S.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Verification",color:S.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.decodeHtmlEntities)(S.id_auth)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamp",children:S.stamp})]}):S.message})},S.ref)})})})},i=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.possibleRecipients,N=b.customsender,B=b.customrecepient,S=b.customjob,L=b.custommessage,I=Object.keys(g);return(0,e.createComponentVNode)(2,o.Section,{title:"Admin Messaging",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:N,onChange:function(){function w(T,E){return v("set_sender",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender's Job",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:S,onChange:function(){function w(T,E){return v("set_sender_job",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recipient",children:(0,e.createComponentVNode)(2,o.Dropdown,{value:B,options:I,width:"100%",mb:-.7,onSelected:function(){function w(T){return v("set_recipient",{val:g[T]})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,mb:.5,value:L,onChange:function(){function w(T,E){return v("set_message",{val:E})}return w}()})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){function w(){return v("send_message")}return w}()})]})},c=function(h){var p=(0,t.useBackend)(),v=p.act,b=p.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Spam Filtering",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:g.spamFilter.map(function(N){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.index,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){function B(){return v("deltoken",{deltoken:N.index})}return B}()}),children:N.token},N.index)})}),(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add New Entry",onClick:function(){function N(){return v("addtoken")}return N}()})]})}},34429:function(x,r,n){"use strict";r.__esModule=!0,r.Microwave=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Microwave=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.config,m=k.data,u=m.broken,d=m.operating,i=m.dirty,c=m.items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Bzzzzttttt!!"})})||d&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["Microwaving in progress!",(0,e.createVNode)(1,"br"),"Please wait...!"]})})||i&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["This microwave is dirty!",(0,e.createVNode)(1,"br"),"Please clean it before use!"]})})||c.length&&(0,e.createComponentVNode)(2,t.Section,{level:1,title:"Ingredients",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",onClick:function(){function l(){return C("cook")}return l}(),children:"Microwave"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function l(){return C("dispose")}return l}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[l.amt," ",l.extra]},l.name)})})})||(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[s.title," is empty."]})})})})}return V}()},81689:function(x,r,n){"use strict";r.__esModule=!0,r.MiningOreProcessingConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=n(96496),y=r.MiningOreProcessingConsole=function(){function u(d){var i=(0,t.useBackend)(),c=i.act,l=i.data,h=l.unclaimedPoints,p=l.ores,v=l.showAllOres,b=l.power,g=l.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function N(){return c("insert")}return N}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"bolt",selected:g,onClick:function(){function N(){return c("speed_toggle")}return N}(),children:g?"High-Speed Active":"High-Speed Inactive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:b,onClick:function(){function N(){return c("power")}return N}(),children:b?"Smelting":"Not Smelting"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:h<1,icon:"download",onClick:function(){function N(){return c("claim")}return N}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})})})}),(0,e.createComponentVNode)(2,m)]})})}return u}(),k=["Not Processing","Smelting","Compressing","Alloying"],C=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],s=function(d,i){return C.indexOf(d.ore)===-1||C.indexOf(i.ore)===-1?d.ore-i.ore:C.indexOf(i.ore)-C.indexOf(d.ore)},m=function(d){var i=(0,t.useBackend)(),c=i.act,l=i.data,h=l.ores,p=l.showAllOres,v=l.power;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function b(){return c("showAllOres")}return b}(),children:p?"All Ores":"Ores in Machine"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:h.length&&h.sort(s).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(b.name),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:k,selected:k[b.processing],onSelected:function(){function g(N){return c("toggleSmelting",{ore:b.ore,set:k.indexOf(N)})}return g}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b.amount})})},b.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},22574:function(x,r,n){"use strict";r.__esModule=!0,r.MiningStackingConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=r.MiningStackingConsole=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.stacktypes,d=m.stackingAmt;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:d,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function i(c,l){return s("change_stack",{amt:l})}return i}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),u.length&&u.sort().map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(i.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function c(){return s("release_stack",{stack:i.type})}return c}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.amt})},i.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return y}()},78414:function(x,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=n(96496),y=["title","items"];function k(i,c){if(i==null)return{};var l={},h=Object.keys(i),p,v;for(v=0;v=0)&&(l[p]=i[p]);return l}var C={Alphabetical:function(){function i(c,l){return c-l}return i}(),"By availability":function(){function i(c,l){return-(c.affordable-l.affordable)}return i}(),"By price":function(){function i(c,l){return c.price-l.price}return i}()},s=r.MiningVendor=function(){function i(c){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,m)]})})}return i}(),m=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.has_id,b=p.id,g=p.items,N=(0,t.useLocalState)("search",""),B=N[0],S=N[1],L=(0,t.useLocalState)("sort","Alphabetical"),I=L[0],w=L[1],T=(0,t.useLocalState)("descending",!1),E=T[0],A=T[1],M=(0,a.createSearch)(B,function(F){return F[0]}),R=!1,O=Object.entries(g).map(function(F,D){var j=Object.entries(F[1]).filter(M).map(function(_){return _[1].affordable=v&&b.points>=_[1].price,_[1]}).sort(C[I]);if(j.length!==0)return E&&(j=j.reverse()),R=!0,(0,e.createComponentVNode)(2,d,{title:F[0],items:j},F[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:R?O:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(c){var l=(0,t.useLocalState)("search",""),h=l[0],p=l[1],v=(0,t.useLocalState)("sort",""),b=v[0],g=v[1],N=(0,t.useLocalState)("descending",!1),B=N[0],S=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(I,w){return p(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(C),width:"100%",lineHeight:"19px",onSelected:function(){function L(I){return g(I)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"19px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function L(){return S(!B)}return L}()})})]})})},d=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=c.title,b=c.items,g=k(c,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:b.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:N.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!p.has_id||p.id.points=450?"Overcharged":h>=250?"Good Charge":"Low Charge":h>=250?"NIF Power Requirement met.":h>=150?"Fluctuations in available power.":"Power failure imminent."},i=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.config,g=p.data,N=g.nif_percent,B=g.nif_stat,S=g.last_notification,L=g.nutrition,I=g.isSynthetic,w=g.modules,T=h.setViewing;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Condition",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(B,N)," (",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N}),"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:d(L,I)})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){function A(){return v("uninstall",{module:E.ref})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function A(){return T(E)}return A}(),tooltip:"View Information",tooltipPosition:"left"})],4),children:E.activates&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:E.active,content:E.stat_text,onClick:function(){function A(){return v("toggle_module",{module:E.ref})}return A}()})||(0,e.createComponentVNode)(2,t.Box,{children:E.stat_text})},E.ref)})})})]})},c=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.data,g=b.theme;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"100%",placeholder:"Default",selected:g,options:s,onSelected:function(){function N(B){return v("setTheme",{theme:B})}return N}()})})})}},87868:function(x,r,n){"use strict";r.__esModule=!0,r.NTNetRelay=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(77402),V=r.NTNetRelay=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.dos_crashed,c=d.enabled,l=d.dos_overload,h=d.dos_capacity,p=(0,e.createComponentVNode)(2,y);return i&&(p=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:p})})}return C}(),y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.dos_crashed,c=d.enabled,l=d.dos_overload,h=d.dos_capacity;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){function p(){return u("toggle")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network Buffer Status",children:[l," / ",h," GQ"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){function p(){return u("purge")}return p}()})})]})})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data;return(0,e.createComponentVNode)(2,f.FullscreenNotice,{title:"ERROR",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,e.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,e.createVNode)(1,"i",null,"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.",16),(0,e.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,e.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){function i(){return u("restart")}return i}()})})]})}},93453:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=n(43396),y="Main Menu",k="New Channel",C="View List",s="New Story",m="Print",u="New Wanted",d="View Wanted",i="View Selected Channel",c=r.Newscaster=function(){function I(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.screen,R=A.user;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice,{decode:!0}),(0,e.createComponentVNode)(2,l)]})})}return I}(),l=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.user,R=(0,t.useSharedState)("screen",y),O=R[0],F=R[1],D=L[O];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,D,{setScreen:F})})},h=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.securityCaster,R=A.wanted_issue,O=w.setScreen;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",children:[R&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function F(){return O(d)}return F}(),color:"bad",children:"Read WANTED Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function F(){return O(C)}return F}(),children:"View Feed Channels"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(k)}return F}(),children:"Create Feed Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(s)}return F}(),children:"Create Feed Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"print",onClick:function(){function F(){return O(m)}return F}(),children:"Print Newspaper"})]}),!!M&&(0,e.createComponentVNode)(2,o.Section,{title:"Feed Security Functions",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(u)}return F}(),children:'Manage "Wanted" Issue'})})],0)},p=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.c_locked,O=A.user,F=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Channel",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(y)}return D}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(M),onInput:function(){function D(j,_){return E("set_channel_name",{val:_})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Author",color:"good",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Feeds",children:(0,e.createComponentVNode)(2,o.Button,{icon:R?"lock":"lock-open",selected:!R,onClick:function(){function D(){return E("set_channel_lock")}return D}(),children:R?"No":"Yes"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function D(){return E("submit_new_channel")}return D}(),children:"Submit Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function D(){return F(y)}return D}(),children:"Cancel"})]})},v=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channels,R=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Station Feed Channels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:M.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",color:O.admin?"good":O.censored?"bad":"",onClick:function(){function F(){E("show_channel",{show_channel:O.ref}),R(i)}return F}(),children:(0,a.decodeHtmlEntities)(O.name)},O.name)})})},b=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.user,O=A.title,F=A.msg,D=A.photo_data,j=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Message...",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Receiving Channel",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,onClick:function(){function _(){return E("set_channel_receiving")}return _}(),children:M||"Unset"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Author",color:"good",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Section,{width:"99%",inline:!0,children:O||"(no title yet)"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function _(){return E("set_new_title")}return _}(),icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Section,{width:"99%",inline:!0,children:F||"(no message yet)"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function _(){return E("set_new_message")}return _}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function _(){return E("set_attachment")}return _}(),children:D?"Photo Attached":"No Photo"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function _(){return E("submit_new_message")}return _}(),children:"Submit Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Cancel"})]})},g=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.total_num,R=A.active_num,O=A.message_num,F=A.paper_remaining,D=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function j(){return D(y)}return j}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",M," Feed channels,"," ",R," of which are active, and a total of ",O," Feed stories."]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Paper remaining",children:[F*100," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function j(){return E("print_paper")}return j}(),children:"Print Paper"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function j(){return D(y)}return j}(),children:"Cancel"})]})},N=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.msg,O=A.photo_data,F=A.user,D=A.wanted_issue,j=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Wanted Issue Handler",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(M),onInput:function(){function _(z,H){return E("set_channel_name",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(R),onInput:function(){function _(z,H){return E("set_wanted_desc",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function _(){return E("set_attachment")}return _}(),children:O?"Photo Attached":"No Photo"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prosecutor",color:"good",children:F})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function _(){return E("submit_wanted")}return _}(),children:"Submit Wanted Issue"}),!!D&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){function _(){return E("cancel_wanted")}return _}(),children:"Take Down Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Cancel"})]})},B=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.wanted_issue,R=w.setScreen;return M?(0,e.createComponentVNode)(2,o.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:(0,e.createComponentVNode)(2,o.Box,{color:"white",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,a.decodeHtmlEntities)(M.author)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal",children:(0,a.decodeHtmlEntities)(M.criminal)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,a.decodeHtmlEntities)(M.desc)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:M.img&&(0,e.createVNode)(1,"img",null,null,1,{src:M.img})||"None"})]})})}):(0,e.createComponentVNode)(2,o.Section,{title:"No Outstanding Wanted Issues",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:"There are no wanted issues currently outstanding."})},S=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.viewing_channel,R=A.securityCaster,O=A.company,F=w.setScreen;return M?(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(M.name),buttons:(0,e.createFragment)([!!R&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){function D(){return E("toggle_d_notice",{ref:M.ref})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(C)}return D}(),children:"Back"})],0),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Created By",children:R&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.decodeHtmlEntities)(M.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){function D(){return E("censor_channel_author",{ref:M.ref})}return D}()})||(0,e.createComponentVNode)(2,o.Box,{children:(0,a.decodeHtmlEntities)(M.author)})})}),!!M.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",O," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!M.messages.length&&M.messages.map(function(D){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(D.body),!!D.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+D.img}),(0,a.decodeHtmlEntities)(D.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[Story by ",(0,a.decodeHtmlEntities)(D.author)," -"," ",D.timestamp,"]"]}),!!R&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){function j(){return E("censor_channel_story_body",{ref:D.ref})}return j}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){function j(){return E("censor_channel_story_author",{ref:D.ref})}return j}()})],4)]},D.ref)})||!M.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Channel Not Found",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(C)}return D}(),children:"Back"}),children:"The channel you were looking for no longer exists."})},L={};L[y]=h,L[k]=p,L[C]=v,L[s]=b,L[m]=g,L[u]=N,L[d]=B,L[i]=S},40779:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBoard=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NoticeBoard=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.notices;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(u,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[u.isphoto&&(0,e.createComponentVNode)(2,t.Button,{icon:"image",content:"Look",onClick:function(){function i(){return C("look",{ref:u.ref})}return i}()})||u.ispaper&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sticky-note",content:"Read",onClick:function(){function i(){return C("read",{ref:u.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Write",onClick:function(){function i(){return C("write",{ref:u.ref})}return i}()})],4)||"Unknown Entity",(0,e.createComponentVNode)(2,t.Button,{icon:"minus-circle",content:"Remove",onClick:function(){function i(){return C("remove",{ref:u.ref})}return i}()})]},d)})}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No notices posted here."})})})})}return V}()},6374:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAccessDecrypter=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(99728),f=n(35239),V=r.NtosAccessDecrypter=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.message,d=m.running,i=m.rate,c=m.factor,l=m.regions,h=function(){function v(b){for(var g="";g.lengthc?g+="0":g+="1";return g}return v}(),p=45;return(0,e.createComponentVNode)(2,t.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,e.createComponentVNode)(2,t.NtosWindow.Content,{children:u&&(0,e.createComponentVNode)(2,f.NoticeBox,{children:u})||d&&(0,e.createComponentVNode)(2,f.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",i," PHash/s",(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"ban",onClick:function(){function v(){return s("PRG_reset")}return v}(),children:"Abort"})]})||(0,e.createComponentVNode)(2,f.Section,{title:"Pick access code to decrypt",children:l.length&&(0,e.createComponentVNode)(2,o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.createComponentVNode)(2,f.Box,{children:"Please insert ID card."})})})})}return y}()},36101:function(x,r,n){"use strict";r.__esModule=!0,r.NtosArcade=void 0;var e=n(58734),a=n(94779),t=n(54777),o=n(35239),f=n(47007),V=r.NtosArcade=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data;return(0,e.createComponentVNode)(2,f.NtosWindow,{width:450,height:350,children:(0,e.createComponentVNode)(2,f.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:2,children:[(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[m.PlayerHitpoints,"HP"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m.PlayerMP,"MP"]})})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Section,{backgroundColor:m.PauseState===1?"#1b3622":"#471915",children:m.Status})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:m.Hitpoints}),"HP"]}),(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)(m.BossID)})})]})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Attack")}return u}(),content:"Attack!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Heal")}return u}(),content:"Heal!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Recharge_Power")}return u}(),content:"Recharge!"})]}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){function u(){return s("Start_Game")}return u}(),content:"Begin Game"}),(0,e.createComponentVNode)(2,o.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){function u(){return s("Dispense_Tickets")}return u}(),content:"Claim Tickets"})]}),(0,e.createComponentVNode)(2,o.Box,{color:m.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",m.TicketCount]})]})})})}return y}()},69798:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAtmosControl=void 0;var e=n(58734),a=n(47007),t=n(75346),o=r.NtosAtmosControl=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.AtmosControlContent)})})}return f}()},41204:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.NtosCameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(40946),f=n(54777),V=n(35239),y=n(47007),k=n(16073),C=r.prevNextCamera=function(){function u(d,i){var c,l;if(!i)return[];var h=d.findIndex(function(p){return p.name===i.name});return[(c=d[h-1])==null?void 0:c.name,(l=d[h+1])==null?void 0:l.name]}return u}(),s=r.selectCameras=function(){function u(d,i,c){i===void 0&&(i=""),c===void 0&&(c="");var l=(0,o.createSearch)(i,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),i&&(0,a.filter)(l),c&&(0,a.filter)(function(h){return h.networks.includes(c)}),(0,a.sortBy)(function(h){return h.name})])(d)}return u}(),m=r.NtosCameraConsole=function(){function u(d){var i=(0,f.useBackend)(),c=i.act,l=i.data,h=l.mapRef,p=l.activeCamera,v=s(l.cameras),b=C(v,p),g=b[0],N=b[1];return(0,e.createComponentVNode)(2,y.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,y.NtosWindow.Content,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.CameraConsoleContent),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!g,onClick:function(){function B(){return c("switch_camera",{name:g})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!N,onClick:function(){function B(){return c("switch_camera",{name:N})}return B}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",onClick:function(){function B(){return c("pan",{dir:8})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-up",onClick:function(){function B(){return c("pan",{dir:1})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",onClick:function(){function B(){return c("pan",{dir:4})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-down",onClick:function(){function B(){return c("pan",{dir:2})}return B}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})})}return u}()},18886:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCommunicationsConsole=void 0;var e=n(58734),a=n(47007),t=n(77474),o=r.NtosCommunicationsConsole=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.CommunicationsConsoleContent)})})}return f}()},45002:function(x,r,n){"use strict";r.__esModule=!0,r.NtosConfiguration=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosConfiguration=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.PC_device_theme,u=s.power_usage,d=s.battery_exists,i=s.battery,c=i===void 0?{}:i,l=s.disk_size,h=s.disk_used,p=s.hardware,v=p===void 0?[]:p;return(0,e.createComponentVNode)(2,o.NtosWindow,{theme:m,width:520,height:630,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Supply",buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",u,"W"]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Battery Status",color:!d&&"average",children:d?(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"File System",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,minValue:0,maxValue:l,color:"good",children:[h," GQ / ",l," GQ"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hardware Components",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Section,{title:b.name,level:2,buttons:(0,e.createFragment)([!b.critical&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){function g(){return C("PC_toggle_component",{name:b.name})}return g}()}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})],0),children:b.desc},b.name)})})]})})}return V}()},71095:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewManifest=void 0;var e=n(58734),a=n(47007),t=n(82034),o=r.NtosCrewManifest=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewManifestContent)})})}return f}()},9489:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewMonitor=void 0;var e=n(58734),a=n(47007),t=n(76855),o=r.NtosCrewMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewMonitorContent)})})}return f}()},12407:function(x,r,n){"use strict";r.__esModule=!0,r.NtosDigitalWarrant=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45445),V=r.NtosDigitalWarrant=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.warrantname,l=i.warrantcharges,h=i.warrantauth,p=i.type,v=i.allwarrants,b=(0,e.createComponentVNode)(2,y);return h&&(b=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:500,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return s}(),y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.allwarrants;return(0,e.createComponentVNode)(2,t.Section,{title:"Warrants",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",fluid:!0,onClick:function(){function l(){return d("addwarrant")}return l}(),children:"Create New Warrant"}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Arrest Warrants",children:(0,e.createComponentVNode)(2,k,{type:"arrest"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Search Warrants",children:(0,e.createComponentVNode)(2,k,{type:"search"})})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.type,l=i.allwarrants,h=(0,f.filter)(function(p){return p.arrestsearch===c})(l);return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"})]}),h.length&&h.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.warrantname}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.charges}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.auth}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function v(){return d("editwarrant",{id:p.id})}return v}()})})]},p.id)})||(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.warrantname,l=i.warrantcharges,h=i.warrantauth,p=i.type,v=p==="arrest",b=p==="arrest"?"Name":"Location",g=p==="arrest"?"Charges":"Reason";return(0,e.createComponentVNode)(2,t.Section,{title:v?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function N(){return d("savewarrant")}return N}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function N(){return d("deletewarrant")}return N}(),children:"Delete"}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function N(){return d("back")}return N}(),children:"Back"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,buttons:v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function N(){return d("editwarrantname")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantnamecustom")}return N}()})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantnamecustom")}return N}()}),children:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantcharges")}return N}()}),children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorized By",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"balance-scale",onClick:function(){function N(){return d("editwarrantauth")}return N}()}),children:h})]})})}},80509:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailAdministration=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(12507),V=r.NtosEmailAdministration=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.cur_title,p=c.current_account,v=(0,e.createComponentVNode)(2,y);return l?v=(0,e.createComponentVNode)(2,k):h?v=(0,e.createComponentVNode)(2,C):p&&(v=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:v})})}return m}(),y=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",onClick:function(){function h(){return i("newaccount")}return h}(),children:"Create New Account"}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",onClick:function(){function p(){return i("viewaccount",{viewaccount:h.uid})}return p}(),children:h.login},h.uid)})]})},k=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Message",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("back")}return h}(),children:"Back"}),children:l})},C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,f.NtosEmailClientViewMessage,{administrator:!0})})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.msg_title,p=c.msg_body,v=c.msg_timestamp,b=c.msg_source,g=c.current_account,N=c.cur_suspended,B=c.messages,S=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing "+g+" in admin mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function L(){return i("back")}return L}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Status",children:(0,e.createComponentVNode)(2,t.Button,{color:N?"bad":"",icon:"ban",tooltip:(N?"Uns":"S")+"uspend Account?",onClick:function(){function L(){return i("ban")}return L}(),children:N?"Suspended":"Normal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",onClick:function(){function L(){return i("changepass")}return L}(),children:"Change Password"})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Messages",children:B.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received at"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return i("viewmail",{viewmail:L.uid})}return I}(),children:"View"})})]},L.uid)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No messages found in selected account."})})]})}},12507:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailClientViewMessage=r.NtosEmailClient=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=r.NtosEmailClient=function(){function c(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.PC_device_theme,g=v.error,N=v.downloading,B=v.current_account,S=(0,e.createComponentVNode)(2,i);return g?S=(0,e.createComponentVNode)(2,d,{error:g}):N?S=(0,e.createComponentVNode)(2,y):B&&(S=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:b,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:S})})}return c}(),y=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.down_filename,g=v.down_progress,N=v.down_size,B=v.down_speed;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"File",children:[b," (",N," GQ)"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B})," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g,maxValue:N,children:[g,"/",N," (",(0,f.round)(g/N*100,1),"%)"]})})]})})},k=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.addressbook,N=v.new_message,B=v.cur_title,S=(0,e.createComponentVNode)(2,C);return g?S=(0,e.createComponentVNode)(2,m):N?S=(0,e.createComponentVNode)(2,u):B&&(S=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,t.Section,{title:"Logged in as: "+b,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){function L(){return p("new_message")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){function L(){return p("changepassword")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){function L(){return p("logout")}return L}()})],4),children:S})},C=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.folder,N=v.messagecount,B=v.messages;return(0,e.createComponentVNode)(2,t.Section,{level:2,noTopPadding:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Inbox",onClick:function(){function S(){return p("set_folder",{set_folder:"Inbox"})}return S}(),children:"Inbox"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Spam",onClick:function(){function S(){return p("set_folder",{set_folder:"Spam"})}return S}(),children:"Spam"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Deleted",onClick:function(){function S(){return p("set_folder",{set_folder:"Deleted"})}return S}(),children:"Deleted"})]}),N&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received At"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(S){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function L(){return p("view",{view:S.uid})}return L}(),tooltip:"View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function L(){return p("reply",{reply:S.uid})}return L}(),tooltip:"Reply"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function L(){return p("delete",{delete:S.uid})}return L}(),tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["No emails found in ",g,"."]})]})},s=r.NtosEmailClientViewMessage=function(){function c(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=l.administrator,g=v.cur_title,N=v.cur_source,B=v.cur_timestamp,S=v.cur_body,L=v.cur_hasattachment,I=v.cur_attachment_filename,w=v.cur_attachment_size,T=v.cur_uid;return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:b?(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function E(){return p("back")}return E}()}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){function E(){return p("reply",{reply:T})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){function E(){return p("delete",{delete:T})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){function E(){return p("save",{save:T})}return E}()}),L&&(0,e.createComponentVNode)(2,t.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){function E(){return p("downloadattachment")}return E}()})||null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){function E(){return p("cancel",{cancel:T})}return E}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"From",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"At",children:B}),L&&!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",color:"average",children:[I," (",w,"GQ)"]})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:S}})})})]})})}return c}(),m=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Address Book",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function g(){return p("set_recipient",{set_recipient:null})}return g}()}),children:b.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{content:g.login,fluid:!0,onClick:function(){function N(){return p("set_recipient",{set_recipient:g.login})}return N}()},g.login)})})},u=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.msg_title,N=v.msg_recipient,B=v.msg_body,S=v.msg_hasattachment,L=v.msg_attachment_filename,I=v.msg_attachment_size;return(0,e.createComponentVNode)(2,t.Section,{title:"New Message",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function w(){return p("send")}return w}(),children:"Send Message"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function w(){return p("cancel")}return w}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function w(T,E){return p("edit_title",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:N,onInput:function(){function w(T,E){return p("edit_recipient",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"address-book",onClick:function(){function w(){return p("addressbook")}return w}(),tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachments",buttons:S&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function w(){return p("remove_attachment")}return w}(),children:"Remove Attachment"})||(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function w(){return p("addattachment")}return w}(),children:"Add Attachment"}),children:S&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[L," (",I,"GQ)"]})||null}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{width:"99%",inline:!0,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:B}})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{verticalAlign:"top",onClick:function(){function w(){return p("edit_body")}return w}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},d=function(l){var h=(0,a.useBackend)(),p=h.act,v=l.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Notification",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return",onClick:function(){function b(){return p("reset")}return b}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:v})})},i=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.stored_login,g=v.stored_password;return(0,e.createComponentVNode)(2,t.Section,{title:"Please Log In",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Email address",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:b,onInput:function(){function N(B,S){return p("edit_login",{val:S})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Password",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function N(B,S){return p("edit_password",{val:S})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",onClick:function(){function N(){return p("login")}return N}(),children:"Log In"})]})}},92316:function(x,r,n){"use strict";r.__esModule=!0,r.NtosFileManager=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosFileManager=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.PC_device_theme,d=m.usbconnected,i=m.filename,c=m.filedata,l=m.error,h=m.files,p=h===void 0?[]:h,v=m.usbfiles,b=v===void 0?[]:v;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:u,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Viewing File "+i,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Edit",onClick:function(){function g(){return s("PRG_edit")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("PRG_printfile")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Close",onClick:function(){function g(){return s("PRG_closefile")}return g}()})],4),children:c&&(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:c}})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V,{files:p,usbconnected:d,onUpload:function(){function g(N){return s("PRG_copytousb",{uid:N})}return g}(),onDelete:function(){function g(N){return s("PRG_deletefile",{uid:N})}return g}(),onOpen:function(){function g(N){return s("PRG_openfile",{uid:N})}return g}(),onRename:function(){function g(N,B){return s("PRG_rename",{uid:N,new_name:B})}return g}(),onDuplicate:function(){function g(N){return s("PRG_clone",{uid:N})}return g}()})}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:(0,e.createComponentVNode)(2,V,{usbmode:!0,files:b,usbconnected:d,onUpload:function(){function g(N){return s("PRG_copyfromusb",{uid:N})}return g}(),onDelete:function(){function g(N){return s("PRG_deletefile",{uid:N})}return g}(),onOpen:function(){function g(N){return s("PRG_openfile",{uid:N})}return g}(),onRename:function(){function g(N,B){return s("PRG_rename",{uid:N,new_name:B})}return g}(),onDuplicate:function(){function g(N){return s("PRG_clone",{uid:N})}return g}()})})||null,(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function g(){return s("PRG_newtextfile")}return g}(),children:"New Text File"})})],0),l&&(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{bottom:"0",left:"0",icon:"ban",onClick:function(){function g(){return s("PRG_clearerror")}return g}()})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:l})})]})]})})}return y}(),V=function(k){var C=k.files,s=C===void 0?[]:C,m=k.usbconnected,u=k.usbmode,d=k.onUpload,i=k.onDelete,c=k.onRename,l=k.onOpen;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"File"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Size"})]}),s.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.undeletable?h.name:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{width:"80%",content:h.name,currentValue:h.name,tooltip:"Rename",onCommit:function(){function p(v,b){return c(h.uid,b)}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Open",onClick:function(){function p(){return l(h.uid)}return p}()})],4)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:!h.undeletable&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){function p(){return i(h.uid)}return p}()}),!!m&&(u?(0,e.createComponentVNode)(2,t.Button,{icon:"download",tooltip:"Download",onClick:function(){function p(){return d(h.uid)}return p}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"upload",tooltip:"Upload",onClick:function(){function p(){return d(h.uid)}return p}()}))],0)})]},h.name)})]})}},9169:function(x,r,n){"use strict";r.__esModule=!0,r.NtosIdentificationComputer=void 0;var e=n(58734),a=n(47007),t=n(99728),o=r.NtosIdentificationComputer=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.IdentificationComputerContent,{ntos:!0})})})}return f}()},42830:function(x,r,n){"use strict";r.__esModule=!0,r.NtosMain=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},V=r.NtosMain=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.device_theme,d=m.programs,i=d===void 0?[]:d,c=m.has_light,l=m.light_on,h=m.comp_light_color,p=m.removable_media,v=p===void 0?[]:p,b=m.login,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,o.NtosWindow,{title:u==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:u,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"144px",icon:"lightbulb",selected:l,onClick:function(){function N(){return s("PC_toggle_light")}return N}(),children:["Flashlight: ",l?"ON":"OFF"]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,onClick:function(){function N(){return s("PC_light_color")}return N}(),children:["Color:",(0,e.createComponentVNode)(2,t.ColorBox,{ml:1,color:h})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"User Login",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject ID",disabled:!g.IDName,onClick:function(){function N(){return s("PC_Eject_Disk",{name:"ID"})}return N}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["ID Name: ",g.IDName]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["Assignment: ",g.IDJob]})]})}),!!v.length&&(0,e.createComponentVNode)(2,t.Section,{title:"Media Eject",children:(0,e.createComponentVNode)(2,t.Table,{children:v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"eject",content:N,onClick:function(){function B(){return s("PC_Eject_Disk",{name:N})}return B}()})})},N)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:f[N.name]||"window-maximize-o",content:N.desc,onClick:function(){function B(){return s("PC_runprogram",{name:N.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:!!N.running&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){function B(){return s("PC_killprogram",{name:N.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:N.autorun,onClick:function(){function B(){return s("PC_setautorun",{name:N.name})}return B}(),children:"AR"})})]},N.name)})})})]})})}return y}()},42521:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetChat=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetChat=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.can_admin,u=s.adminmode,d=s.authed,i=s.username,c=s.active_channel,l=s.is_operator,h=s.all_channels,p=h===void 0?[]:h,v=s.clients,b=v===void 0?[]:v,g=s.messages,N=g===void 0?[]:g,B=c!==null,S=d||u;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:900,height:675,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.Section,{height:"600px",children:(0,e.createComponentVNode)(2,t.Table,{height:"580px",children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:[(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(){function L(I,w){return C("PRG_newchannel",{new_channel_name:w})}return L}()}),p.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:L.chan,selected:L.id===c,color:"transparent",onClick:function(){function I(){return C("PRG_joinchannel",{id:L.id})}return I}()},L.chan)})]}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,mt:1,content:i+"...",currentValue:i,onCommit:function(){function L(I,w){return C("PRG_changename",{new_name:w})}return L}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(u?"ON":"OFF"),color:u?"bad":"good",onClick:function(){function L(){return C("PRG_toggleadmin")}return L}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:B&&(S?N.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:L.msg},L.msg)}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.createComponentVNode)(2,t.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(){function L(I,w){return C("PRG_speak",{message:w})}return L}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"465px",overflowY:"scroll",children:b.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:L.name},L.name)})}),B&&S&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(){function L(I,w){return C("PRG_savelog",{log_name:w})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){function L(){return C("PRG_leavechannel")}return L}()})],4),!!l&&d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){function L(){return C("PRG_deletechannel")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(){function L(I,w){return C("PRG_renamechannel",{new_name:w})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(){function L(I,w){return C("PRG_setpassword",{new_password:w})}return L}()})],4)]})]})})})})})}return V}()},4613:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDosContent=r.NtosNetDos=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetDos=function(){function y(){return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.NtosNetDosContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.relays,d=u===void 0?[]:u,i=m.focus,c=m.target,l=m.speed,h=m.overload,p=m.capacity,v=m.error;if(v)return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:v}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){function N(){return s("PRG_reset")}return N}()})],4);var b=function(){function N(B){for(var S="",L=h/p;S.lengthL?S+="0":S+="1";return S}return N}(),g=45;return c?(0,e.createComponentVNode)(2,t.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{children:["CURRENT SPEED: ",l," GQ/s"]}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)})]}):(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{content:N.id,selected:i===N.id,onClick:function(){function B(){return s("PRG_target_relay",{targid:N.id})}return B}()},N.id)})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!i,mt:1,onClick:function(){function N(){return s("PRG_execute")}return N}()})]})}return y}()},61522:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDownloader=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.NtosNetDownloader=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.PC_device_theme,i=u.disk_size,c=u.disk_used,l=u.downloadable_programs,h=l===void 0?[]:l,p=u.error,v=u.hacked_programs,b=v===void 0?[]:v,g=u.hackedavailable;return(0,e.createComponentVNode)(2,f.NtosWindow,{theme:d,width:480,height:735,resizable:!0,children:(0,e.createComponentVNode)(2,f.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:1,children:p}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset",onClick:function(){function N(){return m("PRG_reseterror")}return N}()})]}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk usage",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:c,minValue:0,maxValue:i,children:c+" GQ / "+i+" GQ"})})})}),(0,e.createComponentVNode)(2,o.Section,{children:h.map(function(N){return(0,e.createComponentVNode)(2,y,{program:N},N.filename)})}),!!g&&(0,e.createComponentVNode)(2,o.Section,{title:"UNKNOWN Software Repository",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(N){return(0,e.createComponentVNode)(2,y,{program:N},N.filename)})]})]})})}return k}(),y=function(C){var s=C.program,m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.disk_size,c=d.disk_used,l=d.downloadcompletion,h=d.downloading,p=d.downloadname,v=d.downloadsize,b=d.downloadspeed,g=d.downloads_queue,N=i-c;return(0,e.createComponentVNode)(2,o.Box,{mb:3,children:[(0,e.createComponentVNode)(2,o.Flex,{align:"baseline",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{bold:!0,grow:1,children:s.filedesc}),(0,e.createComponentVNode)(2,o.Flex.Item,{color:"label",nowrap:!0,children:[s.size," GQ"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:s.filename===p&&(0,e.createComponentVNode)(2,o.ProgressBar,{color:"green",minValue:0,maxValue:v,value:l,children:[(0,a.round)(l/v*100,1),"% (",b,"GQ/s)"]})||g.indexOf(s.filename)!==-1&&(0,e.createComponentVNode)(2,o.Button,{icon:"ban",color:"bad",onClick:function(){function B(){return u("PRG_removequeued",{filename:s.filename})}return B}(),children:"Queued..."})||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"download",content:"Download",disabled:s.size>N,onClick:function(){function B(){return u("PRG_downloadfile",{filename:s.filename})}return B}()})})]}),s.compatibility!=="Compatible"&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),s.size>N&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:s.fileinfo})]})}},96518:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetMonitor=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=r.NtosNetMonitor=function(){function V(y){var k=(0,t.useBackend)(),C=k.act,s=k.data,m=s.ntnetrelays,u=s.ntnetstatus,d=s.config_softwaredownload,i=s.config_peertopeer,c=s.config_communication,l=s.config_systemcontrol,h=s.idsalarm,p=s.idsstatus,v=s.ntnetmaxlogs,b=s.maxlogs,g=s.minlogs,N=s.banned_nids,B=s.ntnetlogs,S=B===void 0?[]:B;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){function L(){return C("toggleWireless")}return L}()}),children:m?(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:m})}):"No Relays Connected"}),(0,e.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){function L(){return C("toggle_function",{id:"1"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){function L(){return C("toggle_function",{id:"2"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){function L(){return C("toggle_function",{id:"3"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){function L(){return C("toggle_function",{id:"4"})}return L}()})})]})}),(0,e.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,e.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Banned NIDs",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){function L(){return C("ban_nid")}return L}(),children:"Ban NID"}),(0,e.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){function L(){return C("unban_nid")}return L}(),children:"Unban NID"})],4),children:N.join(", ")||"None"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){function L(){return C("toggleIDS")}return L}()}),(0,e.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){function L(){return C("resetIDS")}return L}()})],4)}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,e.createComponentVNode)(2,a.NumberInput,{value:v,minValue:g,maxValue:b,width:"39px",onChange:function(){function L(I,w){return C("updatemaxlogs",{new_number:w})}return L}()})})]}),(0,e.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){function L(){return C("purgelogs")}return L}()}),children:S.map(function(L){return(0,e.createComponentVNode)(2,a.Box,{className:"candystripe",children:L.entry},L.entry)})})]})]})})}return V}()},26876:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetTransfer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetTransfer=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.downloading,p=c.uploading,v=c.upload_filelist,b=(0,e.createComponentVNode)(2,s);return l?b=(0,e.createComponentVNode)(2,V):h?b=(0,e.createComponentVNode)(2,y):p?b=(0,e.createComponentVNode)(2,k):v.length&&(b=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return m}(),V=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error;return(0,e.createComponentVNode)(2,t.Section,{title:"An error has occured during operation.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("PRG_reset")}return h}(),children:"Reset"}),children:["Additional Information: ",l]})},y=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.download_name,h=c.download_progress,p=c.download_size,v=c.download_netspeed;return(0,e.createComponentVNode)(2,t.Section,{title:"Download in progress",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Downloaded File",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:p,children:[h," / ",p," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Speed",children:[v," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function b(){return i("PRG_reset")}return b}(),children:"Cancel Download"})})]})})},k=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.upload_clients,h=c.upload_filename,p=c.upload_haspassword;return(0,e.createComponentVNode)(2,t.Section,{title:"Server enabled",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Clients Connected",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Provided file",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Server Password",children:p?"Enabled":"Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commands",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function v(){return i("PRG_setpassword")}return v}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function v(){return i("PRG_reset")}return v}(),children:"Cancel Upload"})]})]})})},C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.upload_filelist;return(0,e.createComponentVNode)(2,t.Section,{title:"File transfer server ready.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("PRG_reset")}return h}(),children:"Cancel"}),children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lock",onClick:function(){function h(){return i("PRG_setpassword")}return h}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Section,{title:"Pick file to serve.",level:2,children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"upload",onClick:function(){function p(){return i("PRG_uploadfile",{uid:h.uid})}return p}(),children:[h.filename," (",h.size,"GQ)"]},h.uid)})})]})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.servers;return(0,e.createComponentVNode)(2,t.Section,{title:"Available Files",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"upload",onClick:function(){function h(){return i("PRG_uploadmenu")}return h}(),children:"Send File"}),children:l.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.uid,children:[!!h.haspassword&&(0,e.createComponentVNode)(2,t.Icon,{name:"lock",mr:1}),h.filename,"\xA0 (",h.size,"GQ)\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function p(){return i("PRG_downloadfile",{uid:h.uid})}return p}(),children:"Download"})]},h.uid)})})||(0,e.createComponentVNode)(2,t.Box,{children:"No upload servers found."})})}},80007:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNewsBrowser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(94779),V=r.NtosNewsBrowser=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.article,l=i.download,h=i.message,p=(0,e.createComponentVNode)(2,k);return c?p=(0,e.createComponentVNode)(2,y):l&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:[h," ",(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function v(){return d("PRG_clearmessage")}return v}()})]}),p]})})}return s}(),y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.article;if(!c)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var l=c.title,h=c.cover,p=c.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+l,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function v(){return d("PRG_savearticle")}return v}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function v(){return d("PRG_reset")}return v}(),children:"Close"})],4),children:[!!h&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)(h)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.showing_archived,l=i.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function h(){return d("PRG_toggle_archived")}return h}(),checked:c,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.length&&l.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function p(){return d("PRG_openarticle",{uid:h.uid})}return p}()}),children:[h.size," GQ"]},h.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.download,l=c.download_progress,h=c.download_maxprogress,p=c.download_rate;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",minValue:0,value:l,maxValue:h,children:[l," / ",h," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Download Speed",children:[p," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",fluid:!0,onClick:function(){function v(){return d("PRG_reset")}return v}(),children:"Abort Download"})})]})})}},98458:function(x,r,n){"use strict";r.__esModule=!0,r.NtosOvermapNavigation=void 0;var e=n(58734),a=n(47007),t=n(49306),o=r.NtosOvermapNavigation=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.OvermapNavigationContent)})})}return f}()},23678:function(x,r,n){"use strict";r.__esModule=!0,r.NtosPowerMonitor=void 0;var e=n(58734),a=n(47007),t=n(81757),o=r.NtosPowerMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.PowerMonitorContent)})})}return f}()},99354:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRCON=void 0;var e=n(58734),a=n(47007),t=n(34624),o=r.NtosRCON=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:630,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.RCONContent)})})}return f}()},55210:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRevelation=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=r.NtosRevelation=function(){function V(y){var k=(0,t.useBackend)(),C=k.act,s=k.data,m=s.armed;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(){function u(d,i){return C("PRG_obfuscate",{new_name:i})}return u}(),mb:1}),(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Payload Status",buttons:(0,e.createComponentVNode)(2,a.Button,{content:m?"ARMED":"DISARMED",color:m?"bad":"average",onClick:function(){function u(){return C("PRG_arm")}return u}()})})}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!m})]})})})}return V}()},94056:function(x,r,n){"use strict";r.__esModule=!0,r.NtosShutoffMonitor=void 0;var e=n(58734),a=n(47007),t=n(38818),o=r.NtosShutoffMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.ShutoffMonitorContent)})})}return f}()},51452:function(x,r,n){"use strict";r.__esModule=!0,r.NtosStationAlertConsole=void 0;var e=n(58734),a=n(47007),t=n(10967),o=r.NtosStationAlertConsole=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:315,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.StationAlertConsoleContent)})})}return f}()},3273:function(x,r,n){"use strict";r.__esModule=!0,r.NtosSupermatterMonitor=void 0;var e=n(58734),a=n(47007),t=n(80341),o=r.NtosSupermatterMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.SupermatterMonitorContent)})})}return f}()},31690:function(x,r,n){"use strict";r.__esModule=!0,r.NtosUAV=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosUAV=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.current_uav,u=s.signal_strength,d=s.in_use,i=s.paired_uavs;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Selected UAV",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"UAV",children:m&&m.status||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal",children:m&&u||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:m&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m.power,onClick:function(){function c(){return C("power_uav")}return c}(),children:m.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Camera",children:m&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,disabled:!m.power,onClick:function(){function c(){return C("view_uav")}return c}(),children:m.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Paired UAVs",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"quidditch",onClick:function(){function l(){return C("switch_uav",{switch_uav:c.uavref})}return l}(),children:c.name})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function l(){return C("del_uav",{del_uav:c.uavref})}return l}()})})]},c.uavref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No UAVs Paired."})})]})})}return V}()},85527:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWordProcessor=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosWordProcessor=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.PC_device_theme,u=s.error,d=s.browsing,i=s.files,c=s.usbconnected,l=s.usbfiles,h=s.filename,p=s.filedata;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:m,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",u,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){function v(){return C("PRG_backtomenu")}return v}()})]})||d&&(0,e.createComponentVNode)(2,t.Section,{title:"File Browser",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){function v(){return C("PRG_closebrowser")}return v}()}),children:(0,e.createComponentVNode)(2,t.Section,{title:"Available documents (local)",level:2,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Size (GQ)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0})]}),i.map(function(v,b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-word",onClick:function(){function g(){return C("PRG_openfile",{PRG_openfile:v.name})}return g}(),children:"Open"})})]},b)})]})})})||(0,e.createComponentVNode)(2,t.Section,{title:"Document: "+h,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_newfile")}return v}(),children:"New"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_loadmenu")}return v}(),children:"Load"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_savefile")}return v}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_saveasfile")}return v}(),children:"Save As"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_editfile")}return v}(),children:"Edit"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_txtrpeview")}return v}(),children:"Preview"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_taghelp")}return v}(),children:"Formatting Help"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!p,onClick:function(){function v(){return C("PRG_printfile")}return v}(),children:"Print"})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})})]})})})}return V}()},93810:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(58734),a=n(80132),t=n(77921),o=n(42678),f=n(54777),V=n(35239),y=n(47007),k=r.NumberInputModal=function(){function s(m){var u=(0,f.useBackend)(),d=u.act,i=u.data,c=i.init_value,l=i.large_buttons,h=i.message,p=h===void 0?"":h,v=i.timeout,b=i.title,g=(0,f.useLocalState)("input",c),N=g[0],B=g[1],S=function(){function w(T){T!==N&&B(T)}return w}(),L=function(){function w(T){T!==N&&B(T)}return w}(),I=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:b,width:270,height:I,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function w(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&d("submit",{entry:N}),E===o.KEY_ESCAPE&&d("cancel")}return w}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:p})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{input:N,onClick:L,onChange:S})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return s}(),C=function(m){var u=(0,f.useBackend)(),d=u.act,i=u.data,c=i.min_value,l=i.max_value,h=i.init_value,p=m.input,v=m.onClick,b=m.onChange;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===c,icon:"angle-double-left",onClick:function(){function g(){return v(c)}return g}(),tooltip:c?"Min ("+c+")":"Min"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{allowFloats:!0,autoFocus:!0,autoSelect:!0,fluid:!0,minValue:c,maxValue:l,onChange:function(){function g(N,B){return b(B)}return g}(),onEnter:function(){function g(N,B){return d("submit",{entry:B})}return g}(),value:p})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===l,icon:"angle-double-right",onClick:function(){function g(){return v(l)}return g}(),tooltip:l?"Max ("+l+")":"Max"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===h,icon:"redo",onClick:function(){function g(){return v(h)}return g}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},35948:function(x,r,n){"use strict";r.__esModule=!0,r.OmniFilter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(k){return k.input?"Input":k.output?"Output":k.f_type?k.f_type:"Disabled"},V=r.OmniFilter=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.power,d=m.config,i=m.ports,c=m.set_flow_rate,l=m.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:d?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:d,onClick:function(){function h(){return s("power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:d,onClick:function(){function h(){return s("configure")}return h}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i?i.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.dir+" Port",children:d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:h.input,icon:"compress-arrows-alt",onClick:function(){function p(){return s("switch_mode",{mode:"in",dir:h.dir})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:h.output,icon:"expand-arrows-alt",onClick:function(){function p(){return s("switch_mode",{mode:"out",dir:h.dir})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:h.input||h.output,content:h.f_type||"None",onClick:function(){function p(){return s("switch_filter",{mode:h.f_type,dir:h.dir})}return p}()})],4):f(h)},h.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[l," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:c/10+" L/s",onClick:function(){function h(){return s("set_flow_rate")}return h}()}):c/10+" L/s"})]})})]})})}return y}()},3168:function(x,r,n){"use strict";r.__esModule=!0,r.OmniMixer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(C){return C.input?"Input":C.output?"Output":C.f_type?C.f_type:"Disabled"},V=r.OmniMixer=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.power,i=u.config,c=u.ports,l=u.set_flow_rate,h=u.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:i?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function p(){return m("power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:i,onClick:function(){function p(){return m("configure")}return p}()})],4),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Port"}),i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Input"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Mode"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Concentration"}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(p){return(0,e.createComponentVNode)(2,y,{port:p,config:i},p.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:l/10+" L/s",onClick:function(){function p(){return m("set_flow_rate")}return p}()}):l/10+" L/s"})]})})]})})}return k}(),y=function(C){var s=(0,a.useBackend)(),m=s.act,u=C.port,d=C.config;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.dir+" Port"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d?(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){function i(){return m("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}return i}()}):f(u)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d?(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){function i(){return m("switch_mode",{mode:"out",dir:u.dir})}return i}()}):u.concentration*100+"%"}),d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",width:"20%",children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",icon:"wrench",disabled:!u.input,content:u.input?u.concentration*100+" %":"-",onClick:function(){function i(){return m("switch_con",{dir:u.dir})}return i}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.con_lock?"lock":"lock-open",disabled:!u.input,selected:u.con_lock,content:u.f_type||"None",onClick:function(){function i(){return m("switch_conlock",{dir:u.dir})}return i}()})})],4):null]})}},98300:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(47007),f=n(35239),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},C=["bad","average","average","good","average","average","bad"],s=r.OperatingComputer=function(){function i(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.hasOccupant,b=p.choice,g;return b?g=(0,e.createComponentVNode)(2,d):g=v?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!b,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!b,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"Options"})]}),(0,e.createComponentVNode)(2,f.Section,{flexGrow:"1",children:g})]})})}return i}(),m=function(c){var l=(0,t.useBackend)(),h=l.data,p=h.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Section,{title:"Patient",level:"2",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[p.stat][0],children:V[p.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,b){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:p[v[1]]/100,ranges:k,children:(0,a.round)(p[v[1]])},b)},b)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:C[p.temperatureSuitability+3],children:[(0,a.round)(p.btCelsius),"\xB0C, ",(0,a.round)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[p.pulse," BPM"]})],4)]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.createComponentVNode)(2,f.LabeledList,{children:p.surgery.map(function(v){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v.name,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Current State",children:v.currentStage}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Possible Next Steps",children:v.nextSteps.map(function(b){return(0,e.createVNode)(1,"div",null,b,0,null,b)})})]})},v.name)})}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})],4)},u=function(){return(0,e.createComponentVNode)(2,f.Flex,{textAlign:"center",height:"100%",children:(0,e.createComponentVNode)(2,f.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},d=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.verbose,b=p.health,g=p.healthAlarm,N=p.oxy,B=p.oxyAlarm,S=p.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function L(){return h(b?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:g,stepPixelSize:"5",ml:"0",format:function(){function L(I){return I+"%"}return L}(),onChange:function(){function L(I,w){return h("health_adj",{new:w})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:B,stepPixelSize:"5",ml:"0",onChange:function(){function L(I,w){return h("oxy_adj",{new:w})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"On":"Off",onClick:function(){function L(){return h(S?"critOff":"critOn")}return L}()})})]})}},35935:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapDisperser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapDisperser=function(){function k(C){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=function(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.faillink,i=u.calibration,c=u.overmapdir,l=u.cal_accuracy,h=u.strength,p=u.range,v=u.next_shot,b=u.nopower,g=u.skill,N=u.chargeload;return d?(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Targeting",textAlign:"center",children:(0,e.createComponentVNode)(2,f.OvermapPanControls,{actToDo:"choose",selected:function(){function B(S){return S===c}return B}()})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"74%",grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Charge",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Load Type",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cooldown",children:v===0&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Ready"})||v>1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," Seconds",(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Calibration",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l}),"%",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"exchange-alt",onClick:function(){function B(){return m("skill_calibration")}return B}(),children:"Pre-Calibration"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:i.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:["Cal #",S,":",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"random",onClick:function(){function L(){return m("calibration",{calibration:S})}return L}(),children:B.toString()})]},S)})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Setup",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",onClick:function(){function B(){return m("strength")}return B}(),children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radius",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){function B(){return m("range")}return B}(),children:p})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){function B(){return m("fire")}return B}(),children:"Fire ORB"})})]})}},36502:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapEnginesContent=r.OvermapEngines=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapEngines=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:530,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.OvermapEnginesContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.global_state,d=m.global_limit,i=m.engines_info,c=m.total_thrust;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engines",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,onClick:function(){function l(){return s("global_toggle")}return l}(),children:u?"Shut All Engines Down":"Start All Engines"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("global_limit",{global_limit:-.1})}return l}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("set_global_limit")}return l}(),children:[d,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("global_limit",{global_limit:.1})}return l}(),icon:"plus"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Thrust",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:i.map(function(l,h){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:h!==0&&-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"80%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Engine #",h+1," | Thrust:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.eng_thrust})," | Limit:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.eng_thrust_limiter,format:function(){function p(v){return v+"%"}return p}()})]}),children:(0,e.createComponentVNode)(2,t.Section,{width:"127%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l.eng_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Box,{color:l.eng_on?l.eng_on===1?"good":"average":"bad",children:l.eng_on?l.eng_on===1?"Online":"Booting":"Offline"}),l.eng_status.map(function(p){return Array.isArray(p)?(0,e.createComponentVNode)(2,t.Box,{color:p[1],children:p[0]}):(0,e.createComponentVNode)(2,t.Box,{children:p})})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Thrust",children:l.eng_thrust}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("limit",{limit:-.1,engine:l.eng_reference})}return p}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("set_limit",{engine:l.eng_reference})}return p}(),children:[l.eng_thrust_limiter,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("limit",{limit:.1,engine:l.eng_reference})}return p}(),icon:"plus"})]})]})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,iconSpin:l.eng_on===-1,color:l.eng_on===-1?"purple":null,selected:l.eng_on===1,icon:"power-off",onClick:function(){function p(){return s("toggle_engine",{engine:l.eng_reference})}return p}(),children:l.eng_on?l.eng_on===1?"Shutoff":"Booting":"Startup"})})]},h)})})],4)}return y}()},64948:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapFull=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(36502),V=n(58555),y=n(71288),k=r.OvermapFull=function(){function C(s){var m=(0,a.useLocalState)("overmapFullState",0),u=m[0],d=m[1];return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===0,onClick:function(){function i(){return d(0)}return i}(),children:"Engines"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===1,onClick:function(){function i(){return d(1)}return i}(),children:"Helm"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===2,onClick:function(){function i(){return d(2)}return i}(),children:"Sensors"})]}),u===0&&(0,e.createComponentVNode)(2,f.OvermapEnginesContent),u===1&&(0,e.createComponentVNode)(2,V.OvermapHelmContent),u===2&&(0,e.createComponentVNode)(2,y.OvermapShipSensorsContent)]})})}return C}()},58555:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapHelmContent=r.OvermapHelm=r.OvermapFlightDataWrap=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapHelm=function(){function u(d){return(0,e.createComponentVNode)(2,o.Window,{width:565,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return u}(),y=r.OvermapHelmContent=function(){function u(d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"40%",height:"180px",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"25%",height:"180px",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"35%",height:"180px",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,m)],4)}return u}(),k=r.OvermapFlightDataWrap=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Flight Data",16),(0,e.createComponentVNode)(2,f.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})}return u}(),C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.canburn,p=l.manual_control;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Manual Control",16),(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f.OvermapPanControls,{disabled:!h,actToDo:"move"})})}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",mt:1,children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.createComponentVNode)(2,t.Button,{selected:p,onClick:function(){function v(){return c("manual")}return v}(),icon:"compass",children:p?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.dest,p=l.d_x,v=l.d_y,b=l.speedlimit,g=l.autopilot,N=l.autopilot_disabled;return N?(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){function B(){return c("apilot_lock")}return B}()})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("setcoord",{setx:!0})}return B}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("setcoord",{sety:!0})}return B}(),children:v})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function B(){return c("setcoord",{setx:!0,sety:!0})}return B}(),children:"None"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed Limit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tachometer-alt",onClick:function(){function B(){return c("speedlimit")}return B}(),children:[b," Gm/h"]})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,selected:g,disabled:!h,icon:"robot",onClick:function(){function B(){return c("apilot")}return B}(),children:g?"Engaged":"Disengaged"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){function B(){return c("apilot_lock")}return B}(),children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.sector,p=l.s_x,v=l.s_y,b=l.sector_info,g=l.landed,N=l.locations;return(0,e.createComponentVNode)(2,t.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[p," : ",v]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Data",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:g})]}),(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"save",onClick:function(){function B(){return c("add",{add:"current"})}return B}(),children:"Save Current Position"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sticky-note",onClick:function(){function B(){return c("add",{add:"new"})}return B}(),children:"Add New Entry"})})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,scrollable:!0,height:"130px",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Coordinates"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),N.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:B.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[B.x," : ",B.y]}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",onClick:function(){function S(){return c("setds",{x:B.x,y:B.y})}return S}(),children:"Plot Course"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function S(){return c("remove",{remove:B.reference})}return S}(),children:"Remove"})]})]},B.name)})]})})]})}},49306:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapNavigationContent=r.OvermapNavigation=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapNavigation=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=r.OvermapNavigationContent=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.sector,i=u.s_x,c=u.s_y,l=u.sector_info,h=u.viewing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Current Location",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:h,onClick:function(){function p(){return m("viewing")}return p}(),children:"Map View"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[i," : ",c]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Additional Information",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flight Data",children:(0,e.createComponentVNode)(2,f.OvermapFlightData,{disableLimiterControls:!0})})],4)}return k}()},13202:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShieldGenerator=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapShieldGenerator=function(){function C(s){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return C}(),V=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.modes,c=d.offline_for;return c?(0,e.createComponentVNode)(2,t.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Section,{title:"Field Calibration",children:i.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l.status,onClick:function(){function h(){return u("toggle_mode",{toggle_mode:l.flag})}return h}(),children:l.status?"Enabled":"Disabled"}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:l.desc}),(0,e.createComponentVNode)(2,t.Box,{mt:.5,children:["Multiplier: ",l.multiplier]})]},l.name)})})],4)},y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.running,c=d.overloaded,l=d.mitigation_max,h=d.mitigation_physical,p=d.mitigation_em,v=d.mitigation_heat,b=d.field_integrity,g=d.max_energy,N=d.current_energy,B=d.percentage_energy,S=d.total_segments,L=d.functional_segments,I=d.field_radius,w=d.target_radius,T=d.input_cap_kw,E=d.upkeep_power_usage,A=d.power_usage,M=d.spinup_counter;return(0,e.createComponentVNode)(2,t.Section,{title:"System Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generator is",children:i===1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Shutting Down"})||i===2&&(c&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Overloaded"})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Running"}))||i===3&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Inactive"})||i===4&&(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:["Spinning Up\xA0",w!==I&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[M*2,"s"]})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:g,children:[N," / ",g," MJ (",B,"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shield Integrity",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:b}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mitigation",children:[p,"% EM / ",h,"% PH / ",v,"% HE / ",l,"% MAX"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:E})," kW"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Energy Use",children:T&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,maxValue:T,children:[A," / ",T," kW"]})})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})," kW (No Limit)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Field Size",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"\xA0/\xA0",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:S})," m\xB2 (radius"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),", target"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),")"]})]})})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.running,c=d.hacked,l=d.idle_multiplier,h=d.idle_valid_values;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([i>=2&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("begin_shutdown")}return p}(),selected:!0,children:"Turn off"}),i===3&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("toggle_idle",{toggle_idle:0})}return p}(),children:"Activate"})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("toggle_idle",{toggle_idle:1})}return p}(),selected:!0,children:"Deactivate"})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("start_generator")}return p}(),children:"Turn on"}),i&&c&&(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",onClick:function(){function p(){return u("emergency_shutdown")}return p}(),color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",onClick:function(){function p(){return u("set_range")}return p}(),children:"Set Field Range"}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",onClick:function(){function p(){return u("set_input_cap")}return p}(),children:"Set Input Cap"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set inactive power use intensity",children:h.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{selected:p===l,disabled:i===4,onClick:function(){function v(){return u("switch_idle",{switch_idle:p})}return v}(),children:p},p)})})})]})}},71288:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShipSensorsContent=r.OvermapShipSensors=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapShipSensors=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:375,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.OvermapShipSensorsContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.viewing,d=m.on,i=m.range,c=m.health,l=m.max_health,h=m.heat,p=m.critical_heat,v=m.status,b=m.contacts;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:u,onClick:function(){function g(){return s("viewing")}return g}(),children:"Map View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,onClick:function(){function g(){return s("toggle_sensor")}return g}(),children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{icon:"signal",onClick:function(){function g(){return s("range")}return g}(),children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[l*.75,1/0],average:[l*.25,l*.75],bad:[-1/0,l*.25]},value:c,maxValue:l,children:[c," / ",l]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[p*.75,1/0],average:[p*.5,p*.75],good:[-1/0,p*.5]},value:h,maxValue:p,children:h0||!h)&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"times",onClick:function(){function B(){return m("cancel",{cancel:N+1})}return B}(),children:"Cancel"})||null]},g)})||(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Recipes",children:b.length&&b.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",onClick:function(){function N(){return m("queue",{queue:g.type})}return N}(),children:(0,f.toTitleCase)(g.name)})},g.name)})})]})})}return k}()},42391:function(x,r,n){"use strict";r.__esModule=!0,r.PathogenicIsolator=void 0;var e=n(58734),a=n(54777),t=n(57027),o=n(35239),f=n(47007),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.can_print,l=m.args;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!c,icon:"print",content:"Print",onClick:function(){function h(){return d("print",{type:"virus_record",vir:l.record})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function h(){return d("modal_close")}return h}()})],4),children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:l.symptoms.map(function(h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h.stage+". "+h.name,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Strength:"})," ",h.strength,"\xA0"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",h.aggressiveness]})]},h.stage)})})})]})})})},y=r.PathogenicIsolator=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.isolating,l=(0,a.useLocalState)("tabIndex",0),h=l[0],p=l[1],v=null;return h===0?v=(0,e.createComponentVNode)(2,k):h===1&&(v=(0,e.createComponentVNode)(2,C)),(0,t.modalRegisterBodyOverride)("virus",V),(0,e.createComponentVNode)(2,f.Window,{height:500,width:520,resizable:!0,children:[(0,e.createComponentVNode)(2,t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c&&(0,e.createComponentVNode)(2,o.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===0,onClick:function(){function b(){return p(0)}return b}(),children:"Home"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===1,onClick:function(){function b(){return p(1)}return b}(),children:"Database"})]}),v]})]})}return s}(),k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.syringe_inserted,l=i.pathogen_pool,h=i.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Pathogens",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!h,onClick:function(){function p(){return d("print",{type:"patient_diagnosis"})}return p}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Syringe",disabled:!c,onClick:function(){function p(){return d("eject")}return p}()})],4),children:l.length&&l.map(function(p){return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:[(0,e.createVNode)(1,"u",null,[(0,e.createTextVNode)("Stamm #"),p.unique_id],0),p.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Isolate",onClick:function(){function v(){return d("isolate",{isolate:p.reference})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Database",disabled:!p.is_in_database,onClick:function(){function v(){return d("view_entry",{vir:p.record})}return v}()})]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",mb:1,children:p.name}),p.dna]})]},p.unique_id)})||(c?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No samples detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No syringe inserted."}))})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.database,l=i.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Database",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!l,onClick:function(){function h(){return d("print",{type:"virus_list"})}return h}()}),children:c.length&&c.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function p(){return d("view_entry",{vir:h.record})}return p}(),children:h.name},h.name)})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"The viral database is empty."})})}},9679:function(x,r,n){"use strict";r.__esModule=!0,r.Pda=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45063),V=n(72884),y=function(d){var i;try{i=V("./"+d+".jsx")}catch(l){if(l.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",d);throw l}var c=i[d];return c||(0,f.routingError)("missingExport",d)},k=r.Pda=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.app,p=l.owner,v=l.useRetro;if(!p)return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var b=y(h.template),g=(0,a.useLocalState)("settingsMode",!1),N=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:580,height:670,theme:v?"pda-retro":null,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,C,{settingsMode:N,setSettingsMode:B}),N&&(0,e.createComponentVNode)(2,s)||(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h.icon,mr:1}),h.name]}),p:1,children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Box,{mb:8}),(0,e.createComponentVNode)(2,m,{setSettingsMode:B})]})})}return u}(),C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.settingsMode,p=d.setSettingsMode,v=l.idInserted,b=l.idLink,g=l.cartridge_name,N=l.stationTime;return(0,e.createComponentVNode)(2,t.Box,{mb:1,children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-between",children:[!!v&&(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",color:"transparent",onClick:function(){function B(){return c("Authenticate")}return B}(),content:b})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:N}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:h,onClick:function(){function B(){return p(!h)}return B}(),icon:"cog"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("Retro")}return B}(),icon:"adjust"})]})]})})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.idInserted,p=l.idLink,v=l.cartridge_name,b=l.touch_silent;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Retro Theme",onClick:function(){function g(){return c("Retro")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Touch Sounds",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){function g(){return c("TouchSounds")}return g}()})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cartridge",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return c("Eject")}return g}(),content:v})}),!!h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return c("Authenticate")}return g}(),content:p})})]})})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.setSettingsMode,p=l.app,v=l.useRetro;return(0,e.createComponentVNode)(2,t.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:v?"#6f7961":"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:p.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){function b(){return c("Back")}return b}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:p.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){function b(){h(!1),c("Home")}return b}()})})]})})}},77222:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007);function f(s,m){var u=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(u)return(u=u.call(s)).next.bind(u);if(Array.isArray(s)||(u=V(s))||m&&s&&typeof s.length=="number"){u&&(s=u);var d=0;return function(){return d>=s.length?{done:!0}:{done:!1,value:s[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(s,m){if(s){if(typeof s=="string")return y(s,m);var u=Object.prototype.toString.call(s).slice(8,-1);if(u==="Object"&&s.constructor&&(u=s.constructor.name),u==="Map"||u==="Set")return Array.from(s);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y(s,m)}}function y(s,m){(m==null||m>s.length)&&(m=s.length);for(var u=0,d=new Array(m);u=.5&&"good"||u>.15&&"average"||"bad";return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!m.anchored&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Generator not anchored."}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power switch",children:(0,e.createComponentVNode)(2,t.Button,{icon:m.active?"power-off":"times",onClick:function(){function i(){return s("toggle_power")}return i}(),selected:m.active,disabled:!m.ready_to_boot,children:m.active?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Type",buttons:m.fuel_stored>=1&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"eject",disabled:m.active,onClick:function(){function i(){return s("eject")}return i}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,t.Box,{color:d,children:[m.fuel_stored,"cm\xB3 ",m.sheet_name]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.fuel_stored/m.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[m.fuel_stored,"cm\xB3 / ",m.fuel_capacity,"cm\xB3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Usage",children:[m.fuel_usage," cm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.temperature_current,maxValue:m.temperature_max+30,color:m.temperature_overheat?"bad":"good",children:[(0,f.round)(m.temperature_current),"\xB0C"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current output",color:m.unsafe_output?"bad":null,children:m.power_output}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust output",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",onClick:function(){function i(){return s("lower_power")}return i}(),children:m.power_generated}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function i(){return s("higher_power")}return i}(),children:m.power_generated})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power available",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!m.connected&&"bad",children:m.connected?m.power_available:"Unconnected"})})]})})]})})}return y}()},68919:function(x,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(6541),V=r.PortablePump=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.direction,d=m.target_pressure,i=m.default_pressure,c=m.min_pressure,l=m.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:375,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){function h(){return s("direction")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:c,maxValue:l,value:d,unit:"kPa",stepPixelSize:.3,onChange:function(){function h(p,v){return s("pressure",{pressure:v})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:d===c,onClick:function(){function h(){return s("pressure",{pressure:"min"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",disabled:d===i,onClick:function(){function h(){return s("pressure",{pressure:"reset"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:d===l,onClick:function(){function h(){return s("pressure",{pressure:"max"})}return h}()})]})]})})]})})}return y}()},3042:function(x,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(6541),V=r.PortableScrubber=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.rate,d=m.minrate,i=m.maxrate;return(0,e.createComponentVNode)(2,o.Window,{width:320,height:350,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,f.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Power Regulator",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:d,maxValue:i,value:u,unit:"L/s",onChange:function(){function c(l,h){return s("volume_adj",{vol:h})}return c}()})})})})]})})}return y}()},11692:function(x,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PortableTurret=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked,u=s.on,d=s.lethal,i=s.lethal_is_configurable,c=s.targetting_is_configurable,l=s.check_weapons,h=s.neutralize_noaccess,p=s.neutralize_norecord,v=s.neutralize_criminals,b=s.neutralize_all,g=s.neutralize_nonsynth,N=s.neutralize_unidentified,B=s.neutralize_down;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:m,onClick:function(){function S(){return C("power")}return S}()})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:m,onClick:function(){function S(){return C("lethal")}return S}()})})]})}),!!c&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Wanted Criminals",disabled:m,onClick:function(){function S(){return C("autharrest")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"No Sec Record",disabled:m,onClick:function(){function S(){return C("authnorecord")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Unauthorized Weapons",disabled:m,onClick:function(){function S(){return C("authweapon")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:m,onClick:function(){function S(){return C("authaccess")}return S}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){function S(){return C("authxeno")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"All Non-Synthetics",disabled:m,onClick:function(){function S(){return C("authsynth")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Downed Targets",disabled:m,onClick:function(){function S(){return C("authdown")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:m,onClick:function(){function S(){return C("authall")}return S}()})]})],4)]})})}return V}()},81757:function(x,r,n){"use strict";r.__esModule=!0,r.powerRank=r.PowerMonitorFocus=r.PowerMonitorContent=r.PowerMonitor=r.AreaCharge=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(5339),f=n(59641),V=n(54777),y=n(35239),k=n(47007),C=5e5,s=r.powerRank=function(){function l(h){var p=String(h.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(p)}return l}(),m=r.PowerMonitor=function(){function l(){return(0,e.createComponentVNode)(2,k.Window,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,u)})})}return l}(),u=r.PowerMonitorContent=function(){function l(h){var p=(0,V.useBackend)(),v=p.act,b=p.data,g=b.map_levels,N=b.all_sensors,B=b.focus;if(B)return(0,e.createComponentVNode)(2,d,{focus:B});var S=(0,e.createComponentVNode)(2,y.Box,{color:"bad",children:"No sensors detected"});return N&&(S=(0,e.createComponentVNode)(2,y.Table,{children:N.map(function(L){return(0,e.createComponentVNode)(2,y.Table.Row,{children:(0,e.createComponentVNode)(2,y.Table.Cell,{children:(0,e.createComponentVNode)(2,y.Button,{content:L.name,icon:L.alarm?"bell":"sign-in-alt",onClick:function(){function I(){return v("setsensor",{id:L.name})}return I}()})})},L.name)})})),(0,e.createComponentVNode)(2,y.Section,{title:"No active sensor. Listing all.",buttons:(0,e.createComponentVNode)(2,y.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){function L(){return v("refresh")}return L}()}),children:S})}return l}(),d=r.PowerMonitorFocus=function(){function l(h){var p=(0,V.useBackend)(),v=p.act,b=p.data,g=h.focus,N=g.history,B=(0,V.useLocalState)("sortByField",null),S=B[0],L=B[1],I=N.supply[N.supply.length-1]||0,w=N.demand[N.demand.length-1]||0,T=N.supply.map(function(R,O){return[O,R]}),E=N.demand.map(function(R,O){return[O,R]}),A=Math.max.apply(Math,[C].concat(N.supply,N.demand)),M=(0,t.flow)([(0,a.map)(function(R,O){return Object.assign({},R,{id:R.name+O})}),S==="name"&&(0,a.sortBy)(function(R){return R.name}),S==="charge"&&(0,a.sortBy)(function(R){return-R.charge}),S==="draw"&&(0,a.sortBy)(function(R){return-s(R.load)},function(R){return-parseFloat(R.load)}),S==="problems"&&(0,a.sortBy)(function(R){return R.eqp},function(R){return R.lgt},function(R){return R.env},function(R){return R.charge},function(R){return R.name})])(g.areas);return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Section,{title:g.name,buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){function R(){return v("clear")}return R}()})}),(0,e.createComponentVNode)(2,y.Flex,{mx:-.5,mb:1,children:[(0,e.createComponentVNode)(2,y.Flex.Item,{mx:.5,width:"200px",children:(0,e.createComponentVNode)(2,y.Section,{children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,y.ProgressBar,{value:I,minValue:0,maxValue:A,color:"teal",children:(0,o.toFixed)(I/1e3)+" kW"})}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,y.ProgressBar,{value:w,minValue:0,maxValue:A,color:"pink",children:(0,o.toFixed)(w/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,y.Flex.Item,{mx:.5,grow:1,children:(0,e.createComponentVNode)(2,y.Section,{position:"relative",height:"100%",children:[(0,e.createComponentVNode)(2,y.Chart.Line,{fillPositionedParent:!0,data:T,rangeX:[0,T.length-1],rangeY:[0,A],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.createComponentVNode)(2,y.Chart.Line,{fillPositionedParent:!0,data:E,rangeX:[0,E.length-1],rangeY:[0,A],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,y.Section,{children:[(0,e.createComponentVNode)(2,y.Box,{mb:1,children:[(0,e.createComponentVNode)(2,y.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="name",content:"Name",onClick:function(){function R(){return L(S!=="name"&&"name")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="charge",content:"Charge",onClick:function(){function R(){return L(S!=="charge"&&"charge")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="draw",content:"Draw",onClick:function(){function R(){return L(S!=="draw"&&"draw")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="problems",content:"Problems",onClick:function(){function R(){return L(S!=="problems"&&"problems")}return R}()})]}),(0,e.createComponentVNode)(2,y.Table,{children:[(0,e.createComponentVNode)(2,y.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,y.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,y.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),M.map(function(R,O){return(0,e.createVNode)(1,"tr","Table__row candystripe",[(0,e.createVNode)(1,"td",null,R.name,0),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,e.createComponentVNode)(2,i,{charging:R.charging,charge:R.charge}),2),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",R.load,0),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.eqp}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.lgt}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.env}),2)],4,null,R.id)})]})]})],4)}return l}(),i=r.AreaCharge=function(){function l(h){var p=h.charging,v=h.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{width:"18px",textAlign:"center",name:p===0&&(v>50?"battery-half":"battery-quarter")||p===1&&"bolt"||p===2&&"battery-full",color:p===0&&(v>50?"yellow":"red")||p===1&&"yellow"||p===2&&"green"}),(0,e.createComponentVNode)(2,y.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)}return l}();i.defaultHooks=f.pureComponentHooks;var c=function(h){var p=h.status,v=!!(p&2),b=!!(p&1),g=(v?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,y.ColorBox,{color:v?"good":"bad",content:b?void 0:"M",title:g})};c.defaultHooks=f.pureComponentHooks},94479:function(x,r,n){"use strict";r.__esModule=!0,r.PressureRegulator=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PressureRegulator=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.pressure_set,d=s.max_pressure,i=s.input_pressure,c=s.output_pressure,l=s.regulate_mode,h=s.set_flow_rate,p=s.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:370,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p/10})," L/s"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"Unlocked":"Closed",selected:m,onClick:function(){function v(){return C("toggle_valve")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Off",selected:l===0,onClick:function(){function v(){return C("regulate_mode",{mode:"off"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"Input",selected:l===1,onClick:function(){function v(){return C("regulate_mode",{mode:"input"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"Output",selected:l===2,onClick:function(){function v(){return C("regulate_mode",{mode:"output"})}return v}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function v(){return C("set_press",{press:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function v(){return C("set_press",{press:"max"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function v(){return C("set_press",{press:"set"})}return v}()})],4),children:[u/100," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function v(){return C("set_flow_rate",{press:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function v(){return C("set_flow_rate",{press:"max"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function v(){return C("set_flow_rate",{press:"set"})}return v}()})],4),children:[h/10," L/s"]})]})})]})})}return V}()},14984:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerManagement=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PrisonerManagement=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked,u=s.chemImplants,d=s.trackImplants;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m&&(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",onClick:function(){function i(){return C("lock")}return i}(),children:"Unlock"})})]})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Interface Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function i(){return C("lock")}return i}(),children:"Lock Interface"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Implants",children:u.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Inject"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.host}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[i.units,"u remaining"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:1})}return c}(),children:"(1)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:5})}return c}(),children:"(5)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:10})}return c}(),children:"(10)"})]})]},i.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Tracking Implants",children:d.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Message"})]}),d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[i.host," (",i.id,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.loc}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("warn",{imp:i.ref})}return c}(),children:"Message"})})]},i.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})})],4)})})}return V}()},34624:function(x,r,n){"use strict";r.__esModule=!0,r.RCONContent=r.RCON=void 0;var e=n(58734),a=n(5339),t=n(420),o=n(54777),f=n(35239),V=n(47007),y=n(40946),k=1e3,C=r.RCON=function(){function c(l){return(0,e.createComponentVNode)(2,V.Window,{width:630,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,s)})})}return c}(),s=r.RCONContent=function(){function c(l){var h=(0,o.useLocalState)("tabIndex",0),p=h[0],v=h[1],b;return p===0?b=(0,e.createComponentVNode)(2,m):p===1&&(b=(0,e.createComponentVNode)(2,i)),(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:p===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,f.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:p===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:b})],4)}return c}(),m=function(l){var h=(0,o.useBackend)(),p=h.act,v=h.data,b=v.smes_info,g=v.pages,N=v.current_page,B=function(L){return L()};return(0,e.createComponentVNode)(2,f.Section,{title:"SMESs (Page "+N+")",children:[(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,children:b.map(function(S){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{smes:S})},S.RCON_tag)})}),"Page Selection:",(0,e.createVNode)(1,"br"),B(function(){for(var S=[],L=function(T){S.push((0,e.createComponentVNode)(2,f.Button,{selected:N===T,onClick:function(){function E(){return p("set_smes_page",{index:T})}return E}(),children:T},T))},I=1;I=2?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Engage: ",v.engagecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Active: ",v.activecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Passive: ",v.passivecost]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:v.desc})]}),v.charges?(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Module Charges",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected",children:(0,f.capitalize)(v.chargetype)}),v.charges.map(function(g,N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.capitalize)(g.caption),children:(0,e.createComponentVNode)(2,t.Button,{selected:v.realchargetype===g.index,icon:"arrow-right",onClick:function(){function B(){return d("interact_module",{module:v.index,module_mode:"select_charge_type",charge_type:g.index})}return B}()})},g.caption)})]})})}):null]},v.name)})]})}},72802:function(x,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(61994),V=n(47007),y=r.Radio=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.rawfreq,i=u.minFrequency,c=u.maxFrequency,l=u.listening,h=u.broadcasting,p=u.subspace,v=u.subspaceSwitchable,b=u.chan_list,g=u.loudspeaker,N=u.mic_cut,B=u.spk_cut,S=u.useSyndMode,L=f.RADIO_CHANNELS.find(function(w){return w.freq===Number(d)}),I=156;return b&&b.length>0?I+=b.length*28+6:I+=24,v&&(I+=38),(0,e.createComponentVNode)(2,V.Window,{width:310,height:I,resizable:!0,theme:S?"syndicate":"",children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:i/10,maxValue:c/10,value:d/10,format:function(){function w(T){return(0,a.toFixed)(T,1)}return w}(),onDrag:function(){function w(T,E){return m("setFrequency",{freq:(0,a.round)(E*10)})}return w}()}),L&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:L.color,ml:2,children:["[",L.name,"]"]})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:l?"volume-up":"volume-mute",selected:l,disabled:B,onClick:function(){function w(){return m("listen")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:N,onClick:function(){function w(){return m("broadcast")}return w}()}),!!v&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"bullhorn",selected:p,content:"Subspace Tx "+(p?"ON":"OFF"),onClick:function(){function w(){return m("subspace")}return w}()})}),!!v&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:g?"volume-up":"volume-mute",selected:g,content:"Loudspeaker",onClick:function(){function w(){return m("toggleLoudspeaker")}return w}()})})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Channels",children:[(!b||b.length===0)&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:b?b.map(function(w){var T=f.RADIO_CHANNELS.find(function(A){return A.freq===Number(w.freq)}),E="default";return T&&(E=T.color),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.display_name,labelColor:E,textAlign:"right",children:w.secure_channel&&p?(0,e.createComponentVNode)(2,o.Button,{icon:w.sec_channel_listen?"square-o":"check-square-o",selected:!w.sec_channel_listen,content:w.sec_channel_listen?"Off":"On",onClick:function(){function A(){return m("channel",{channel:w.chan})}return A}()}):(0,e.createComponentVNode)(2,o.Button,{content:"Switch",selected:w.chan===d,onClick:function(){function A(){return m("specFreq",{channel:w.chan})}return A}()})},w.chan)}):null})]})]})})}return k}()},3386:function(x,r,n){"use strict";r.__esModule=!0,r.RapidPipeDispenser=r.ICON_BY_CATEGORY_NAME=void 0;var e=n(58734),a=n(59641),t=n(40946),o=n(54777),f=n(35239),V=n(47007),y=["Atmospherics","Disposals"],k=r.ICON_BY_CATEGORY_NAME={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},C=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],s=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category,b=p.selected_color,g=p.mode;return(0,e.createComponentVNode)(2,f.Section,{children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Category",children:y.map(function(N,B){return(0,e.createComponentVNode)(2,f.Button,{selected:v===B,icon:k[N],color:"transparent",onClick:function(){function S(){return h("category",{category:B})}return S}(),children:N},N)})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Modes",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:C.map(function(N){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:g&N.bitmask,fluid:!0,content:N.name,onClick:function(){function B(){return h("mode",{mode:N.bitmask})}return B}()})},N.bitmask)})})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Color",children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,width:"64px",color:p.paint_colors[b],children:(0,t.capitalize)(b)}),Object.keys(p.paint_colors).map(function(N){return(0,e.createComponentVNode)(2,f.ColorBox,{ml:1,color:p.paint_colors[N],onClick:function(){function B(){return h("color",{paint_color:N})}return B}()},N)})]})]})})},m=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category,b=p.piping_layer,g=p.pipe_layers,N=p.preview_rows.flatMap(function(B){return B.previews});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,width:7.5,children:[v===0&&(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,mb:1,children:Object.keys(g).map(function(B){return(0,e.createComponentVNode)(2,f.Stack.Item,{my:0,children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:g[B]===b,content:B,onClick:function(){function S(){return h("piping_layer",{piping_layer:g[B]})}return S}()})},B)})}),(0,e.createComponentVNode)(2,f.Box,{width:"120px",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Button,{ml:0,title:B.dir_name,selected:B.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){function S(){return h("setdir",{dir:B.dir,flipped:B.flipped})}return S}(),children:(0,e.createComponentVNode)(2,f.Box,{className:(0,a.classes)(["pipes32x32",B.dir+"-"+B.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},B.dir)})})]})},u=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.categories,b=v===void 0?[]:v,g=(0,o.useLocalState)("categoryName"),N=g[0],B=g[1],S=b.find(function(L){return L.cat_name===N})||b[0];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Tabs,{children:b.map(function(L,I){return(0,e.createComponentVNode)(2,f.Tabs.Tab,{fluid:!0,icon:k[L.cat_name],selected:L.cat_name===S.cat_name,onClick:function(){function w(){return B(L.cat_name)}return w}(),children:L.cat_name},L.cat_name)})}),S==null?void 0:S.recipes.map(function(L){return(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:L.selected,content:L.pipe_name,title:L.pipe_name,onClick:function(){function I(){return h("pipe_type",{pipe_type:L.pipe_index,category:S.cat_name})}return I}()},L.pipe_index)})]})},d=r.RapidPipeDispenser=function(){function i(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category;return(0,e.createComponentVNode)(2,V.Window,{width:550,height:570,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return i}()},2853:function(x,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=0,y=1,k=2,C=3,s=4,m=5,u=6,d=7,i=8,c=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.silent;return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,o.Button,{selected:!R,icon:R?"volume-mute":"volume-up",onClick:function(){function O(){return A("toggleSilent")}return O}(),children:["Speaker ",R?"OFF":"ON"]})})},l=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.supply_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Supplies",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},h=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.assist_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Request assistance from another department",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},p=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.info_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Report Anonymous Information",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},v=function(T){var E=(0,t.useBackend)(),A=E.act,M=T.dept_list,R=T.department;return(0,e.createComponentVNode)(2,o.LabeledList,{children:M.sort().map(function(O){return O!==R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"envelope-open-text",onClick:function(){function F(){return A("write",{write:O,priority:1})}return F}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"exclamation-triangle",onClick:function(){function F(){return A("write",{write:O,priority:2})}return F}(),children:"High Priority"})],4)})||null})})},b=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function R(){return A("setScreen",{setScreen:V})}return R}(),children:"Continue"})})]})},g=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function R(){return A("setScreen",{setScreen:V})}return R}(),children:"Continue"})})]})},N=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.message_log;return(0,e.createComponentVNode)(2,o.Section,{title:"Messages",children:R.length&&R.map(function(O,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(O[0]),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function D(){return A("print",{print:F+1})}return D}(),children:"Print"}),children:(0,a.decodeHtmlEntities)(O[1])},F)})||(0,e.createComponentVNode)(2,o.Box,{children:"No messages."})})},B=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.message,O=M.recipient,F=M.priority,D=M.msgStamped,j=M.msgVerified;return(0,e.createComponentVNode)(2,o.Section,{title:"Message Authentication",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message for "+O,children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Priority",children:F===2?"High Priority":F===1?"Normal Priority":"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Validated By",color:j?"good":"bad",children:(0,a.decodeHtmlEntities)(j)||"No Validation"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamped By",color:D?"good":"bad",children:(0,a.decodeHtmlEntities)(D)||"No Stamp"})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"share",onClick:function(){function _(){return A("department",{department:O})}return _}(),children:"Send Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return A("setScreen",{setScreen:V})}return _}(),children:"Back"})]})},S=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.screen,F=M.message_log,D=M.newmessagepriority,j=M.silent,_=M.announcementConsole,z=M.assist_dept,H=M.supply_dept,Q=M.info_dept,Y=M.message,X=M.recipient,$=M.priority,G=M.msgStamped,Z=M.msgVerified,te=M.announceAuth;return(0,e.createComponentVNode)(2,o.Section,{title:"Send Station-Wide Announcement",children:[te&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.createComponentVNode)(2,o.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"pen",onClick:function(){function q(){return A("writeAnnouncement")}return q}(),children:"Edit"}),children:Y||"No Message"})],4)||(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,o.Button,{disabled:!Y||!te,icon:"share",onClick:function(){function q(){return A("sendAnnouncement")}return q}(),children:"Announce"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function q(){return A("setScreen",{setScreen:V})}return q}(),children:"Back"})]})},L={};L[V]=c,L[y]=h,L[k]=l,L[C]=p,L[s]=b,L[m]=g,L[u]=N,L[d]=B,L[i]=S;var I=r.RequestConsole=function(){function w(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.screen,O=M.newmessagepriority,F=M.announcementConsole,D=L[R];return(0,e.createComponentVNode)(2,f.Window,{width:520,height:410,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===u,onClick:function(){function j(){return A("setScreen",{setScreen:u})}return j}(),icon:"envelope-open-text",children:"Messages"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===y,onClick:function(){function j(){return A("setScreen",{setScreen:y})}return j}(),icon:"share-square",children:"Assistance"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===k,onClick:function(){function j(){return A("setScreen",{setScreen:k})}return j}(),icon:"share-square",children:"Supplies"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===C,onClick:function(){function j(){return A("setScreen",{setScreen:C})}return j}(),icon:"share-square-o",children:"Report"}),F&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===i,onClick:function(){function j(){return A("setScreen",{setScreen:i})}return j}(),icon:"volume-up",children:"Announce"})||null,(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===V,onClick:function(){function j(){return A("setScreen",{setScreen:V})}return j}(),icon:"cog"})]}),O&&(0,e.createComponentVNode)(2,o.Section,{title:O>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:O>1?"bad":"average",bold:O>1})||null,(0,e.createComponentVNode)(2,D)]})})}return w}()},79402:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Current Research Levels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function L(){return N("print",{print:1})}return L}(),children:"Print This Page"}),children:(0,e.createComponentVNode)(2,o.Table,{children:S.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:L.name}),(0,e.createComponentVNode)(2,o.Box,{children:[" - Level ",L.level]})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:L.desc})})]},L.name)})})})},y=function(b){var g=(0,t.useBackend)(),N=g.data,B=b.title,S=b.target,L=N[S];return typeof L=="number"?B+" - Page "+(L+1):B},k=function(b){var g=(0,t.useBackend)(),N=g.act,B=b.target;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function S(){return N(B,{reset:!0})}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-left",onClick:function(){function S(){return N(B,{reverse:-1})}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-right",onClick:function(){function S(){return N(B,{reverse:1})}return S}()})],4)},C=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.designs;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function L(){return N("print",{print:2})}return L}(),children:"Print This Page"}),(0,e.createComponentVNode)(2,k,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function L(I,w){return N("search",{search:w})}return L}(),mb:1}),S&&S.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.name,children:L.desc},L.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]})},s=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.tech,L=b.disk;if(!L||!L.present)return null;var I=(0,t.useSharedState)("saveDialogTech",!1),w=I[0],T=I[1];return w?(0,e.createComponentVNode)(2,o.Section,{title:"Load Technology to Disk",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return T(!1)}return E}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){T(!1),N("copy_tech",{copy_tech_ID:E.id})}return A}(),children:"Copy To Disk"})},E.name)})})}):(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),L.stored&&(0,e.createComponentVNode)(2,o.Box,{mt:2,children:[(0,e.createComponentVNode)(2,o.Box,{children:L.name}),(0,e.createComponentVNode)(2,o.Box,{children:["Level: ",L.level]}),(0,e.createComponentVNode)(2,o.Box,{children:["Description: ",L.desc]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return N("updt_tech")}return E}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function E(){return N("clear_tech")}return E}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_tech")}return E}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return T(!0)}return E}(),children:"Load Tech To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_tech")}return E}(),children:"Eject Disk"})]})]})},m=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.designs,L=b.disk;if(!L||!L.present)return null;var I=(0,t.useSharedState)("saveDialogData",!1),w=I[0],T=I[1];return w?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return T(!1)}return E}()}),(0,e.createComponentVNode)(2,k,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function E(A,M){return N("search",{search:M})}return E}(),mb:1}),S&&S.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){T(!1),N("copy_design",{copy_design_ID:E.id})}return A}(),children:"Copy To Disk"})},E.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]}):(0,e.createComponentVNode)(2,o.Box,{children:L.stored&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Lathe Type",children:L.build_type}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Materials",children:Object.keys(L.materials).map(function(E){return(0,e.createComponentVNode)(2,o.Box,{children:[E," x ",L.materials[E]]},E)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return N("updt_design")}return E}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function E(){return N("clear_design")}return E}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_design")}return E}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return T(!0)}return E}(),children:"Load Design To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_design")}return E}(),children:"Eject Disk"})]})})},u=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info,L=S.d_disk,I=S.t_disk;return!L.present&&!I.present?(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:"No disk inserted."}):(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:[(0,e.createComponentVNode)(2,s,{disk:I}),(0,e.createComponentVNode)(2,m,{disk:L})]})},d=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info.linked_destroy;if(!S.present)return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var L=S.loaded_item,I=S.origin_tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:L&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Origin Tech",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.length&&I.map(function(w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.name,children:[w.level,"\xA0\xA0",w.current&&"(Current: "+w.current+")"]},w.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){function w(){return N("deconstruct")}return w}(),children:"Deconstruct Item"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function w(){return N("eject_item")}return w}(),children:"Eject Item"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"No Item Loaded. Standing-by..."})})},i=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=b.target,L=b.designs,I=b.buildName,w=b.buildFiveName;return S?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{target:"builder_page",title:"Designs"}),buttons:(0,e.createComponentVNode)(2,k,{target:"builder_page"}),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function T(E,A){return N("search",{search:A})}return T}(),mb:1}),L&&L.length?L.map(function(T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex,{width:"100%",justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:T.name}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"15%",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{mb:-1,icon:"wrench",onClick:function(){function E(){return N(I,{build:T.id,imprint:T.id})}return E}(),children:"Build"}),w&&(0,e.createComponentVNode)(2,o.Button,{mb:-1,onClick:function(){function E(){return N(w,{build:T.id,imprint:T.id})}return E}(),children:"x5"})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:T.mat_list.join(" ")}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",ml:1,children:T.chem_list.join(" ")})]})]}),(0,e.createComponentVNode)(2,o.Divider)],4,T.id)}):(0,e.createComponentVNode)(2,o.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error"})},c=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=b.name,L=null,I=null;if(S==="Protolathe"?(L=B.info.linked_lathe,I=B.lathe_designs):(L=B.info.linked_imprinter,I=B.imprinter_designs),!L||!L.present)return(0,e.createComponentVNode)(2,o.Section,{title:S,children:["No ",S," found."]});var w=L,T=w.total_materials,E=w.max_materials,A=w.total_volume,M=w.max_volume,R=w.busy,O=w.mats,F=w.reagents,D=w.queue,j=(0,t.useSharedState)("protoTab",0),_=j[0],z=j[1],H="transparent",Q=!1,Y="layer-group";R?(Y="hammer",H="average",Q=!0):D&&D.length&&(Y="sync",H="green",Q=!0);var X=S==="Protolathe"?"removeP":"removeI",$=S==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",G=S==="Protolathe"?"disposeP":"disposeI",Z=S==="Protolathe"?"disposeallP":"disposeallI";return(0,e.createComponentVNode)(2,o.Section,{title:S,buttons:R&&(0,e.createComponentVNode)(2,o.Icon,{name:"sync",spin:!0})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Materials",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:T,maxValue:E,children:[T," cm\xB3 / ",E," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Chemicals",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:A,maxValue:M,children:[A,"u / ",M,"u"]})})]}),(0,e.createComponentVNode)(2,o.Tabs,{mt:1,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:_===0,onClick:function(){function te(){return z(0)}return te}(),children:"Build"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:Y,iconSpin:Q,color:H,selected:_===1,onClick:function(){function te(){return z(1)}return te}(),children:"Queue"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cookie-bite",selected:_===2,onClick:function(){function te(){return z(2)}return te}(),children:"Mat Storage"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"flask",selected:_===3,onClick:function(){function te(){return z(3)}return te}(),children:"Chem Storage"})]}),_===0&&(0,e.createComponentVNode)(2,i,{target:L,designs:I,buildName:S==="Protolathe"?"build":"imprint",buildFiveName:S==="Protolathe"?"buildfive":null})||_===1&&(0,e.createComponentVNode)(2,o.LabeledList,{children:D.length&&D.map(function(te){return te.index===1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,labelColor:"bad",children:R?(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.createComponentVNode)(2,o.Box,{children:["(Awaiting Materials)",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"trash",onClick:function(){function q(){var me;return N(X,(me={},me[X]=te.index,me))}return q}(),children:"Remove"})]})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function q(){var me;return N(X,(me={},me[X]=te.index,me))}return q}(),children:"Remove"})},te.name)})||(0,e.createComponentVNode)(2,o.Box,{m:1,children:"Queue Empty."})})||_===2&&(0,e.createComponentVNode)(2,o.LabeledList,{children:O.map(function(te){var q=(0,t.useLocalState)("ejectAmt"+te.name,0),me=q[0],pe=q[1];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(te.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{minValue:0,width:"100px",value:me,maxValue:te.sheets,onDrag:function(){function Ne(le,re){return pe(re)}return Ne}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!te.removable,onClick:function(){function Ne(){var le;pe(0),N($,(le={},le[$]=te.name,le.amount=me,le))}return Ne}(),children:"Num"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!te.removable,onClick:function(){function Ne(){var le;return N($,(le={},le[$]=te.name,le.amount=50,le))}return Ne}(),children:"All"})],4),children:[te.amount," cm\xB3"]},te.name)})})||_===3&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:F.length&&F.map(function(te){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,children:[te.volume,"u",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",onClick:function(){function q(){return N(G,{dispose:te.id})}return q}(),children:"Purge"})]},te.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"trash",onClick:function(){function te(){return N(Z)}return te}(),children:"Disposal All Chemicals In Storage"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},l=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info,L=S.sync,I=S.linked_destroy,w=S.linked_imprinter,T=S.linked_lathe,E=(0,t.useSharedState)("settingsTab",0),A=E[0],M=E[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cogs",onClick:function(){function R(){return M(0)}return R}(),selected:A===0,children:"General"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"link",onClick:function(){function R(){return M(1)}return R}(),selected:A===1,children:"Device Linkages"})]}),A===0&&(0,e.createComponentVNode)(2,o.Box,{children:[L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",onClick:function(){function R(){return N("sync")}return R}(),children:"Sync Database with Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"unlink",onClick:function(){function R(){return N("togglesync")}return R}(),children:"Disconnect from Research Network"})],4)||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"link",onClick:function(){function R(){return N("togglesync")}return R}(),children:"Connect to Research Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"lock",onClick:function(){function R(){return N("lock")}return R}(),children:"Lock Console"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){function R(){return N("reset")}return R}(),children:"Reset R&D Database"})]})||A===1&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){function R(){return N("find_device")}return R}(),children:"Re-sync with Nearby Devices"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[I.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"destroy"})}return R}(),children:"Disconnect"})})||null,T.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"lathe"})}return R}(),children:"Disconnect"})})||null,w.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"imprinter"})}return R}(),children:"Disconnect"})})||null]})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},h=[{name:"Protolathe",icon:"wrench",template:(0,e.createComponentVNode)(2,c,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.createComponentVNode)(2,c,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.createComponentVNode)(2,d)},{name:"Settings",icon:"cog",template:(0,e.createComponentVNode)(2,l)},{name:"Research List",icon:"flask",template:(0,e.createComponentVNode)(2,V)},{name:"Design List",icon:"file",template:(0,e.createComponentVNode)(2,C)},{name:"Disk Operations",icon:"save",template:(0,e.createComponentVNode)(2,u)}],p=r.ResearchConsole=function(){function v(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.busy_msg,L=B.locked,I=(0,t.useSharedState)("rdmenu",0),w=I[0],T=I[1],E=!1;return(S||L)&&(E=!0),(0,e.createComponentVNode)(2,f.Window,{width:850,height:630,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(A,M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:A.icon,selected:w===M,disabled:E,onClick:function(){function R(){return T(M)}return R}(),children:A.name},M)})}),S&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing...",children:S})||L&&(0,e.createComponentVNode)(2,o.Section,{title:"Console Locked",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function A(){return N("lock")}return A}(),icon:"lock-open",children:"Unlock"})})||h[w].template]})})}return v}()},23925:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchServerController=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45445),V=r.ResearchServerController=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:430,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,y)})})}return u}(),y=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.badmin,p=l.servers,v=l.consoles,b=(0,a.useSharedState)("selectedServer",null),g=b[0],N=b[1],B=p.find(function(S){return S.id===g});return B?(0,e.createComponentVNode)(2,k,{setSelectedServer:N,server:B}):(0,e.createComponentVNode)(2,t.Section,{title:"Server Selection",children:p.map(function(S){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function L(){return N(S.id)}return L}(),children:S.name})},S.name)})})},k=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.badmin,p=d.server,v=d.setSelectedServer,b=(0,a.useSharedState)("tab",0),g=b[0],N=b[1];return(0,e.createComponentVNode)(2,t.Section,{title:p.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function B(){return v(null)}return B}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function B(){return N(0)}return B}(),children:"Access Rights"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function B(){return N(1)}return B}(),children:"Data Management"}),h&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function B(){return N(2)}return B}(),color:"red",children:"Server-to-Server Transfer"})||null]}),g===0&&(0,e.createComponentVNode)(2,C,{server:p})||null,g===1&&(0,e.createComponentVNode)(2,s,{server:p})||null,g===2&&h&&(0,e.createComponentVNode)(2,m,{server:p})||null]})},C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server,p=l.consoles,v=function(N,B){return N.id_with_upload.indexOf(B.id)!==-1},b=function(N,B){return N.id_with_download.indexOf(B.id)!==-1};return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Consoles",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.length&&p.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name+" ("+g.loc+")",children:[(0,e.createComponentVNode)(2,t.Button,{icon:v(h,g)?"lock-open":"lock",selected:v(h,g),onClick:function(){function N(){return c("toggle_upload",{server:h.ref,console:g.ref})}return N}(),children:v(h,g)?"Upload On":"Upload Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:b(h,g)?"lock-open":"lock",selected:b(h,g),onClick:function(){function N(){return c("toggle_download",{server:h.ref,console:g.ref})}return N}(),children:b(h,g)?"Download On":"Download Off"})]},g.name)})})})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Research Levels",children:h.tech.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){function v(){return c("reset_tech",{server:h.ref,tech:p.id})}return v}()})},p.name)})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Designs",children:(0,f.filter)(function(p){return!!p.name})(h.designs).map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){function v(){return c("reset_design",{server:h.ref,design:p.id})}return v}()})},p.name)})})],4)},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server,p=l.badmin,v=l.servers;return p?(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Server Data Transfer",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,color:"bad",content:(0,e.createComponentVNode)(2,t.Box,{children:["Transfer from ",h.name," To ",b.name]}),onClick:function(){function g(){return c("transfer_data",{server:h.ref,target:b.ref})}return g}()})},b.name)})}):null}},95183:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingConsole=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(57027),V=n(47007),y=1,k=2,C=3,s=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=L.args,A=E.activerecord,M=E.realname,R=E.obviously_dead,O=E.oocnotes,F=E.can_sleeve_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+M+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function D(){return w("modal_close")}return D}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"user-plus",content:"Sleeve",onClick:function(){function D(){return w("sleeve",{ref:A,mode:1})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-plus",content:"Card",onClick:function(){function D(){return w("sleeve",{ref:A,mode:2})}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:O})})]})})},m=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=L.args,A=E.activerecord,M=E.realname,R=E.species,O=E.sex,F=E.mind_compat,D=E.synthetic,j=E.oocnotes,_=E.can_grow_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+M+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function z(){return w("modal_close")}return z}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:F}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:D?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:j})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{disabled:!_,icon:"user-plus",content:D?"Build":"Grow",onClick:function(){function z(){return w("create",{ref:A})}return z}()})})]})})},u=r.ResleevingConsole=function(){function S(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.menu,A=T.coredumped,M=T.emergency,R=(0,e.createFragment)([(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,i)})],4);return A&&(R=(0,e.createComponentVNode)(2,c)),M&&(R=(0,e.createComponentVNode)(2,l)),(0,f.modalRegisterBodyOverride)("view_b_rec",m),(0,f.modalRegisterBodyOverride)("view_m_rec",s),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,resizable:!0,children:[(0,e.createComponentVNode)(2,f.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:R})]})}return S}(),d=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===y,icon:"home",onClick:function(){function A(){return w("menu",{num:y})}return A}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===k,icon:"folder",onClick:function(){function A(){return w("menu",{num:k})}return A}(),children:"Body Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===C,icon:"folder",onClick:function(){function A(){return w("menu",{num:C})}return A}(),children:"Mind Records"})]})},i=function(L){var I=(0,t.useBackend)(),w=I.data,T=w.menu,E=w.bodyrecords,A=w.mindrecords,M;return T===y?M=(0,e.createComponentVNode)(2,h):T===k?M=(0,e.createComponentVNode)(2,g,{records:E,actToDo:"view_b_rec"}):T===C&&(M=(0,e.createComponentVNode)(2,g,{records:A,actToDo:"view_m_rec"})),M},c=function(L){return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,e.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},l=function(L){var I=(0,t.useBackend)(),w=I.act;return(0,e.createComponentVNode)(2,o.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){function T(){return w("ejectdisk")}return T}()})}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){function T(){return w("coredump")}return T}()})})]})},h=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.loading,A=T.scantemp,M=T.occupant,R=T.locked,O=T.can_brainscan,F=T.scan_mode,D=T.pods,j=T.selected_pod,_=R&&!!M;return(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v)]})},p=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.pods,A=T.spods,M=T.selected_pod;return E&&E.length?E.map(function(R,O){var F;return R.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(R.progress,0)+"%"})}):R.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:M===R.pod,icon:M===R.pod&&"check",content:"Select",mt:A&&A.length?"2rem":"0.5rem",onClick:function(){function D(){return w("selectpod",{ref:R.pod})}return D}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+R.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:R.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),F]},O)}):null},v=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.sleevers,A=T.spods,M=T.selected_sleever;return E&&E.length?E.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(R.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:R.occupied?"label":"bad",children:R.name}),(0,e.createComponentVNode)(2,o.Button,{selected:M===R.sleever,icon:M===R.sleever&&"check",content:"Select",mt:A&&A.length?"3rem":"1.5rem",onClick:function(){function F(){return w("selectsleever",{ref:R.sleever})}return F}()})]},O)}):null},b=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.spods,A=T.selected_printer;return E&&E.length?E.map(function(M,R){var O;return M.status==="cloning"?O=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?O=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):O=(0,e.createComponentVNode)(2,o.Button,{selected:A===M.spod,icon:A===M.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function F(){return w("selectprinter",{ref:M.spod})}return F}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(M.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:M.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.steel>=15e3?"circle":"circle-o"}),"\xA0",M.steel]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.glass>=15e3?"circle":"circle-o"}),"\xA0",M.glass]}),O]},R)}):null},g=function(L){var I=(0,t.useBackend)(),w=I.act,T=L.records,E=L.actToDo;return T.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:T.map(function(A,M){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:A.name,onClick:function(){function R(){return w(E,{ref:A.recref})}return R}()},M)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},N=function(L){var I,w=(0,t.useBackend)(),T=w.act,E=w.data,A=E.temp;if(!(!A||!A.text||A.text.length<=0)){var M=(I={},I[A.style]=!0,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},M,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:A.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function R(){return T("cleartemp")}return R}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},B=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.pods,A=T.spods,M=T.sleevers,R=T.autoallowed,O=T.autoprocess,F=T.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:E&&E.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[E.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SynthFabs",children:A&&A.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[A.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sleevers",children:M&&M.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[M.length," Connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},32682:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingPod=void 0;var e=n(58734),a=n(47007),t=n(54777),o=n(35239),f=r.ResleevingPod=function(){function V(y){var k=(0,t.useBackend)(),C=k.data,s=C.occupied,m=C.name,u=C.health,d=C.maxHealth,i=C.stat,c=C.mindStatus,l=C.mindName,h=C.resleeveSick,p=C.initialSick;return(0,e.createComponentVNode)(2,a.Window,{width:300,height:350,resizeable:!0,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",children:s?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:m}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:i===2?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"}):i===1?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Unconscious"}):(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:u/d,children:[u,"%"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Status",children:c?"Present":"Missing"}),c?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Occupying",children:l}):""]}),h?(0,e.createComponentVNode)(2,o.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.createFragment)([(0,e.createTextVNode)(" "),(0,e.createTextVNode)("Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],0):""]}):""],0):(0,e.createComponentVNode)(2,o.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}return V}()},77912:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.RoboticsControlConsole=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.can_hack,d=m.safety,i=m.show_detonate_all,c=m.cyborgs,l=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function h(){return s("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:d,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return s("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:l,can_hack:u})]})})}return y}(),V=function(k){var C=k.cyborgs,s=k.can_hack,m=(0,a.useBackend)(),u=m.act,d=m.data;return C.length?C.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createFragment)([!!i.hackable&&!i.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function c(){return u("hackbot",{ref:i.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:i.locked_down?"unlock":"lock",color:i.locked_down?"good":"default",content:i.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function c(){return u("stopbot",{ref:i.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!d.auth,color:"bad",onClick:function(){function c(){return u("killbot",{ref:i.ref})}return c}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:i.status?"bad":i.locked_down?"average":"good",children:i.status?"Not Responding":i.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:i.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i.health>50?"good":"bad",value:i.health/100})}),typeof i.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i.charge>30?"good":"bad",value:i.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:i.cell_capacity<3e4?"average":"good",children:i.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!i.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:i.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:i.synchronization?"default":"average",children:i.synchronization||"None"})})]})},i.ref)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},39975:function(x,r,n){"use strict";r.__esModule=!0,r.RogueZones=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.RogueZones=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.timeout_percent,u=s.diffstep,d=s.difficulty,i=s.occupied,c=s.scanning,l=s.updated,h=s.debug,p=s.shuttle_location,v=s.shuttle_at_station,b=s.scan_ready,g=s.can_recall_shuttle;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current Area",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mineral Content",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Location",buttons:g&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"rocket",onClick:function(){function N(){return C("recall_shuttle")}return N}(),children:"Recall Shuttle"})||null,children:p}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",i," personnel!"]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){function N(){return C("scan_for_new")}return N}(),children:"Scan For Asteroids"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,l&&!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Timeout Percent: ",m]}),(0,e.createComponentVNode)(2,t.Box,{children:["Diffstep: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["Difficulty: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["Occupied: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["Debug: ",h]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle Location: ",p]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle at station: ",v]}),(0,e.createComponentVNode)(2,t.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}return V}()},11950:function(x,r,n){"use strict";r.__esModule=!0,r.RustCoreMonitorContent=r.RustCoreMonitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.RustCoreMonitor=function(){function y(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.RustCoreMonitorContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.cores;return(0,e.createComponentVNode)(2,o.Section,{title:"Cores",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function d(){return s("set_tag")}return d}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reactant Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Instability"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Temperature"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Strength"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Plasma Content"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.has_field?"Online":"Offline",selected:d.has_field,disabled:!d.core_operational,onClick:function(){function i(){return s("toggle_active",{core:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.reactant_dump?"Dump":"Maintain",selected:d.has_field,disabled:!d.core_operational,onClick:function(){function i(){return s("toggle_reactantdump",{core:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.field_instability}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.field_temperature}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!d.has_field&&"yellow",value:d.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(){function i(c,l){return s("set_fieldstr",{core:d.ref,fieldstr:l})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell)]},d.name)})]})})}return y}()},8585:function(x,r,n){"use strict";r.__esModule=!0,r.RustFuelControl=r.RustFuelContent=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.RustFuelControl=function(){function y(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.RustFuelContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.fuels;return(0,e.createComponentVNode)(2,o.Section,{title:"Fuel Injectors",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function d(){return s("set_tag")}return d}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Remaining Fuel"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fuel Rod Composition"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.active?"Online":"Offline",selected:d.active,disabled:!d.deployed,onClick:function(){function i(){return s("toggle_active",{fuel:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.fuel_amt}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.fuel_type})]},d.name)})]})})}return y}()},67968:function(x,r,n){"use strict";r.__esModule=!0,r.Secbot=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Secbot=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.open,d=s.locked,i=s.idcheck,c=s.check_records,l=s.check_arrest,h=s.arrest_type,p=s.declare_arrests,v=s.bot_patrolling,b=s.patrol;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Security Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,onClick:function(){function g(){return C("power")}return g}(),children:m?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"toggle-on":"toggle-off",selected:i,onClick:function(){function g(){return C("idcheck")}return g}(),children:i?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Security Records",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return C("ignorerec")}return g}(),children:c?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Arrest Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){function g(){return C("ignorearr")}return g}(),children:l?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Operating Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return C("switchmode")}return g}(),children:h?"Detain":"Arrest"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Report Arrests",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return C("declarearrests")}return g}(),children:p?"Yes":"No"})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Patrol",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){function g(){return C("patrol")}return g}(),children:b?"Yes":"No"})})]})})||null]})})}return V}()},72817:function(x,r,n){"use strict";r.__esModule=!0,r.SecureSafe=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],d=m.locked,i=m.l_setshort,c=m.code,l=m.emagged;return(0,e.createComponentVNode)(2,t.Box,{width:"185px",children:(0,e.createComponentVNode)(2,t.Grid,{width:"1px",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Grid.Column,{children:h.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,mb:"6px",content:p,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!l||!!i&&1||p!=="R"&&!d||c==="ERROR"&&p!=="R"&&1,onClick:function(){function v(){return s("type",{digit:p})}return v}()},p)})},h[0])})})})},V=r.SecureSafe=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.code,d=m.l_setshort,i=m.l_set,c=m.emagged,l=m.locked,h=!(i||d);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Box,{m:"6px",children:[h&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,t.Section,{height:"60px",children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",position:"center",fontSize:"35px",children:u&&u||(0,e.createComponentVNode)(2,t.Box,{textColor:l?"red":"green",children:l?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,t.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,t.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return y}()},77044:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(57027),f=n(47007),V=n(49264),y=n(7117),k=n(43396),C=function(p){(0,o.modalOpen)("edit",{field:p.edit,value:p.value})},s=r.SecurityRecords=function(){function h(p){var v=(0,a.useBackend)(),b=v.data,g=b.authenticated,N=b.screen;if(!g)return(0,e.createComponentVNode)(2,f.Window,{width:700,height:680,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var B;return N===2?B=(0,e.createComponentVNode)(2,m):N===3?B=(0,e.createComponentVNode)(2,u):N===4&&(B=(0,e.createComponentVNode)(2,d)),(0,e.createComponentVNode)(2,f.Window,{width:700,height:680,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,t.Section,{flexGrow:!0,children:B})]})]})}return h}(),m=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function B(S,L){return b("search",{t1:L})}return B}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:N.map(function(B,S){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",color:B.color,content:B.id+": "+B.name+" (Criminal Status: "+B.criminal+")",onClick:function(){function L(){return b("d_rec",{d_rec:B.ref})}return L}()},S)})})],4)},u=function(p){var v=(0,a.useBackend)(),b=v.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function g(){return b("del_all")}return g}()})],0)},d=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.security,B=g.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",mt:"-6px",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Security Data",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!N.empty,content:"Delete Security Record",color:"bad",onClick:function(){function S(){return b("del_r")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!N.empty,content:"Delete Record (All)",color:"bad",onClick:function(){function S(){return b("del_r_2")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){function S(){return b("print_p")}return S}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function S(){return b("screen",{screen:2})}return S}()})]})],4)},i=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.general;return!N||!N.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.fields.map(function(B,S){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:B.value}),!!B.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function L(){return C(B)}return L}()})]},S)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:[!!N.has_photos&&N.photos.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:B.substr(1,B.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",S+1]},S)}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_front")}return B}(),children:"Update Front Photo"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_side")}return B}(),children:"Update Side Photo"})]})]})]})},c=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.security;return!N||!N.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Security records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function B(){return b("new")}return B}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:N.fields.map(function(B,S){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[B.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:B.line_break?"1rem":"initial",onClick:function(){function L(){return C(B)}return L}()})]})},S)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",children:[N.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):N.comments.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:B.header}),(0,e.createVNode)(1,"br"),B.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function L(){return b("del_c",{del_c:S+1})}return L}()})]},S)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function B(){return(0,o.modalOpen)("add_c")}return B}()})]})],4)},l=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,icon:"list",onClick:function(){function B(){return b("screen",{screen:2})}return B}(),children:"List Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:N===3,onClick:function(){function B(){return b("screen",{screen:3})}return B}(),children:"Record Maintenance"})]})}},16879:function(x,r,n){"use strict";r.__esModule=!0,r.SeedStorage=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=n(45445),y=r.SeedStorage=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.scanner,i=u.seeds,c=(0,V.sortBy)(function(l){return l.name.toLowerCase()})(i);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seeds",children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,f.toTitleCase)(l.name)+" #"+l.uid,children:(0,e.createComponentVNode)(2,t.Section,{width:"165%",title:"Traits",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(l.traits).map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.toTitleCase)(h),children:l.traits[h]},h)})})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.4,children:[l.amount," Remaining"]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",onClick:function(){function h(){return m("vend",{id:l.id})}return h}(),children:"Vend"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"trash",onClick:function(){function h(){return m("purge",{id:l.id})}return h}(),children:"Purge"})})]},l.name+l.uid)})})})})}return k}()},68444:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldCapacitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=n(5339),V=n(420),y=r.ShieldCapacitor=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.active,i=u.time_since_fail,c=u.stored_charge,l=u.max_charge,h=u.charge_rate,p=u.max_charge_rate;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:d,content:d?"Online":"Offline",onClick:function(){function v(){return m("toggle")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor Status",children:i>2?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored Energy",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c,format:function(){function v(b){return(0,V.formatSiUnit)(b,0,"J")}return v}()})," ","(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:100*(0,f.round)(c/l,1)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:p,format:function(){function v(b){return(0,V.formatPower)(b)}return v}(),onDrag:function(){function v(b,g){return m("charge_rate",{rate:g})}return v}()})})]})})})})}return k}()},36002:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldGenerator=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=n(5339),V=n(420),y=n(77402),k=r.ShieldGenerator=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.locked;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:l?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,s)})})}return m}(),C=function(u){return(0,e.createComponentVNode)(2,y.FullscreenNotice,{title:"Locked",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.lockedData,h=l.capacitors,p=l.active,v=l.failing,b=l.radius,g=l.max_radius,N=l.z_range,B=l.max_z_range,S=l.average_field_strength,L=l.target_field_strength,I=l.max_field_strength,w=l.shields,T=l.upkeep,E=l.strengthen_rate,A=l.max_strengthen_rate,M=l.gen_power,R=(h||[]).length;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Status",children:v?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unstable"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Stable"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Overall Field Strength",children:[(0,f.round)(S,2)," Renwick (",L&&(0,f.round)(100*S/L,1)||"NA","%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Upkeep Power",children:(0,V.formatPower)(T)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shield Generation Power",children:(0,V.formatPower)(M)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Currently Shielded",children:[w," m\xB2"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R?h.map(function(O,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor #"+F,children:[O.active?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Offline"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:[(0,V.formatSiUnit)(O.stored_charge,0,"J")," (",100*(0,f.round)(O.stored_charge/O.max_charge,2),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:O.failing?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."})})]})]},F)}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:p?"Online":"Offline",selected:p,onClick:function(){function O(){return i("toggle")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Coverage Radius",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:g,value:b,unit:"m",onDrag:function(){function O(F,D){return i("change_radius",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vertical Shielding",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:B,value:N,unit:"vertical range",onDrag:function(){function O(F,D){return i("z_range",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:A,value:E,format:function(){function O(F){return(0,f.round)(F,1)}return O}(),unit:"Renwick/s",onDrag:function(){function O(F,D){return i("strengthen_rate",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Maximum Field Strength",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:I,value:L,unit:"Renwick",onDrag:function(){function O(F,D){return i("target_field_strength",{val:D})}return O}()})})]})})],4)}},38818:function(x,r,n){"use strict";r.__esModule=!0,r.ShutoffMonitorContent=r.ShutoffMonitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.ShutoffMonitor=function(){function y(k){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.ShutoffMonitorContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.valves;return(0,e.createComponentVNode)(2,o.Section,{title:"Valves",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Open"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.open?"Yes":"No"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.enabled?"Auto":"Manual"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.open?"Opened":"Closed",selected:d.open,disabled:!d.enabled,onClick:function(){function i(){return s("toggle_open",{valve:d.ref})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.enabled?"Auto":"Manual",selected:d.enabled,onClick:function(){function i(){return s("toggle_enable",{valve:d.ref})}return i}()})]})]},d.name)})]})})}return y}()},20015:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleControl=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=function(l,h){var p="ERROR",v="bad",b=!1;return l==="docked"?(p="DOCKED",v="good"):l==="docking"?(p="DOCKING",v="average",b=!0):l==="undocking"?(p="UNDOCKING",v="average",b=!0):l==="undocked"&&(p="UNDOCKED",v="#676767"),b&&h&&(p=p+"-MANUAL"),(0,e.createComponentVNode)(2,o.Box,{color:v,children:p})},y=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=l.engineName,g=b===void 0?"Bluespace Drive":b,N=v.shuttle_status,B=v.shuttle_state,S=v.has_docking,L=v.docking_status,I=v.docking_override,w=v.docking_codes;return(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:N}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:g,children:B==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||B==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||B==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),S&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",children:V(L,I)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Codes",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function T(){return p("set_codes")}return T}(),children:w||"Not Set"})})],4)||null]})]})},k=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_launch,g=v.can_cancel,N=v.can_force;return(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("move")}return B}(),disabled:!b,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("cancel")}return B}(),disabled:!g,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("force")}return B}(),color:"bad",disabled:!N,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},C=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)],4)},s=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_cloak,g=v.can_pick,N=v.legit,B=v.cloaked,S=v.destination_name;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Section,{title:"Multishuttle Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N?"ATC Inhibitor":"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:B,icon:B?"eye":"eye-o",onClick:function(){function L(){return p("toggle_cloaked")}return L}(),children:B?"Enabled":"Disabled"})})||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!g,onClick:function(){function L(){return p("pick")}return L}(),children:S})})]})}),(0,e.createComponentVNode)(2,k)],4)},m=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_pick,g=v.destination_name,N=v.fuel_usage,B=v.fuel_span,S=v.remaining_fuel;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y,{engineName:"Engines"}),(0,e.createComponentVNode)(2,o.Section,{title:"Jump Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!b,onClick:function(){function L(){return p("pick")}return L}(),children:g})}),N&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Est. Delta-V Budget",color:B,children:[S," m/s"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[N," m/s"]})],4)||null]})}),(0,e.createComponentVNode)(2,k)],4)},u=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.autopilot,g=v.can_rename,N=v.shuttle_state,B=v.is_moving,S=v.skip_docking,L=v.docking_status,I=v.docking_override,w=v.shuttle_location,T=v.can_cloak,E=v.cloaked,A=v.can_autopilot,M=v.routes,R=v.is_in_transit,O=v.travel_progress,F=v.time_left,D=v.doors,j=v.sensors;return(0,e.createFragment)([b&&(0,e.createComponentVNode)(2,o.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",buttons:g&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function _(){return p("rename_command")}return _}(),children:"Rename"})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Engines",children:N==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||N==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||N==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Location",children:(0,a.toTitleCase)(w)}),!S&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{selected:L==="docked",disabled:L!=="undocked"&&L!=="docked",onClick:function(){function _(){return p("dock_command")}return _}(),children:"Dock"}),(0,e.createComponentVNode)(2,o.Button,{selected:L==="undocked",disabled:L!=="docked"&&L!=="undocked",onClick:function(){function _(){return p("undock_command")}return _}(),children:"Undock"})],4),children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,inline:!0,children:V(L,I)})})||null,T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"eye":"eye-o",onClick:function(){function _(){return p("toggle_cloaked")}return _}(),children:E?"Enabled":"Disabled"})})||null,A&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Autopilot",children:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"eye":"eye-o",onClick:function(){function _(){return p("toggle_autopilot")}return _}(),children:b?"Enabled":"Disabled"})})||null],0)||null]}),!B&&(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Available Destinations",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.length&&M.map(function(_){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"rocket",onClick:function(){function z(){return p("traverse",{traverse:_.index})}return z}(),children:_.travel_time})},_.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),R&&(0,e.createComponentVNode)(2,o.Section,{title:"Transit ETA",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance from target",children:(0,e.createComponentVNode)(2,o.ProgressBar,{color:"good",minValue:0,maxValue:100,value:O,children:[F,"s"]})})})})||null,Object.keys(D).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Hatch Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(D).map(function(_){var z=D[_];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,children:[z.open&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Open"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",z.bolted&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Bolted"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Unbolted"})]},_)})})})||null,Object.keys(j).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(j).map(function(_){var z=j[_];return z.reading!==-1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,color:"bad",children:"Unable to get sensor air reading."}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other",children:[z.other,"%"]})||null]})},_)})})})||null],0)},d={ShuttleControlConsoleDefault:(0,e.createComponentVNode)(2,C),ShuttleControlConsoleMulti:(0,e.createComponentVNode)(2,s),ShuttleControlConsoleExploration:(0,e.createComponentVNode)(2,m),ShuttleControlConsoleWeb:(0,e.createComponentVNode)(2,u)},i=r.ShuttleControl=function(){function c(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.subtemplate;return(0,e.createComponentVNode)(2,f.Window,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:d[b]})})}return c}()},83387:function(x,r,n){"use strict";r.__esModule=!0,r.SignalerContent=r.Signaler=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.Signaler=function(){function k(){return(0,e.createComponentVNode)(2,f.Window,{width:280,height:132,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=r.SignalerContent=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.code,i=u.frequency,c=u.minFrequency,l=u.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:l/10,value:i/10,format:function(){function h(p){return(0,a.toFixed)(p,1)}return h}(),width:"80px",onDrag:function(){function h(p,v){return m("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function h(){return m("reset",{reset:"freq"})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.6,children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(){function h(p,v){return m("code",{code:v})}return h}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function h(){return m("reset",{reset:"code"})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.8,children:(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function h(){return m("signal")}return h}()})})})]})}return k}()},97485:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},C=["bad","average","average","good","average","average","bad"],s=r.Sleeper=function(){function h(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.hasOccupant,B=N?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,l);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",children:B})})}return h}(),m=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.dialysis,S=g.stomachpumping;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,i,{title:"Dialysis",active:B,actToDo:"togglefilter"}),(0,e.createComponentVNode)(2,i,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.createComponentVNode)(2,c)],4)},u=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.auto_eject_dead,S=g.stasis;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return b("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return b("ejectify")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{content:S,onClick:function(){function L(){return b("changestasis")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:0,max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[N.stat][0],children:V[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:C[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},d=function(p){var v=(0,t.useBackend)(),b=v.data,g=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},B)},B)})})})},i=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.isBeakerLoaded,B=g.beakerMaxSpace,S=g.beakerFreeSpace,L=p.active,I=p.actToDo,w=p.title,T=L&&S>0;return(0,e.createComponentVNode)(2,o.Section,{title:w,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||S<=0,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Active":"Inactive",onClick:function(){function E(){return b(I)}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"eject",content:"Eject",onClick:function(){function E(){return b("removebeaker")}return E}()})],4),children:N?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:S/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[S,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},c=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.chemicals,S=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Chemicals",flexGrow:"1",children:B.map(function(I,w){var T="",E;return I.overdosing?(T="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):I.od_warning&&(T="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:I.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Flex,{align:"flex-start",children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:I.occ_amount/S,color:T,mr:"0.5rem",children:[I.pretty_amount,"/",S,"u"]}),L.map(function(A,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!I.injectable||I.occ_amount+A>S||N.stat===2,icon:"syringe",content:A,mb:"0",height:"19px",onClick:function(){function R(){return b("chemical",{chemid:I.id,amount:A})}return R}()},M)})]})})},w)})})},l=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected.",N&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){function B(){return b("removebeaker")}return B}()})})||null]})})})}},61401:function(x,r,n){"use strict";r.__esModule=!0,r.SmartVend=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.SmartVend=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.config,u=C.data;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:[u.secure&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:u.locked===-1,info:u.locked!==-1,children:u.locked===-1?(0,e.createComponentVNode)(2,o.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.createComponentVNode)(2,o.Box,{children:"Secure Access: Please have your identification ready."})})||null,u.contents.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:["Unfortunately, this ",m.title," is empty."]})||(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:"Item"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.map)(function(d,i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," in stock"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"1",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index,amount:1})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"5",disabled:d.amount<5,onClick:function(){function c(){return s("Release",{index:d.index,amount:5})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"25",disabled:d.amount<25,onClick:function(){function c(){return s("Release",{index:d.index,amount:25})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"50",disabled:d.amount<50,onClick:function(){function c(){return s("Release",{index:d.index,amount:50})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Custom",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"All",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index,amount:d.amount})}return c}()})]})]},i)})(u.contents)]})]})})})}return y}()},92919:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(420),f=n(47007),V=n(5339),y=1e3,k=r.Smes=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.capacityPercent,c=d.capacity,l=d.charge,h=d.inputAttempt,p=d.inputting,v=d.inputLevel,b=d.inputLevelMax,g=d.inputAvailable,N=d.outputAttempt,B=d.outputting,S=d.outputLevel,L=d.outputLevelMax,I=d.outputUsed,w=i>=100&&"good"||p&&"average"||"bad",T=B&&"good"||l>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,V.round)(l/(1e3*60),1)," kWh /"," ",(0,V.round)(c/(1e3*60))," kWh (",i,"%)"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function E(){return u("tryinput")}return E}(),children:h?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:i>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:v===0,onClick:function(){function E(){return u("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:v===0,onClick:function(){function E(){return u("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:v/y,fillValue:g/y,minValue:0,maxValue:b/y,step:5,stepPixelSize:4,format:function(){function E(A){return(0,o.formatPower)(A*y,1)}return E}(),onDrag:function(){function E(A,M){return u("input",{target:M*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:v===b,onClick:function(){function E(){return u("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:v===b,onClick:function(){function E(){return u("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(g)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function E(){return u("tryoutput")}return E}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:B?"Sending":l>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function E(){return u("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:S===0,onClick:function(){function E(){return u("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:S/y,minValue:0,maxValue:L/y,step:5,stepPixelSize:4,format:function(){function E(A){return(0,o.formatPower)(A*y,1)}return E}(),onDrag:function(){function E(A,M){return u("output",{target:M*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:S===L,onClick:function(){function E(){return u("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:S===L,onClick:function(){function E(){return u("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(I)})]})})]})})}return C}()},63555:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=r.SolarControl=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.generated,d=m.generated_ratio,i=m.sun_angle,c=m.array_angle,l=m.rotation_rate,h=m.max_rotation_rate,p=m.tracking_state,v=m.connected_panels,b=m.connected_tracker;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:230,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function g(){return s("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:v>0?"good":"bad",children:v})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:1.5,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:d,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Star orientation",children:[i,"\xB0"]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracking",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:p===0,onClick:function(){function g(){return s("tracking",{mode:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:p===1,onClick:function(){function g(){return s("tracking",{mode:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:p===2,disabled:!b,onClick:function(){function g(){return s("tracking",{mode:2})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Azimuth",children:[(p===0||p===1)&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(){function g(N){var B=Math.sign(N)>0?" (CW)":" (CCW)";return Math.abs((0,f.round)(N))+B}return g}(),onDrag:function(){function g(N,B){return s("azimuth",{value:B})}return g}()}),p===1&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:l,format:function(){function g(N){var B=Math.sign(N)>0?" (CW)":" (CCW)";return Math.abs((0,f.round)(N))+B}return g}(),onDrag:function(){function g(N,B){return s("azimuth_rate",{value:B})}return g}()}),p===2&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}return y}()},90759:function(x,r,n){"use strict";r.__esModule=!0,r.SpaceHeater=void 0;var e=n(58734),a=n(61994),t=n(54777),o=n(35239),f=n(47007),V=r.SpaceHeater=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.temp,d=m.minTemp,i=m.maxTemp,c=m.cell,l=m.power;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[u," K (",u-a.T0C,"\xB0 C)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Charge",children:[l,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Knob,{animated:!0,value:u-a.T0C,minValue:d-a.T0C,maxValue:i-a.T0C,unit:"C",onChange:function(){function h(p,v){return s("temp",{newtemp:v+a.T0C})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Cell",children:c?(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Cell",onClick:function(){function h(){return s("cellremove")}return h}()}):(0,e.createComponentVNode)(2,o.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){function h(){return s("cellinstall")}return h}()})})]})})]})})}return y}()},59060:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Stack=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.amount,l=i.recipes;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Amount: "+c,children:(0,e.createComponentVNode)(2,V,{recipes:l})})})})}return s}(),V=function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.recipes,l=Object.keys(c).sort();return l.map(function(h){var p=c[h];return p.ref===void 0?(0,e.createComponentVNode)(2,t.Collapsible,{ml:1,mb:-.7,color:"label",title:h,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,children:(0,e.createComponentVNode)(2,s,{recipes:p})})}):(0,e.createComponentVNode)(2,C,{title:h,recipe:p})})},y=function(m,u){return m.req_amount>u?0:Math.floor(u/m.req_amount)},k=function(m){for(var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.recipe,l=m.maxMultiplier,h=Math.min(l,Math.floor(c.max_res_amount/c.res_amount)),p=[5,10,25],v=[],b=function(){var S=N[g];h>=S&&v.push((0,e.createComponentVNode)(2,t.Button,{content:S*c.res_amount+"x",onClick:function(){function L(){return d("make",{ref:c.ref,multiplier:S})}return L}()}))},g=0,N=p;g1?"s":""),N+=")",p>1&&(N=p+"x "+N);var B=y(l,c);return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:!B,icon:"wrench",content:N,onClick:function(){function S(){return d("make",{ref:l.ref,multiplier:1})}return S}()})}),v>1&&B>1&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,k,{recipe:l,maxMultiplier:B})})]})})})}},10967:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:425,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.StationAlertConsoleContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.categories,d=u===void 0?[]:u;return d.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.category,children:(0,e.createVNode)(1,"ul",null,[i.alarms.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.alarms.map(function(c){var l="";return c.has_cameras?l=(0,e.createComponentVNode)(2,t.Section,{children:c.cameras.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{disabled:h.deact,content:h.name+(h.deact?" (deactived)":""),icon:"video",onClick:function(){function p(){return s("switchTo",{camera:h.camera})}return p}()},h.name)})}):c.lost_sources&&(l=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.createVNode)(1,"li",null,[c.name,c.origin_lost?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Alarm Origin Lost."}):"",l],0,null,c.name)})],0)},i.category)})}return y}()},74741:function(x,r,n){"use strict";r.__esModule=!0,r.StationBlueprintsContent=r.StationBlueprints=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StationBlueprints=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,V)})}return y}(),V=r.StationBlueprintsContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=C.config,d=m.mapRef,i=m.areas,c=m.turfs;return(0,e.createFragment)([(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,e.createVNode)(1,"div","CameraConsole__right",(0,e.createComponentVNode)(2,t.ByondUi,{className:"CameraConsole__map",params:{id:d,type:"map"}}),2)],4)}return y}()},17855:function(x,r,n){"use strict";r.__esModule=!0,r.StockExchange=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StockExchange=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.screen,p=l.stationName,v;return h==="stocks"?v=(0,e.createComponentVNode)(2,V):h==="logs"?v=(0,e.createComponentVNode)(2,C):h==="archive"?v=(0,e.createComponentVNode)(2,s):h==="graph"&&(v=(0,e.createComponentVNode)(2,m)),(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:p+" Stock Exchange",children:v})})})}return u}(),V=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.balance,p=l.stationName,v=l.viewMode,b=(0,e.createComponentVNode)(2,y);return v==="Full"?b=(0,e.createComponentVNode)(2,y):v==="Compressed"&&(b=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Welcome, "),(0,e.createVNode)(1,"b",null,[p,(0,e.createTextVNode)(" Cargo Department")],0),(0,e.createTextVNode)(" |"),(0,e.createTextVNode)(" ")],0),(0,e.createVNode)(1,"span",null,[(0,e.createVNode)(1,"b",null,"Credits:",16),(0,e.createTextVNode)(" "),h],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"View mode: ",16),(0,e.createComponentVNode)(2,t.Button,{content:v,onClick:function(){function g(){return c("stocks_cycle_view")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,e.createComponentVNode)(2,t.Button,{icon:"list",content:"Check",onClick:function(){function g(){return c("stocks_check")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"This is a work in progress. Certain features may not be available.",16),(0,e.createComponentVNode)(2,t.Section,{title:"Listed Stocks",children:b})]})},y=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.stocks,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Owned"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Avail"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),(0,e.createComponentVNode)(2,t.Divider),p.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.ID}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Name}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Value}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Owned}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Avail}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:!1,onClick:function(){function b(){return c("stocks_buy",{share:v.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:!1,onClick:function(){function b(){return c("stocks_sell",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"A",onClick:function(){function b(){return c("stocks_archive",{share:v.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"H",onClick:function(){function b(){return c("stocks_history",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br")]})]},v.ID)})]})]})},k=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.stocks,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,v.name,0)," ",(0,e.createVNode)(1,"span",null,v.ID,0),v.bankrupt===1&&(0,e.createVNode)(1,"b",null,"BANKRUPT",16,{color:"red"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Unified shares",16)," ",v.Unification," ago.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Current value per share:",16)," ",v.Value," |"," ",(0,e.createComponentVNode)(2,t.Button,{content:"View history",onClick:function(){function b(){return c("stocks_history",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br"),"You currently own ",(0,e.createVNode)(1,"b",null,v.Owned,0)," shares in this company.",(0,e.createVNode)(1,"br"),"There are ",v.Avail," purchasable shares on the market currently.",(0,e.createVNode)(1,"br"),v.bankrupt===1?(0,e.createVNode)(1,"span",null,"You cannot buy or sell shares in a bankrupt company!",16):(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,t.Button,{content:"Buy shares",onClick:function(){function b(){return c("stocks_buy",{share:v.REF})}return b}()}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,t.Button,{content:"Sell shares",onClick:function(){function b(){return c("stocks_sell",{share:v.REF})}return b}()})],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Prominent products:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,v.Products,0),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"View news archives",onClick:function(){function b(){return c("stocks_archive",{share:v.REF})}return b}()})," ",(0,e.createComponentVNode)(2,t.Divider)]},v.ID)})})},C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.logs,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,"Stock Transaction Logs",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function v(){return c("stocks_backbutton")}return v}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,p.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.type!=="borrow"?(0,e.createVNode)(1,"div",null,[v.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,v.user_name,0),(0,e.createTextVNode)(" "),v.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"bought",16):(0,e.createVNode)(1,"span",null,"sold",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.stocks,0),(0,e.createTextVNode)(" stocks at "),v.shareprice,(0,e.createTextVNode)(" a share for"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.money,0),(0,e.createTextVNode)(" total credits"),(0,e.createTextVNode)(" "),v.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"in",16):(0,e.createVNode)(1,"span",null,"from",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0):(0,e.createVNode)(1,"div",null,[v.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,v.user_name,0),(0,e.createTextVNode)(" borrowed "),(0,e.createVNode)(1,"b",null,v.stocks,0),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("stocks with a deposit of "),(0,e.createVNode)(1,"b",null,v.money,0),(0,e.createTextVNode)(" credits in"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0),(0,e.createComponentVNode)(2,t.Divider)]},v.time)}),0)]})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.name,p=l.events,v=p===void 0?[]:p,b=l.articles,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,[(0,e.createTextVNode)("News feed for "),h],0),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function N(){return c("stocks_backbutton")}return N}()}),(0,e.createVNode)(1,"h3",null,"Events",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,v.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,N.current_title,0),(0,e.createVNode)(1,"br"),N.current_desc],0),(0,e.createComponentVNode)(2,t.Divider)]},N.current_title)}),0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"Articles",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,g.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,N.headline,0),(0,e.createVNode)(1,"i",null,N.subtitle,0),(0,e.createVNode)(1,"br"),N.article,(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("- "),N.author,(0,e.createTextVNode)(", "),N.spacetime,(0,e.createTextVNode)(" (via"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,N.outlet,0),(0,e.createTextVNode)(")")],0),(0,e.createComponentVNode)(2,t.Divider)]},N.headline)}),0)]})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.name,p=l.maxValue,v=l.values,b=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function g(){return c("stocks_backbutton")}return g}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Section,{position:"relative",height:"100%",children:(0,e.createComponentVNode)(2,t.Chart.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,p],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"p",null,[h,(0,e.createTextVNode)(" share value per share")],0)]})}},42748:function(x,r,n){"use strict";r.__esModule=!0,r.SuitCycler=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.SuitCycler=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.active,l=i.locked,h=i.uv_active,p=(0,e.createComponentVNode)(2,V);return h?p=(0,e.createComponentVNode)(2,y):l?p=(0,e.createComponentVNode)(2,k):c&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.Window,{width:320,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:p})})}return s}(),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.safeties,l=i.occupied,h=i.suit,p=i.helmet,v=i.departments,b=i.species,g=i.uv_level,N=i.max_uv_level,B=i.can_repair,S=i.damage;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function L(){return d("lock")}return L}()}),children:[!!(l&&c)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function L(){return d("eject_guy")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){function L(){return d("dispense",{item:"helmet"})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"square":"square-o",content:h||"Empty",disabled:!h,onClick:function(){function L(){return d("dispense",{item:"suit"})}return L}()})}),B&&S?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit Damage",children:[S,(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Repair",onClick:function(){function L(){return d("repair_suit")}return L}()})]}):null]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Customization",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Paintjob",children:(0,e.createComponentVNode)(2,t.Dropdown,{noscroll:!0,width:"150px",options:v,selected:v[0],onSelected:function(){function L(I){return d("department",{department:I})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Species",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"150px",maxHeight:"160px",options:b,selected:b[0],onSelected:function(){function L(I){return d("species",{species:I})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){function L(){return d("apply_paintjob")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"UV Decontamination",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",value:g,minValue:1,maxValue:N,stepPixelSize:30,onChange:function(){function L(I,w){return d("radlevel",{radlevel:w})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Decontaminate",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",disabled:l&&c,textAlign:"center",onClick:function(){function L(){return d("uv")}return L}()})})]})})],4)},y=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.model_text,l=i.userHasAccess;return(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",bold:!0,children:["The ",c," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",content:"[Unlock]",disabled:!l,onClick:function(){function h(){return d("lock")}return h}()})})]})},C=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},50479:function(x,r,n){"use strict";r.__esModule=!0,r.SuitStorageUnit=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.SuitStorageUnit=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.panelopen,l=i.uv_active,h=i.broken,p=(0,e.createComponentVNode)(2,V);return c?p=(0,e.createComponentVNode)(2,y):l?p=(0,e.createComponentVNode)(2,k):h&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:365,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:p})})}return s}(),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.locked,l=i.open,h=i.safeties,p=i.occupied,v=i.suit,b=i.helmet,g=i.mask;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",minHeight:"260px",buttons:(0,e.createFragment)([!l&&(0,e.createComponentVNode)(2,t.Button,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){function N(){return d("lock")}return N}()}),!c&&(0,e.createComponentVNode)(2,t.Button,{icon:l?"sign-out-alt":"sign-in-alt",content:l?"Close":"Open",onClick:function(){function N(){return d("door")}return N}()})],0),children:[!!(p&&h)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function N(){return d("eject_guy")}return N}()})]}),c&&(0,e.createComponentVNode)(2,t.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Unit Locked"}),(0,e.createComponentVNode)(2,t.Icon,{name:"lock"})]})||l&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){function N(){return d("dispense",{item:"helmet"})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"square":"square-o",content:v||"Empty",disabled:!v,onClick:function(){function N(){return d("dispense",{item:"suit"})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){function N(){return d("dispense",{item:"mask"})}return N}()})})]})||(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:p&&h,textAlign:"center",onClick:function(){function N(){return d("uv")}return N}()})]})},y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.safeties,l=i.uv_super;return(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:[(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",l?"15nm":"185nm",".",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Knob,{size:2,inline:!0,value:l,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:l?"red":"green",format:function(){function h(p){return p?"15nm":"185nm"}return h}(),onChange:function(){function h(p,v){return d("toggleUV")}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,e.createVNode)(1,"font",null,"RED",16,{color:"red"})," ","LED is on.",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){function h(){return d("togglesafeties")}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:c?"black":"red",mr:2}),(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:c?"green":"black"})]})]})]})]})},k=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},C=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},80341:function(x,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitorContent=r.SupermatterMonitor=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=n(40946),y=r.SupermatterMonitor=function(){function m(u){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return m}(),k=r.SupermatterMonitorContent=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.active;return l?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,C)}return m}(),C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.supermatters;return(0,e.createComponentVNode)(2,t.Section,{title:"Supermatters Detected",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Refresh",icon:"sync",onClick:function(){function h(){return i("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(h,p){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"49%",grow:p%2,children:(0,e.createComponentVNode)(2,t.Section,{title:h.area_name+" (#"+h.uid+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:[h.integrity," %"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View Details",onClick:function(){function v(){return i("set",{set:h.uid})}return v}()})})]})})},p)})})})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.SM_area,h=c.SM_integrity,p=c.SM_power,v=c.SM_ambienttemp,b=c.SM_ambientpressure,g=c.SM_EPR,N=c.SM_gas_O2,B=c.SM_gas_CO2,S=c.SM_gas_N2,L=c.SM_gas_PH,I=c.SM_gas_N2O;return(0,e.createComponentVNode)(2,t.Section,{title:(0,V.toTitleCase)(l),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){function w(){return i("clear")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{animated:!0,value:h,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:p>300&&"bad"||p>150&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" MeV/cm\xB3"}return w}(),value:p})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:v>5e3&&"bad"||v>4e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" K"}return w}(),value:v})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" kPa"}return w}(),value:b})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber EPR",children:(0,e.createComponentVNode)(2,t.Box,{color:g>4&&"bad"||g>1&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)}return w}(),value:g})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"O\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CO\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:S}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"PH",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2O",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"%"]})]})})]})})}},88748:function(x,r,n){"use strict";r.__esModule=!0,r.SupplyConsole=void 0;var e=n(58734),a=n(45445),t=n(420),o=n(54777),f=n(35239),V=n(57027),y=n(47007),k=n(75671),C=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.supply_points,N=h.args,B=N.name,S=N.cost,L=N.manifest,I=N.ref,w=N.random;return(0,e.createComponentVNode)(2,f.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:B,buttons:(0,e.createComponentVNode)(2,f.Button,{icon:"shopping-cart",content:"Buy - "+S+" points",disabled:S>g,onClick:function(){function T(){return v("request_crate",{ref:I})}return T}()}),children:(0,e.createComponentVNode)(2,f.Section,{title:"Contains"+(w?" any "+w+" of:":""),scrollable:!0,height:"200px",children:L.map(function(T){return(0,e.createComponentVNode)(2,f.Box,{children:T},T)})})})},s=r.SupplyConsole=function(){function l(h){var p=(0,o.useBackend)(),v=p.act,b=p.data;return(0,V.modalRegisterBodyOverride)("view_crate",C),(0,e.createComponentVNode)(2,y.Window,{width:700,height:620,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"100%"}),(0,e.createComponentVNode)(2,f.Section,{title:"Supply Records",children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)]})]})})}return l}(),m=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.supply_points,N=b.shuttle,B=b.shuttle_auth,S=null,L=!1;return B&&(N.launch===1&&N.mode===0?S=(0,e.createComponentVNode)(2,f.Button,{icon:"rocket",content:"Send Away",onClick:function(){function I(){return v("send_shuttle",{mode:"send_away"})}return I}()}):N.launch===2&&(N.mode===3||N.mode===1)?S=(0,e.createComponentVNode)(2,f.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){function I(){return v("send_shuttle",{mode:"cancel_shuttle"})}return I}()}):N.launch===1&&N.mode===5&&(S=(0,e.createComponentVNode)(2,f.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){function I(){return v("send_shuttle",{mode:"send_to_station"})}return I}()})),N.force&&(L=!0)),(0,e.createComponentVNode)(2,f.Section,{children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Supply Points",children:(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:g})})}),(0,e.createComponentVNode)(2,f.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Location",buttons:(0,e.createFragment)([S,L?(0,e.createComponentVNode)(2,f.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){function I(){return v("send_shuttle",{mode:"force_shuttle"})}return I}()}):null],0),children:N.location}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Engine",children:N.engine}),N.mode===4?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"ETA",children:N.time>1?(0,t.formatTime)(N.time):"LATE"}):null]})})]})},u=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.order_auth,N=(0,o.useLocalState)("tabIndex",0),B=N[0],S=N[1];return(0,e.createComponentVNode)(2,f.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"box",selected:B===0,onClick:function(){function L(){return S(0)}return L}(),children:"Request"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"check-circle-o",selected:B===1,onClick:function(){function L(){return S(1)}return L}(),children:"Accepted"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"circle-o",selected:B===2,onClick:function(){function L(){return S(2)}return L}(),children:"Requests"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"book",selected:B===3,onClick:function(){function L(){return S(3)}return L}(),children:"Order history"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"book",selected:B===4,onClick:function(){function L(){return S(4)}return L}(),children:"Export history"})]}),B===0?(0,e.createComponentVNode)(2,d):null,B===1?(0,e.createComponentVNode)(2,i,{mode:"Approved"}):null,B===2?(0,e.createComponentVNode)(2,i,{mode:"Requested"}):null,B===3?(0,e.createComponentVNode)(2,i,{mode:"All"}):null,B===4?(0,e.createComponentVNode)(2,c):null]})},d=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.categories,N=b.supply_packs,B=b.contraband,S=b.supply_points,L=(0,o.useLocalState)("activeCategory",null),I=L[0],w=L[1],T=(0,k.flow)([(0,a.filter)(function(E){return E.group===I}),(0,a.filter)(function(E){return!E.contraband||B}),(0,a.sortBy)(function(E){return E.name}),(0,a.sortBy)(function(E){return E.cost>S})])(N);return(0,e.createComponentVNode)(2,f.Section,{level:2,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,f.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:g.map(function(E){return(0,e.createComponentVNode)(2,f.Button,{fluid:!0,content:E,selected:E===I,onClick:function(){function A(){return w(E)}return A}()},E)})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:1,ml:2,children:(0,e.createComponentVNode)(2,f.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:T.map(function(E){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Stack,{align:"center",justify:"flex-start",children:[(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"70%",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:E.name,color:E.cost>S?"red":null,onClick:function(){function A(){return v("request_crate",{ref:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{content:"#",color:E.cost>S?"red":null,onClick:function(){function A(){return v("request_crate_multi",{ref:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{content:"C",color:E.cost>S?"red":null,onClick:function(){function A(){return v("view_crate",{crate:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:1,children:[E.cost," points"]})]})},E.name)})})})]})})},i=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=h.mode,N=b.orders,B=b.order_auth,S=b.supply_points,L=N.filter(function(I){return I.status===g||g==="All"});return L.length?(0,e.createComponentVNode)(2,f.Section,{level:2,children:[g==="Requested"&&B?(0,e.createComponentVNode)(2,f.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){function I(){return v("clear_all_requests")}return I}()}):null,L.map(function(I,w){return(0,e.createComponentVNode)(2,f.Section,{title:"Order "+(w+1),buttons:g==="All"&&B?(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){function T(){return v("delete_order",{ref:I.ref})}return T}()}):null,children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:[I.entries.map(function(T){return T.entry?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:T.field,buttons:B?(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function E(){v("edit_order_value",{ref:I.ref,edit:T.field,default:T.entry})}return E}()}):null,children:T.entry}):null}),g==="All"?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",children:I.status}):null]}),B&&g==="Requested"?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"check",content:"Approve",disabled:I.cost>S,onClick:function(){function T(){return v("approve_order",{ref:I.ref})}return T}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"times",content:"Deny",onClick:function(){function T(){return v("deny_order",{ref:I.ref})}return T}()})],4):null]},w)})]}):(0,e.createComponentVNode)(2,f.Section,{level:2,children:"No orders found."})},c=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.receipts,N=b.order_auth;return g.length?(0,e.createComponentVNode)(2,f.Section,{level:2,children:g.map(function(B,S){return(0,e.createComponentVNode)(2,f.Section,{children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:[B.title.map(function(L){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:L.field,buttons:N?(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function I(){return v("export_edit",{ref:B.ref,edit:L.field,default:L.entry})}return I}()}):null,children:L.entry},L.field)}),B.error?(0,e.createComponentVNode)(2,f.LabeledList.Item,{labelColor:"red",label:"Error",children:B.error}):B.contents.map(function(L,I){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:L.object,buttons:N?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function w(){return v("export_edit_field",{ref:B.ref,index:I+1,edit:"meow",default:L.object})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){function w(){return v("export_delete_field",{ref:B.ref,index:I+1})}return w}()})],4):null,children:[L.quantity,"x -> ",L.value," points"]},I)})]}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){function L(){return v("export_add_field",{ref:B.ref})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"trash",content:"Delete Record",onClick:function(){function L(){return v("export_delete",{ref:B.ref})}return L}()})],4):null]},S)})}):(0,e.createComponentVNode)(2,f.Section,{level:2,children:"No receipts found."})}},25818:function(x,r,n){"use strict";r.__esModule=!0,r.TEGenerator=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.TEGenerator=function(){function C(s){var m=(0,t.useBackend)(),u=m.data,d=u.totalOutput,i=u.maxTotalOutput,c=u.thermalOutput,l=u.primary,h=u.secondary;return(0,e.createComponentVNode)(2,f.Window,{width:550,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Output",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d,maxValue:i,children:(0,V.formatPower)(d)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermal Output",children:(0,V.formatPower)(c)})]})}),l&&h?(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,k,{name:"Primary Circulator",values:l})}),(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,k,{name:"Secondary Circulator",values:h})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})}return C}(),k=function(s){var m=s.name,u=s.values,d=u.dir,i=u.output,c=u.flowCapacity,l=u.inletPressure,h=u.inletTemperature,p=u.outletPressure,v=u.outletTemperature;return(0,e.createComponentVNode)(2,o.Section,{title:m+" ("+d+")",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Output",children:(0,V.formatPower)(i)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Flow Capacity",children:[(0,a.round)(c,2),"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Pressure",children:(0,V.formatSiUnit)(l*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Temperature",children:[(0,a.round)(h,2)," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Pressure",children:(0,V.formatSiUnit)(p*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Temperature",children:[(0,a.round)(v,2)," K"]})]})})}},39473:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Tank=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.connected,u=s.showToggle,d=u===void 0?!0:u,i=s.maskConnected,c=s.tankPressure,l=s.releasePressure,h=s.defaultReleasePressure,p=s.minReleasePressure,v=s.maxReleasePressure;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!i,content:"Mask Release Valve",onClick:function(){function b(){return C("toggle")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask Connected",children:i?"Yes":"No"})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:s.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===p,onClick:function(){function b(){return C("pressure",{pressure:"min"})}return b}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l),width:"65px",unit:"kPa",minValue:p,maxValue:v,onChange:function(){function b(g,N){return C("pressure",{pressure:N})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,onClick:function(){function b(){return C("pressure",{pressure:"max"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l===h,onClick:function(){function b(){return C("pressure",{pressure:"reset"})}return b}()})]})]})})]})})}return V}()},50523:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TankDispenser=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.plasma,u=s.oxygen;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:103,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Phoron",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){function d(){return C("plasma")}return d}()}),children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"square":"square-o",content:"Dispense",disabled:!u,onClick:function(){function d(){return C("oxygen")}return d}()}),children:u})]})})})})}return V}()},75534:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsLogBrowser=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.TelecommsLogBrowser=function(){function s(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=i.universal_translate,l=i.network,h=i.temp,p=i.servers,v=i.selectedServer;return(0,e.createComponentVNode)(2,f.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[h?(0,e.createComponentVNode)(2,o.NoticeBox,{danger:h.color==="bad",warning:h.color!=="bad",children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-box",verticalAlign:"middle",children:h.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function b(){return d("cleartemp")}return b}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,o.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Refresh",onClick:function(){function b(){return d("scan")}return b}()}),(0,e.createComponentVNode)(2,o.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:p.length===0,onClick:function(){function b(){return d("release")}return b}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{content:l,icon:"pen",onClick:function(){function b(){return d("network")}return b}()})})})}),v?(0,e.createComponentVNode)(2,k,{network:l,server:v,universal_translate:c}):(0,e.createComponentVNode)(2,y,{network:l,servers:p})]})})}return s}(),y=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.network,l=m.servers;return!l||!l.length?(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No servers detected."}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){function h(){return d("scan")}return h}()})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:l.map(function(h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h.name+" ("+h.id+")",children:(0,e.createComponentVNode)(2,o.Button,{content:"View",icon:"eye",onClick:function(){function p(){return d("view",{id:h.id})}return p}()})},h.id)})})})},k=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.network,l=m.server,h=m.universal_translate;return(0,e.createComponentVNode)(2,o.Section,{title:"Server ("+l.id+")",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Return",icon:"undo",onClick:function(){function p(){return d("mainmenu")}return p}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,a.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stored Logs",mt:"4px",children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:!l.logs||!l.logs.length?"No Logs Detected.":l.logs.map(function(p){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:p.id%2,children:(0,e.createComponentVNode)(2,o.Section,{title:h||p.parameters.uspeech||p.parameters.intelligible||p.input_type==="Execution Error"?p.input_type:"Audio File",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function v(){return d("delete",{id:p.id})}return v}()}),children:p.input_type==="Execution Error"?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data type",children:"Error"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:p.parameters.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Delete",children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function v(){return d("delete",{id:p.id})}return v}()})})]}):h||p.parameters.uspeech||p.parameters.intelligible?(0,e.createComponentVNode)(2,C,{log:p}):(0,e.createComponentVNode)(2,C,{error:!0})})},p.id)})})})]})},C=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.log,l=m.error,h=c&&c.parameters||{none:"none"},p=h.timecode,v=h.name,b=h.race,g=h.job,N=h.message;return l?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:[v," (Job: ",g,")"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:N})]})}},1079:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMachineBrowser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TelecommsMachineBrowser=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.network,d=m.temp,i=m.machinelist,c=m.selectedMachine;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:d.color==="bad",warning:d.color!=="bad",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-box",verticalAlign:"middle",children:d.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return s("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function l(){return s("scan")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:i.length===0,onClick:function(){function l(){return s("release")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Button,{content:u,icon:"pen",onClick:function(){function l(){return s("network")}return l}()})})})}),i&&i.length?(0,e.createComponentVNode)(2,V,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:i,showBack:c}):(0,e.createComponentVNode)(2,t.Section,{title:"No Devices Found",children:(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function l(){return s("scan")}return l}()})})]})})}return y}(),V=function(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=k.list,d=k.title,i=k.showBack;return(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:i&&(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){function c(){return s("mainmenu")}return c}()}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"u",null,"Linked entities",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.length?u.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name+" ("+c.id+")",children:(0,e.createComponentVNode)(2,t.Button,{content:"View",icon:"eye",onClick:function(){function l(){return s("view",{id:c.id})}return l}()})},c.id)}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},58219:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMultitoolMenu=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(43396),f=n(47007),V=r.TelecommsMultitoolMenu=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.temp,c=d.on,l=d.id,h=d.network,p=d.autolinkers,v=d.shadowlink,b=d.options,g=d.linked,N=d.filter,B=d.multitool,S=d.multitool_buffer;return(0,e.createComponentVNode)(2,f.Window,{width:520,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.TemporaryNotice),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k,{options:b})]})})}return C}(),y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.temp,c=d.on,l=d.id,h=d.network,p=d.autolinkers,v=d.shadowlink,b=d.options,g=d.linked,N=d.filter,B=d.multitool,S=d.multitool_buffer;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){function L(){return u("toggle")}return L}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Identification String",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:l,onClick:function(){function L(){return u("id")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:h,onClick:function(){function L(){return u("network")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prefabrication",children:p?"TRUE":"FALSE"}),v?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Multitool Buffer",children:[S?(0,e.createFragment)([S.name,(0,e.createTextVNode)(" ("),S.id,(0,e.createTextVNode)(")")],0):null,(0,e.createComponentVNode)(2,t.Button,{color:S?"green":null,content:S?"Link ("+S.id+")":"Add Machine",icon:S?"link":"plus",onClick:S?function(){return u("link")}:function(){return u("buffer")}}),S?(0,e.createComponentVNode)(2,t.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){function L(){return u("flush")}return L}()}):null]}):null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Linked network Entities",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.ref+" "+L.name+" ("+L.id+")",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",onClick:function(){function I(){return u("unlink",{unlink:L.index})}return I}()})},L.ref)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Filtering Frequencies",mt:1,children:[N.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{content:L.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){function I(){return u("delete",{delete:L.freq})}return I}()},L.index)}),!N||N.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No filters."}):null]})]})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=s.options,c=i.use_listening_level,l=i.use_broadcasting,h=i.use_receiving,p=i.listening_level,v=i.broadcasting,b=i.receiving,g=i.use_change_freq,N=i.change_freq,B=i.use_broadcast_range,S=i.use_receive_range,L=i.range,I=i.minRange,w=i.maxRange;return!c&&!l&&!h&&!g&&!B&&!S?(0,e.createComponentVNode)(2,t.Section,{title:"No Options Found"}):(0,e.createComponentVNode)(2,t.Section,{title:"Options",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal Locked to Station",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"lock-closed":"lock-open",content:p?"Yes":"No",onClick:function(){function T(){return u("change_listening")}return T}()})}):null,l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Broadcasting",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:v,content:v?"Yes":"No",onClick:function(){function T(){return u("broadcast")}return T}()})}):null,h?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Receving",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){function T(){return u("receive")}return T}()})}):null,g?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Signal Frequency",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wave-square",selected:!!N,content:N?"Yes ("+N+")":"No",onClick:function(){function T(){return u("change_freq")}return T}()})}):null,B||S?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(B?"Broadcast":"Receive")+" Range",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:I,maxValue:w,unit:"gigameters",stepPixelSize:4,format:function(){function T(E){return E+1}return T}(),onDrag:function(){function T(E,A){return u("range",{range:A})}return T}()})}):null]})})}},21646:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Teleporter=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked_name,u=s.station_connected,d=s.hub_connected,i=s.calibrated,c=s.teleporter_on;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",onClick:function(){function l(){return C("select_target")}return l}(),content:m})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibrated",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,color:i?"good":"bad",onClick:function(){function l(){return C("test_fire")}return l}(),content:i?"Accurate":"Test Fire"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleporter",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){function l(){return C("toggle_on")}return l}(),content:c?"Online":"OFFLINE"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Station",children:u?"Connected":"Not Connected"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hub",children:d?"Connected":"Not Connected"})]})})})})}return V}()},90601:function(x,r,n){"use strict";r.__esModule=!0,r.TelesciConsoleContent=r.TelesciConsole=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.TelesciConsole=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.noTelepad;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i&&(0,e.createComponentVNode)(2,y)||(0,e.createComponentVNode)(2,k)})})}return C}(),y=function(s){return(0,e.createComponentVNode)(2,o.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,e.createVNode)(1,"br"),"Please add telepad data."]})},k=r.TelesciConsoleContent=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.insertedGps,c=d.rotation,l=d.currentZ,h=d.cooldown,p=d.crystalCount,v=d.maxCrystals,b=d.maxPossibleDistance,g=d.maxAllowedDistance,N=d.distance,B=d.tempMsg,S=d.sectorOptions,L=d.lastTeleData;return(0,e.createComponentVNode)(2,o.Section,{title:"Telepad Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!i,onClick:function(){function I(){return u("ejectGPS")}return I}(),content:"Eject GPS"}),children:[(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:h&&(0,e.createComponentVNode)(2,o.Box,{children:["Telepad is recharging. Please wait"," ",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," seconds."]})||(0,e.createComponentVNode)(2,o.Box,{children:B})}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bearing",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:c,format:function(){function I(w){return w+"\xB0"}return I}(),step:1,minValue:-900,maxValue:900,onDrag:function(){function I(w,T){return u("setrotation",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:N,format:function(){function I(w){return w+"/"+g+" m"}return I}(),minValue:0,maxValue:g,step:1,stepPixelSize:4,onDrag:function(){function I(w,T){return u("setdistance",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sector",children:(0,a.sortBy)(function(I){return Number(I)})(S).map(function(I){return(0,e.createComponentVNode)(2,o.Button,{icon:"check-circle",content:I,selected:l===I,onClick:function(){function w(){return u("setz",{setz:I})}return w}()},I)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:-90,onClick:function(){function I(){return u("send")}return I}(),content:"Send"}),(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:90,onClick:function(){function I(){return u("receive")}return I}(),content:"Receive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",iconRotation:90,onClick:function(){function I(){return u("recal")}return I}(),content:"Recalibrate"})]})]}),L&&(0,e.createComponentVNode)(2,o.Section,{mt:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Telepad Location",children:[L.src_x,", ",L.src_y]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:[L.distance,"m"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transit Time",children:[L.time," secs"]})]})})||(0,e.createComponentVNode)(2,o.Section,{mt:1,children:"No teleport data found."}),(0,e.createComponentVNode)(2,o.Section,{children:["Crystals: ",p," / ",v]})]})}return C}()},66561:function(x,r,n){"use strict";r.__esModule=!0,r.TextInputModal=void 0;var e=n(58734),a=n(80132),t=n(77921),o=n(54777),f=n(35239),V=n(47007),y=r.TextInputModal=function(){function C(s){var m=(0,o.useBackend)(),u=m.act,d=m.data,i=d.large_buttons,c=d.max_length,l=d.message,h=l===void 0?"":l,p=d.multiline,v=d.placeholder,b=d.timeout,g=d.title,N=d.prevent_enter,B=(0,o.useLocalState)("input",v||""),S=B[0],L=B[1],I=function(){function T(E){E!==S&&L(E)}return T}(),w=135+(h.length>30?Math.ceil(h.length/4):0)+(p||S.length>=30?75:0)+(h.length&&i?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:g,width:325,height:w,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,V.Window.Content,{onEscape:function(){function T(){return u("cancel")}return T}(),onEnter:function(){function T(E){N||(u("submit",{entry:S}),E.preventDefault())}return T}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:h})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{input:S,onType:I})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:S,message:S.length+"/"+c})})]})})})]})}return C}(),k=function(s){var m=(0,o.useBackend)(),u=m.act,d=m.data,i=d.max_length,c=d.multiline,l=d.prevent_enter,h=s.input,p=s.onType;return(0,e.createComponentVNode)(2,f.TextArea,{autoFocus:!0,autoSelect:!0,height:c||h.length>=30?"100%":"1.8rem",maxLength:i,onEscape:function(){function v(){return u("cancel")}return v}(),onEnter:function(){function v(b){l||(u("submit",{entry:h}),b.preventDefault())}return v}(),onInput:function(){function v(b,g){return p(g)}return v}(),placeholder:"Type something...",value:h})}},84824:function(x,r,n){"use strict";r.__esModule=!0,r.TimeClock=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(60918),y=r.TimeClock=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.department_hours,i=u.user_name,c=u.card,l=u.assignment,h=u.job_datum,p=u.allow_change_job,v=u.job_choices;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"OOC",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Time Off Balance for "+i,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(d).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,color:d[b]>6?"good":d[b]>1?"average":"bad",children:[(0,a.toFixed)(d[b],1)," ",d[b]===1?"hour":"hours"]},b)})})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Employee Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Employee ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"user",onClick:function(){function b(){return m("id")}return b}(),children:c||"Insert ID"})}),!!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Box,{backgroundColor:h.selection_color,p:.8,children:(0,e.createComponentVNode)(2,o.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,V.RankIcon,{color:"white",rank:h.title})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Departments",children:h.departments}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,e.createComponentVNode)(2,o.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,e.createComponentVNode)(2,o.Box,{children:["Requires PTO - ",h.pto_department]})||(0,e.createComponentVNode)(2,o.Box,{children:"Neutral"})})],4)]})}),!!(p&&h&&h.timeoff_factor!==0&&l!=="Dismissed")&&(0,e.createComponentVNode)(2,o.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(d[h.pto_department]>0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){function b(){return m("switch-to-offduty")}return b}(),children:"Go Off-Duty"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(v).length&&Object.keys(v).map(function(b){var g=v[b];return g.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:"suitcase",onClick:function(){function B(){return m("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":N})}return B}(),children:N},N)})})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}return k}()},97360:function(x,r,n){"use strict";r.__esModule=!0,r.TraitTutorial=r.TraitSelection=r.TraitDescription=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TraitTutorial=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data;return(0,e.createComponentVNode)(2,o.Window,{width:804,height:426,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Guide to Custom Traits",children:(0,e.createComponentVNode)(2,V)})})})}return k}(),V=r.TraitSelection=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.names,i=u.selection;return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Trait Selection",children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:d.map(function(c){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===i,onClick:function(){function l(){return m("select_trait",{name:c})}return l}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:c})},c)})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:8,children:i&&(0,e.createComponentVNode)(2,t.Section,{title:i,children:(0,e.createComponentVNode)(2,y,{name:i})})})]})}return k}(),y=r.TraitDescription=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=C.name,i=u.descriptions,c=u.categories,l=u.tutorials;return(0,e.createComponentVNode)(2,t.Section,{StackWrap:!0,children:[(0,e.createVNode)(1,"b",null,"Name:",16)," ",d,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Category:",16)," ",c[d],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Description:",16)," ",i[d],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Details & How to Use:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:l[d]}})]})}return k}()},91868:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TransferValve=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.tank_one,u=s.tank_two,d=s.attached_device,i=s.valve;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"unlock":"lock",content:i?"Open":"Closed",disabled:!m||!u,onClick:function(){function c(){return C("toggle")}return c}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function c(){return C("device")}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function c(){return C("remove_device")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function c(){return C("tankone")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function c(){return C("tanktwo")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}return V}()},67355:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineControl=void 0;var e=n(58734),a=n(420),t=n(54777),o=n(35239),f=n(47007),V=r.TurbineControl=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.connected,d=m.compressor_broke,i=m.turbine_broke,c=m.broken,l=m.door_status,h=m.online,p=m.power,v=m.rpm,b=m.temp;return(0,e.createComponentVNode)(2,f.Window,{width:520,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Turbine Controller",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:c&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["Setup is broken",(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function g(){return s("reconnect")}return g}(),content:"Reconnect"})]})||(0,e.createComponentVNode)(2,o.Box,{color:h?"good":"bad",children:h&&!d&&!i?"Online":"Offline"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Compressor",children:d&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Compressor is inoperable."})||i&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Turbine is inoperable."})||(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:h,content:"Compressor Power",onClick:function(){function g(){return s(h?"power-off":"power-on")}return g}()})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vent Doors",children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:l,onClick:function(){function g(){return s("doors")}return g}(),content:l?"Closed":"Open"})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Speed",children:[c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," RPM"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Temperature",children:[c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generated Power",children:c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{format:function(){function g(N){return(0,a.formatPower)(N)}return g}(),value:Number(p)})})]})})]})})}return y}()},22576:function(x,r,n){"use strict";r.__esModule=!0,r.Turbolift=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Turbolift=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.floors,u=s.doors_open,d=s.fire_mode;return(0,e.createComponentVNode)(2,o.Window,{width:480,height:260+d*25,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Floor Selection",className:d?"Section--elevator--fire":null,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"door-open":"door-closed",content:u?d?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:u&&!d,color:d?"red":null,onClick:function(){function i(){return C("toggle_doors")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){function i(){return C("emergency_stop")}return i}()})],4),children:[!d||(0,e.createComponentVNode)(2,t.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:i.label||"Floor #"+i.id}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"8%",textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"circle",color:i.current?"red":i.target?"green":i.queued?"yellow":null,onClick:function(){function c(){return C("move_to_floor",{ref:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",grow:1,children:i.name})]})},i.id)})})]})})})}return V}()},96728:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=r.GenericUplink=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(420),V=n(47007),y=25,k=r.Uplink=function(){function d(i){var c=(0,t.useBackend)(),l=c.data,h=(0,t.useLocalState)("screen",0),p=h[0],v=h[1],b=l.telecrystals;return(0,e.createComponentVNode)(2,V.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,C,{screen:p,setScreen:v}),p===0&&(0,e.createComponentVNode)(2,m,{currencyAmount:b,currencySymbol:"TC"})||p===1&&(0,e.createComponentVNode)(2,s)||(0,e.createComponentVNode)(2,o.Section,{color:"bad",children:"Error"})]})})}return d}(),C=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.screen,v=i.setScreen,b=h.discount_name,g=h.discount_amount,N=h.offer_expiry;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===0,onClick:function(){function B(){return v(0)}return B}(),children:"Request Items"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function B(){return v(1)}return B}(),children:"Exploitable Information"})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Item Discount",level:2,children:g<100&&(0,e.createComponentVNode)(2,o.Box,{children:[b," - ",g,"% off. Offer expires at:"," ",N]})||(0,e.createComponentVNode)(2,o.Box,{children:"No items currently discounted."})})]})},s=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.exploit,v=h.locked_records;return(0,e.createComponentVNode)(2,o.Section,{title:"Exploitable Information",buttons:p&&(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Back",onClick:function(){function b(){return l("view_exploits",{id:0})}return b}()}),children:p&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:p.sex}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:p.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:p.age}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:p.rank}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Home System",children:p.home_system}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Birthplace",children:p.birthplace}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Citizenship",children:p.citizenship}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Faction",children:p.faction}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Religion",children:p.religion}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprint",children:p.fingerprint}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other Affiliations",children:p.antagfaction}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:"Acquired Information"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:p.nanoui_exploit_record.split("
").map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:b},b)})})]})})||v.map(function(b){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",fluid:!0,content:b.name,onClick:function(){function g(){return l("view_exploits",{id:b.id})}return g}()},b.id)})})},m=r.GenericUplink=function(){function d(i){var c,l,h=i.currencyAmount,p=h===void 0?0:h,v=i.currencySymbol,b=v===void 0?"\u20AE":v,g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.compactMode,L=B.lockable,I=B.categories,w=I===void 0?[]:I,T=(0,t.useLocalState)("searchText",""),E=T[0],A=T[1],M=(0,t.useLocalState)("category",(c=w[0])==null?void 0:c.name),R=M[0],O=M[1],F=(0,a.createSearch)(E,function(j){return j.name+j.desc}),D=E.length>0&&w.flatMap(function(j){return j.items||[]}).filter(F).filter(function(j,_){return _0?"good":"bad",children:[(0,f.formatMoney)(p)," ",b]}),buttons:(0,e.createFragment)([(0,e.createTextVNode)("Search"),(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,value:E,onInput:function(){function j(_,z){return A(z)}return j}(),mx:1}),(0,e.createComponentVNode)(2,o.Button,{icon:S?"list":"info",content:S?"Compact":"Detailed",onClick:function(){function j(){return N("compact_toggle")}return j}()}),!!L&&(0,e.createComponentVNode)(2,o.Button,{icon:"lock",content:"Lock",onClick:function(){function j(){return N("lock")}return j}()})],0),children:(0,e.createComponentVNode)(2,o.Flex,{children:[E.length===0&&(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:w.map(function(j){var _;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:j.name===R,onClick:function(){function z(){return O(j.name)}return z}(),children:[j.name," (",((_=j.items)==null?void 0:_.length)||0,")"]},j.name)})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,basis:0,children:[D.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:E.length===0?"No items in this category.":"No results found."}),(0,e.createComponentVNode)(2,u,{compactMode:E.length>0||S,currencyAmount:p,currencySymbol:b,items:D})]})]})})}return d}(),u=function(i){var c=i.compactMode,l=i.currencyAmount,h=i.currencySymbol,p=(0,t.useBackend)(),v=p.act,b=(0,t.useLocalState)("hoveredItem",{}),g=b[0],N=b[1],B=g&&g.cost||0,S=i.items.map(function(L){var I=g&&g.name!==L.name,w=l-B=0)&&(T[A]=I[A]);return T}var C=[null,"average","bad"],s={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},m={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},u=r.VorePanel=function(){function I(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=(0,t.useLocalState)("panelTabIndex",0),R=M[0],O=M[1],F=[];return F[0]=(0,e.createComponentVNode)(2,i),F[1]=(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,f.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[A.unsaved_changes&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:!0,children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs",icon:"save",onClick:function(){function D(){return E("saveprefs")}return D}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){function D(){E("saveprefs"),E("exportpanel")}return D}()})})]})})||null,(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===0,onClick:function(){function D(){return O(0)}return D}(),children:["Bellies",(0,e.createComponentVNode)(2,o.Icon,{name:"list",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===1,onClick:function(){function D(){return O(1)}return D}(),children:["Preferences",(0,e.createComponentVNode)(2,o.Icon,{name:"user-cog",ml:.5})]})]}),F[R]||"Error"]})})}return I}(),d=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.inside,R=M.absorbed,O=M.belly_name,F=M.belly_mode,D=M.desc,j=M.pred,_=M.contents,z=M.ref;return O?(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:[(0,e.createComponentVNode)(2,o.Box,{color:"green",inline:!0,children:["You are currently ",R?"absorbed into":"inside"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:[j,"'s"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"red",inline:!0,children:O}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:s[F],inline:!0,children:m[F]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"label",children:D}),_.length&&(0,e.createComponentVNode)(2,o.Collapsible,{title:"Belly Contents",children:(0,e.createComponentVNode)(2,B,{contents:_,belly:z})})||"There is nothing else around you."]}):(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:"You aren't inside anyone."})},i=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.our_bellies,R=A.selected;return(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"My Bellies",scollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function O(){return E("newbelly")}return O}(),children:["New",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function O(){return E("exportpanel")}return O}(),children:["Export",(0,e.createComponentVNode)(2,o.Icon,{name:"file-export",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),M.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O.selected,textColor:s[O.digest_mode],onClick:function(){function F(){return E("bellypick",{bellypick:O.ref})}return F}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,textColor:O.selected&&s[O.digest_mode]||null,children:[O.name," (",O.contents,")"]})},O.name)})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:R&&(0,e.createComponentVNode)(2,o.Section,{title:R.belly_name,children:(0,e.createComponentVNode)(2,c,{belly:R})})})]})},c=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.contents,R=(0,t.useLocalState)("bellyTabIndex",0),O=R[0],F=R[1],D=[];return D[0]=(0,e.createComponentVNode)(2,l,{belly:A}),D[1]=(0,e.createComponentVNode)(2,h,{belly:A}),D[2]=(0,e.createComponentVNode)(2,p,{belly:A}),D[3]=(0,e.createComponentVNode)(2,b,{belly:A}),D[4]=(0,e.createComponentVNode)(2,g,{belly:A}),D[5]=(0,e.createComponentVNode)(2,N,{belly:A}),D[6]=(0,e.createComponentVNode)(2,B,{outside:!0,contents:M}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===0,onClick:function(){function j(){return F(0)}return j}(),children:"Controls"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===1,onClick:function(){function j(){return F(1)}return j}(),children:"Descriptions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===2,onClick:function(){function j(){return F(2)}return j}(),children:"Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===3,onClick:function(){function j(){return F(3)}return j}(),children:"Sounds"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===4,onClick:function(){function j(){return F(4)}return j}(),children:"Visuals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===5,onClick:function(){function j(){return F(5)}return j}(),children:"Interactions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===6,onClick:function(){function j(){return F(6)}return j}(),children:["Contents (",M.length,")"]})]}),D[O]||"Error"],0)},l=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.belly_name,R=A.mode,O=A.item_mode,F=A.addons;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){function D(){return E("move_belly",{dir:-1})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){function D(){return E("move_belly",{dir:1})}return D}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_name"})}return D}(),content:M})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{color:s[R],onClick:function(){function D(){return E("set_attribute",{attribute:"b_mode"})}return D}(),content:R})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode Addons",children:[F.length&&F.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_addons"})}return D}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_item_mode"})}return D}(),content:O})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{basis:"100%",mt:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){function D(){return E("set_attribute",{attribute:"b_del"})}return D}()})})]})},h=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.verb,R=A.release_verb,O=A.desc,F=A.absorbed_desc;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_desc"})}return D}(),icon:"pen"}),children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_absorbed_desc"})}return D}(),icon:"pen"}),children:F}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_verb"})}return D}(),content:M})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_release_verb"})}return D}(),content:R})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Examine Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"em"})}return D}(),content:"Examine Message (when full)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"ema"})}return D}(),content:"Examine Message (with absorbed victims)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Struggle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"smo"})}return D}(),content:"Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"smi"})}return D}(),content:"Struggle Message (inside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})}return D}(),content:"Absorbed Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})}return D}(),content:"Absorbed Struggle Message (inside)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escap"})}return D}(),content:"Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escao"})}return D}(),content:"Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escp"})}return D}(),content:"Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"esco"})}return D}(),content:"Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escout"})}return D}(),content:"Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escip"})}return D}(),content:"Escape Item Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escio"})}return D}(),content:"Escape Item Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})}return D}(),content:"Escape Item Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})}return D}(),content:"Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})}return D}(),content:"Escape Fail Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})}return D}(),content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})}return D}(),content:"Absorbed Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})}return D}(),content:"Absorbed Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})}return D}(),content:"Absorbed Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})}return D}(),content:"Absorbed Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})}return D}(),content:"Absorbed Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})}return D}(),content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})}return D}(),content:"Primary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})}return D}(),content:"Primary Transfer Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})}return D}(),content:"Secondary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})}return D}(),content:"Secondary Transfer Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Interaction Chance Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})}return D}(),content:"Interaction Chance Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})}return D}(),content:"Interaction Chance Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})}return D}(),content:"Interaction Chance Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})}return D}(),content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bellymode Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})}return D}(),content:"Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})}return D}(),content:"Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"amp"})}return D}(),content:"Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"amo"})}return D}(),content:"Absorb Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})}return D}(),content:"Unabsorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})}return D}(),content:"Unabsorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})}return D}(),content:"Idle Messages (Hold)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})}return D}(),content:"Idle Messages (Hold Absorbed)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})}return D}(),content:"Idle Messages (Digest)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})}return D}(),content:"Idle Messages (Absorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})}return D}(),content:"Idle Messages (Unabsorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})}return D}(),content:"Idle Messages (Drain)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})}return D}(),content:"Idle Messages (Heal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})}return D}(),content:"Idle Messages (Size Steal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})}return D}(),content:"Idle Messages (Shrink)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})}return D}(),content:"Idle Messages (Grow)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})}return D}(),content:"Idle Messages (Encase In Egg)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reset Messages",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"reset"})}return D}(),content:"Reset Messages"})})]})},p=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.host_mobtype,R=M.is_cyborg,O=M.is_vore_simple_mob,F=w.belly,D=F.can_taste,j=F.nutrition_percent,_=F.digest_brute,z=F.digest_burn,H=F.digest_oxy,Q=F.digest_tox,Y=F.digest_clone,X=F.bulge_size,$=F.display_absorbed_examine,G=F.shrink_grow_size,Z=F.emote_time,te=F.emote_active,q=F.contaminates,me=F.contaminate_flavor,pe=F.contaminate_color,Ne=F.egg_type,le=F.selective_preference,re=F.save_digest_mode,ie=F.eating_privacy_local,Ve=F.silicon_belly_overlay_preference,ke=F.belly_mob_mult,Be=F.belly_item_mult,ue=F.belly_overall_mult;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Can Taste",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_tastes"})}return oe}(),icon:D?"toggle-on":"toggle-off",selected:D,content:D?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contaminates",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contaminate"})}return oe}(),icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),q&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Flavor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contamination_flavor"})}return oe}(),icon:"pen",content:me})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Color",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contamination_color"})}return oe}(),icon:"pen",content:(0,a.capitalize)(pe)})})],4)||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nutritional Gain",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_nutritionpercent"})}return oe}(),content:j+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Examine Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_bulge_size"})}return oe}(),content:X*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_display_absorbed_examine"})}return oe}(),icon:$?"toggle-on":"toggle-off",selected:$,content:$?"True":"False"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Vore Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_eating_privacy"})}return oe}(),content:(0,a.capitalize)(ie)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Save Digest Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_save_digest_mode"})}return oe}(),icon:re?"toggle-on":"toggle-off",selected:re,content:re?"True":"False"})})]}),(0,e.createComponentVNode)(2,v,{belly:F})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emotes",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_emoteactive"})}return oe}(),icon:te?"toggle-on":"toggle-off",selected:te,content:te?"Active":"Inactive"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emote Delay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_emotetime"})}return oe}(),content:Z+" seconds"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Brute Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_brute_dmg"})}return oe}(),content:_})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Burn Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_burn_dmg"})}return oe}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_oxy_dmg"})}return oe}(),content:H})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Toxins Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_tox_dmg"})}return oe}(),content:Q})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Clone Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_clone_dmg"})}return oe}(),content:Y})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_grow_shrink"})}return oe}(),content:G*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Egg Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_egg_type"})}return oe}(),icon:"pen",content:(0,a.capitalize)(Ne)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Selective Mode Preference",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_selective_mode_pref_toggle"})}return oe}(),content:(0,a.capitalize)(le)})})]})})]})},v=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.host_mobtype,R=M.is_cyborg,O=M.is_vore_simple_mob,F=w.belly,D=F.silicon_belly_overlay_preference,j=F.belly_mob_mult,_=F.belly_item_mult,z=F.belly_overall_mult;return R?(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_silicon_belly"})}return H}(),content:(0,a.capitalize)(D)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_mob_mult"})}return H}(),content:j})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Vorebelly Size Mult",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_item_mult"})}return H}(),content:_})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Size Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_overall_mult"})}return H}(),content:z})})]})}):O?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)}):(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)})},b=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.is_wet,R=A.wet_loop,O=A.fancy,F=A.sound,D=A.release_sound;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fleshy Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_wetness"})}return j}(),icon:M?"toggle-on":"toggle-off",selected:M,content:M?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Loop",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_wetloop"})}return j}(),icon:R?"toggle-on":"toggle-off",selected:R,content:R?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_fancy_sound"})}return j}(),icon:O?"toggle-on":"toggle-off",selected:O,content:O?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_sound"})}return j}(),content:F}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_soundtest"})}return j}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_release"})}return j}(),content:D}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_releasesoundtest"})}return j}(),icon:"volume-up"})]})]})})})},g=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.belly_fullscreen,R=A.possible_fullscreens,O=A.disable_hud,F=A.belly_fullscreen_color,D=A.belly_fullscreen_color_secondary,j=A.belly_fullscreen_color_trinary,_=A.mapRef,z=A.colorization_enabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Box,{backgroundColor:F,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color",val:null})}return H}(),children:"Select Primary Color"}),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:D,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})}return H}(),children:"Select Secondary Color"}),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:j,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})}return H}(),children:"Select Trinary Color"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Enable Coloration",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_colorization_enabled"})}return H}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_preview_belly"})}return H}(),content:"Preview"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Clear Preview",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_clear_preview"})}return H}(),content:"Clear"})})]})}),(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Vore FX",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disable Prey HUD",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_disable_hud"})}return H}(),icon:O?"toggle-on":"toggle-off",selected:O,content:O?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:M===""||M===null,onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen",val:null})}return H}(),children:"Disabled"}),Object.keys(R).map(function(H){return(0,e.createVNode)(1,"span",null,(0,e.createComponentVNode)(2,o.Button,{width:"256px",height:"256px",selected:H===M,onClick:function(){function Q(){return E("set_attribute",{attribute:"b_fullscreen",val:H})}return Q}(),children:(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["vore240x240",H]),style:{transform:"translate(0%, 4%)"}})},H),2,{style:{width:"256px"}})})]})]})],4)},N=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.escapable,R=A.interacts;return(0,e.createComponentVNode)(2,o.Section,{title:"Belly Interactions",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapable"})}return O}(),icon:M?"toggle-on":"toggle-off",selected:M,content:M?"Interactions On":"Interactions Off"}),children:M?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapechance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapechance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapechance_absorbed+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapechance_absorbed"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Time",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapetime/10+"s",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapetime"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferchance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferlocation?R.transferlocation:"Disabled",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferlocation"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferchance_secondary+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferchance_secondary"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferlocation_secondary?R.transferlocation_secondary:"Disabled",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferlocation_secondary"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorb Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.absorbchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_absorbchance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.digestchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_digestchance"})}return O}()})})]}):"These options only display while interactions are turned on."})},B=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.show_pictures,R=w.contents,O=w.belly,F=w.outside,D=F===void 0?!1:F;return(0,e.createFragment)([D&&(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){function j(){return E("pick_from_outside",{pickall:!0})}return j}(),children:"All"})||null,M&&(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:R.map(function(j){return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,o.Button,{width:"64px",color:j.absorbed?"purple":C[j.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){function _(){return E(j.outside?"pick_from_outside":"pick_from_inside",{pick:j.ref,belly:O})}return _}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+j.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),j.name]},j.name)})})||(0,e.createComponentVNode)(2,o.LabeledList,{children:R.map(function(j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:j.name,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:-1,mb:-1,color:j.absorbed?"purple":C[j.stat],onClick:function(){function _(){return E(j.outside?"pick_from_outside":"pick_from_inside",{pick:j.ref,belly:O})}return _}(),children:"Interact"})},j.ref)})})],0)},S=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.prefs,R=M.digestable,O=M.devourable,F=M.resizable,D=M.feeding,j=M.absorbable,_=M.digest_leave_remains,z=M.allowmobvore,H=M.permit_healbelly,Q=M.show_vore_fx,Y=M.can_be_drop_prey,X=M.can_be_drop_pred,$=M.allow_inbelly_spawning,G=M.allow_spontaneous_tf,Z=M.step_mechanics_active,te=M.pickup_mechanics_active,q=M.noisy,me=M.drop_vore,pe=M.stumble_vore,Ne=M.slip_vore,le=M.throw_vore,re=M.food_vore,ie=M.nutrition_message_visible,Ve=M.weight_message_visible,ke=M.eating_privacy_global,Be=A.show_pictures,ue={digestion:{action:"toggle_digest",test:R,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:j,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:O,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:z,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:D,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:H,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:Y,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:X,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:me,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:Ne,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:pe,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:le,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:re,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:$,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:q,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:F,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:Z,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:Q,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:_,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:te,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:G,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ie,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ve,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:ke,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.createComponentVNode)(2,o.Section,{title:"Mechanical Preferences",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:Be,onClick:function(){function oe(){return E("show_pictures")}return oe}(),children:["Contents Preference: ",Be?"Show Pictures":"Show List"]}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.digestion})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.absorbable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.devour})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.mobvore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.feed})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.healbelly,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.dropnom_prey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.dropnom_pred})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_drop_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_slip_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_stumble_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_throw_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_food_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.inbelly_spawning})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.noisy})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.resize})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.steppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.vore_fx,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.remains,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.pickuppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.spontaneous_tf})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Selective Mode Preference",onClick:function(){function oe(){return E("switch_selective_mode_pref")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:3,children:(0,e.createComponentVNode)(2,L,{spec:ue.eating_privacy_global})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Aesthetic Preferences",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){function oe(){return E("setflavor")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){function oe(){return E("setsmell")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_msgs",msgtype:"en"})}return oe}(),content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_msgs",msgtype:"ew"})}return oe}(),content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.examine_nutrition})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,L,{spec:ue.examine_weight})})]})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){function oe(){return E("saveprefs")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){function oe(){return E("reloadprefs")}return oe}()})})]})})]})},L=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.spec,M=k(w,y),R=A.action,O=A.test,F=A.tooltip,D=A.content;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({onClick:function(){function j(){return E(R)}return j}(),icon:O?"toggle-on":"toggle-off",selected:O,fluid:!0,tooltip:F.main+" "+(O?F.disable:F.enable),content:O?D.enabled:D.disabled},M)))}},8942:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanelExport=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},V={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},y={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},k=function(c){var l=[];return c==null||c.forEach(function(h){l.push(''+h+"")}),l.length===0&&l.push("No Addons Set"),l},C=function(c,l){var h=c.name,p=c.desc,v=c.absorbed_desc,b=c.vore_verb,g=c.release_verb,N=c.mode,B=c.addons,S=c.item_mode,L=c.digest_brute,I=c.digest_burn,w=c.digest_oxy,T=c.digest_tox,E=c.digest_clone,A=c.can_taste,M=c.contaminates,R=c.contamination_flavor,O=c.contamination_color,F=c.nutrition_percent,D=c.bulge_size,j=c.display_absorbed_examine,_=c.save_digest_mode,z=c.emote_active,H=c.emote_time,Q=c.shrink_grow_size,Y=c.egg_type,X=c.selective_preference,$=c.struggle_messages_outside,G=c.struggle_messages_inside,Z=c.absorbed_struggle_messages_outside,te=c.absorbed_struggle_messages_inside,q=c.escape_attempt_messages_owner,me=c.escape_attempt_messages_prey,pe=c.escape_messages_owner,Ne=c.escape_messages_prey,le=c.escape_messages_outside,re=c.escape_item_messages_owner,ie=c.escape_item_messages_prey,Ve=c.escape_item_messages_outside,ke=c.escape_fail_messages_owner,Be=c.escape_fail_messages_prey,ue=c.escape_attempt_absorbed_messages_owner,oe=c.escape_attempt_absorbed_messages_prey,Ce=c.escape_absorbed_messages_owner,ae=c.escape_absorbed_messages_prey,ee=c.escape_absorbed_messages_outside,se=c.escape_fail_absorbed_messages_owner,xe=c.escape_fail_absorbed_messages_prey,Le=c.primary_transfer_messages_owner,Pe=c.primary_transfer_messages_prey,Fe=c.secondary_transfer_messages_owner,je=c.secondary_transfer_messages_prey,Me=c.digest_chance_messages_owner,be=c.digest_chance_messages_prey,ve=c.absorb_chance_messages_owner,he=c.absorb_chance_messages_prey,ye=c.digest_messages_owner,Ie=c.digest_messages_prey,we=c.absorb_messages_owner,_e=c.absorb_messages_prey,ze=c.unabsorb_messages_owner,Ue=c.unabsorb_messages_prey,Ge=c.examine_messages,Ke=c.examine_messages_absorbed,Ye=c.emotes_digest,Nt=c.emotes_hold,bt=c.emotes_holdabsorbed,st=c.emotes_absorb,Vt=c.emotes_heal,yt=c.emotes_drain,kt=c.emotes_steal,mt=c.emotes_egg,ft=c.emotes_shrink,Bt=c.emotes_grow,pt=c.emotes_unabsorb,wt=c.is_wet,Tt=c.wet_loop,lt=c.fancy_vore,at=c.vore_sound,Ze=c.release_sound,qe=c.disable_hud,it=c.escapable,ut=c.escapechance,dt=c.escapechance_absorbed,Et=c.escapetime,At=c.transferchance,Mt=c.transferlocation,Pt=c.transferchance_secondary,Ct=c.transferlocation_secondary,St=c.absorbchance,Lt=c.digestchance,K="";return K+='

',K+='

",K+='
',K+='
',K+="Addons:
"+k(B)+"

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

",K+="Release Verb:
"+g+"

",K+='Description:
"'+p+'"

',K+='Absorbed Description:
"'+v+'"

',K+="
",K+="== Messages ==
",K+='
',K+='
",K+='
',K+='
',K+='
',q==null||q.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',me==null||me.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',pe==null||pe.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ne==null||Ne.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',le==null||le.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',re==null||re.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ie==null||ie.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ve==null||Ve.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ke==null||ke.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Be==null||Be.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ue==null||ue.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',oe==null||oe.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ce==null||Ce.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ae==null||ae.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ee==null||ee.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',se==null||se.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',xe==null||xe.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Le==null||Le.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Pe==null||Pe.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Fe==null||Fe.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',je==null||je.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Me==null||Me.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',be==null||be.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ve==null||ve.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',he==null||he.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',$==null||$.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',G==null||G.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Z==null||Z.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',te==null||te.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ye==null||ye.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ie==null||Ie.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',we==null||we.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',_e==null||_e.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',ze==null||ze.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ue==null||Ue.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ge==null||Ge.forEach(function(Se){K+=Se+"
"}),K+="
",K+='
',Ke==null||Ke.forEach(function(Se){K+=Se+"
"}),K+="
",K+="
",K+="
",K+="
",K+="
= Idle Messages =

",K+="

Idle Messages (Hold):

",Nt==null||Nt.forEach(function(Se){K+=Se+"
"}),K+="


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

",bt==null||bt.forEach(function(Se){K+=Se+"
"}),K+="


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

",Ye==null||Ye.forEach(function(Se){K+=Se+"
"}),K+="


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

",st==null||st.forEach(function(Se){K+=Se+"
"}),K+="


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

",pt==null||pt.forEach(function(Se){K+=Se+"
"}),K+="


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

",yt==null||yt.forEach(function(Se){K+=Se+"
"}),K+="


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

",Vt==null||Vt.forEach(function(Se){K+=Se+"
"}),K+="


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

",kt==null||kt.forEach(function(Se){K+=Se+"
"}),K+="


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

",ft==null||ft.forEach(function(Se){K+=Se+"
"}),K+="


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

",Bt==null||Bt.forEach(function(Se){K+=Se+"
"}),K+="


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

",mt==null||mt.forEach(function(Se){K+=Se+"
"}),K+="


",K+="


",K+="
",K+='
',K+='
',K+='

',K+='

",K+='
',K+='
',K+='
    ',K+='
  • Can Taste: '+(A?'Yes':'No')+"
  • ",K+='
  • Contaminates: '+(M?'Yes':'No')+"
  • ",K+='
  • Contamination Flavor: '+R+"
  • ",K+='
  • Contamination Color: '+O+"
  • ",K+='
  • Nutritional Gain: '+F+"%
  • ",K+='
  • Required Examine Size: '+D*100+"%
  • ",K+='
  • Display Absorbed Examines: '+(j?'True':'False')+"
  • ",K+='
  • Save Digest Mode: '+(_?'True':'False')+"
  • ",K+='
  • Idle Emotes: '+(z?'Active':'Inactive')+"
  • ",K+='
  • Idle Emote Delay: '+H+" seconds
  • ",K+='
  • Shrink/Grow Size: '+Q*100+"%
  • ",K+='
  • Egg Type: '+Y+"
  • ",K+='
  • Selective Mode Preference: '+X+"
  • ",K+="
",K+="
",K+='
',K+='

',K+='

",K+='
',K+='
',K+='
    ',K+='
  • Fleshy Belly: '+(wt?'Yes':'No')+"
  • ",K+='
  • Internal Loop: '+(Tt?'Yes':'No')+"
  • ",K+='
  • Use Fancy Sounds: '+(lt?'Yes':'No')+"
  • ",K+='
  • Vore Sound: '+at+"
  • ",K+='
  • Release Sound: '+Ze+"
  • ",K+="
",K+="
",K+='
',K+='

',K+='

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

',K+='

",K+='
',K+='
',K+="Belly Interactions ("+(it?'Enabled':'Disabled')+")",K+='
    ',K+='
  • Escape Chance: '+ut+"%
  • ",K+='
  • Escape Chance: '+dt+"%
  • ",K+='
  • Escape Time: '+Et/10+"s
  • ",K+='
  • Transfer Chance: '+At+"%
  • ",K+='
  • Transfer Location: '+Mt+"
  • ",K+='
  • Secondary Transfer Chance: '+Pt+"%
  • ",K+='
  • Secondary Transfer Location: '+Ct+"
  • ",K+='
  • Absorb Chance: '+St+"%
  • ",K+='
  • Digest Chance: '+Lt+"%
  • ",K+="
",K+="
",K+="
",K},s=function(){var c=new Date,l=String(c.getHours());l.length<2&&(l="0"+l);var h=String(c.getMinutes());h.length<2&&(h="0"+h);var p=String(c.getDate());p.length<2&&(p="0"+p);var v=String(c.getMonth()+1);v.length<2&&(v="0"+v);var b=String(c.getFullYear());return" "+b+"-"+v+"-"+p+" ("+l+" "+h+")"},m=function(c){var l=(0,a.useBackend)(),h=l.act,p=l.data,v=p.db_version,b=p.db_repo,g=p.mob_name,N=p.bellies,B=s(),S=g+B+c,L;if(c===".html"){var I="";L=new Blob([''+N.length+" Exported Bellies (DB_VER: "+b+"-"+v+')'+I+'

Bellies of '+g+'

Generated on: '+B+'

'],{type:"text/html;charset=utf8"}),N.forEach(function(w,T){L=new Blob([L,C(w,T)],{type:"text/html;charset=utf8"})}),L=new Blob([L,"
",'