(function(){(function(){var Ln={50252:function(x,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=u;var e=h(n(4254)),a=h(n(92957)),t=h(n(97262)),o=h(n(66689)),m=h(n(47307)),V=h(n(63889)),k=h(n(27343)),S=h(n(49883));r.detectOverflow=S.default;var N=n(75011);function h(c){return c&&c.__esModule?c:{default:c}}var s={placement:"bottom",modifiers:[],strategy:"absolute"};function l(){for(var c=arguments.length,d=new Array(c),p=0;p0&&(0,a.round)(h.width)/k.offsetWidth||1,l=k.offsetHeight>0&&(0,a.round)(h.height)/k.offsetHeight||1);var u=(0,e.isElement)(k)?(0,t.default)(k):window,i=u.visualViewport,c=!(0,o.default)()&&N,d=(h.left+(c&&i?i.offsetLeft:0))/s,p=(h.top+(c&&i?i.offsetTop:0))/l,v=h.width/s,f=h.height/l;return{width:v,height:f,top:p,right:d+v,bottom:p+f,left:d,x:d,y:p}}},35823:function(x,r,n){"use strict";r.__esModule=!0,r.default=f;var e=n(83996),a=c(n(75047)),t=c(n(37407)),o=c(n(97262)),m=c(n(66689)),V=c(n(36748)),k=c(n(77060)),S=n(75011),N=c(n(97617)),h=c(n(84330)),s=c(n(89691)),l=c(n(72793)),u=c(n(14834)),i=n(14194);function c(C){return C&&C.__esModule?C:{default:C}}function d(C,b){var g=(0,N.default)(C,!1,b==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function p(C,b,g){return b===e.viewport?(0,u.default)((0,a.default)(C,g)):(0,S.isElement)(b)?d(b,g):(0,u.default)((0,t.default)((0,V.default)(C)))}function v(C){var b=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,y=g&&(0,S.isHTMLElement)(C)?(0,m.default)(C):C;return(0,S.isElement)(y)?b.filter(function(B){return(0,S.isElement)(B)&&(0,s.default)(B,y)&&(0,l.default)(B)!=="body"}):[]}function f(C,b,g,y){var B=b==="clippingParents"?v(C):[].concat(b),L=[].concat(B,[g]),I=L[0],w=L.reduce(function(T,M){var A=p(C,M,y);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},p(C,I,y));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=s;var e=N(n(97617)),a=N(n(86394)),t=N(n(72793)),o=n(75011),m=N(n(44653)),V=N(n(36748)),k=N(n(9135)),S=n(14194);function N(l){return l&&l.__esModule?l:{default:l}}function h(l){var u=l.getBoundingClientRect(),i=(0,S.round)(u.width)/l.offsetWidth||1,c=(0,S.round)(u.height)/l.offsetHeight||1;return i!==1||c!==1}function s(l,u,i){i===void 0&&(i=!1);var c=(0,o.isHTMLElement)(u),d=(0,o.isHTMLElement)(u)&&h(u),p=(0,V.default)(u),v=(0,e.default)(l,d,i),f={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(c||!c&&!i)&&(((0,t.default)(u)!=="body"||(0,k.default)(p))&&(f=(0,a.default)(u)),(0,o.isHTMLElement)(u)?(C=(0,e.default)(u,!0),C.x+=u.clientLeft,C.y+=u.clientTop):p&&(C.x=(0,m.default)(p))),{x:v.left+f.scrollLeft-C.x,y:v.top+f.scrollTop-C.y,width:v.width,height:v.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=k;var e=V(n(36748)),a=V(n(77060)),t=V(n(44653)),o=V(n(10416)),m=n(14194);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var N,h=(0,e.default)(S),s=(0,o.default)(S),l=(N=S.ownerDocument)==null?void 0:N.body,u=(0,m.max)(h.scrollWidth,h.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),i=(0,m.max)(h.scrollHeight,h.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-s.scrollLeft+(0,t.default)(S),d=-s.scrollTop;return(0,a.default)(l||h).direction==="rtl"&&(c+=(0,m.max)(h.clientWidth,l?l.clientWidth:0)-u),{width:u,height:i,x:c,y:d}}},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 m=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(m.width-V)<=1&&(V=m.width),Math.abs(m.height-k)<=1&&(k=m.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},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=m(n(10416)),a=m(n(1866)),t=n(75011),o=m(n(89821));function m(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},66689:function(x,r,n){"use strict";r.__esModule=!0,r.default=s;var e=S(n(1866)),a=S(n(72793)),t=S(n(77060)),o=n(75011),m=S(n(46795)),V=S(n(84330)),k=S(n(36110));function S(l){return l&&l.__esModule?l:{default:l}}function N(l){return!(0,o.isHTMLElement)(l)||(0,t.default)(l).position==="fixed"?null:l.offsetParent}function h(l){var u=/firefox/i.test((0,k.default)()),i=/Trident/i.test((0,k.default)());if(i&&(0,o.isHTMLElement)(l)){var c=(0,t.default)(l);if(c.position==="fixed")return null}var d=(0,V.default)(l);for((0,o.isShadowRoot)(d)&&(d=d.host);(0,o.isHTMLElement)(d)&&["html","body"].indexOf((0,a.default)(d))<0;){var p=(0,t.default)(d);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||u&&p.willChange==="filter"||u&&p.filter&&p.filter!=="none")return d;d=d.parentNode}return null}function s(l){for(var u=(0,e.default)(l),i=N(l);i&&(0,m.default)(i)&&(0,t.default)(i).position==="static";)i=N(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?u:i||h(l)||u}},84330:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(72793)),a=o(n(36748)),t=n(75011);function o(V){return V&&V.__esModule?V:{default:V}}function m(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=m(n(84330)),a=m(n(9135)),t=m(n(72793)),o=n(75011);function m(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},75047:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(1866)),a=m(n(36748)),t=m(n(44653)),o=m(n(45407));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var N=(0,e.default)(k),h=(0,a.default)(k),s=N.visualViewport,l=h.clientWidth,u=h.clientHeight,i=0,c=0;if(s){l=s.width,u=s.height;var d=(0,o.default)();(d||!d&&S==="fixed")&&(i=s.offsetLeft,c=s.offsetTop)}return{width:l,height:u,x:i+(0,t.default)(k),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 m=(0,e.default)(o),V=m.pageXOffset,k=m.pageYOffset;return{scrollLeft:V,scrollTop:k}}},44653:function(x,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(97617)),a=o(n(36748)),t=o(n(10416));function o(V){return V&&V.__esModule?V:{default:V}}function m(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=m;var e=a(n(1866));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function m(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||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 m=(0,e.default)(o),V=m.overflow,k=m.overflowX,S=m.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},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=m(n(89523)),a=m(n(84330)),t=m(n(1866)),o=m(n(9135));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var N;S===void 0&&(S=[]);var h=(0,e.default)(k),s=h===((N=k.ownerDocument)==null?void 0:N.body),l=(0,t.default)(h),u=s?[l].concat(l.visualViewport||[],(0,o.default)(h)?h:[]):h,i=S.concat(u);return s?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",m=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",N=r.viewport="viewport",h=r.popper="popper",s=r.reference="reference",l=r.variationPlacements=m.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+k])},[]),u=r.placements=[].concat(m,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+k])},[]),i=r.beforeRead="beforeRead",c=r.read="read",d=r.afterRead="afterRead",p=r.beforeMain="beforeMain",v=r.main="main",f=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",b=r.write="write",g=r.afterWrite="afterWrite",y=r.modifierPhases=[i,c,d,p,v,f,C,b,g]},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(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(97934);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(50252);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(1728);r.createPopper=m.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(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(N){var h=S.styles[N]||{},s=S.attributes[N]||{},l=S.elements[N];!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,h),Object.keys(s).forEach(function(u){var i=s[u];i===!1?l.removeAttribute(u):l.setAttribute(u,i===!0?"":i)}))})}function m(k){var S=k.state,N={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,N.popper),S.styles=N,S.elements.arrow&&Object.assign(S.elements.arrow.style,N.arrow),function(){Object.keys(S.elements).forEach(function(h){var s=S.elements[h],l=S.attributes[h]||{},u=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:N[h]),i=u.reduce(function(c,d){return c[d]="",c},{});!(0,a.isHTMLElement)(s)||!(0,e.default)(s)||(Object.assign(s.style,i),Object.keys(l).forEach(function(c){s.removeAttribute(c)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},90860:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(85312)),a=h(n(92957)),t=h(n(89691)),o=h(n(66689)),m=h(n(86274)),V=n(52855),k=h(n(10632)),S=h(n(59597)),N=n(83996);function h(c){return c&&c.__esModule?c:{default:c}}var s=function(){function c(d,p){return d=typeof d=="function"?d(Object.assign({},p.rects,{placement:p.placement})):d,(0,k.default)(typeof d!="number"?d:(0,S.default)(d,N.basePlacements))}return c}();function l(c){var d,p=c.state,v=c.name,f=c.options,C=p.elements.arrow,b=p.modifiersData.popperOffsets,g=(0,e.default)(p.placement),y=(0,m.default)(g),B=[N.left,N.right].indexOf(g)>=0,L=B?"height":"width";if(!(!C||!b)){var I=s(f.padding,p),w=(0,a.default)(C),T=y==="y"?N.top:N.left,M=y==="y"?N.bottom:N.right,A=p.rects.reference[L]+p.rects.reference[y]-b[y]-p.rects.popper[L],R=b[y]-p.rects.reference[y],O=(0,o.default)(C),_=O?y==="y"?O.clientHeight||0:O.clientWidth||0:0,P=A/2-R/2,D=I[T],z=_-w[L]-I[M],U=_/2-w[L]/2+P,W=(0,V.within)(D,U,z),K=y;p.modifiersData[v]=(d={},d[K]=W,d.centerOffset=W-U,d)}}function u(c){var d=c.state,p=c.options,v=p.element,f=v===void 0?"[data-popper-arrow]":v;f!=null&&(typeof f=="string"&&(f=d.elements.popper.querySelector(f),!f)||(0,t.default)(d.elements.popper,f)&&(d.elements.arrow=f))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:l,effect:u,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},15224:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=l;var e=n(83996),a=N(n(66689)),t=N(n(1866)),o=N(n(36748)),m=N(n(77060)),V=N(n(85312)),k=N(n(48218)),S=n(14194);function N(c){return c&&c.__esModule?c:{default:c}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s(c,d){var p=c.x,v=c.y,f=d.devicePixelRatio||1;return{x:(0,S.round)(p*f)/f||0,y:(0,S.round)(v*f)/f||0}}function l(c){var d,p=c.popper,v=c.popperRect,f=c.placement,C=c.variation,b=c.offsets,g=c.position,y=c.gpuAcceleration,B=c.adaptive,L=c.roundOffsets,I=c.isFixed,w=b.x,T=w===void 0?0:w,M=b.y,A=M===void 0?0:M,R=typeof L=="function"?L({x:T,y:A}):{x:T,y:A};T=R.x,A=R.y;var O=b.hasOwnProperty("x"),_=b.hasOwnProperty("y"),P=e.left,D=e.top,z=window;if(B){var U=(0,a.default)(p),W="clientHeight",K="clientWidth";if(U===(0,t.default)(p)&&(U=(0,o.default)(p),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",K="scrollWidth")),U=U,f===e.top||(f===e.left||f===e.right)&&C===e.end){D=e.bottom;var H=I&&U===z&&z.visualViewport?z.visualViewport.height:U[W];A-=H-v.height,A*=y?1:-1}if(f===e.left||(f===e.top||f===e.bottom)&&C===e.end){P=e.right;var Y=I&&U===z&&z.visualViewport?z.visualViewport.width:U[K];T-=Y-v.width,T*=y?1:-1}}var J=Object.assign({position:g},B&&h),q=L===!0?s({x:T,y:A},(0,t.default)(p)):{x:T,y:A};if(T=q.x,A=q.y,y){var oe;return Object.assign({},J,(oe={},oe[D]=_?"0":"",oe[P]=O?"0":"",oe.transform=(z.devicePixelRatio||1)<=1?"translate("+T+"px, "+A+"px)":"translate3d("+T+"px, "+A+"px, 0)",oe))}return Object.assign({},J,(d={},d[D]=_?A+"px":"",d[P]=O?T+"px":"",d.transform="",d))}function u(c){var d=c.state,p=c.options,v=p.gpuAcceleration,f=v===void 0?!0:v,C=p.adaptive,b=C===void 0?!0:C,g=p.roundOffsets,y=g===void 0?!0:g,B={placement:(0,V.default)(d.placement),variation:(0,k.default)(d.placement),popper:d.elements.popper,popperRect:d.rects.popper,gpuAcceleration:f,isFixed:d.options.strategy==="fixed"};d.modifiersData.popperOffsets!=null&&(d.styles.popper=Object.assign({},d.styles.popper,l(Object.assign({},B,{offsets:d.modifiersData.popperOffsets,position:d.options.strategy,adaptive:b,roundOffsets:y})))),d.modifiersData.arrow!=null&&(d.styles.arrow=Object.assign({},d.styles.arrow,l(Object.assign({},B,{offsets:d.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-placement":d.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 k=V.state,S=V.instance,N=V.options,h=N.scroll,s=h===void 0?!0:h,l=N.resize,u=l===void 0?!0:l,i=(0,e.default)(k.elements.popper),c=[].concat(k.scrollParents.reference,k.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",S.update,t)}),u&&i.addEventListener("resize",S.update,t),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",S.update,t)}),u&&i.removeEventListener("resize",S.update,t)}}var m=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=S(n(72310)),a=S(n(85312)),t=S(n(53379)),o=S(n(49883)),m=S(n(67450)),V=n(83996),k=S(n(48218));function S(l){return l&&l.__esModule?l:{default:l}}function N(l){if((0,a.default)(l)===V.auto)return[];var u=(0,e.default)(l);return[(0,t.default)(l),u,(0,t.default)(u)]}function h(l){var u=l.state,i=l.options,c=l.name;if(!u.modifiersData[c]._skip){for(var d=i.mainAxis,p=d===void 0?!0:d,v=i.altAxis,f=v===void 0?!0:v,C=i.fallbackPlacements,b=i.padding,g=i.boundary,y=i.rootBoundary,B=i.altBoundary,L=i.flipVariations,I=L===void 0?!0:L,w=i.allowedAutoPlacements,T=u.options.placement,M=(0,a.default)(T),A=M===T,R=C||(A||!I?[(0,e.default)(T)]:N(T)),O=[T].concat(R).reduce(function(ee,ie){return ee.concat((0,a.default)(ie)===V.auto?(0,m.default)(u,{placement:ie,boundary:g,rootBoundary:y,padding:b,flipVariations:I,allowedAutoPlacements:w}):ie)},[]),_=u.rects.reference,P=u.rects.popper,D=new Map,z=!0,U=O[0],W=0;W=0,q=J?"width":"height",oe=(0,o.default)(u,{placement:K,boundary:g,rootBoundary:y,altBoundary:B,padding:b}),ae=J?Y?V.right:V.left:Y?V.bottom:V.top;_[q]>P[q]&&(ae=(0,e.default)(ae));var le=(0,e.default)(ae),he=[];if(p&&he.push(oe[H]<=0),f&&he.push(oe[ae]<=0,oe[le]<=0),he.every(function(ee){return ee})){U=K,z=!1;break}D.set(K,he)}if(z)for(var me=I?3:1,Be=function(){function ee(ie){var Ce=O.find(function(Se){var we=D.get(Se);if(we)return we.slice(0,ie).every(function(pe){return pe})});if(Ce)return U=Ce,"break"}return ee}(),ce=me;ce>0;ce--){var te=Be(ce);if(te==="break")break}u.placement!==U&&(u.modifiersData[c]._skip=!0,u.placement=U,u.reset=!0)}}var s=r.default={name:"flip",enabled:!0,phase:"main",fn:h,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(S){return S&&S.__esModule?S:{default:S}}function o(S,N,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-N.height-h.y,right:S.right-N.width+h.x,bottom:S.bottom-N.height+h.y,left:S.left-N.width-h.x}}function m(S){return[e.top,e.right,e.bottom,e.left].some(function(N){return S[N]>=0})}function V(S){var N=S.state,h=S.name,s=N.rects.reference,l=N.rects.popper,u=N.modifiersData.preventOverflow,i=(0,a.default)(N,{elementContext:"reference"}),c=(0,a.default)(N,{altBoundary:!0}),d=o(i,s),p=o(c,l,u),v=m(d),f=m(p);N.modifiersData[h]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:v,hasPopperEscaped:f},N.attributes.popper=Object.assign({},N.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":f})}var k=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=h(n(38621));r.applyStyles=e.default;var a=h(n(90860));r.arrow=a.default;var t=h(n(15224));r.computeStyles=t.default;var o=h(n(59953));r.eventListeners=o.default;var m=h(n(21128));r.flip=m.default;var V=h(n(17945));r.hide=V.default;var k=h(n(90642));r.offset=k.default;var S=h(n(23786));r.popperOffsets=S.default;var N=h(n(78230));r.preventOverflow=N.default;function h(s){return s&&s.__esModule?s:{default:s}}},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(k){return k&&k.__esModule?k:{default:k}}function o(k,S,N){var h=(0,e.default)(k),s=[a.left,a.top].indexOf(h)>=0?-1:1,l=typeof N=="function"?N(Object.assign({},S,{placement:k})):N,u=l[0],i=l[1];return u=u||0,i=(i||0)*s,[a.left,a.right].indexOf(h)>=0?{x:i,y:u}:{x:u,y:i}}function m(k){var S=k.state,N=k.options,h=k.name,s=N.offset,l=s===void 0?[0,0]:s,u=a.placements.reduce(function(p,v){return p[v]=o(v,S.rects,l),p},{}),i=u[S.placement],c=i.x,d=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=c,S.modifiersData.popperOffsets.y+=d),S.modifiersData[h]=u}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},23786:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(85694));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var V=m.state,k=m.name;V.modifiersData[k]=(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=l(n(85312)),t=l(n(86274)),o=l(n(4320)),m=n(52855),V=l(n(92957)),k=l(n(66689)),S=l(n(49883)),N=l(n(48218)),h=l(n(23941)),s=n(14194);function l(c){return c&&c.__esModule?c:{default:c}}function u(c){var d=c.state,p=c.options,v=c.name,f=p.mainAxis,C=f===void 0?!0:f,b=p.altAxis,g=b===void 0?!1:b,y=p.boundary,B=p.rootBoundary,L=p.altBoundary,I=p.padding,w=p.tether,T=w===void 0?!0:w,M=p.tetherOffset,A=M===void 0?0:M,R=(0,S.default)(d,{boundary:y,rootBoundary:B,padding:I,altBoundary:L}),O=(0,a.default)(d.placement),_=(0,N.default)(d.placement),P=!_,D=(0,t.default)(O),z=(0,o.default)(D),U=d.modifiersData.popperOffsets,W=d.rects.reference,K=d.rects.popper,H=typeof A=="function"?A(Object.assign({},d.rects,{placement:d.placement})):A,Y=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),J=d.modifiersData.offset?d.modifiersData.offset[d.placement]:null,q={x:0,y:0};if(U){if(C){var oe,ae=D==="y"?e.top:e.left,le=D==="y"?e.bottom:e.right,he=D==="y"?"height":"width",me=U[D],Be=me+R[ae],ce=me-R[le],te=T?-K[he]/2:0,ee=_===e.start?W[he]:K[he],ie=_===e.start?-K[he]:-W[he],Ce=d.elements.arrow,Se=T&&Ce?(0,V.default)(Ce):{width:0,height:0},we=d.modifiersData["arrow#persistent"]?d.modifiersData["arrow#persistent"].padding:(0,h.default)(),pe=we[ae],E=we[le],Z=(0,m.within)(0,W[he],Se[he]),re=P?W[he]/2-te-Z-pe-Y.mainAxis:ee-Z-pe-Y.mainAxis,X=P?-W[he]/2+te+Z+E+Y.mainAxis:ie+Z+E+Y.mainAxis,ne=d.elements.arrow&&(0,k.default)(d.elements.arrow),ve=ne?D==="y"?ne.clientTop||0:ne.clientLeft||0:0,Ve=(oe=J==null?void 0:J[D])!=null?oe:0,Ie=me+re-Ve-ve,Pe=me+X-Ve,Ae=(0,m.within)(T?(0,s.min)(Be,Ie):Be,me,T?(0,s.max)(ce,Pe):ce);U[D]=Ae,q[D]=Ae-me}if(g){var Oe,de=D==="x"?e.top:e.left,ge=D==="x"?e.bottom:e.right,j=U[z],ue=z==="y"?"height":"width",be=j+R[de],ke=j-R[ge],Te=[e.top,e.left].indexOf(O)!==-1,Ee=(Oe=J==null?void 0:J[z])!=null?Oe:0,Re=Te?be:j-W[ue]-K[ue]-Ee+Y.altAxis,_e=Te?j+W[ue]+K[ue]-Ee-Y.altAxis:ke,De=T&&Te?(0,m.withinMaxClamp)(Re,j,_e):(0,m.within)(T?Re:be,j,T?_e:ke);U[z]=De,q[z]=De-j}d.modifiersData[v]=q}}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)),m=V(n(38621));function V(N){return N&&N.__esModule?N:{default:N}}var k=r.defaultModifiers=[a.default,t.default,o.default,m.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},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)),m=i(n(15224)),V=i(n(38621)),k=i(n(90642)),S=i(n(21128)),N=i(n(78230)),h=i(n(90860)),s=i(n(17945)),l=n(88037);r.createPopperLite=l.createPopper;var u=n(97934);Object.keys(u).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(e,p)||p in r&&r[p]===u[p]||(r[p]=u[p])});function i(p){return p&&p.__esModule?p:{default:p}}var c=r.defaultModifiers=[t.default,o.default,m.default,V.default,k.default,S.default,N.default,h.default,s.default],d=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:c})},67450:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(48218)),a=n(83996),t=m(n(49883)),o=m(n(85312));function m(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var N=S,h=N.placement,s=N.boundary,l=N.rootBoundary,u=N.padding,i=N.flipVariations,c=N.allowedAutoPlacements,d=c===void 0?a.placements:c,p=(0,e.default)(h),v=p?i?a.variationPlacements:a.variationPlacements.filter(function(b){return(0,e.default)(b)===p}):a.basePlacements,f=v.filter(function(b){return d.indexOf(b)>=0});f.length===0&&(f=v);var C=f.reduce(function(b,g){return b[g]=(0,t.default)(k,{placement:g,boundary:s,rootBoundary:l,padding:u})[(0,o.default)(g)],b},{});return Object.keys(C).sort(function(b,g){return C[b]-C[g]})}},85694:function(x,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(85312)),a=m(n(48218)),t=m(n(86274)),o=n(83996);function m(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,N=k.element,h=k.placement,s=h?(0,e.default)(h):null,l=h?(0,a.default)(h):null,u=S.x+S.width/2-N.width/2,i=S.y+S.height/2-N.height/2,c;switch(s){case o.top:c={x:u,y:S.y-N.height};break;case o.bottom:c={x:u,y:S.y+S.height};break;case o.right:c={x:S.x+S.width,y:i};break;case o.left:c={x:S.x-N.width,y:i};break;default:c={x:S.x,y:S.y}}var d=s?(0,t.default)(s):null;if(d!=null){var p=d==="y"?"height":"width";switch(l){case o.start:c[d]=c[d]-(S[p]/2-N[p]/2);break;case o.end:c[d]=c[d]+(S[p]/2-N[p]/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=s;var e=h(n(35823)),a=h(n(36748)),t=h(n(97617)),o=h(n(85694)),m=h(n(14834)),V=n(83996),k=n(75011),S=h(n(10632)),N=h(n(59597));function h(l){return l&&l.__esModule?l:{default:l}}function s(l,u){u===void 0&&(u={});var i=u,c=i.placement,d=c===void 0?l.placement:c,p=i.strategy,v=p===void 0?l.strategy:p,f=i.boundary,C=f===void 0?V.clippingParents:f,b=i.rootBoundary,g=b===void 0?V.viewport:b,y=i.elementContext,B=y===void 0?V.popper:y,L=i.altBoundary,I=L===void 0?!1:L,w=i.padding,T=w===void 0?0:w,M=(0,S.default)(typeof T!="number"?T:(0,N.default)(T,V.basePlacements)),A=B===V.popper?V.reference:V.popper,R=l.rects.popper,O=l.elements[I?A:B],_=(0,e.default)((0,k.isElement)(O)?O:O.contextElement||(0,a.default)(l.elements.popper),C,g,v),P=(0,t.default)(l.elements.reference),D=(0,o.default)({reference:P,element:R,strategy:"absolute",placement:d}),z=(0,m.default)(Object.assign({},R,D)),U=B===V.popper?z:P,W={top:_.top-U.top+M.top,bottom:U.bottom-_.bottom+M.bottom,left:_.left-U.left+M.left,right:U.right-_.right+M.right},K=l.modifiersData.offset;if(B===V.popper&&K){var H=K[d];Object.keys(W).forEach(function(Y){var J=[V.right,V.bottom].indexOf(Y)>=0?1:-1,q=[V.top,V.bottom].indexOf(Y)>=0?"y":"x";W[Y]+=H[q]*J})}return W}},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 m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.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 m=new Map,V=new Set,k=[];o.forEach(function(N){m.set(N.name,N)});function S(N){V.add(N.name);var h=[].concat(N.requires||[],N.requiresIfExists||[]);h.forEach(function(s){if(!V.has(s)){var l=m.get(s);l&&S(l)}}),k.push(N)}return o.forEach(function(N){V.has(N.name)||S(N)}),k}function t(o){var m=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(m.filter(function(S){return S.phase===k}))},[])}},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,m,V){return(0,e.max)(o,(0,e.min)(m,V))}function t(o,m,V){var k=a(o,m,V);return k>V?V:k}},90928:function(x,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var s=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;return function(i,c,d,p){if(o.length===1&&h(i)==="string"&&!/\d/.test(i)&&(c=i,i=void 0),i=i||i===0?i:new Date,i instanceof Date||(i=new Date(i)),isNaN(i))throw TypeError("Invalid date");c=String(m.masks[c]||c||m.masks.default);var v=c.slice(0,4);(v==="UTC:"||v==="GMT:")&&(c=c.slice(4),d=!0,v==="GMT:"&&(p=!0));var f=function(){function O(){return d?"getUTC":"get"}return O}(),C=function(){function O(){return i[f()+"Date"]()}return O}(),b=function(){function O(){return i[f()+"Day"]()}return O}(),g=function(){function O(){return i[f()+"Month"]()}return O}(),y=function(){function O(){return i[f()+"FullYear"]()}return O}(),B=function(){function O(){return i[f()+"Hours"]()}return O}(),L=function(){function O(){return i[f()+"Minutes"]()}return O}(),I=function(){function O(){return i[f()+"Seconds"]()}return O}(),w=function(){function O(){return i[f()+"Milliseconds"]()}return O}(),T=function(){function O(){return d?0:i.getTimezoneOffset()}return O}(),M=function(){function O(){return S(i)}return O}(),A=function(){function O(){return N(i)}return O}(),R={d:function(){function O(){return C()}return O}(),dd:function(){function O(){return V(C())}return O}(),ddd:function(){function O(){return m.i18n.dayNames[b()]}return O}(),DDD:function(){function O(){return k({y:y(),m:g(),d:C(),_:f(),dayName:m.i18n.dayNames[b()],short:!0})}return O}(),dddd:function(){function O(){return m.i18n.dayNames[b()+7]}return O}(),DDDD:function(){function O(){return k({y:y(),m:g(),d:C(),_:f(),dayName:m.i18n.dayNames[b()+7]})}return O}(),m:function(){function O(){return g()+1}return O}(),mm:function(){function O(){return V(g()+1)}return O}(),mmm:function(){function O(){return m.i18n.monthNames[g()]}return O}(),mmmm:function(){function O(){return m.i18n.monthNames[g()+12]}return O}(),yy:function(){function O(){return String(y()).slice(2)}return O}(),yyyy:function(){function O(){return V(y(),4)}return O}(),h:function(){function O(){return B()%12||12}return O}(),hh:function(){function O(){return V(B()%12||12)}return O}(),H:function(){function O(){return B()}return O}(),HH:function(){function O(){return V(B())}return O}(),M:function(){function O(){return L()}return O}(),MM:function(){function O(){return V(L())}return O}(),s:function(){function O(){return I()}return O}(),ss:function(){function O(){return V(I())}return O}(),l:function(){function O(){return V(w(),3)}return O}(),L:function(){function O(){return V(Math.floor(w()/10))}return O}(),t:function(){function O(){return B()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return O}(),tt:function(){function O(){return B()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return O}(),T:function(){function O(){return B()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return O}(),TT:function(){function O(){return B()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return O}(),Z:function(){function O(){return p?"GMT":d?"UTC":(String(i).match(l)||[""]).pop().replace(u,"").replace(/GMT\+0000/g,"UTC")}return O}(),o:function(){function O(){return(T()>0?"-":"+")+V(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)}return O}(),p:function(){function O(){return(T()>0?"-":"+")+V(Math.floor(Math.abs(T())/60),2)+":"+V(Math.floor(Math.abs(T())%60),2)}return O}(),S:function(){function O(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]}return O}(),W:function(){function O(){return M()}return O}(),WW:function(){function O(){return V(M())}return O}(),N:function(){function O(){return A()}return O}()};return c.replace(s,function(O){return O in R?R[O]():O.slice(1,O.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var V=function(){function s(l,u){for(l=String(l),u=u||2;l.length0,Fe=k(xe),je=m(xe)&&xe[0]===O;We||Fe||je?(Q=Q||G.slice(0,ye),(We||je)&&(Le=q(Le)),(Fe||je)&&(Le.key=O+ye),Q.push(Le)):Q&&Q.push(Le),Le.flags|=65536}}Q=Q||G,Q.length===0?se=1:se=8}else Q=G,Q.flags|=65536,G.flags&81920&&(Q=q(G)),se=2;return F.children=Q,F.childFlags=se,F}function Be(F){return t(F)||e(F)?K(F,null):n(F)?H(F,0,null):F.flags&16384?q(F):F}var ce="http://www.w3.org/1999/xlink",te="http://www.w3.org/XML/1998/namespace",ee={"xlink:actuate":ce,"xlink:arcrole":ce,"xlink:href":ce,"xlink:role":ce,"xlink:show":ce,"xlink:title":ce,"xlink:type":ce,"xml:base":te,"xml:lang":te,"xml:space":te};function ie(F){return{onClick:F,onDblClick:F,onFocusIn:F,onFocusOut:F,onKeyDown:F,onKeyPress:F,onKeyUp:F,onMouseDown:F,onMouseMove:F,onMouseUp:F,onTouchEnd:F,onTouchMove:F,onTouchStart:F}}var Ce=ie(0),Se=ie(null),we=ie(!0);function pe(F,G){var Q=G.$EV;return Q||(Q=G.$EV=ie(null)),Q[F]||++Ce[F]===1&&(Se[F]=Oe(F)),Q}function E(F,G){var Q=G.$EV;Q&&Q[F]&&(--Ce[F]===0&&(document.removeEventListener(i(F),Se[F]),Se[F]=null),Q[F]=null)}function Z(F,G,Q,se){if(o(Q))pe(F,se)[F]=Q;else if(s(Q)){if(M(G,Q))return;pe(F,se)[F]=Q}else E(F,se)}function re(F){return o(F.composedPath)?F.composedPath()[0]:F.target}function X(F,G,Q,se){var Ne=re(F);do{if(G&&Ne.disabled)return;var ye=Ne.$EV;if(ye){var Le=ye[Q];if(Le&&(se.dom=Ne,Le.event?Le.event(Le.data,F):Le(F),F.cancelBubble))return}Ne=Ne.parentNode}while(!k(Ne))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ve(){return this.defaultPrevented}function Ve(){return this.cancelBubble}function Ie(F){var G={dom:document};return F.isDefaultPrevented=ve,F.isPropagationStopped=Ve,F.stopPropagation=ne,Object.defineProperty(F,"currentTarget",{configurable:!0,get:function(){function Q(){return G.dom}return Q}()}),G}function Pe(F){return function(G){if(G.button!==0){G.stopPropagation();return}X(G,!0,F,Ie(G))}}function Ae(F){return function(G){X(G,!1,F,Ie(G))}}function Oe(F){var G=F==="onClick"||F==="onDblClick"?Pe(F):Ae(F);return document.addEventListener(i(F),G),G}function de(F,G){var Q=document.createElement("i");return Q.innerHTML=G,Q.innerHTML===F.innerHTML}function ge(F,G,Q){if(F[G]){var se=F[G];se.event?se.event(se.data,Q):se(Q)}else{var Ne=G.toLowerCase();F[Ne]&&F[Ne](Q)}}function j(F,G){var Q=function(Ne){var ye=this.$V;if(ye){var Le=ye.props||l,xe=ye.dom;if(m(F))ge(Le,F,Ne);else for(var We=0;We-1&&G.options[ye]&&(xe=G.options[ye].value),Q&&a(xe)&&(xe=F.defaultValue),De(se,xe)}}var ht=j("onInput",kt),lt=j("onChange");function ut(F,G){ue(F,"input",ht),G.onChange&&ue(F,"change",lt)}function kt(F,G,Q){var se=F.value,Ne=G.value;if(a(se)){if(Q){var ye=F.defaultValue;!a(ye)&&ye!==Ne&&(G.defaultValue=ye,G.value=ye)}}else Ne!==se&&(G.defaultValue=se,G.value=se)}function St(F,G,Q,se,Ne,ye){F&64?_e(se,Q):F&256?$e(se,Q,Ne,G):F&128&&kt(se,Q,Ne),ye&&(Q.$V=G)}function Mt(F,G,Q){F&64?Re(G,Q):F&256?Qe(G):F&128&&ut(G,Q)}function Bt(F){return F.type&&be(F.type)?!a(F.checked):!a(F.value)}function Ot(){return{current:null}}function Pt(F){return{render:F}}function Ct(F){F&&!R(F,null)&&F.current&&(F.current=null)}function dt(F,G,Q){F&&(o(F)||F.current!==void 0)&&Q.push(function(){!R(F,G)&&F.current!==void 0&&(F.current=G)})}function et(F,G){nt(F),y(F,G)}function nt(F){var G=F.flags,Q=F.children,se;if(G&481){se=F.ref;var Ne=F.props;Ct(se);var ye=F.childFlags;if(!k(Ne))for(var Le=Object.keys(Ne),xe=0,We=Le.length;xe0;Le&&(ye=Bt(Q),ye&&Mt(G,se,Q));for(var xe in Q)Lt(xe,null,Q[xe],se,Ne,ye,null);Le&&St(G,F,se,Q,!0,ye)}function Zt(F,G,Q){var se=Be(F.render(G,F.state,Q)),Ne=Q;return o(F.getChildContext)&&(Ne=N(Q,F.getChildContext())),F.$CX=Ne,se}function _t(F,G,Q,se,Ne,ye){var Le=new G(Q,se),xe=Le.$N=!!(G.getDerivedStateFromProps||Le.getSnapshotBeforeUpdate);if(Le.$SVG=Ne,Le.$L=ye,F.children=Le,Le.$BS=!1,Le.context=se,Le.props===l&&(Le.props=Q),xe)Le.state=L(Le,Q,Le.state);else if(o(Le.componentWillMount)){Le.$BR=!0,Le.componentWillMount();var We=Le.$PS;if(!k(We)){var Fe=Le.state;if(k(Fe))Le.state=We;else for(var je in We)Fe[je]=We[je];Le.$PS=null}Le.$BR=!1}return Le.$LI=Zt(Le,Q,se),Le}function It(F,G){var Q=F.props||l;return F.flags&32768?F.type.render(Q,F.ref,G):F.type(Q,G)}function Je(F,G,Q,se,Ne,ye){var Le=F.flags|=16384;Le&481?xt(F,G,Q,se,Ne,ye):Le&4?yn(F,G,Q,se,Ne,ye):Le&8?(kn(F,G,Q,se,Ne,ye),Rt(F,ye)):Le&512||Le&16?tn(F,G,Ne):Le&8192?en(F,Q,G,se,Ne,ye):Le&1024&&qt(F,Q,G,Ne,ye)}function qt(F,G,Q,se,Ne){Je(F.children,F.ref,G,!1,null,Ne);var ye=oe();tn(ye,Q,se),F.dom=ye.dom}function en(F,G,Q,se,Ne,ye){var Le=F.children,xe=F.childFlags;xe&12&&Le.length===0&&(xe=F.childFlags=2,Le=F.children=oe()),xe===2?Je(Le,Q,G,se,Ne,ye):mt(Le,Q,G,se,Ne,ye)}function tn(F,G,Q){var se=F.dom=document.createTextNode(F.children);k(G)||d(G,se,Q)}function xt(F,G,Q,se,Ne,ye){var Le=F.flags,xe=F.props,We=F.className,Fe=F.childFlags,je=F.dom=p(F.type,se=se||(Le&32)>0),ze=F.children;if(!a(We)&&We!==""&&(se?je.setAttribute("class",We):je.className=We),Fe===16)T(je,ze);else if(Fe!==1){var Ge=se&&F.type!=="foreignObject";Fe===2?(ze.flags&16384&&(F.children=ze=q(ze)),Je(ze,je,Q,Ge,null,ye)):(Fe===8||Fe===4)&&mt(ze,je,Q,Ge,null,ye)}k(G)||d(G,je,Ne),k(xe)||Jt(F,Le,xe,je,se),dt(F.ref,je,ye)}function mt(F,G,Q,se,Ne,ye){for(var Le=0;LeGe)&&(je=g(Le[Ge-1],!1).nextSibling)}wt(We,Fe,Le,xe,Q,se,Ne,je,F,ye)}function un(F,G,Q,se){var Ne=F.ref,ye=G.ref,Le=G.children;if(wt(F.childFlags,G.childFlags,F.children,Le,Ne,Q,!1,null,F,se),G.dom=F.dom,Ne!==ye&&!t(Le)){var xe=Le.dom;f(Ne,xe),c(ye,xe)}}function dn(F,G,Q,se,Ne,ye){var Le=G.dom=F.dom,xe=F.props,We=G.props,Fe=!1,je=!1,ze;if(se=se||(Ne&32)>0,xe!==We){var Ge=xe||l;if(ze=We||l,ze!==l){Fe=(Ne&448)>0,Fe&&(je=Bt(ze));for(var Ye in ze){var He=Ge[Ye],qe=ze[Ye];He!==qe&&Lt(Ye,He,qe,Le,se,je,F)}}if(Ge!==l)for(var Ke in Ge)a(ze[Ke])&&!a(Ge[Ke])&&Lt(Ke,Ge[Ke],null,Le,se,je,F)}var ct=G.children,tt=G.className;F.className!==tt&&(a(tt)?Le.removeAttribute("class"):se?Le.setAttribute("class",tt):Le.className=tt),Ne&4096?cn(Le,ct):wt(F.childFlags,G.childFlags,F.children,ct,Le,Q,se&&G.type!=="foreignObject",null,F,ye),Fe&&St(Ne,G,Le,ze,!1,je);var bt=G.ref,ot=F.ref;ot!==bt&&(Ct(ot),dt(bt,Le,ye))}function sn(F,G,Q,se,Ne,ye){nt(F),mt(G,Q,se,Ne,g(F,!0),ye),y(F,Q)}function wt(F,G,Q,se,Ne,ye,Le,xe,We,Fe){switch(F){case 2:switch(G){case 2:at(Q,se,Ne,ye,Le,xe,Fe);break;case 1:et(Q,Ne);break;case 16:nt(Q),T(Ne,se);break;default:sn(Q,se,Ne,ye,Le,Fe);break}break;case 1:switch(G){case 2:Je(se,Ne,ye,Le,xe,Fe);break;case 1:break;case 16:T(Ne,se);break;default:mt(se,Ne,ye,Le,xe,Fe);break}break;case 16:switch(G){case 16:an(Q,se,Ne);break;case 2:vt(Ne),Je(se,Ne,ye,Le,xe,Fe);break;case 1:vt(Ne);break;default:vt(Ne),mt(se,Ne,ye,Le,xe,Fe);break}break;default:switch(G){case 16:st(Q),T(Ne,se);break;case 2:gt(Ne,We,Q),Je(se,Ne,ye,Le,xe,Fe);break;case 1:gt(Ne,We,Q);break;default:var je=Q.length|0,ze=se.length|0;je===0?ze>0&&mt(se,Ne,ye,Le,xe,Fe):ze===0?gt(Ne,We,Q):G===8&&F===8?pn(Q,se,Ne,ye,Le,je,ze,xe,We,Fe):fn(Q,se,Ne,ye,Le,je,ze,xe,Fe);break}break}}function mn(F,G,Q,se,Ne){Ne.push(function(){F.componentDidUpdate(G,Q,se)})}function Tt(F,G,Q,se,Ne,ye,Le,xe,We){var Fe=F.state,je=F.props,ze=!!F.$N,Ge=o(F.shouldComponentUpdate);if(ze&&(G=L(F,Q,G!==Fe?N(Fe,G):G)),Le||!Ge||Ge&&F.shouldComponentUpdate(Q,G,Ne)){!ze&&o(F.componentWillUpdate)&&F.componentWillUpdate(Q,G,Ne),F.props=Q,F.state=G,F.context=Ne;var Ye=null,He=Zt(F,Q,Ne);ze&&o(F.getSnapshotBeforeUpdate)&&(Ye=F.getSnapshotBeforeUpdate(je,Fe)),at(F.$LI,He,se,F.$CX,ye,xe,We),F.$LI=He,o(F.componentDidUpdate)&&mn(F,je,Fe,Ye,We)}else F.props=Q,F.state=G,F.context=Ne}function Dt(F,G,Q,se,Ne,ye,Le){var xe=G.children=F.children;if(!k(xe)){xe.$L=Le;var We=G.props||l,Fe=G.ref,je=F.ref,ze=xe.state;if(!xe.$N){if(o(xe.componentWillReceiveProps)){if(xe.$BR=!0,xe.componentWillReceiveProps(We,se),xe.$UN)return;xe.$BR=!1}k(xe.$PS)||(ze=N(ze,xe.$PS),xe.$PS=null)}Tt(xe,ze,We,Q,se,Ne,!1,ye,Le),je!==Fe&&(Ct(je),dt(Fe,xe,Le))}}function Ft(F,G,Q,se,Ne,ye,Le){var xe=!0,We=G.props||l,Fe=G.ref,je=F.props,ze=!a(Fe),Ge=F.children;if(ze&&o(Fe.onComponentShouldUpdate)&&(xe=Fe.onComponentShouldUpdate(je,We)),xe!==!1){ze&&o(Fe.onComponentWillUpdate)&&Fe.onComponentWillUpdate(je,We);var Ye=Be(It(G,se));at(Ge,Ye,Q,se,Ne,ye,Le),G.children=Ye,ze&&o(Fe.onComponentDidUpdate)&&Fe.onComponentDidUpdate(je,We)}else G.children=Ge}function jt(F,G){var Q=G.children,se=G.dom=F.dom;Q!==F.children&&(se.nodeValue=Q)}function fn(F,G,Q,se,Ne,ye,Le,xe,We){for(var Fe=ye>Le?Le:ye,je=0,ze,Ge;jeLe)for(je=Fe;jeje||Ge>ze)break e;Ye=F[Ge],He=G[Ge]}for(Ye=F[je],He=G[ze];Ye.key===He.key;){if(He.flags&16384&&(G[ze]=He=q(He)),at(Ye,He,Q,se,Ne,xe,Fe),F[je]=He,je--,ze--,Ge>je||Ge>ze)break e;Ye=F[je],He=G[ze]}}if(Ge>je){if(Ge<=ze)for(qe=ze+1,Ke=qeze)for(;Ge<=je;)et(F[Ge++],Q);else hn(F,G,se,ye,Le,je,ze,Ge,Q,Ne,xe,We,Fe)}function hn(F,G,Q,se,Ne,ye,Le,xe,We,Fe,je,ze,Ge){var Ye,He,qe,Ke=0,ct=xe,tt=xe,bt=ye-xe+1,ot=Le-xe+1,ft=new Int32Array(ot+1),rt=bt===se,yt=!1,Ze=0,pt=0;if(Ne<4||(bt|ot)<32)for(Ke=ct;Ke<=ye;++Ke)if(Ye=F[Ke],ptxe?yt=!0:Ze=xe,He.flags&16384&&(G[xe]=He=q(He)),at(Ye,He,We,Q,Fe,je,Ge),++pt;break}!rt&&xe>Le&&et(Ye,We)}else rt||et(Ye,We);else{var $={};for(Ke=tt;Ke<=Le;++Ke)$[G[Ke].key]=Ke;for(Ke=ct;Ke<=ye;++Ke)if(Ye=F[Ke],ptct;)et(F[ct++],We);ft[xe-tt]=Ke+1,Ze>xe?yt=!0:Ze=xe,He=G[xe],He.flags&16384&&(G[xe]=He=q(He)),at(Ye,He,We,Q,Fe,je,Ge),++pt}else rt||et(Ye,We);else rt||et(Ye,We)}if(rt)gt(We,ze,F),mt(G,We,Q,Fe,je,Ge);else if(yt){var Me=Cn(ft);for(xe=Me.length-1,Ke=ot-1;Ke>=0;Ke--)ft[Ke]===0?(Ze=Ke+tt,He=G[Ze],He.flags&16384&&(G[Ze]=He=q(He)),qe=Ze+1,Je(He,We,Q,Fe,qe=0;Ke--)ft[Ke]===0&&(Ze=Ke+tt,He=G[Ze],He.flags&16384&&(G[Ze]=He=q(He)),qe=Ze+1,Je(He,We,Q,Fe,qeWt&&(Wt=We,it=new Int32Array(We),Vt=new Int32Array(We));Q>1,F[it[xe]]0&&(Vt[Q]=it[ye-1]),it[ye]=Q)}ye=Ne+1;var Fe=new Int32Array(ye);for(Le=it[ye-1];ye-- >0;)Fe[ye]=Le,Le=Vt[Le],it[ye]=0;return Fe}var vn=typeof document!="undefined";vn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(F,G,Q,se){var Ne=[],ye=G.$V;I.v=!0,a(ye)?a(F)||(F.flags&16384&&(F=q(F)),Je(F,G,se,!1,null,Ne),G.$V=F,ye=F):a(F)?(et(ye,G),G.$V=null):(F.flags&16384&&(F=q(F)),at(ye,F,G,se,!1,null,Ne),ye=G.$V=F),C(Ne),I.v=!1,o(Q)&&Q(),o(w.renderComplete)&&w.renderComplete(ye,G)}function Ut(F,G,Q,se){Q===void 0&&(Q=null),se===void 0&&(se=l),zt(F,G,Q,se)}function gn(F){return function(){function G(Q,se,Ne,ye){F||(F=Q),Ut(se,F,Ne,ye)}return G}()}var Nt=[],Nn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(F){window.setTimeout(F,0)},At=!1;function Ht(F,G,Q,se){var Ne=F.$PS;if(o(G)&&(G=G(Ne?N(F.state,Ne):F.state,F.props,F.context)),a(Ne))F.$PS=G;else for(var ye in G)Ne[ye]=G[ye];if(F.$BR)o(Q)&&F.$L.push(Q.bind(F));else{if(!I.v&&Nt.length===0){Kt(F,se),o(Q)&&Q.call(F);return}if(Nt.indexOf(F)===-1&&Nt.push(F),se&&(F.$F=!0),At||(At=!0,Nn(Gt)),o(Q)){var Le=F.$QU;Le||(Le=F.$QU=[]),Le.push(Q)}}}function bn(F){for(var G=F.$QU,Q=0;Q=55296&&be<=56319&&ue+1=56320&&ke<=57343)?(be-55296)*1024+ke-56320+65536:be}function Be(j){var ue=/^\n* /;return ue.test(j)}var ce=1,te=2,ee=3,ie=4,Ce=5;function Se(j,ue,be,ke,Te,Ee,Re,_e){var De,Ue=0,Xe=null,Qe=!1,$e=!1,ht=ke!==-1,lt=-1,ut=le(me(j,0))&&he(me(j,j.length-1));if(ue||Re)for(De=0;De=65536?De+=2:De++){if(Ue=me(j,De),!q(Ue))return Ce;ut=ut&&ae(Ue,Xe,_e),Xe=Ue}else{for(De=0;De=65536?De+=2:De++){if(Ue=me(j,De),Ue===S)Qe=!0,ht&&($e=$e||De-lt-1>ke&&j[lt+1]!==" ",lt=De);else if(!q(Ue))return Ce;ut=ut&&ae(Ue,Xe,_e),Xe=Ue}$e=$e||ht&&De-lt-1>ke&&j[lt+1]!==" "}return!Qe&&!$e?ut&&!Re&&!Te(j)?ce:Ee===U?Ce:te:be>9&&Be(j)?Ce:Re?Ee===U?Ce:te:$e?ie:ee}function we(j,ue,be,ke,Te){j.dump=function(){if(ue.length===0)return j.quotingType===U?'""':"''";if(!j.noCompatMode&&(O.indexOf(ue)!==-1||_.test(ue)))return j.quotingType===U?'"'+ue+'"':"'"+ue+"'";var Ee=j.indent*Math.max(1,be),Re=j.lineWidth===-1?-1:Math.max(Math.min(j.lineWidth,40),j.lineWidth-Ee),_e=ke||j.flowLevel>-1&&be>=j.flowLevel;function De(Ue){return Y(j,Ue)}switch(Se(ue,_e,j.indent,Re,De,j.quotingType,j.forceQuotes&&!ke,Te)){case ce:return ue;case te:return"'"+ue.replace(/'/g,"''")+"'";case ee:return"|"+pe(ue,j.indent)+E(K(ue,Ee));case ie:return">"+pe(ue,j.indent)+E(K(Z(ue,Re),Ee));case Ce:return'"'+X(ue,Re)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function pe(j,ue){var be=Be(j)?String(ue):"",ke=j[j.length-1]==="\n",Te=ke&&(j[j.length-2]==="\n"||j==="\n"),Ee=Te?"+":ke?"":"-";return be+Ee+"\n"}function E(j){return j[j.length-1]==="\n"?j.slice(0,-1):j}function Z(j,ue){for(var be=/(\n+)([^\n]*)/g,ke=function(){var Ue=j.indexOf("\n");return Ue=Ue!==-1?Ue:j.length,be.lastIndex=Ue,re(j.slice(0,Ue),ue)}(),Te=j[0]==="\n"||j[0]===" ",Ee,Re;Re=be.exec(j);){var _e=Re[1],De=Re[2];Ee=De[0]===" ",ke+=_e+(!Te&&!Ee&&De!==""?"\n":"")+re(De,ue),Te=Ee}return ke}function re(j,ue){if(j===""||j[0]===" ")return j;for(var be=/ [^ ]/g,ke,Te=0,Ee,Re=0,_e=0,De="";ke=be.exec(j);)_e=ke.index,_e-Te>ue&&(Ee=Re>Te?Re:_e,De+="\n"+j.slice(Te,Ee),Te=Ee+1),Re=_e;return De+="\n",j.length-Te>ue&&Re>Te?De+=j.slice(Te,Re)+"\n"+j.slice(Re+1):De+=j.slice(Te),De.slice(1)}function X(j){for(var ue="",be=0,ke,Te=0;Te=65536?Te+=2:Te++)be=me(j,Te),ke=R[be],!ke&&q(be)?(ue+=j[Te],be>=65536&&(ue+=j[Te+1])):ue+=ke||D(be);return ue}function ne(j,ue,be){var ke="",Te=j.tag,Ee,Re,_e;for(Ee=0,Re=be.length;Ee1024&&(Xe+="? "),Xe+=j.dump+(j.condenseFlow?'"':"")+":"+(j.condenseFlow?"":" "),Ae(j,ue,Ue,!1,!1)&&(Xe+=j.dump,ke+=Xe));j.tag=Te,j.dump="{"+ke+"}"}function Ie(j,ue,be,ke){var Te="",Ee=j.tag,Re=Object.keys(be),_e,De,Ue,Xe,Qe,$e;if(j.sortKeys===!0)Re.sort();else if(typeof j.sortKeys=="function")Re.sort(j.sortKeys);else if(j.sortKeys)throw new a("sortKeys must be a boolean or a function");for(_e=0,De=Re.length;_e1024,Qe&&(j.dump&&S===j.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=j.dump,Qe&&($e+=H(j,ue)),Ae(j,ue+1,Xe,!0,Qe)&&(j.dump&&S===j.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=j.dump,Te+=$e));j.tag=Ee,j.dump=Te||"{}"}function Pe(j,ue,be){var ke,Te,Ee,Re,_e,De;for(Te=be?j.explicitTypes:j.implicitTypes,Ee=0,Re=Te.length;Ee tag resolver accepts not "'+De+'" style');j.dump=ke}return!0}return!1}function Ae(j,ue,be,ke,Te,Ee,Re){j.tag=null,j.dump=be,Pe(j,be,!1)||Pe(j,be,!0);var _e=o.call(j.dump),De=ke,Ue;ke&&(ke=j.flowLevel<0||j.flowLevel>ue);var Xe=_e==="[object Object]"||_e==="[object Array]",Qe,$e;if(Xe&&(Qe=j.duplicates.indexOf(be),$e=Qe!==-1),(j.tag!==null&&j.tag!=="?"||$e||j.indent!==2&&ue>0)&&(Te=!1),$e&&j.usedDuplicates[Qe])j.dump="*ref_"+Qe;else{if(Xe&&$e&&!j.usedDuplicates[Qe]&&(j.usedDuplicates[Qe]=!0),_e==="[object Object]")ke&&Object.keys(j.dump).length!==0?(Ie(j,ue,j.dump,Te),$e&&(j.dump="&ref_"+Qe+j.dump)):(Ve(j,ue,j.dump),$e&&(j.dump="&ref_"+Qe+" "+j.dump));else if(_e==="[object Array]")ke&&j.dump.length!==0?(j.noArrayIndent&&!Re&&ue>0?ve(j,ue-1,j.dump,Te):ve(j,ue,j.dump,Te),$e&&(j.dump="&ref_"+Qe+j.dump)):(ne(j,ue,j.dump),$e&&(j.dump="&ref_"+Qe+" "+j.dump));else if(_e==="[object String]")j.tag!=="?"&&we(j,j.dump,ue,Ee,De);else{if(_e==="[object Undefined]")return!1;if(j.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+_e)}j.tag!==null&&j.tag!=="?"&&(Ue=encodeURI(j.tag[0]==="!"?j.tag.slice(1):j.tag).replace(/!/g,"%21"),j.tag[0]==="!"?Ue="!"+Ue:Ue.slice(0,18)==="tag:yaml.org,2002:"?Ue="!!"+Ue.slice(18):Ue="!<"+Ue+">",j.dump=Ue+" "+j.dump)}return!0}function Oe(j,ue){var be=[],ke=[],Te,Ee;for(de(j,be,ke),Te=0,Ee=ke.length;Te>10)+55296,(E-65536&1023)+56320)}for(var T=new Array(256),M=new Array(256),A=0;A<256;A++)T[A]=I(A)?1:0,M[A]=I(A);function R(E,Z){this.input=E,this.filename=Z.filename||null,this.schema=Z.schema||o,this.onWarning=Z.onWarning||null,this.legacy=Z.legacy||!1,this.json=Z.json||!1,this.listener=Z.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=E.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O(E,Z){var re={name:E.filename,buffer:E.input.slice(0,-1),position:E.position,line:E.line,column:E.position-E.lineStart};return re.snippet=t(re),new a(Z,re)}function _(E,Z){throw O(E,Z)}function P(E,Z){E.onWarning&&E.onWarning.call(null,O(E,Z))}var D={YAML:function(){function E(Z,re,X){var ne,ve,Ve;Z.version!==null&&_(Z,"duplication of %YAML directive"),X.length!==1&&_(Z,"YAML directive accepts exactly one argument"),ne=/^([0-9]+)\.([0-9]+)$/.exec(X[0]),ne===null&&_(Z,"ill-formed argument of the YAML directive"),ve=parseInt(ne[1],10),Ve=parseInt(ne[2],10),ve!==1&&_(Z,"unacceptable YAML version of the document"),Z.version=X[0],Z.checkLineBreaks=Ve<2,Ve!==1&&Ve!==2&&P(Z,"unsupported YAML version of the document")}return E}(),TAG:function(){function E(Z,re,X){var ne,ve;X.length!==2&&_(Z,"TAG directive accepts exactly two arguments"),ne=X[0],ve=X[1],d.test(ne)||_(Z,"ill-formed tag handle (first argument) of the TAG directive"),m.call(Z.tagMap,ne)&&_(Z,'there is a previously declared suffix for "'+ne+'" tag handle'),p.test(ve)||_(Z,"ill-formed tag prefix (second argument) of the TAG directive");try{ve=decodeURIComponent(ve)}catch(Ve){_(Z,"tag prefix is malformed: "+ve)}Z.tagMap[ne]=ve}return E}()};function z(E,Z,re,X){var ne,ve,Ve,Ie;if(Z1&&(E.result+=e.repeat("\n",Z-1))}function q(E,Z,re){var X,ne,ve,Ve,Ie,Pe,Ae,Oe,de=E.kind,ge=E.result,j;if(j=E.input.charCodeAt(E.position),b(j)||g(j)||j===35||j===38||j===42||j===33||j===124||j===62||j===39||j===34||j===37||j===64||j===96||(j===63||j===45)&&(ne=E.input.charCodeAt(E.position+1),b(ne)||re&&g(ne)))return!1;for(E.kind="scalar",E.result="",ve=Ve=E.position,Ie=!1;j!==0;){if(j===58){if(ne=E.input.charCodeAt(E.position+1),b(ne)||re&&g(ne))break}else if(j===35){if(X=E.input.charCodeAt(E.position-1),b(X))break}else{if(E.position===E.lineStart&&Y(E)||re&&g(j))break;if(f(j))if(Pe=E.line,Ae=E.lineStart,Oe=E.lineIndent,H(E,!1,-1),E.lineIndent>=Z){Ie=!0,j=E.input.charCodeAt(E.position);continue}else{E.position=Ve,E.line=Pe,E.lineStart=Ae,E.lineIndent=Oe;break}}Ie&&(z(E,ve,Ve,!1),J(E,E.line-Pe),ve=Ve=E.position,Ie=!1),C(j)||(Ve=E.position+1),j=E.input.charCodeAt(++E.position)}return z(E,ve,Ve,!1),E.result?!0:(E.kind=de,E.result=ge,!1)}function oe(E,Z){var re,X,ne;if(re=E.input.charCodeAt(E.position),re!==39)return!1;for(E.kind="scalar",E.result="",E.position++,X=ne=E.position;(re=E.input.charCodeAt(E.position))!==0;)if(re===39)if(z(E,X,E.position,!0),re=E.input.charCodeAt(++E.position),re===39)X=E.position,E.position++,ne=E.position;else return!0;else f(re)?(z(E,X,ne,!0),J(E,H(E,!1,Z)),X=ne=E.position):E.position===E.lineStart&&Y(E)?_(E,"unexpected end of the document within a single quoted scalar"):(E.position++,ne=E.position);_(E,"unexpected end of the stream within a single quoted scalar")}function ae(E,Z){var re,X,ne,ve,Ve,Ie;if(Ie=E.input.charCodeAt(E.position),Ie!==34)return!1;for(E.kind="scalar",E.result="",E.position++,re=X=E.position;(Ie=E.input.charCodeAt(E.position))!==0;){if(Ie===34)return z(E,re,E.position,!0),E.position++,!0;if(Ie===92){if(z(E,re,E.position,!0),Ie=E.input.charCodeAt(++E.position),f(Ie))H(E,!1,Z);else if(Ie<256&&T[Ie])E.result+=M[Ie],E.position++;else if((Ve=B(Ie))>0){for(ne=Ve,ve=0;ne>0;ne--)Ie=E.input.charCodeAt(++E.position),(Ve=y(Ie))>=0?ve=(ve<<4)+Ve:_(E,"expected hexadecimal character");E.result+=w(ve),E.position++}else _(E,"unknown escape sequence");re=X=E.position}else f(Ie)?(z(E,re,X,!0),J(E,H(E,!1,Z)),re=X=E.position):E.position===E.lineStart&&Y(E)?_(E,"unexpected end of the document within a double quoted scalar"):(E.position++,X=E.position)}_(E,"unexpected end of the stream within a double quoted scalar")}function le(E,Z){var re=!0,X,ne,ve,Ve=E.tag,Ie,Pe=E.anchor,Ae,Oe,de,ge,j,ue=Object.create(null),be,ke,Te,Ee;if(Ee=E.input.charCodeAt(E.position),Ee===91)Oe=93,j=!1,Ie=[];else if(Ee===123)Oe=125,j=!0,Ie={};else return!1;for(E.anchor!==null&&(E.anchorMap[E.anchor]=Ie),Ee=E.input.charCodeAt(++E.position);Ee!==0;){if(H(E,!0,Z),Ee=E.input.charCodeAt(E.position),Ee===Oe)return E.position++,E.tag=Ve,E.anchor=Pe,E.kind=j?"mapping":"sequence",E.result=Ie,!0;re?Ee===44&&_(E,"expected the node content, but found ','"):_(E,"missed comma between flow collection entries"),ke=be=Te=null,de=ge=!1,Ee===63&&(Ae=E.input.charCodeAt(E.position+1),b(Ae)&&(de=ge=!0,E.position++,H(E,!0,Z))),X=E.line,ne=E.lineStart,ve=E.position,ie(E,Z,V,!1,!0),ke=E.tag,be=E.result,H(E,!0,Z),Ee=E.input.charCodeAt(E.position),(ge||E.line===X)&&Ee===58&&(de=!0,Ee=E.input.charCodeAt(++E.position),H(E,!0,Z),ie(E,Z,V,!1,!0),Te=E.result),j?W(E,Ie,ue,ke,be,Te,X,ne,ve):de?Ie.push(W(E,null,ue,ke,be,Te,X,ne,ve)):Ie.push(be),H(E,!0,Z),Ee=E.input.charCodeAt(E.position),Ee===44?(re=!0,Ee=E.input.charCodeAt(++E.position)):re=!1}_(E,"unexpected end of the stream within a flow collection")}function he(E,Z){var re,X,ne=h,ve=!1,Ve=!1,Ie=Z,Pe=0,Ae=!1,Oe,de;if(de=E.input.charCodeAt(E.position),de===124)X=!1;else if(de===62)X=!0;else return!1;for(E.kind="scalar",E.result="";de!==0;)if(de=E.input.charCodeAt(++E.position),de===43||de===45)h===ne?ne=de===43?l:s:_(E,"repeat of a chomping mode identifier");else if((Oe=L(de))>=0)Oe===0?_(E,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ve?_(E,"repeat of an indentation width identifier"):(Ie=Z+Oe-1,Ve=!0);else break;if(C(de)){do de=E.input.charCodeAt(++E.position);while(C(de));if(de===35)do de=E.input.charCodeAt(++E.position);while(!f(de)&&de!==0)}for(;de!==0;){for(K(E),E.lineIndent=0,de=E.input.charCodeAt(E.position);(!Ve||E.lineIndentIe&&(Ie=E.lineIndent),f(de)){Pe++;continue}if(E.lineIndentZ)&&Pe!==0)_(E,"bad indentation of a sequence entry");else if(E.lineIndentZ)&&(ke&&(Ve=E.line,Ie=E.lineStart,Pe=E.position),ie(E,Z,N,!0,ne)&&(ke?ue=E.result:be=E.result),ke||(W(E,de,ge,j,ue,be,Ve,Ie,Pe),j=ue=be=null),H(E,!0,-1),Ee=E.input.charCodeAt(E.position)),(E.line===ve||E.lineIndent>Z)&&Ee!==0)_(E,"bad indentation of a mapping entry");else if(E.lineIndentZ?Pe=1:E.lineIndent===Z?Pe=0:E.lineIndentZ?Pe=1:E.lineIndent===Z?Pe=0:E.lineIndent tag; it should be "scalar", not "'+E.kind+'"'),de=0,ge=E.implicitTypes.length;de"),E.result!==null&&ue.kind!==E.kind&&_(E,"unacceptable node kind for !<"+E.tag+'> tag; it should be "'+ue.kind+'", not "'+E.kind+'"'),ue.resolve(E.result,E.tag)?(E.result=ue.construct(E.result,E.tag),E.anchor!==null&&(E.anchorMap[E.anchor]=E.result)):_(E,"cannot resolve a node with !<"+E.tag+"> explicit tag")}return E.listener!==null&&E.listener("close",E),E.tag!==null||E.anchor!==null||Oe}function Ce(E){var Z=E.position,re,X,ne,ve=!1,Ve;for(E.version=null,E.checkLineBreaks=E.legacy,E.tagMap=Object.create(null),E.anchorMap=Object.create(null);(Ve=E.input.charCodeAt(E.position))!==0&&(H(E,!0,-1),Ve=E.input.charCodeAt(E.position),!(E.lineIndent>0||Ve!==37));){for(ve=!0,Ve=E.input.charCodeAt(++E.position),re=E.position;Ve!==0&&!b(Ve);)Ve=E.input.charCodeAt(++E.position);for(X=E.input.slice(re,E.position),ne=[],X.length<1&&_(E,"directive name must not be less than one character in length");Ve!==0;){for(;C(Ve);)Ve=E.input.charCodeAt(++E.position);if(Ve===35){do Ve=E.input.charCodeAt(++E.position);while(Ve!==0&&!f(Ve));break}if(f(Ve))break;for(re=E.position;Ve!==0&&!b(Ve);)Ve=E.input.charCodeAt(++E.position);ne.push(E.input.slice(re,E.position))}Ve!==0&&K(E),m.call(D,X)?D[X](E,X,ne):P(E,'unknown document directive "'+X+'"')}if(H(E,!0,-1),E.lineIndent===0&&E.input.charCodeAt(E.position)===45&&E.input.charCodeAt(E.position+1)===45&&E.input.charCodeAt(E.position+2)===45?(E.position+=3,H(E,!0,-1)):ve&&_(E,"directives end mark is expected"),ie(E,E.lineIndent-1,N,!1,!0),H(E,!0,-1),E.checkLineBreaks&&i.test(E.input.slice(Z,E.position))&&P(E,"non-ASCII line breaks are interpreted as content"),E.documents.push(E.result),E.position===E.lineStart&&Y(E)){E.input.charCodeAt(E.position)===46&&(E.position+=3,H(E,!0,-1));return}if(E.positionl&&(h=" ... ",V=S-l+h.length),k-S>l&&(s=" ...",k=S+l-s.length),{str:h+m.slice(V,k).replace(/\t/g,"\u2192")+s,pos:S-V+h.length}}function t(m,V){return e.repeat(" ",V-m.length)+m}function o(m,V){if(V=Object.create(V||null),!m.buffer)return null;V.maxLength||(V.maxLength=79),typeof V.indent!="number"&&(V.indent=1),typeof V.linesBefore!="number"&&(V.linesBefore=3),typeof V.linesAfter!="number"&&(V.linesAfter=2);for(var k=/\r?\n|\r|\0/g,S=[0],N=[],h,s=-1;h=k.exec(m.buffer);)N.push(h.index),S.push(h.index+h[0].length),m.position<=h.index&&s<0&&(s=S.length-2);s<0&&(s=S.length-1);var l="",u,i,c=Math.min(m.line+V.linesAfter,N.length).toString().length,d=V.maxLength-(V.indent+c+3);for(u=1;u<=V.linesBefore&&!(s-u<0);u++)i=a(m.buffer,S[s-u],N[s-u],m.position-(S[s]-S[s-u]),d),l=e.repeat(" ",V.indent)+t((m.line-u+1).toString(),c)+" | "+i.str+"\n"+l;for(i=a(m.buffer,S[s],N[s],m.position,d),l+=e.repeat(" ",V.indent)+t((m.line+1).toString(),c)+" | "+i.str+"\n",l+=e.repeat("-",V.indent+c+3+i.pos)+"^\n",u=1;u<=V.linesAfter&&!(s+u>=N.length);u++)i=a(m.buffer,S[s+u],N[s+u],m.position-(S[s]-S[s+u]),d),l+=e.repeat(" ",V.indent)+t((m.line+u+1).toString(),c)+" | "+i.str+"\n";return l.replace(/\n$/,"")}x.exports=o},85243:function(x,r,n){"use strict";var e=n(14956),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(V){var k={};return V!==null&&Object.keys(V).forEach(function(S){V[S].forEach(function(N){k[String(N)]=S})}),k}function m(V,k){if(k=k||{},Object.keys(k).forEach(function(S){if(a.indexOf(S)===-1)throw new e('Unknown option "'+S+'" is met in definition of "'+V+'" YAML type.')}),this.options=k,this.tag=V,this.kind=k.kind||null,this.resolve=k.resolve||function(){return!0},this.construct=k.construct||function(S){return S},this.instanceOf=k.instanceOf||null,this.predicate=k.predicate||null,this.represent=k.represent||null,this.representName=k.representName||null,this.defaultStyle=k.defaultStyle||null,this.multi=k.multi||!1,this.styleAliases=o(k.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+V+'" YAML type.')}x.exports=m},80258:function(x,r,n){"use strict";var e=n(85243),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(k){if(k===null)return!1;var S,N,h=0,s=k.length,l=a;for(N=0;N64)){if(S<0)return!1;h+=6}return h%8===0}function o(k){var S,N,h=k.replace(/[\r\n=]/g,""),s=h.length,l=a,u=0,i=[];for(S=0;S>16&255),i.push(u>>8&255),i.push(u&255)),u=u<<6|l.indexOf(h.charAt(S));return N=s%4*6,N===0?(i.push(u>>16&255),i.push(u>>8&255),i.push(u&255)):N===18?(i.push(u>>10&255),i.push(u>>2&255)):N===12&&i.push(u>>4&255),new Uint8Array(i)}function m(k){var S="",N=0,h,s,l=k.length,u=a;for(h=0;h>18&63],S+=u[N>>12&63],S+=u[N>>6&63],S+=u[N&63]),N=(N<<8)+k[h];return s=l%3,s===0?(S+=u[N>>18&63],S+=u[N>>12&63],S+=u[N>>6&63],S+=u[N&63]):s===2?(S+=u[N>>10&63],S+=u[N>>4&63],S+=u[N<<2&63],S+=u[64]):s===1&&(S+=u[N>>2&63],S+=u[N<<4&63],S+=u[64],S+=u[64]),S}function V(k){return Object.prototype.toString.call(k)==="[object Uint8Array]"}x.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:V,represent:m})},43788:function(x,r,n){"use strict";var e=n(85243);function a(m){if(m===null)return!1;var V=m.length;return V===4&&(m==="true"||m==="True"||m==="TRUE")||V===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}x.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(V){return V?"true":"false"}return m}(),uppercase:function(){function m(V){return V?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(V){return V?"True":"False"}return m}()},defaultStyle:"lowercase"})},22207:function(x,r,n){"use strict";var e=n(16310),a=n(85243),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(N){return!(N===null||!t.test(N)||N[N.length-1]==="_")}function m(N){var h,s;return h=N.replace(/_/g,"").toLowerCase(),s=h[0]==="-"?-1:1,"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:s*parseFloat(h,10)}var V=/^[-+]?[0-9]+e/;function k(N,h){var s;if(isNaN(N))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(N))return"-0.0";return s=N.toString(10),V.test(s)?s.replace("e",".e"):s}function S(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!==0||e.isNegativeZero(N))}x.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:S,represent:k,defaultStyle:"lowercase"})},27561:function(x,r,n){"use strict";var e=n(16310),a=n(85243);function t(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function o(N){return 48<=N&&N<=55}function m(N){return 48<=N&&N<=57}function V(N){if(N===null)return!1;var h=N.length,s=0,l=!1,u;if(!h)return!1;if(u=N[s],(u==="-"||u==="+")&&(u=N[++s]),u==="0"){if(s+1===h)return!0;if(u=N[++s],u==="b"){for(s++;s=0?"0b"+h.toString(2):"-0b"+h.toString(2).slice(1)}return N}(),octal:function(){function N(h){return h>=0?"0o"+h.toString(8):"-0o"+h.toString(8).slice(1)}return N}(),decimal:function(){function N(h){return h.toString(10)}return N}(),hexadecimal:function(){function N(h){return h>=0?"0x"+h.toString(16).toUpperCase():"-0x"+h.toString(16).toUpperCase().slice(1)}return N}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},2738:function(x,r,n){"use strict";var e=n(85243);x.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},95308:function(x,r,n){"use strict";var e=n(85243);function a(t){return t==="<<"||t===null}x.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},67574:function(x,r,n){"use strict";var e=n(85243);function a(m){if(m===null)return!0;var V=m.length;return V===1&&m==="~"||V===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}x.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},33088:function(x,r,n){"use strict";var e=n(85243),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(V){if(V===null)return!0;var k=[],S,N,h,s,l,u=V;for(S=0,N=u.length;S=0;--U){var W=this.tryEntries[U],K=W.completion;if(W.tryLoc==="root")return z("end");if(W.tryLoc<=this.prev){var H=a.call(W,"catchLoc"),Y=a.call(W,"finallyLoc");if(H&&Y){if(this.prev=0;--z){var U=this.tryEntries[z];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--D){var z=this.tryEntries[D];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),M(z),d}}return _}(),catch:function(){function _(P){for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D];if(z.tryLoc===P){var U=z.completion;if(U.type==="throw"){var W=U.arg;M(z)}return W}}throw new Error("illegal catch attempt")}return _}(),delegateYield:function(){function _(P,D,z){return this.delegate={iterator:R(P),resultName:D,nextLoc:z},this.method==="next"&&(this.arg=o),d}return _}()},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=[],m={},V=function S(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function N(){return Promise.resolve(a.responseText)}return N}(),json:function(){function N(){return Promise.resolve(a.responseText).then(JSON.parse)}return N}(),blob:function(){function N(){return Promise.resolve(new Blob([a.response]))}return N}(),clone:S,headers:{keys:function(){function N(){return t}return N}(),entries:function(){function N(){return o}return N}(),get:function(){function N(h){return m[h.toLowerCase()]}return N}(),has:function(){function N(h){return h.toLowerCase()in m}return N}()}}};for(var k in a.open(r.method||"get",x,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(S,N,h){t.push(N=N.toLowerCase()),o.push([N,h]),m[N]=m[N]?m[N]+","+h:h}),n(V())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(k,r.headers[k]);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(b,g){var y=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(y)return(y=y.call(b)).next.bind(y);if(Array.isArray(b)||(y=e(b))||g&&b&&typeof b.length=="number"){y&&(b=y);var B=0;return function(){return B>=b.length?{done:!0}:{done:!1,value:b[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(b,g){if(b){if(typeof b=="string")return a(b,g);var y=Object.prototype.toString.call(b).slice(8,-1);if(y==="Object"&&b.constructor&&(y=b.constructor.name),y==="Map"||y==="Set")return Array.from(b);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return a(b,g)}}function a(b,g){(g==null||g>b.length)&&(g=b.length);for(var y=0,B=new Array(g);yM)return 1}return 0},k=r.sortBy=function(){function b(){for(var g=arguments.length,y=new Array(g),B=0;B>1,M=g(y[A]),ML?A:A+1},p=r.binaryInsertWith=function(){function b(g){return function(y,B){var L=[].concat(y);return L.splice(d(g,y,B),0,B),L}}return b}(),v=r.paginate=function(){function b(g,y){for(var B=[],L=[],I=y,w=n(g),T;!(T=w()).done;){var M=T.value;L.push(M),I--,I||(I=y,B.push(L),L=[])}return L.length&&B.push(L),B}return b}(),f=function(g){return typeof g=="object"&&g!==null},C=r.deepMerge=function(){function b(){for(var g={},y=arguments.length,B=new Array(y),L=0;L1?V-1:0),S=1;S1?S-1:0),h=1;h1?N-1:0),s=1;ss?s:N}return S}(),e=r.clamp01=function(){function S(N){return N<0?0:N>1?1:N}return S}(),a=r.scale=function(){function S(N,h,s){return(N-h)/(s-h)}return S}(),t=r.round=function(){function S(N,h){if(!N||isNaN(N))return N;var s,l,u,i;return h|=0,s=Math.pow(10,h),N*=s,i=+(N>0)|-(N<0),u=Math.abs(N%1)>=.4999999999854481,l=Math.floor(N),u&&(N=l+(i>0)),(u?N:Math.round(N))/s}return S}(),o=r.toFixed=function(){function S(N,h){return h===void 0&&(h=0),Number(N).toFixed(Math.max(h,0))}return S}(),m=r.inRange=function(){function S(N,h){return h&&N>=h[0]&&N<=h[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(N,h){for(var s=0,l=Object.keys(h);s1?l-1:0),i=1;i1?b-1:0),y=1;y=0;--Se){var we=this.tryEntries[Se],pe=we.completion;if(we.tryLoc==="root")return Ce("end");if(we.tryLoc<=this.prev){var E=g.call(we,"catchLoc"),Z=g.call(we,"finallyLoc");if(E&&Z){if(this.prev=0;--Ce){var Se=this.tryEntries[Ce];if(Se.tryLoc<=this.prev&&g.call(Se,"finallyLoc")&&this.prev=0;--ie){var Ce=this.tryEntries[ie];if(Ce.finallyLoc===ee)return this.complete(Ce.completion,Ce.afterLoc),me(Ce),D}}return te}(),catch:function(){function te(ee){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Ce=this.tryEntries[ie];if(Ce.tryLoc===ee){var Se=Ce.completion;if(Se.type==="throw"){var we=Se.arg;me(Ce)}return we}}throw new Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(ee,ie,Ce){return this.delegate={iterator:ce(ee),resultName:ie,nextLoc:Ce},this.method==="next"&&(this.arg=f),D}return te}()},C}function e(f,C,b,g,y,B,L){try{var I=f[B](L),w=I.value}catch(T){b(T);return}I.done?C(w):Promise.resolve(w).then(g,y)}function a(f){return function(){var C=this,b=arguments;return new Promise(function(g,y){var B=f.apply(C,b);function L(w){e(B,g,y,L,I,"next",w)}function I(w){e(B,g,y,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,m=r.IMPL_INDEXED_DB=2,V=1,k="chomp",S="storage-v1",N="readonly",h="readwrite",s=function(C){return function(){try{return!!C()}catch(b){return!1}}},l=s(function(){return window.localStorage&&window.localStorage.getItem}),u=s(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function f(){this.impl=t,this.store={}}var C=f.prototype;return C.get=function(){function b(g){return this.store[g]}return b}(),C.set=function(){function b(g,y){this.store[g]=y}return b}(),C.remove=function(){function b(g){this.store[g]=void 0}return b}(),C.clear=function(){function b(){this.store={}}return b}(),f}(),c=function(){function f(){this.impl=o}var C=f.prototype;return C.get=function(){function b(g){var y=localStorage.getItem(g);if(typeof y=="string")return JSON.parse(y)}return b}(),C.set=function(){function b(g,y){localStorage.setItem(g,JSON.stringify(y))}return b}(),C.remove=function(){function b(g){localStorage.removeItem(g)}return b}(),C.clear=function(){function b(){localStorage.clear()}return b}(),f}(),d=function(){function f(){this.impl=m,this.dbPromise=new Promise(function(b,g){var y=window.indexedDB||window.msIndexedDB,B=y.open(k,V);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(L){g(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return b(B.result)},B.onerror=function(){g(new Error("Failed to open IDB: "+B.error))}})}var C=f.prototype;return C.getStore=function(){function b(g){return this.dbPromise.then(function(y){return y.transaction(S,g).objectStore(S)})}return b}(),C.get=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(N);case 2:return L=w.sent,w.abrupt("return",new Promise(function(T,M){var A=L.get(B);A.onsuccess=function(){return T(A.result)},A.onerror=function(){return M(A.error)}}));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.set=function(){var b=a(n().mark(function(){function y(B,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(h);case 3:I=T.sent,I.put(L,B);case 5:case"end":return T.stop()}}return w}(),y,this)}return y}()));function g(y,B){return b.apply(this,arguments)}return g}(),C.remove=function(){var b=a(n().mark(function(){function y(B){var L;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(h);case 2:L=w.sent,L.delete(B);case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.clear=function(){var b=a(n().mark(function(){function y(){var B;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(h);case 2:B=I.sent,B.clear();case 4:case"end":return I.stop()}}return L}(),y,this)}return y}()));function g(){return b.apply(this,arguments)}return g}(),f}(),p=function(){function f(){this.backendPromise=a(n().mark(function(){function b(){var g;return n().wrap(function(){function y(B){for(;;)switch(B.prev=B.next){case 0:if(!u()){B.next=10;break}return B.prev=1,g=new d,B.next=5,g.dbPromise;case 5:return B.abrupt("return",g);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!l()){B.next=12;break}return B.abrupt("return",new c);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return y}(),b,null,[[1,8]])}return b}()))()}var C=f.prototype;return C.get=function(){var b=a(n().mark(function(){function y(B){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(B));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.set=function(){var b=a(n().mark(function(){function y(B,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(B,L));case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function g(y,B){return b.apply(this,arguments)}return g}(),C.remove=function(){var b=a(n().mark(function(){function y(B){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(B));case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function g(y){return b.apply(this,arguments)}return g}(),C.clear=function(){var b=a(n().mark(function(){function y(){var B;return n().wrap(function(){function L(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return B=I.sent,I.abrupt("return",B.clear());case 4:case"end":return I.stop()}}return L}(),y,this)}return y}()));function g(){return b.apply(this,arguments)}return g}(),f}(),v=r.storage=new p},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(l,u){var i=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(i)return(i=i.call(l)).next.bind(i);if(Array.isArray(l)||(i=e(l))||u&&l&&typeof l.length=="number"){i&&(l=i);var c=0;return function(){return c>=l.length?{done:!0}:{done:!1,value:l[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(l,u){if(l){if(typeof l=="string")return a(l,u);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(l,u)}}function a(l,u){(u==null||u>l.length)&&(u=l.length);for(var i=0,c=new Array(u);i",apos:"'"};return u.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(d,p){return c[p]}).replace(/&#?([0-9]+);/gi,function(d,p){var v=parseInt(p,10);return String.fromCharCode(v)}).replace(/&#x?([0-9a-f]+);/gi,function(d,p){var v=parseInt(p,16);return String.fromCharCode(v)})}return l}(),s=r.buildQueryString=function(){function l(u){return Object.keys(u).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(u[i])}).join("&")}return l}()},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,m,V){V===void 0&&(V=!1);var k;return function(){for(var S=arguments.length,N=new Array(S),h=0;h=m)o.apply(null,h),V=l;else{var u;k=setTimeout(function(){return S.apply(void 0,h)},m-(l-((u=V)!=null?u:0)))}}return S}()}return t}(),a=r.sleep=function(){function t(o){return new Promise(function(m){return setTimeout(m,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]. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var a=function(c,d){return c+d},t=function(c,d){return c-d},o=function(c,d){return c*d},m=function(c,d){return c/d},V=r.vecAdd=function(){function i(){for(var c=arguments.length,d=new Array(c),p=0;p=0)&&(N[s]=k[s]);return N}var V=r.BlockQuote=function(){function k(S){var N=S.className,h=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",N])},h)))}return k}()},65969: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(78419),m=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function V(C,b){if(C==null)return{};var g={},y=Object.keys(C),B,L;for(L=0;L=0)&&(g[B]=C[B]);return g}var k=r.unit=function(){function C(b){if(typeof b=="string")return b.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(b)/12+"rem":b;if(typeof b=="number")return Byond.IS_LTE_IE8?b*12+"px":b+"rem"}return C}(),S=r.halfUnit=function(){function C(b){if(typeof b=="string")return k(b);if(typeof b=="number")return k(b*.5)}return C}(),N=function(b){return!h(b)},h=function(b){return typeof b=="string"&&o.CSS_COLORS.includes(b)},s=function(b){return function(g,y){(typeof y=="number"||typeof y=="string")&&(g[b]=y)}},l=function(b,g){return function(y,B){(typeof B=="number"||typeof B=="string")&&(y[b]=g(B))}},u=function(b,g){return function(y,B){B&&(y[b]=g)}},i=function(b,g,y){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var I=0;I0&&(g.style=M),g}return C}(),v=r.computeBoxClassName=function(){function C(b){var g=b.textColor||b.color,y=b.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(y)&&"color-bg-"+y])}return C}(),f=r.Box=function(){function C(b){var g=b.as,y=g===void 0?"div":g,B=b.className,L=b.children,I=V(b,m);if(typeof L=="function")return L(p(b));var w=typeof B=="string"?B+" "+v(I):v(I),T=p(I);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,y,w,L,t.ChildFlags.UnknownChildren,T,void 0)}return C}();f.defaultHooks=e.pureComponentHooks},58170: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(66905),m=n(65969),V=n(61043),k=n(23512),S=["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","iconSize","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onclick","onClick","verticalAlignContent"],N=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],s=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"],l=["onSelectFiles","accept","multiple"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */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,M=Object.defineProperty||function(pe,E,Z){pe[E]=Z.value},A=typeof Symbol=="function"?Symbol:{},R=A.iterator||"@@iterator",O=A.asyncIterator||"@@asyncIterator",_=A.toStringTag||"@@toStringTag";function P(pe,E,Z){return Object.defineProperty(pe,E,{value:Z,enumerable:!0,configurable:!0,writable:!0}),pe[E]}try{P({},"")}catch(pe){P=function(Z,re,X){return Z[re]=X}}function D(pe,E,Z,re){var X=E&&E.prototype instanceof J?E:J,ne=Object.create(X.prototype),ve=new Se(re||[]);return M(ne,"_invoke",{value:te(pe,Z,ve)}),ne}function z(pe,E,Z){try{return{type:"normal",arg:pe.call(E,Z)}}catch(re){return{type:"throw",arg:re}}}I.wrap=D;var U="suspendedStart",W="suspendedYield",K="executing",H="completed",Y={};function J(){}function q(){}function oe(){}var ae={};P(ae,R,function(){return this});var le=Object.getPrototypeOf,he=le&&le(le(we([])));he&&he!==w&&T.call(he,R)&&(ae=he);var me=oe.prototype=J.prototype=Object.create(ae);function Be(pe){["next","throw","return"].forEach(function(E){P(pe,E,function(Z){return this._invoke(E,Z)})})}function ce(pe,E){function Z(X,ne,ve,Ve){var Ie=z(pe[X],pe,ne);if(Ie.type!=="throw"){var Pe=Ie.arg,Ae=Pe.value;return Ae&&typeof Ae=="object"&&T.call(Ae,"__await")?E.resolve(Ae.__await).then(function(Oe){Z("next",Oe,ve,Ve)},function(Oe){Z("throw",Oe,ve,Ve)}):E.resolve(Ae).then(function(Oe){Pe.value=Oe,ve(Pe)},function(Oe){return Z("throw",Oe,ve,Ve)})}Ve(Ie.arg)}var re;M(this,"_invoke",{value:function(){function X(ne,ve){function Ve(){return new E(function(Ie,Pe){Z(ne,ve,Ie,Pe)})}return re=re?re.then(Ve,Ve):Ve()}return X}()})}function te(pe,E,Z){var re=U;return function(X,ne){if(re===K)throw new Error("Generator is already running");if(re===H){if(X==="throw")throw ne;return{value:L,done:!0}}for(Z.method=X,Z.arg=ne;;){var ve=Z.delegate;if(ve){var Ve=ee(ve,Z);if(Ve){if(Ve===Y)continue;return Ve}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(re===U)throw re=H,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);re=K;var Ie=z(pe,E,Z);if(Ie.type==="normal"){if(re=Z.done?H:W,Ie.arg===Y)continue;return{value:Ie.arg,done:Z.done}}Ie.type==="throw"&&(re=H,Z.method="throw",Z.arg=Ie.arg)}}}function ee(pe,E){var Z=E.method,re=pe.iterator[Z];if(re===L)return E.delegate=null,Z==="throw"&&pe.iterator.return&&(E.method="return",E.arg=L,ee(pe,E),E.method==="throw")||Z!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+Z+"' method")),Y;var X=z(re,pe.iterator,E.arg);if(X.type==="throw")return E.method="throw",E.arg=X.arg,E.delegate=null,Y;var ne=X.arg;return ne?ne.done?(E[pe.resultName]=ne.value,E.next=pe.nextLoc,E.method!=="return"&&(E.method="next",E.arg=L),E.delegate=null,Y):ne:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,Y)}function ie(pe){var E={tryLoc:pe[0]};1 in pe&&(E.catchLoc=pe[1]),2 in pe&&(E.finallyLoc=pe[2],E.afterLoc=pe[3]),this.tryEntries.push(E)}function Ce(pe){var E=pe.completion||{};E.type="normal",delete E.arg,pe.completion=E}function Se(pe){this.tryEntries=[{tryLoc:"root"}],pe.forEach(ie,this),this.reset(!0)}function we(pe){if(pe||pe===""){var E=pe[R];if(E)return E.call(pe);if(typeof pe.next=="function")return pe;if(!isNaN(pe.length)){var Z=-1,re=function(){function X(){for(;++Z=0;--X){var ne=this.tryEntries[X],ve=ne.completion;if(ne.tryLoc==="root")return re("end");if(ne.tryLoc<=this.prev){var Ve=T.call(ne,"catchLoc"),Ie=T.call(ne,"finallyLoc");if(Ve&&Ie){if(this.prev=0;--re){var X=this.tryEntries[re];if(X.tryLoc<=this.prev&&T.call(X,"finallyLoc")&&this.prev=0;--Z){var re=this.tryEntries[Z];if(re.finallyLoc===E)return this.complete(re.completion,re.afterLoc),Ce(re),Y}}return pe}(),catch:function(){function pe(E){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var re=this.tryEntries[Z];if(re.tryLoc===E){var X=re.completion;if(X.type==="throw"){var ne=X.arg;Ce(re)}return ne}}throw new Error("illegal catch attempt")}return pe}(),delegateYield:function(){function pe(E,Z,re){return this.delegate={iterator:we(E),resultName:Z,nextLoc:re},this.method==="next"&&(this.arg=L),Y}return pe}()},I}function i(L,I,w,T,M,A,R){try{var O=L[A](R),_=O.value}catch(P){w(P);return}O.done?I(_):Promise.resolve(_).then(T,M)}function c(L){return function(){var I=this,w=arguments;return new Promise(function(T,M){var A=L.apply(I,w);function R(_){i(A,T,M,R,O,"next",_)}function O(_){i(A,T,M,R,O,"throw",_)}R(void 0)})}}function d(L,I){L.prototype=Object.create(I.prototype),L.prototype.constructor=L,p(L,I)}function p(L,I){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(T,M){return T.__proto__=M,T}return w}(),p(L,I)}function v(L,I){if(L==null)return{};var w={},T=Object.keys(L),M,A;for(A=0;A=0)&&(w[M]=L[M]);return w}var f=(0,o.createLogger)("Button"),C=r.Button=function(){function L(I){var w=I.className,T=I.fluid,M=I.icon,A=I.iconRotation,R=I.iconSpin,O=I.iconColor,_=I.iconPosition,P=I.iconSize,D=I.color,z=I.disabled,U=I.selected,W=I.tooltip,K=I.tooltipPosition,H=I.ellipsis,Y=I.compact,J=I.circular,q=I.content,oe=I.children,ae=I.onclick,le=I.onClick,he=I.verticalAlignContent,me=v(I,S),Be=!!(q||oe);ae&&f.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(te){!z&&le&&le(te)},Byond.IS_LTE_IE8&&(me.unselectable=!0);var ce=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Button",T&&"Button--fluid",z&&"Button--disabled",U&&"Button--selected",Be&&"Button--hasContent",H&&"Button--ellipsis",J&&"Button--circular",Y&&"Button--compact",_&&"Button--iconPosition--"+_,he&&"Button--flex",he&&T&&"Button--flex--fluid",he&&"Button--verticalAlignContent--"+he,D&&typeof D=="string"?"Button--color--"+D:"Button--color--default",w,(0,m.computeBoxClassName)(me)]),(0,e.createVNode)(1,"div","Button__content",[M&&_!=="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:M,color:O,rotation:A,spin:R}),q,oe,M&&_==="right"&&(0,e.createComponentVNode)(2,V.Icon,{name:M,color:O,rotation:A,spin:R,fontSize:P})],0),2,Object.assign({tabIndex:!z&&"0",onKeyDown:function(){function te(ee){if(I.captureKeys!==!1){var ie=window.event?ee.which:ee.keyCode;if(ie===a.KEY_SPACE||ie===a.KEY_ENTER){ee.preventDefault(),!z&&le&&le(ee);return}if(ie===a.KEY_ESCAPE){ee.preventDefault();return}}}return te}()},(0,m.computeBoxProps)(me))));return W&&(ce=(0,e.createComponentVNode)(2,k.Tooltip,{content:W,position:K,children:ce})),ce}return L}();C.defaultHooks=t.pureComponentHooks;var b=r.ButtonCheckbox=function(){function L(I){var w=I.checked,T=v(I,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({color:"transparent",icon:w?"check-square-o":"square-o",selected:w},T)))}return L}();C.Checkbox=b;var g=r.ButtonConfirm=function(L){d(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(M){var A=this;this.setState({clickedOnce:M}),M?setTimeout(function(){return window.addEventListener("click",A.handleClick)}):window.removeEventListener("click",this.handleClick)}return T}(),w.render=function(){function T(){var M=this,A=this.props,R=A.confirmContent,O=R===void 0?"Confirm?":R,_=A.confirmColor,P=_===void 0?"bad":_,D=A.confirmIcon,z=A.icon,U=A.color,W=A.content,K=A.onClick,H=v(A,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({content:this.state.clickedOnce?O:W,icon:this.state.clickedOnce?D:z,color:this.state.clickedOnce?P:U,onClick:function(){function Y(){return M.state.clickedOnce?K():M.setClickedOnce(!0)}return Y}()},H)))}return T}(),I}(e.Component);C.Confirm=g;var y=r.ButtonInput=function(L){d(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(M){if(this.setState({inInput:M}),this.inputRef){var A=this.inputRef.current;if(M){A.value=this.props.currentValue||"";try{A.focus(),A.select()}catch(R){}}}}return T}(),w.commitResult=function(){function T(M){if(this.inputRef){var A=this.inputRef.current,R=A.value!=="";if(R){this.props.onCommit(M,A.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(M,this.props.defaultValue)}}}return T}(),w.render=function(){function T(){var M=this,A=this.props,R=A.fluid,O=A.content,_=A.icon,P=A.iconRotation,D=A.iconSpin,z=A.tooltip,U=A.tooltipPosition,W=A.color,K=W===void 0?"default":W,H=A.placeholder,Y=A.maxLength,J=v(A,s),q=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,t.classes)(["Button",R&&"Button--fluid","Button--color--"+K])},J,{onClick:function(){function oe(){return M.setInInput(!0)}return oe}(),children:[_&&(0,e.createComponentVNode)(2,V.Icon,{name:_,rotation:P,spin:D}),(0,e.createVNode)(1,"div",null,O,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function oe(ae){M.state.inInput&&(M.setInInput(!1),M.commitResult(ae))}return oe}(),onKeyDown:function(){function oe(ae){if(ae.keyCode===a.KEY_ENTER){M.setInInput(!1),M.commitResult(ae);return}ae.keyCode===a.KEY_ESCAPE&&M.setInInput(!1)}return oe}()},null,this.inputRef)]})));return z&&(q=(0,e.createComponentVNode)(2,k.Tooltip,{content:z,position:U,children:q})),q}return T}(),I}(e.Component);C.Input=y;var B=r.ButtonFile=function(L){d(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(u().mark(function(){function A(R){var O;return u().wrap(function(){function _(P){for(;;)switch(P.prev=P.next){case 0:return O=Array.from(R).map(function(D){var z=new FileReader;return new Promise(function(U){z.onload=function(){return U(z.result)},z.readAsText(D)})}),P.next=3,Promise.all(O);case 3:return P.abrupt("return",P.sent);case 4:case"end":return P.stop()}}return _}(),A)}return A}()));function M(A){return T.apply(this,arguments)}return M}(),w.render=function(){function T(){var M=this,A=this.props,R=A.onSelectFiles,O=A.accept,_=A.multiple,P=v(A,l),D=(0,e.createVNode)(64,"input",null,null,1,{hidden:!0,type:"file",accept:O,multiple:_,onChange:function(){var z=c(u().mark(function(){function W(){var K,H;return u().wrap(function(){function Y(J){for(;;)switch(J.prev=J.next){case 0:if(K=M.inputRef.current.files,!K.length){J.next=6;break}return J.next=4,M.read(K);case 4:H=J.sent,R(_?H:H[0]);case 6:case"end":return J.stop()}}return Y}(),W)}return W}()));function U(){return z.apply(this,arguments)}return U}()},null,this.inputRef);return(0,e.createFragment)([(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},P,{onClick:function(){function z(){M.inputRef.current.click()}return z}()}))),D],0)}return T}(),I}(e.Component);C.File=B},21396: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(66905),m=n(65969),V=["params"],k=["params"],S=["params"];function N(p,v){if(p==null)return{};var f={},C=Object.keys(p),b,g;for(g=0;g=0)&&(f[b]=p[b]);return f}function h(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 f(C,b){return C.__proto__=b,C}return f}(),s(p,v)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var l=(0,o.createLogger)("ByondUi"),u=[],i=function(v){var f=u.length;u.push(null);var C=v||"byondui_"+f;return l.log("allocated '"+C+"'"),{render:function(){function b(g){l.log("rendering '"+C+"'"),u[f]=C,Byond.winset(C,g)}return b}(),unmount:function(){function b(){l.log("unmounting '"+C+"'"),u[f]=null,Byond.winset(C,{parent:""})}return b}()}};window.addEventListener("beforeunload",function(){for(var p=0;p=0)&&(d[v]=i[v]);return d}function k(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,S(i,c)}function S(i,c){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(p,v){return p.__proto__=v,p}return d}(),S(i,c)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var N=function(c,d,p,v){if(c.length===0)return[];var f=(0,a.zipWith)(Math.min).apply(void 0,c),C=(0,a.zipWith)(Math.max).apply(void 0,c);p!==void 0&&(f[0]=p[0],C[0]=p[1]),v!==void 0&&(f[1]=v[0],C[1]=v[1]);var b=(0,a.map)(function(g){return(0,a.zipWith)(function(y,B,L,I){return(y-B)/(L-B)*I})(g,f,C,d)})(c);return b},h=function(c){for(var d="",p=0;p0){var _=O[0],P=O[O.length-1];O.push([R[0]+M,P[1]]),O.push([R[0]+M,-M]),O.push([-M,-M]),O.push([-M,_[1]])}var D=h(O);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function z(U){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, -"+R[1]+")",fill:L,stroke:w,"stroke-width":M,points:D}),2,{viewBox:"0 0 "+R[0]+" "+R[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return z}()})))}return p}(),c}(e.Component);s.defaultHooks=t.pureComponentHooks;var l=function(c){return null},u=r.Chart={Line:Byond.IS_LTE_IE8?l:s}},97069:function(x,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(58734),a=n(65969),t=n(58170),o=["children","color","title","buttons"];function m(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i=0)&&(s[u]=N[u]);return s}function V(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,k(N,h)}function k(N,h){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),k(N,h)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var S=r.Collapsible=function(N){V(h,N);function h(l){var u;u=N.call(this,l)||this;var i=l.open;return u.state={open:i||!1},u}var s=h.prototype;return s.render=function(){function l(){var u=this,i=this.props,c=this.state.open,d=i.children,p=i.color,v=p===void 0?"default":p,f=i.title,C=i.buttons,b=m(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:v,icon:c?"chevron-down":"chevron-right",onClick:function(){function g(){return u.setState({open:!c})}return g}()},b,{children:f}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),c&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:d})]})}return l}(),h}(e.Component)},72203:function(x,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l=0)&&(N[s]=k[s]);return N}var V=r.ColorBox=function(){function k(S){var N=S.content,h=S.children,s=S.className,l=S.color,u=S.backgroundColor,i=m(S,o);return i.color=N?null:"transparent",i.backgroundColor=l||u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",s,(0,t.computeBoxClassName)(i)]),N||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return k}();V.defaultHooks=a.pureComponentHooks},29532:function(x,r,n){"use strict";r.__esModule=!0,r.UnsavedChangesDialog=r.Dialog=void 0;var e=n(58734),a=n(65969),t=n(58170);/** * @file * @copyright 2022 raffclar * @license MIT */var o=r.Dialog=function(){function k(S){var N=S.title,h=S.onClose,s=S.children,l=S.width,u=S.height;return(0,e.createVNode)(1,"div","Dialog",(0,e.createComponentVNode)(2,a.Box,{className:"Dialog__content",width:l||"370px",height:u,children:[(0,e.createVNode)(1,"div","Dialog__header",[(0,e.createVNode)(1,"div","Dialog__title",N,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:h})})],4),s]}),2)}return k}(),m=function(S){var N=S.onClick,h=S.children;return(0,e.createComponentVNode)(2,t.Button,{onClick:N,className:"Dialog__button",verticalAlignContent:"middle",children:h})};o.Button=m;var V=r.UnsavedChangesDialog=function(){function k(S){var N=S.documentName,h=S.onSave,s=S.onDiscard,l=S.onClose;return(0,e.createComponentVNode)(2,o,{title:"Notepad",onClose:l,children:[(0,e.createVNode)(1,"div","Dialog__body",[(0,e.createTextVNode)("Do you want to save changes to "),N,(0,e.createTextVNode)("?")],0),(0,e.createVNode)(1,"div","Dialog__footer",[(0,e.createComponentVNode)(2,m,{onClick:h,children:"Save"}),(0,e.createComponentVNode)(2,m,{onClick:s,children:"Don't Save"}),(0,e.createComponentVNode)(2,m,{onClick:l,children:"Cancel"})],4)]})}return k}()},62887:function(x,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l=0)&&(N[s]=k[s]);return N}var V=r.Dimmer=function(){function k(S){var N=S.className,h=S.children,s=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(N))},s,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return k}()},759: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(m){var V=m.vertical,k=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},75318: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(12451);function m(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,V(h,s)}function V(h,s){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),V(h,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var k=400,S=function(s,l){return s.screenX*l[0]+s.screenY*l[1]},N=r.DraggableControl=function(h){m(s,h);function s(u){var i;return i=h.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 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 d=i.props,p=d.value,v=d.dragMatrix,f=i.state.editing;f||(document.body.style["pointer-events"]="none",i.ref=c.target,i.setState({dragging:!1,origin:S(c,v),value:p,internalValue:p}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var C=i.state,b=C.dragging,g=C.value,y=i.props.onDrag;b&&y&&y(c,g)},i.props.updateRate||k),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(c){var d=i.props,p=d.minValue,v=d.maxValue,f=d.step,C=d.stepPixelSize,b=d.dragMatrix;i.setState(function(g){var y=Object.assign({},g),B=S(c,b)-y.origin;if(g.dragging){var L=Number.isFinite(p)?p%f:0;y.internalValue=(0,a.clamp)(y.internalValue+B*f/C,p-f,v+f),y.value=(0,a.clamp)(y.internalValue-y.internalValue%f+L,p,v),y.origin=S(c,b)}else Math.abs(B)>4&&(y.dragging=!0);return y})},i.handleDragEnd=function(c){var d=i.props,p=d.onChange,v=d.onDrag,f=i.state,C=f.dragging,b=f.value,g=f.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),C)i.suppressFlicker(),p&&p(c,b),v&&v(c,b);else if(i.inputRef){var y=i.inputRef.current;y.value=g;try{y.focus(),y.select()}catch(B){}}},i}var l=s.prototype;return l.render=function(){function u(){var i=this,c=this.state,d=c.dragging,p=c.editing,v=c.value,f=c.suppressingFlicker,C=this.props,b=C.animated,g=C.value,y=C.unit,B=C.minValue,L=C.maxValue,I=C.unclamped,w=C.format,T=C.onChange,M=C.onDrag,A=C.children,R=C.height,O=C.lineHeight,_=C.fontSize,P=g;(d||f)&&(P=v);var D=(0,e.createFragment)([b&&!d&&!f?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:P,format:w}):w?w(P):P,y?" "+y:""],0),z=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:p?void 0:"none",height:R,"line-height":O,"font-size":_},onBlur:function(){function U(W){if(p){var K;if(I?K=parseFloat(W.target.value):K=(0,a.clamp)(parseFloat(W.target.value),B,L),Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),T&&T(W,K),M&&M(W,K)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var K;if(I?K=parseFloat(W.target.value):K=(0,a.clamp)(parseFloat(W.target.value),B,L),Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),T&&T(W,K),M&&M(W,K);return}if(W.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef);return A({dragging:d,editing:p,value:g,displayValue:P,displayElement:D,inputElement:z,handleDragStart:this.handleDragStart})}return u}(),s}(e.Component);N.defaultHooks=t.pureComponentHooks,N.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},51413: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(65969),m=n(58170),V=n(61043),k=n(70468),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],N=["className"],h;function s(f,C){if(f==null)return{};var b={},g=Object.keys(f),y,B;for(B=0;B=0)&&(b[y]=f[y]);return b}function l(f,C){f.prototype=Object.create(C.prototype),f.prototype.constructor=f,u(f,C)}function u(f,C){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(g,y){return g.__proto__=y,g}return b}(),u(f,C)}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 f(){return null}return f}()},d="Layout Dropdown__menu",p="Layout Dropdown__menu-scroll",v=r.Dropdown=function(f){l(C,f);function C(){for(var g,y=arguments.length,B=new Array(y),L=0;L200?B.className=p:B.className=d;var L=this.props.options,I=L===void 0?[]:L,w=I.map(function(M){var A,R;return typeof M=="string"?(R=M,A=M):M!==null&&(R=M.displayText,A=M.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",y.state.selected===A&&"selected"]),R,0,{onClick:function(){function O(){y.setSelected(A)}return O}()},A)}),T=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,T,0),B,function(){var M=C.singletonPopper;M===void 0?(M=(0,a.createPopper)(C.virtualElement,B,Object.assign({},i,{placement:"bottom-start"})),C.singletonPopper=M):(M.setOptions(Object.assign({},i,{placement:"bottom-start"})),M.update())},this.context)}}return g}(),b.setOpen=function(){function g(y){var B=this;this.setState(function(L){return Object.assign({},L,{open:y})}),y?setTimeout(function(){B.openMenu(),window.addEventListener("click",B.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),b.setSelected=function(){function g(y){this.setState(function(B){return Object.assign({},B,{selected:y})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(y)}return g}(),b.getOptionValue=function(){function g(y){return typeof y=="string"?y:y.value}return g}(),b.getSelectedIndex=function(){function g(){var y=this,B=this.state.selected||this.props.selected,L=this.props.options,I=L===void 0?[]:L;return I.findIndex(function(w){return y.getOptionValue(w)===B})}return g}(),b.toPrevious=function(){function g(){if(!(this.props.options.length<1)){var y=this.getSelectedIndex(),B=0,L=this.props.options.length-1,I=y>=0;I||(y=B);var w=y===B?L:y-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),b.toNext=function(){function g(){if(!(this.props.options.length<1)){var y=this.getSelectedIndex(),B=0,L=this.props.options.length-1,I=y>=0;I||(y=L);var w=y===L?B:y+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),b.render=function(){function g(){var y=this,B=this.props,L=B.icon,I=B.iconRotation,w=B.iconSpin,T=B.clipSelectedText,M=T===void 0?!0:T,A=B.color,R=A===void 0?"default":A,O=B.dropdownStyle,_=B.over,P=B.nochevron,D=B.width,z=B.onClick,U=B.onSelected,W=B.selected,K=B.disabled,H=B.displayText,Y=B.buttons,J=s(B,S),q=J.className,oe=s(J,N),ae=_?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.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--"+R,K&&"Button--disabled",q]),onClick:function(){function le(he){K&&!y.state.open||(y.setOpen(!y.state.open),z&&z(he))}return le}()},oe,{children:[L&&(0,e.createComponentVNode)(2,V.Icon,{name:L,rotation:I,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",H||this.state.selected,0,{style:{overflow:M?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,V.Icon,{name:ae?"chevron-up":"chevron-down"}),2)]})))}),Y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,m.Button,{height:"100%",icon:"chevron-left",disabled:K,onClick:function(){function le(){K||y.toPrevious()}return le}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,m.Button,{height:"100%",icon:"chevron-right",disabled:K,onClick:function(){function le(){K||y.toNext()}return le}()})})],4)]})}return g}(),C}(e.Component);h=v,v.renderedMenu=void 0,v.singletonPopper=void 0,v.currentOpenMenu=void 0,v.virtualElement={getBoundingClientRect:function(){function f(){var C,b;return(C=(b=h.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?C:c}return f}()}},7764:function(x,r,n){"use strict";r.__esModule=!0,r.FitText=void 0;var e=n(58734);function a(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function t(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,o(k,S)}function o(k,S){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(h,s){return h.__proto__=s,h}return N}(),o(k,S)}var m=5,V=r.FitText=function(k){t(S,k);function S(){var h;return h=k.call(this)||this,h.ref=(0,e.createRef)(),h.state={fontSize:0},h.resize=h.resize.bind(a(h)),window.addEventListener("resize",h.resize),h}var N=S.prototype;return N.componentDidUpdate=function(){function h(s){s.children!==this.props.children&&this.resize()}return h}(),N.componentWillUnmount=function(){function h(){window.removeEventListener("resize",this.resize)}return h}(),N.resize=function(){function h(){var s=this.ref.current;if(s){for(var l=this.props.maxWidth,u=0,i=this.props.maxFontSize,c=0;c<10;c++){var d,p=Math.round((u+i)/2);s.style.fontSize=p+"px";var v=s.offsetWidth-l;if(v>0)i=p;else if(v<((d=this.props.acceptableDifference)!=null?d:m))u=p;else break}this.setState({fontSize:Math.round((u+i)/2)})}}return h}(),N.componentDidMount=function(){function h(){this.resize()}return h}(),N.render=function(){function h(){var s;return(0,e.createVNode)(1,"span",null,this.props.children,0,{style:Object.assign({"font-size":this.state.fontSize+"px"},typeof((s=this.props.native)==null?void 0:s.style)=="object"&&this.props.native.style)},null,this.ref)}return h}(),S}(e.Component)},21456: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(65969),o=["className","direction","wrap","align","justify","inline"],m=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function S(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C=0)&&(p[f]=c[f]);return p}var N=r.computeFlexClassName=function(){function c(d){return(0,a.classes)(["Flex",d.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&d.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(d)])}return c}(),h=r.computeFlexProps=function(){function c(d){var p=d.className,v=d.direction,f=d.wrap,C=d.align,b=d.justify,g=d.inline,y=S(d,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},y.style,{"flex-direction":v,"flex-wrap":f===!0?"wrap":f,"align-items":C,"justify-content":b})},y))}return c}(),s=r.Flex=function(){function c(d){var p=d.className,v=S(d,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([p,N(v)]),null,1,Object.assign({},h(v))))}return c}();s.defaultHooks=a.pureComponentHooks;var l=r.computeFlexItemClassName=function(){function c(d){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(d)])}return c}(),u=r.computeFlexItemProps=function(){function c(d){var p,v=d.className,f=d.style,C=d.grow,b=d.order,g=d.shrink,y=d.basis,B=d.align,L=S(d,V),I=(p=y!=null?y:d.width)!=null?p:C!==void 0?0:void 0;return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},f,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":g!==void 0&&Number(g),"flex-basis":(0,t.unit)(I),order:b,"align-self":B})},L))}return c}(),i=function(d){var p=d.className,v=S(d,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([p,l(d)]),null,1,Object.assign({},u(v))))};i.defaultHooks=a.pureComponentHooks,s.Item=i},17268:function(x,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(58734),a=n(30204),t=n(59641),o=["children"],m=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function V(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i=0)&&(s[u]=N[u]);return s}var k=r.Grid=function(){function N(h){var s=h.children,l=V(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},l,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:s})})))}return N}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function N(h){var s=h.size,l=s===void 0?1:s,u=h.style,i=V(h,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:l+"%"},u)},i)))}return N}();k.defaultHooks=t.pureComponentHooks,k.Column=S},61043:function(x,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["style"],m=["name","size","spin","className","rotation"],V=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT */function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d=0)&&(u[c]=s[c]);return u}var S=/-o$/,N=r.Icon=function(){function s(l){var u=l.style,i=k(l,o),c=i.name,d=i.size,p=i.spin,v=i.className,f=i.rotation,C=k(i,m);d&&(u||(u={}),u["font-size"]=d*100+"%"),f&&(u||(u={}),u.transform="rotate("+f+"deg)"),C.style=u;var b=(0,t.computeBoxProps)(C),g="";if(c.startsWith("tg-"))g=c;else{var y=S.test(c),B=c.replace(S,""),L=!B.startsWith("fa-");g=y?"far ":"fas ",L&&(g+="fa-"),g+=B,p&&(g+=" fa-spin")}return(0,e.normalizeProps)((0,e.createVNode)(1,"i",(0,a.classes)(["Icon",g,v,(0,t.computeBoxClassName)(C)]),null,1,Object.assign({},b)))}return s}();N.defaultHooks=a.pureComponentHooks;var h=r.IconStack=function(){function s(l){var u=l.className,i=l.children,c=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"span",(0,a.classes)(["IconStack",u,(0,t.computeBoxClassName)(c)]),i,0,Object.assign({},(0,t.computeBoxProps)(c))))}return s}();N.Stack=h},35695:function(x,r,n){"use strict";r.__esModule=!0,r.InfinitePlane=void 0;var e=n(58734),a=n(65969),t=n(70468),o=n(83550),m=n(58170),V=["children","backgroundImage","imageWidth","initialLeft","initialTop"];function k(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C=0)&&(p[f]=c[f]);return p}function S(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function N(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,h(c,d)}function h(c,d){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(v,f){return v.__proto__=f,v}return p}(),h(c,d)}var s=.5,l=1.5,u=.1,i=r.InfinitePlane=function(c){N(d,c);function d(){var v;return v=c.call(this)||this,v.state={mouseDown:!1,left:0,top:0,lastLeft:0,lastTop:0,zoom:1},v.handleMouseDown=v.handleMouseDown.bind(S(v)),v.handleMouseMove=v.handleMouseMove.bind(S(v)),v.handleZoomIncrease=v.handleZoomIncrease.bind(S(v)),v.handleZoomDecrease=v.handleZoomDecrease.bind(S(v)),v.onMouseUp=v.onMouseUp.bind(S(v)),v.doOffsetMouse=v.doOffsetMouse.bind(S(v)),v}var p=d.prototype;return p.componentDidMount=function(){function v(){window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousedown",this.doOffsetMouse),window.addEventListener("mousemove",this.doOffsetMouse),window.addEventListener("mouseup",this.doOffsetMouse)}return v}(),p.componentWillUnmount=function(){function v(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousedown",this.doOffsetMouse),window.removeEventListener("mousemove",this.doOffsetMouse),window.removeEventListener("mouseup",this.doOffsetMouse)}return v}(),p.doOffsetMouse=function(){function v(f){var C=this.state.zoom;f.screenZoomX=f.screenX*Math.pow(C,-1),f.screenZoomY=f.screenY*Math.pow(C,-1)}return v}(),p.handleMouseDown=function(){function v(f){this.setState(function(C){return{mouseDown:!0,lastLeft:f.clientX-C.left,lastTop:f.clientY-C.top}})}return v}(),p.onMouseUp=function(){function v(){this.setState({mouseDown:!1})}return v}(),p.handleZoomIncrease=function(){function v(f){var C=this.props.onZoomChange,b=this.state.zoom,g=Math.min(b+u,l);this.setState({zoom:g}),C&&C(g)}return v}(),p.handleZoomDecrease=function(){function v(f){var C=this.props.onZoomChange,b=this.state.zoom,g=Math.max(b-u,s);this.setState({zoom:g}),C&&C(g)}return v}(),p.handleMouseMove=function(){function v(f){var C=this.props,b=C.onBackgroundMoved,g=C.initialLeft,y=g===void 0?0:g,B=C.initialTop,L=B===void 0?0:B;if(this.state.mouseDown){var I,w;this.setState(function(T){return I=f.clientX-T.lastLeft,w=f.clientY-T.lastTop,{left:I,top:w}}),b&&b(I+y,w+L)}}return v}(),p.render=function(){function v(){var f=this.props,C=f.children,b=f.backgroundImage,g=f.imageWidth,y=f.initialLeft,B=y===void 0?0:y,L=f.initialTop,I=L===void 0?0:L,w=k(f,V),T=this.state,M=T.left,A=T.top,R=T.zoom,O=B+M,_=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("'+b+'")',"background-position":O+"px "+_+"px","background-repeat":"repeat","background-size":R*g+"px"}}),(0,e.createVNode)(1,"div",null,C,0,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",transform:"translate("+O+"px, "+_+"px) scale("+R+")","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,m.Button,{icon:"minus",onClick:this.handleZoomDecrease})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:s,value:R,maxValue:l,children:[R,"x"]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,m.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 v}(),d}(e.Component)},16225: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(65969),m=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"],V=["className","fluid","monospace"];function k(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p=0)&&(i[d]=l[d]);return i}function S(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,N(l,u)}function N(l,u){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,d){return c.__proto__=d,c}return i}(),N(l,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var h=r.toInputValue=function(){function l(u){return typeof u!="number"&&typeof u!="string"?"":String(u)}return l}(),s=r.Input=function(l){S(u,l);function u(){var c;return c=l.call(this)||this,c.inputRef=(0,e.createRef)(),c.state={editing:!1},c.handleInput=function(d){var p=c.state.editing,v=c.props.onInput;p||c.setEditing(!0),v&&v(d,d.target.value)},c.handleFocus=function(d){var p=c.state.editing;p||c.setEditing(!0)},c.handleBlur=function(d){var p=c.state.editing,v=c.props.onChange;p&&(c.setEditing(!1),v&&v(d,d.target.value))},c.handleKeyDown=function(d){var p=c.props,v=p.onInput,f=p.onChange,C=p.onEnter;if(d.keyCode===a.KEY_ENTER){c.setEditing(!1),f&&f(d,d.target.value),v&&v(d,d.target.value),C&&C(d,d.target.value),c.props.selfClear?d.target.value="":d.target.blur();return}if(d.keyCode===a.KEY_ESCAPE){if(c.props.onEscape){c.props.onEscape(d);return}c.setEditing(!1),d.target.value=h(c.props.value),d.target.blur();return}},c}var i=u.prototype;return i.componentDidMount=function(){function c(){var d=this,p=this.props.value,v=this.inputRef.current;v&&(v.value=h(p)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),d.props.autoSelect&&v.select()},1)}return c}(),i.componentDidUpdate=function(){function c(d,p){var v=this.state.editing,f=d.value,C=this.props.value,b=this.inputRef.current;b&&!v&&f!==C&&(b.value=h(C))}return c}(),i.setEditing=function(){function c(d){this.setState({editing:d})}return c}(),i.render=function(){function c(){var d=this.props,p=d.selfClear,v=d.onInput,f=d.onChange,C=d.onEnter,b=d.value,g=d.maxLength,y=d.placeholder,B=k(d,m),L=B.className,I=B.fluid,w=B.monospace,T=k(B,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:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g},null,this.inputRef)]})))}return c}(),u}(e.Component)},76844:function(x,r,n){"use strict";r.__esModule=!0,r.KeyListener=void 0;var e=n(58734),a=n(73764);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.KeyListener=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.dispose=void 0,N.dispose=(0,a.listenForKeyEvents)(function(h){N.props.onKey&&N.props.onKey(h),h.isDown()&&N.props.onKeyDown&&N.props.onKeyDown(h),h.isUp()&&N.props.onKeyUp&&N.props.onKeyUp(h)}),N}var S=k.prototype;return S.componentWillUnmount=function(){function N(){this.dispose()}return N}(),S.render=function(){function N(){return null}return N}(),k}(e.Component)},10869: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(65969),m=n(75318),V=n(4665),k=["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 S(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c=0)&&(l[i]=h[i]);return l}var N=r.Knob=function(){function h(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},s)));var l=s.animated,u=s.format,i=s.maxValue,c=s.minValue,d=s.unclamped,p=s.onChange,v=s.onDrag,f=s.step,C=s.stepPixelSize,b=s.suppressFlicker,g=s.unit,y=s.value,B=s.className,L=s.style,I=s.fillValue,w=s.color,T=s.ranges,M=T===void 0?{}:T,A=s.size,R=A===void 0?1:A,O=s.bipolar,_=s.children,P=S(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:l,format:u,maxValue:i,minValue:c,unclamped:d,onChange:p,onDrag:v,step:f,stepPixelSize:C,suppressFlicker:b,unit:g,value:y},{children:function(){function D(z){var U=z.dragging,W=z.editing,K=z.value,H=z.displayValue,Y=z.displayElement,J=z.inputElement,q=z.handleDragStart,oe=(0,a.scale)(I!=null?I:H,c,i),ae=(0,a.scale)(H,c,i),le=w||(0,a.keyOfMatchingRange)(I!=null?I:K,M)||"default",he=Math.min((ae-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+le,O&&"Knob--bipolar",B,(0,o.computeBoxClassName)(P)]),[(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("+he+"deg)"}}),2),U&&(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(((O?2.75:2)-oe*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":R+"em"},L)},P)),{onMouseDown:q})))}return D}()})))}return h}()},515:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(58734),a=n(21456),t=["children","wrap"],o=["label","children","mx"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function m(S,N){if(S==null)return{};var h={},s=Object.keys(S),l,u;for(u=0;u=0)&&(h[l]=S[l]);return h}var V=r.LabeledControls=function(){function S(N){var h=N.children,s=N.wrap,l=m(N,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,wrap:s,align:"stretch",justify:"space-between"},l,{children:h})))}return S}(),k=function(N){var h=N.label,s=N.children,l=N.mx,u=l===void 0?1:l,i=m(N,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:s}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};V.Item=k},84867:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(759);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var m=r.LabeledList=function(){function S(N){var h=N.children;return(0,e.createVNode)(1,"table","LabeledList",h,0)}return S}();m.defaultHooks=a.pureComponentHooks;var V=function(N){var h=N.className,s=N.label,l=N.labelColor,u=l===void 0?"label":l,i=N.labelWrap,c=N.color,d=N.textAlign,p=N.buttons,v=N.content,f=N.children,C=N.verticalAlign,b=C===void 0?"baseline":C;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",h]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell",!i&&"LabeledList__label--nowrap"]),verticalAlign:b,children:s?typeof s=="string"?s+":":s:null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:c,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:p?void 0:2,verticalAlign:b,children:[v,f]}),p&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",p,0)],0)};V.defaultHooks=a.pureComponentHooks;var k=function(N){var h=N.size?(0,t.unit)(Math.max(0,N.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":h,"padding-bottom":h}}),2)};k.defaultHooks=a.pureComponentHooks,m.Item=V,m.Divider=k},34927:function(x,r,n){"use strict";r.__esModule=!0,r.MenuBar=r.Dropdown=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(66905),m=n(61043),V=["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"],k=["className"];function S(v,f){if(v==null)return{};var C={},b=Object.keys(v),g,y;for(y=0;y=0)&&(C[g]=v[g]);return C}function N(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,h(v,f)}function h(v,f){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,g){return b.__proto__=g,b}return C}(),h(v,f)}/** * @file * @copyright 2022 Aleksej Komarov * @license MIT */var s=function(v){N(f,v);function f(b){var g;return g=v.call(this,b)||this,g.handleClick=void 0,g.handleClick=function(y){if(!g.props.menuRef.current){o.logger.log("Menu.handleClick(): No ref");return}g.props.menuRef.current.contains(y.target)?o.logger.log("Menu.handleClick(): Inside"):(o.logger.log("Menu.handleClick(): Outside"),g.props.onOutsideClick())},g}var C=f.prototype;return C.componentWillMount=function(){function b(){window.addEventListener("click",this.handleClick)}return b}(),C.componentWillUnmount=function(){function b(){window.removeEventListener("click",this.handleClick)}return b}(),C.render=function(){function b(){var g=this.props,y=g.width,B=g.children;return(0,e.createVNode)(1,"div","MenuBar__menu",B,0,{style:{width:y}})}return b}(),f}(e.Component),l=function(v){N(f,v);function f(b){var g;return g=v.call(this,b)||this,g.menuRef=void 0,g.menuRef=(0,e.createRef)(),g}var C=f.prototype;return C.render=function(){function b(){var g=this.props,y=g.open,B=g.openWidth,L=g.children,I=g.disabled,w=g.display,T=g.onMouseOver,M=g.onClick,A=g.onOutsideClick,R=S(g,V),O=R.className,_=S(R,k);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",O])},_,{onClick:I?void 0:M,onmouseover:T,children:(0,e.createVNode)(1,"span","MenuBar__MenuBarButton-text",w,0)}))),y&&(0,e.createComponentVNode)(2,s,{width:B,menuRef:this.menuRef,onOutsideClick:A,children:L})],0,null,null,this.menuRef)}return b}(),f}(e.Component),u=r.Dropdown=function(){function v(f){var C=f.entry,b=f.children,g=f.openWidth,y=f.display,B=f.setOpenMenuBar,L=f.openMenuBar,I=f.setOpenOnHover,w=f.openOnHover,T=f.disabled,M=f.className;return(0,e.createComponentVNode)(2,l,{openWidth:g,display:y,disabled:T,open:L===C,className:M,onClick:function(){function A(){var R=L===C?null:C;B(R),I(!w)}return A}(),onOutsideClick:function(){function A(){B(null),I(!1)}return A}(),onMouseOver:function(){function A(){w&&B(C)}return A}(),children:b})}return v}(),i=function(f){var C=f.value,b=f.displayText,g=f.onClick,y=f.checked;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){function B(){return g(C)}return B}(),children:[(0,e.createVNode)(1,"div","MenuBar__MenuItemToggle__check",y&&(0,e.createComponentVNode)(2,m.Icon,{size:1.3,name:"check"}),0),b]})};u.MenuItemToggle=i;var c=function(f){var C=f.value,b=f.displayText,g=f.onClick;return(0,e.createComponentVNode)(2,t.Box,{className:(0,a.classes)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){function y(){return g(C)}return y}(),children:b})};u.MenuItem=c;var d=function(){return(0,e.createVNode)(1,"div","MenuBar__Separator")};u.Separator=d;var p=r.MenuBar=function(){function v(f){var C=f.children;return(0,e.createComponentVNode)(2,t.Box,{className:"MenuBar",children:C})}return v}();p.Dropdown=u},39539:function(x,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(62887),m=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function V(S,N){if(S==null)return{};var h={},s=Object.keys(S),l,u;for(u=0;u=0)&&(h[l]=S[l]);return h}var k=r.Modal=function(){function S(N){var h=N.className,s=N.children,l=N.onEnter,u=V(N,m),i;return l&&(i=function(){function c(d){var p=d.which||d.keyCode;p===13&&l(d)}return c}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(u)]),s,0,Object.assign({},(0,t.computeBoxProps)(u))))})}return S}()},24808:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(58734),a=n(59641),t=n(65969),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function m(k,S){if(k==null)return{};var N={},h=Object.keys(k),s,l;for(l=0;l=0)&&(N[s]=k[s]);return N}var V=r.NoticeBox=function(){function k(S){var N=S.className,h=S.color,s=S.info,l=S.warning,u=S.success,i=S.danger,c=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,s&&"NoticeBox--type--info",u&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",N])},c)))}return k}();V.defaultHooks=a.pureComponentHooks},4665: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(12451),m=n(65969);function V(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,k(h,s)}function k(h,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),k(h,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var S=400,N=r.NumberInput=function(h){V(s,h);function s(u){var i;i=h.call(this,u)||this;var c=u.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 d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var p=i.props.value,v=i.state.editing;v||(document.body.style["pointer-events"]="none",i.ref=d.target,i.setState({dragging:!1,origin:d.screenY,value:p,internalValue:p}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var f=i.state,C=f.dragging,b=f.value,g=i.props.onDrag;C&&g&&g(d,b)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var p=i.props,v=p.minValue,f=p.maxValue,C=p.step,b=p.stepPixelSize;i.setState(function(g){var y=Object.assign({},g),B=y.origin-d.screenY;if(g.dragging){var L=Number.isFinite(v)?v%C:0;y.internalValue=(0,a.clamp)(y.internalValue+B*C/b,v-C,f+C),y.value=(0,a.clamp)(y.internalValue-y.internalValue%C+L,v,f),y.origin=d.screenY}else Math.abs(B)>4&&(y.dragging=!0);return y})},i.handleDragEnd=function(d){var p=i.props,v=p.onChange,f=p.onDrag,C=i.state,b=C.dragging,g=C.value,y=C.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(d,g),f&&f(d,g);else if(i.inputRef){var B=i.inputRef.current;B.value=y;try{B.focus(),B.select()}catch(L){}}},i}var l=s.prototype;return l.render=function(){function u(){var i=this,c=this.state,d=c.dragging,p=c.editing,v=c.value,f=c.suppressingFlicker,C=this.props,b=C.className,g=C.fluid,y=C.animated,B=C.value,L=C.unit,I=C.minValue,w=C.maxValue,T=C.height,M=C.width,A=C.lineHeight,R=C.fontSize,O=C.format,_=C.onChange,P=C.onDrag,D=B;(d||f)&&(D=v);var z=(0,e.createVNode)(1,"div","NumberInput__content",[y&&!d&&!f?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:O}):O?O(D):D,L?" "+L:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",b]),minWidth:M,minHeight:T,lineHeight:A,fontSize:R,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),z,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:p?void 0:"none",height:T,"line-height":A,"font-size":R},onBlur:function(){function U(W){if(p){var K=(0,a.clamp)(parseFloat(W.target.value),I,w);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),_&&_(W,K),P&&P(W,K)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var K=(0,a.clamp)(parseFloat(W.target.value),I,w);if(Number.isNaN(K)){i.setState({editing:!1});return}i.setState({editing:!1,value:K}),i.suppressFlicker(),_&&_(W,K),P&&P(W,K);return}if(W.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return u}(),s}(e.Component);N.defaultHooks=t.pureComponentHooks,N.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},38221:function(x,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(92935),a=n(58734);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.Popper=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.renderedContent=void 0,N.popperInstance=void 0,k.id+=1,N}var S=k.prototype;return S.componentDidMount=function(){function N(){var h=this,s=this.props,l=s.additionalStyles,u=s.options;if(this.renderedContent=document.createElement("div"),l)for(var i=0,c=Object.entries(l);i=0)&&(s[u]=N[u]);return s}var S=r.ProgressBar=function(){function N(h){var s=h.className,l=h.value,u=h.minValue,i=u===void 0?0:u,c=h.maxValue,d=c===void 0?1:c,p=h.color,v=h.ranges,f=v===void 0?{}:v,C=h.children,b=k(h,V),g=(0,a.scale)(l,i,d),y=C!==void 0,B=p||(0,a.keyOfMatchingRange)(l,f)||"default",L=(0,o.computeBoxProps)(b),I=["ProgressBar",s,(0,o.computeBoxClassName)(b)],w={width:(0,a.clamp01)(g)*100+"%"};return m.CSS_COLORS.includes(B)||B==="default"?I.push("ProgressBar--color--"+B):(L.style=(L.style||"")+("border-color: "+B+";"),w["background-color"]=B),(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",y?C:(0,a.toFixed)(g*100)+"%",0)],4,Object.assign({},L)))}return N}();S.defaultHooks=t.pureComponentHooks},18918: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(65969),m=n(42678),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(c,d){if(c==null)return{};var p={},v=Object.keys(c),f,C;for(C=0;C=0)&&(p[f]=c[f]);return p}function N(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,h(c,d)}function h(c,d){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(v,f){return v.__proto__=f,v}return p}(),h(c,d)}var s=0,l=1e4,u=function(d,p,v,f){var C=p||s,b=v||v===0?v:l;if(!d||!d.length)return String(C);var g=f?parseFloat(d.replace(/[^\-\d.]/g,"")):parseInt(d.replace(/[^\-\d]/g,""),10);return isNaN(g)?String(C):String((0,t.clamp)(g,C,b))},i=r.RestrictedInput=function(c){N(d,c);function d(){var v;return v=c.call(this)||this,v.inputRef=(0,e.createRef)(),v.state={editing:!1},v.handleBlur=function(f){var C=v.state.editing;C&&v.setEditing(!1)},v.handleChange=function(f){var C=v.props,b=C.maxValue,g=C.minValue,y=C.onChange,B=C.allowFloats;f.target.value=u(f.target.value,g,b,B),y&&y(f,+f.target.value)},v.handleFocus=function(f){var C=v.state.editing;C||v.setEditing(!0)},v.handleInput=function(f){var C=v.state.editing,b=v.props.onInput;C||v.setEditing(!0),b&&b(f,+f.target.value)},v.handleKeyDown=function(f){var C=v.props,b=C.maxValue,g=C.minValue,y=C.onChange,B=C.onEnter,L=C.allowFloats;if(f.keyCode===m.KEY_ENTER){var I=u(f.target.value,g,b,L);v.setEditing(!1),y&&y(f,+I),B&&B(f,+I),f.target.blur();return}if(f.keyCode===m.KEY_ESCAPE){if(v.props.onEscape){v.props.onEscape(f);return}v.setEditing(!1),f.target.value=v.props.value,f.target.blur();return}},v}var p=d.prototype;return p.componentDidMount=function(){function v(){var f,C=this,b=this.props,g=b.maxValue,y=b.minValue,B=b.allowFloats,L=(f=this.props.value)==null?void 0:f.toString(),I=this.inputRef.current;I&&(I.value=u(L,y,g,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){I.focus(),C.props.autoSelect&&I.select()},1)}return v}(),p.componentDidUpdate=function(){function v(f,C){var b,g,y=this.props,B=y.maxValue,L=y.minValue,I=y.allowFloats,w=this.state.editing,T=(b=f.value)==null?void 0:b.toString(),M=(g=this.props.value)==null?void 0:g.toString(),A=this.inputRef.current;A&&!w&&M!==T&&M!==A.value&&(A.value=u(M,L,B,I))}return v}(),p.setEditing=function(){function v(f){this.setState({editing:f})}return v}(),p.render=function(){function v(){var f=this.props,C=f.onChange,b=f.onEnter,g=f.onInput,y=f.value,B=S(f,V),L=B.className,I=B.fluid,w=B.monospace,T=S(B,k);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 v}(),d}(e.Component)},38818: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(12451),m=n(65969),V=["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT */function k(N,h){if(N==null)return{};var s={},l=Object.keys(N),u,i;for(i=0;i=0)&&(s[u]=N[u]);return s}var S=r.RoundGauge=function(){function N(h){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},h)));var s=h.value,l=h.minValue,u=l===void 0?1:l,i=h.maxValue,c=i===void 0?1:i,d=h.ranges,p=h.alertAfter,v=h.alertBefore,f=h.format,C=h.size,b=C===void 0?1:C,g=h.className,y=h.style,B=k(h,V),L=(0,a.scale)(s,u,c),I=(0,a.clamp01)(L),w=d?{}:{primary:[0,1]};d&&Object.keys(d).forEach(function(A){var R=d[A];w[A]=[(0,a.scale)(R[0],u,c),(0,a.scale)(R[1],u,c)]});var T=function(){function A(){if(p&&v&&ps)return!0}else if(ps)return!0;return!1}return A}(),M=T()&&(0,a.keyOfMatchingRange)(I,w);return(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["RoundGauge",g,(0,m.computeBoxClassName)(B)]),(0,e.createVNode)(32,"svg",null,[(p||v)&&(0,e.createVNode)(32,"g",(0,t.classes)(["RoundGauge__alert",M?"active RoundGauge__alert--"+M:""]),(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,R){var O=w[A];return(0,e.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+A,null,1,{style:{"stroke-dashoffset":Math.max((2-(O[1]-O[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*O[0])+" 50 50)",cx:"50",cy:"50",r:"45"},R)}),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,m.computeBoxProps)(Object.assign({style:Object.assign({"font-size":b+"em"},y)},B))))),(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s,format:f,size:b})]})}return N}()},41355:function(x,r,n){"use strict";r.__esModule=!0,r.Section=void 0;var e=n(58734),a=n(59641),t=n(80835),o=n(65969),m=["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"];function V(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c=0)&&(l[i]=h[i]);return l}function k(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,S(h,s)}function S(h,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(u,i){return u.__proto__=i,u}return l}(),S(h,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var N=r.Section=function(h){k(s,h);function s(u){var i;return i=h.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 l=s.prototype;return l.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}(),l.componentWillUnmount=function(){function u(){(this.scrollable||this.scrollableHorizontal)&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return u}(),l.render=function(){function u(){var i=this.props,c=i.className,d=i.title,p=i.buttons,v=i.fill,f=i.fitted,C=i.scrollable,b=i.scrollableHorizontal,g=i.flexGrow,y=i.noTopPadding,B=i.stretchContents,L=i.children,I=i.onScroll,w=V(i,m),T=(0,a.canRender)(d)||(0,a.canRender)(p);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",v&&"Section--fill",f&&"Section--fitted",C&&"Section--scrollable",b&&"Section--scrollableHorizontal",g&&"Section--flex",c,(0,o.computeBoxClassName)(w)]),[T&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",d,0),(0,e.createVNode)(1,"div","Section__buttons",p,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div",(0,a.classes)(["Section__content",!!B&&"Section__content--stretchContents",!!y&&"Section__content--noTopPadding"]),L,0,{onScroll:I},null,this.scrollableRef),0)],0,Object.assign({},(0,o.computeBoxProps)(w))))}return u}(),s}(e.Component)},72500: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(65969),m=n(75318),V=n(4665),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function S(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c=0)&&(l[i]=h[i]);return l}var N=r.Slider=function(){function h(s){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.NumberInput,Object.assign({},s)));var l=s.animated,u=s.format,i=s.maxValue,c=s.minValue,d=s.onChange,p=s.onDrag,v=s.step,f=s.stepPixelSize,C=s.suppressFlicker,b=s.unit,g=s.value,y=s.className,B=s.fillValue,L=s.color,I=s.ranges,w=I===void 0?{}:I,T=s.children,M=S(s,k),A=T!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:l,format:u,maxValue:i,minValue:c,onChange:d,onDrag:p,step:v,stepPixelSize:f,suppressFlicker:C,unit:b,value:g},{children:function(){function R(O){var _=O.dragging,P=O.editing,D=O.value,z=O.displayValue,U=O.displayElement,W=O.inputElement,K=O.handleDragStart,H=B!=null,Y=(0,a.scale)(D,c,i),J=(0,a.scale)(B!=null?B:z,c,i),q=(0,a.scale)(z,c,i),oe=L||(0,a.keyOfMatchingRange)(B!=null?B:D,w)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider","ProgressBar","ProgressBar--color--"+oe,y,(0,o.computeBoxClassName)(M)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",H&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,q))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),_&&(0,e.createVNode)(1,"div","Slider__popupValue",U,0)],0,{style:{width:(0,a.clamp01)(q)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?T:U,0),W],0,Object.assign({},(0,o.computeBoxProps)(M),{onMouseDown:K})))}return R}()})))}return h}()},70468:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(59641),t=n(21456),o=["className","vertical","fill"],m=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT */function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d=0)&&(u[c]=s[c]);return u}var S=r.Stack=function(){function s(l){var u=l.className,i=l.vertical,c=l.fill,d=k(l,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",c&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",u,(0,t.computeFlexClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},d)))))}return s}(),N=function(l){var u=l.className,i=l.innerRef,c=k(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",u,(0,t.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c)),null,i))};S.Item=N;var h=function(l){var u=l.className,i=l.hidden,c=k(l,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)(c)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(c))))};S.Divider=h},86670:function(x,r,n){"use strict";r.__esModule=!0,r.StyleableSection=void 0;var e=n(58734),a=n(65969),t=r.StyleableSection=function(){function o(m){return(0,e.createComponentVNode)(2,a.Box,{style:m.style,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__title",style:m.titleStyle,children:[(0,e.createComponentVNode)(2,a.Box,{class:"Section__titleText",style:m.textStyle,children:m.title}),(0,e.createVNode)(1,"div","Section__buttons",m.titleSubtext,0)]}),(0,e.createComponentVNode)(2,a.Box,{class:"Section__rest",children:(0,e.createComponentVNode)(2,a.Box,{class:"Section__content",children:m.children})})]})}return o}()},30204: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(65969),o=["className","collapsing","children"],m=["className","header"],V=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function k(s,l){if(s==null)return{};var u={},i=Object.keys(s),c,d;for(d=0;d=0)&&(u[c]=s[c]);return u}var S=r.Table=function(){function s(l){var u=l.className,i=l.collapsing,c=l.children,d=k(l,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",u,(0,t.computeBoxClassName)(d)]),(0,e.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,t.computeBoxProps)(d))))}return s}();S.defaultHooks=a.pureComponentHooks;var N=r.TableRow=function(){function s(l){var u=l.className,i=l.header,c=k(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",u,(0,t.computeBoxClassName)(l)]),null,1,Object.assign({},(0,t.computeBoxProps)(c))))}return s}();N.defaultHooks=a.pureComponentHooks;var h=r.TableCell=function(){function s(l){var u=l.className,i=l.collapsing,c=l.header,d=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",c&&"Table__cell--header",u,(0,t.computeBoxClassName)(l)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return s}();h.defaultHooks=a.pureComponentHooks,S.Row=N,S.Cell=h},73392:function(x,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(61043),m=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function k(h,s){if(h==null)return{};var l={},u=Object.keys(h),i,c;for(c=0;c=0)&&(l[i]=h[i]);return l}var S=r.Tabs=function(){function h(s){var l=s.className,u=s.vertical,i=s.fill,c=s.fluid,d=s.children,p=k(s,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",u?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",c&&"Tabs--fluid",l,(0,t.computeBoxClassName)(p)]),d,0,Object.assign({},(0,t.computeBoxProps)(p))))}return h}(),N=function(s){var l=s.className,u=s.selected,i=s.color,c=s.icon,d=s.leftSlot,p=s.rightSlot,v=s.children,f=k(s,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,u&&"Tab--selected",l].concat((0,t.computeBoxClassName)(f))),[(0,a.canRender)(d)&&(0,e.createVNode)(1,"div","Tab__left",d,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",v,0),(0,a.canRender)(p)&&(0,e.createVNode)(1,"div","Tab__right",p,0)],0,Object.assign({},(0,t.computeBoxProps)(f))))};S.Tab=N},25220:function(x,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(58734),a=n(59641),t=n(65969),o=n(16225),m=n(42678),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"],k=["className","fluid","nowrap"];function S(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p=0)&&(i[d]=l[d]);return i}function N(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,h(l,u)}function h(l,u){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,d){return c.__proto__=d,c}return i}(),h(l,u)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT */var s=r.TextArea=function(l){N(u,l);function u(c,d){var p;p=l.call(this,c,d)||this,p.textareaRef=c.innerRef||(0,e.createRef)(),p.state={editing:!1,scrolledAmount:0};var v=c.dontUseTabForIndent,f=v===void 0?!1:v;return p.handleOnInput=function(C){var b=p.state.editing,g=p.props.onInput;b||p.setEditing(!0),g&&g(C,C.target.value)},p.handleOnChange=function(C){var b=p.state.editing,g=p.props.onChange;b&&p.setEditing(!1),g&&g(C,C.target.value)},p.handleKeyPress=function(C){var b=p.state.editing,g=p.props.onKeyPress;b||p.setEditing(!0),g&&g(C,C.target.value)},p.handleKeyDown=function(C){var b=p.state.editing,g=p.props,y=g.onChange,B=g.onInput,L=g.onEnter,I=g.onKey;if(C.keyCode===m.KEY_ENTER){p.setEditing(!1),y&&y(C,C.target.value),B&&B(C,C.target.value),L&&L(C,C.target.value),p.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===m.KEY_ESCAPE){p.props.onEscape&&p.props.onEscape(C),p.setEditing(!1),p.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(p.props.value),C.target.blur());return}if(b||p.setEditing(!0),I&&I(C,C.target.value),!f){var w=C.keyCode||C.which;if(w===m.KEY_TAB){C.preventDefault();var T=C.target,M=T.value,A=T.selectionStart,R=T.selectionEnd;C.target.value=M.substring(0,A)+" "+M.substring(R),C.target.selectionEnd=A+1,B&&B(C,C.target.value)}}},p.handleFocus=function(C){var b=p.state.editing;b||p.setEditing(!0)},p.handleBlur=function(C){var b=p.state.editing,g=p.props.onChange;b&&(p.setEditing(!1),g&&g(C,C.target.value))},p.handleScroll=function(C){var b=p.props.displayedValue,g=p.textareaRef.current;b&&g&&p.setState({scrolledAmount:g.scrollTop})},p}var i=u.prototype;return i.componentDidMount=function(){function c(){var d=this,p=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(p)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),d.props.autoSelect&&v.select()},1)}return c}(),i.componentDidUpdate=function(){function c(d,p){var v=d.value,f=this.props.value,C=this.textareaRef.current;C&&typeof f=="string"&&v!==f&&(C.value=(0,o.toInputValue)(f))}return c}(),i.setEditing=function(){function c(d){this.setState({editing:d})}return c}(),i.getValue=function(){function c(){return this.textareaRef.current&&this.textareaRef.current.value}return c}(),i.render=function(){function c(){var d=this.props,p=d.onChange,v=d.onKeyDown,f=d.onKeyPress,C=d.onInput,b=d.onFocus,g=d.onBlur,y=d.onEnter,B=d.value,L=d.maxLength,I=d.placeholder,w=d.scrollbar,T=d.noborder,M=d.displayedValue,A=S(d,V),R=A.className,O=A.fluid,_=A.nowrap,P=S(A,k),D=this.state.scrolledAmount;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",O&&"TextArea--fluid",T&&"TextArea--noborder",R])},P,{children:[!!M&&(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"]),M,0,{style:{transform:"translateY(-"+D+"px)"}})}),(0,e.createVNode)(128,"textarea",(0,a.classes)(["TextArea__textarea",w&&"TextArea__textarea--scrollable",_&&"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:M?"rgba(0, 0, 0, 0)":"inherit"}},null,this.textareaRef)]})))}return c}(),u}(e.Component)},45072:function(x,r,n){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var e=n(43820),a=n(58734);function t(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,o(k,S)}function o(k,S){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(h,s){return h.__proto__=s,h}return N}(),o(k,S)}var m=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},V=r.TimeDisplay=function(k){t(S,k);function S(h){var s;return s=k.call(this,h)||this,s.timer=null,s.last_seen_value=void 0,s.state={value:0},m(h.value)&&(s.state.value=Number(h.value),s.last_seen_value=Number(h.value)),s}var N=S.prototype;return N.componentDidUpdate=function(){function h(){var s=this;this.props.auto!==void 0&&(clearInterval(this.timer),this.timer=setInterval(function(){return s.tick()},1e3))}return h}(),N.tick=function(){function h(){var s=Number(this.state.value);this.props.value!==this.last_seen_value&&(this.last_seen_value=this.props.value,s=this.props.value);var l=this.props.auto==="up"?10:-10,u=Math.max(0,s+l);this.setState({value:u})}return h}(),N.componentDidMount=function(){function h(){var s=this;this.props.auto!==void 0&&(this.timer=setInterval(function(){return s.tick()},1e3))}return h}(),N.componentWillUnmount=function(){function h(){clearInterval(this.timer)}return h}(),N.render=function(){function h(){var s=this.state.value;return m(s)?(0,e.formatTime)(s):this.state.value||null}return h}(),S}(a.Component)},23512:function(x,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(58734),a=n(92935),t;function o(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,m(N,h)}function m(N,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),m(N,h)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function N(){return null}return N}()},S=r.Tooltip=function(N){o(h,N);function h(){return N.apply(this,arguments)||this}var s=h.prototype;return s.getDOMNode=function(){function l(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return l}(),s.componentDidMount=function(){function l(){var u=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var c=h.renderedTooltip;c===void 0&&(c=document.createElement("div"),c.className="Tooltip",document.body.appendChild(c),h.renderedTooltip=c),h.currentHoveredElement=i,c.style.opacity="1",u.renderPopperContent()}),i.addEventListener("mouseleave",function(){u.fadeOut()}))}return l}(),s.fadeOut=function(){function l(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return l}(),s.renderPopperContent=function(){function l(){var u=this,i=h.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var c=h.singletonPopper;c===void 0?(c=(0,a.createPopper)(h.virtualElement,i,Object.assign({},V,{placement:u.props.position||"auto"})),h.singletonPopper=c):(c.setOptions(Object.assign({},V,{placement:u.props.position||"auto"})),c.update())},this.context)}return l}(),s.componentDidUpdate=function(){function l(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return l}(),s.componentWillUnmount=function(){function l(){this.fadeOut()}return l}(),s.render=function(){function l(){return this.props.children}return l}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function N(){var h,s;return(h=(s=t.currentHoveredElement)==null?void 0:s.getBoundingClientRect())!=null?h:k}return N}()}},4827: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,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(N,h){return N.__proto__=h,N}return S}(),o(V,k)}var m=r.TrackOutsideClicks=function(V){t(k,V);function k(){var N;return N=V.call(this)||this,N.ref=(0,e.createRef)(),N.handleOutsideClick=N.handleOutsideClick.bind(a(N)),document.addEventListener("click",N.handleOutsideClick),N}var S=k.prototype;return S.componentWillUnmount=function(){function N(){document.removeEventListener("click",this.handleOutsideClick)}return N}(),S.handleOutsideClick=function(){function N(h){h.target instanceof Node&&this.ref.current&&!this.ref.current.contains(h.target)&&this.props.onOutsideClick()}return N}(),S.render=function(){function N(){return(0,e.createVNode)(1,"div",null,this.props.children,0,null,null,this.ref)}return N}(),k}(e.Component)},11790: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.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(12451);r.AnimatedNumber=e.AnimatedNumber;var a=n(36310);r.Autofocus=a.Autofocus;var t=n(80457);r.Blink=t.Blink;var o=n(8564);r.BlockQuote=o.BlockQuote;var m=n(65969);r.Box=m.Box;var V=n(58170);r.Button=V.Button;var k=n(21396);r.ByondUi=k.ByondUi;var S=n(6020);r.Chart=S.Chart;var N=n(97069);r.Collapsible=N.Collapsible;var h=n(72203);r.ColorBox=h.ColorBox;var s=n(62887);r.Dimmer=s.Dimmer;var l=n(759);r.Divider=l.Divider;var u=n(75318);r.DraggableControl=u.DraggableControl;var i=n(51413);r.Dropdown=i.Dropdown;var c=n(21456);r.Flex=c.Flex;var d=n(7764);r.FitText=d.FitText;var p=n(17268);r.Grid=p.Grid;var v=n(61043);r.Icon=v.Icon;var f=n(35695);r.InfinitePlane=f.InfinitePlane;var C=n(16225);r.Input=C.Input;var b=n(76844);r.KeyListener=b.KeyListener;var g=n(10869);r.Knob=g.Knob;var y=n(515);r.LabeledControls=y.LabeledControls;var B=n(84867);r.LabeledList=B.LabeledList;var L=n(34927);r.MenuBar=L.MenuBar;var I=n(39539);r.Modal=I.Modal;var w=n(24808);r.NoticeBox=w.NoticeBox;var T=n(4665);r.NumberInput=T.NumberInput;var M=n(83550);r.ProgressBar=M.ProgressBar;var A=n(38221);r.Popper=A.Popper;var R=n(18918);r.RestrictedInput=R.RestrictedInput;var O=n(38818);r.RoundGauge=O.RoundGauge;var _=n(41355);r.Section=_.Section;var P=n(72500);r.Slider=P.Slider;var D=n(86670);r.StyleableSection=D.StyleableSection;var z=n(70468);r.Stack=z.Stack;var U=n(30204);r.Table=U.Table;var W=n(73392);r.Tabs=W.Tabs;var K=n(25220);r.TextArea=K.TextArea;var H=n(45072);r.TimeDisplay=H.TimeDisplay;var Y=n(4827);r.TrackOutsideClicks=Y.TrackOutsideClicks;var J=n(23512);r.Tooltip=J.Tooltip;var q=n(29532);r.Dialog=q.Dialog},78419: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,m=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"],k=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"}],S=[{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"}],N=r.getGasLabel=function(){function l(u,i){if(!u)return i||"None";for(var c=u.toLowerCase(),d=u.replace(/(^\w{1})|(\s+\w{1})/g,function(v){return v.toUpperCase()}),p=0;p=0;--be){var ke=this.tryEntries[be],Te=ke.completion;if(ke.tryLoc==="root")return ue("end");if(ke.tryLoc<=this.prev){var Ee=H.call(ke,"catchLoc"),Re=H.call(ke,"finallyLoc");if(Ee&&Re){if(this.prev=0;--ue){var be=this.tryEntries[ue];if(be.tryLoc<=this.prev&&H.call(be,"finallyLoc")&&this.prev=0;--j){var ue=this.tryEntries[j];if(ue.finallyLoc===ge)return this.complete(ue.completion,ue.afterLoc),Pe(ue),ie}}return de}(),catch:function(){function de(ge){for(var j=this.tryEntries.length-1;j>=0;--j){var ue=this.tryEntries[j];if(ue.tryLoc===ge){var be=ue.completion;if(be.type==="throw"){var ke=be.arg;Pe(ue)}return ke}}throw new Error("illegal catch attempt")}return de}(),delegateYield:function(){function de(ge,j,ue){return this.delegate={iterator:Oe(ge),resultName:j,nextLoc:ue},this.method==="next"&&(this.arg=U),ie}return de}()},W}function V(U,W,K,H,Y,J,q){try{var oe=U[J](q),ae=oe.value}catch(le){K(le);return}oe.done?W(ae):Promise.resolve(ae).then(H,Y)}function k(U){return function(){var W=this,K=arguments;return new Promise(function(H,Y){var J=U.apply(W,K);function q(ae){V(J,H,Y,q,oe,"next",ae)}function oe(ae){V(J,H,Y,q,oe,"throw",ae)}q(void 0)})}}var S=(0,a.createLogger)("drag"),N=(o=window.devicePixelRatio)!=null?o:1,h=Byond.windowId,s=!1,l=!1,u=[0,0],i,c,d,p,v,f=r.setWindowKey=function(){function U(W){h=W}return U}(),C=r.getWindowPosition=function(){function U(){return[window.screenLeft*N,window.screenTop*N]}return U}(),b=r.getWindowSize=function(){function U(){return[window.innerWidth*N,window.innerHeight*N]}return U}(),g=function(W){var K=(0,e.vecAdd)(W,u);return Byond.winset(Byond.windowId,{pos:K[0]+","+K[1]})},y=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},B=function(){return[0-u[0],0-u[1]]},L=function(){return[window.screen.availWidth*N,window.screen.availHeight*N]},I=r.touchRecents=function(){function U(W,K,H){H===void 0&&(H=50);for(var Y=[K],J,q=0;qle&&(J[oe]=le-K[oe],q=!0)}return[q,J]},R=r.dragStartHandler=function(){function U(W){var K;S.log("drag start"),s=!0,c=(0,e.vecSubtract)([W.screenX,W.screenY],C()),(K=W.target)==null||K.focus(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",O),_(W)}return U}(),O=function U(W){S.log("drag end"),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",U),s=!1,w()},_=function(W){s&&(W.preventDefault(),g((0,e.vecSubtract)([W.screenX,W.screenY],c)))},P=r.resizeStartHandler=function(){function U(W,K){return function(H){var Y;d=[W,K],S.log("resize start",d),l=!0,c=(0,e.vecSubtract)([H.screenX,H.screenY],C()),p=b(),(Y=H.target)==null||Y.focus(),document.addEventListener("mousemove",z),document.addEventListener("mouseup",D),z(H)}}return U}(),D=function U(W){S.log("resize end",v),z(W),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",U),l=!1,w()},z=function(W){if(l){W.preventDefault();var K=(0,e.vecSubtract)([W.screenX,W.screenY],C()),H=(0,e.vecSubtract)(K,c);v=(0,e.vecAdd)(p,(0,e.vecMultiply)(d,H),[1,1]),v[0]=Math.max(v[0],150*N),v[1]=Math.max(v[1],50*N),y(v)}}},80835: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,m=r.setupGlobalEvents=function(){function b(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return b}(),V,k=!0,S=function b(g,y){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),y){V=setTimeout(function(){return b(g)});return}k!==g&&(k=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},N=null,h=r.canStealFocus=function(){function b(g){var y=String(g.tagName).toLowerCase();return y==="input"||y==="textarea"}return b}(),s=function(g){l(),N=g,N.addEventListener("blur",l)},l=function b(){N&&(N.removeEventListener("blur",b),N=null)},u=null,i=null,c=[],d=r.addScrollableNode=function(){function b(g){c.push(g)}return b}(),p=r.removeScrollableNode=function(){function b(g){var y=c.indexOf(g);y>=0&&c.splice(y,1)}return b}(),v=function(g){if(!(N||!k))for(var y=document.body;g&&g!==y;){if(c.includes(g)){if(g.contains(u))return;u=g,g.focus();return}g=g.parentElement}};window.addEventListener("mousemove",function(b){var g=b.target;g!==i&&(i=g,v(g))}),window.addEventListener("focusin",function(b){if(i=null,u=b.target,S(!0),h(b.target)){s(b.target);return}}),window.addEventListener("focusout",function(b){i=null,S(!1,!0)}),window.addEventListener("blur",function(b){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(b){S(!1)});var f={},C=r.KeyEvent=function(){function b(y,B,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=y,this.type=B,this.code=y.keyCode,this.ctrl=y.ctrlKey,this.shift=y.shiftKey,this.alt=y.altKey,this.repeat=!!L}var g=b.prototype;return g.hasModifierKeys=function(){function y(){return this.ctrl||this.alt||this.shift}return y}(),g.isModifierKey=function(){function y(){return this.code===e.KEY_CTRL||this.code===e.KEY_SHIFT||this.code===e.KEY_ALT}return y}(),g.isDown=function(){function y(){return this.type==="keydown"}return y}(),g.isUp=function(){function y(){return this.type==="keyup"}return y}(),g.toString=function(){function y(){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 y}(),b}();document.addEventListener("keydown",function(b){if(!h(b.target)){var g=b.keyCode,y=new C(b,"keydown",f[g]);t.emit("keydown",y),t.emit("key",y),f[g]=!0}}),document.addEventListener("keyup",function(b){if(!h(b.target)){var g=b.keyCode,y=new C(b,"keyup");t.emit("keyup",y),t.emit("key",y),f[g]=!1}})},68566:function(x,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var n=r.focusMap=function(){function a(){Byond.winset("mapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},43820:function(x,r){"use strict";r.__esModule=!0,r.formatTime=r.formatSiUnit=r.formatSiBaseTenUnit=r.formatPower=r.formatMoney=r.formatDb=r.formatCommaNumber=void 0;/** * @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 h(s,l,u){if(l===void 0&&(l=-e),u===void 0&&(u=""),!isFinite(s))return s.toString();var i=Math.floor(Math.log10(Math.abs(s))),c=Math.max(l*3,i),d=Math.floor(c/3),p=n[Math.min(d+e,n.length-1)],v=s/Math.pow(1e3,d),f=v.toFixed(2);return f.endsWith(".00")?f=f.slice(0,-3):f.endsWith(".0")&&(f=f.slice(0,-2)),(f+" "+p.trim()+u).trim()}return h}(),t=r.formatPower=function(){function h(s,l){return l===void 0&&(l=0),a(s,l,"W")}return h}(),o=r.formatMoney=function(){function h(s,l){if(l===void 0&&(l=0),!Number.isFinite(s))return String(s);var u=Number(s.toFixed(l)),i=u<0,c=Math.abs(u),d=c.toString().split(".");d[0]=d[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var p=d.join(".");return i?"-"+p:p}return h}(),m=r.formatDb=function(){function h(s){var l=20*Math.log10(s),u=l>=0?"+":"-",i=Math.abs(l);return i===1/0?i="Inf":i=i.toFixed(2),""+u+i+" dB"}return h}(),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"],k=r.formatSiBaseTenUnit=function(){function h(s,l,u){if(l===void 0&&(l=0),u===void 0&&(u=""),!isFinite(s))return"NaN";var i=Math.floor(Math.log10(s)),c=Math.max(l*3,i),d=Math.floor(c/3),p=V[d],v=s/Math.pow(1e3,d),f=Math.max(0,2-c%3),C=v.toFixed(f);return(C+" "+p+" "+u).trim()}return h}(),S=r.formatTime=function(){function h(s,l){l===void 0&&(l="default");var u=Math.floor(s/10),i=Math.floor(u/3600),c=Math.floor(u%3600/60),d=u%60;if(l==="short"){var p=i>0?i+"h":"",v=c>0?c+"m":"",f=d>0?d+"s":"";return""+p+v+f}var C=String(i).padStart(2,"0"),b=String(c).padStart(2,"0"),g=String(d).padStart(2,"0");return C+":"+b+":"+g}return h}(),N=r.formatCommaNumber=function(){function h(s){if(!Number.isFinite(s))return s;var l=s.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}return h}()},73764:function(x,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.listenForKeyEvents=r.acquireHotKey=void 0;var e=m(n(42678)),a=n(80835),t=n(66905);function o(v){if(typeof WeakMap!="function")return null;var f=new WeakMap,C=new WeakMap;return(o=function(g){return g?C:f})(v)}function m(v,f){if(!f&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var C=o(f);if(C&&C.has(v))return C.get(v);var b={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in v)if(y!=="default"&&Object.prototype.hasOwnProperty.call(v,y)){var B=g?Object.getOwnPropertyDescriptor(v,y):null;B&&(B.get||B.set)?Object.defineProperty(b,y,B):b[y]=v[y]}return b.default=v,C&&C.set(v,b),b}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var V=(0,t.createLogger)("hotkeys"),k={},S=[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],N={},h=[],s=function(f){if(f===16)return"Shift";if(f===17)return"Ctrl";if(f===18)return"Alt";if(f===33)return"Northeast";if(f===34)return"Southeast";if(f===35)return"Southwest";if(f===36)return"Northwest";if(f===37)return"West";if(f===38)return"North";if(f===39)return"East";if(f===40)return"South";if(f===45)return"Insert";if(f===46)return"Delete";if(f>=48&&f<=57||f>=65&&f<=90)return String.fromCharCode(f);if(f>=96&&f<=105)return"Numpad"+(f-96);if(f>=112&&f<=123)return"F"+(f-111);if(f===188)return",";if(f===189)return"-";if(f===190)return"."},l=function(f){var C=String(f);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(f.event.defaultPrevented||f.isModifierKey()||S.includes(f.code))){var b=s(f.code);if(b){var g=k[b];if(g)return V.debug("macro",g),Byond.command(g);if(f.isDown()&&!N[b]){N[b]=!0;var y='KeyDown "'+b+'"';return V.debug(y),Byond.command(y)}if(f.isUp()&&N[b]){N[b]=!1;var B='KeyUp "'+b+'"';return V.debug(B),Byond.command(B)}}}},u=r.acquireHotKey=function(){function v(f){S.push(f)}return v}(),i=r.releaseHotKey=function(){function v(f){var C=S.indexOf(f);C>=0&&S.splice(C,1)}return v}(),c=r.releaseHeldKeys=function(){function v(){for(var f=0,C=Object.keys(N);f=75?C="green":u>=25?C="yellow":C="red";var b=null;return i>=75&&(b="green"),i>=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:C,value:u/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:b,value:i/100})})]})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c===1?"Wipe of AI in progress...":"",0)})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",children:!!d&&(0,e.createComponentVNode)(2,t.Box,{children:p.map(function(g,y){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",children:g},y)})})||(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:v?"check":"times",content:v?"Enabled":"Disabled",color:v?"green":"red",onClick:function(){function g(){return h("wireless")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"check":"times",content:f?"Enabled":"Disabled",color:f?"green":"red",onClick:function(){function g(){return h("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:c||u===0,confirmColor:"red",content:"Shutdown",onClick:function(){function g(){return h("wipe")}return g}()})})]})})]})})}return V}()},68567:function(x,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45902),V=n(84288),k=r.APC=function(){function u(i,c){var d=(0,a.useBackend)(c),p=d.act,v=d.data,f=(0,e.createComponentVNode)(2,h);return v.gridCheck?f=(0,e.createComponentVNode)(2,s):v.failTime&&(f=(0,e.createComponentVNode)(2,l)),(0,e.createComponentVNode)(2,o.Window,{width:450,height:475,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f})})}return u}(),S={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},N={1:{icon:"terminal",content:"Override Programming",action:"hack"}},h=function(i,c){var d=(0,a.useBackend)(c),p=d.act,v=d.data,f=v.locked&&!v.siliconUser,C=v.normallyLocked,b=S[v.externalPower]||S[0],g=S[v.chargingStatus]||S[0],y=v.powerChannels||[],B=v.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox,{deny:v.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:v.isOperating?"power-off":"times",content:v.isOperating?"On":"Off",selected:v.isOperating&&!f,color:v.isOperating?"":"bad",disabled:f,onClick:function(){function L(){return p("breaker")}return L}()}),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:v.chargeMode?"sync":"times",content:v.chargeMode?"Auto":"Off",selected:v.chargeMode,disabled:f,onClick:function(){function L(){return p("charge")}return L}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[y.map(function(L){var I=L.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:L.status>=2?"good":"bad",children:L.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(L.status===1||L.status===3),disabled:f,onClick:function(){function w(){return p("channel",I.auto)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&L.status===2,disabled:f,onClick:function(){function w(){return p("channel",I.on)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&L.status===0,disabled:f,onClick:function(){function w(){return p("channel",I.off)}return w}()})],4),children:[L.powerLoad," W"]},L.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:v.totalCharging?(0,e.createVNode)(1,"b",null,[v.totalLoad,(0,e.createTextVNode)(" W (+ "),v.totalCharging,(0,e.createTextVNode)(" W charging)")],0):(0,e.createVNode)(1,"b",null,[v.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!v.siliconUser&&(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function L(){return p("overload")}return L}()}),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:v.coverLocked?"lock":"unlock",content:v.coverLocked?"Engaged":"Disengaged",selected:v.coverLocked,disabled:f,onClick:function(){function L(){return p("cover")}return L}()})}),(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:v.nightshiftSetting===2,onClick:function(){function L(){return p("nightshift",{nightshift:2})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Automatic",selected:v.nightshiftSetting===1,onClick:function(){function L(){return p("nightshift",{nightshift:1})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Enabled",selected:v.nightshiftSetting===3,onClick:function(){function L(){return p("nightshift",{nightshift:3})}return L}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:v.emergencyLights?"Enabled":"Disabled",selected:v.emergencyLights,onClick:function(){function L(){return p("emergency_lighting")}return L}()})})]})})],4)},s=function(i,c){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..."})]})},l=function(i,c){var d=(0,a.useBackend)(c),p=d.data,v=d.act,f=(0,e.createComponentVNode)(2,t.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){function C(){return v("reboot")}return C}()});return p.locked&&!p.siliconUser&&(f=(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 ",p.failTime," seconds..."]}),(0,e.createComponentVNode)(2,t.Box,{mt:4,children:f})]})}},43227:function(x,r,n){"use strict";r.__esModule=!0,r.AccountsTerminal=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AccountsTerminal=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.id_inserted,p=c.id_card,v=c.access_level,f=c.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:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"eject":"sign-in-alt",fluid:!0,content:p,onClick:function(){function C(){return i("insert_card")}return C}()})})]})}),v>0&&(0,e.createComponentVNode)(2,V)]})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.creating_new_account,p=c.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:!d&&!p,icon:"home",onClick:function(){function v(){return i("view_accounts_list")}return v}(),children:"Home"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d,icon:"cog",onClick:function(){function v(){return i("create_account")}return v}(),children:"New Account"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{disabled:d,icon:"print",onClick:function(){function v(){return i("print")}return v}(),children:"Print"})]}),d&&(0,e.createComponentVNode)(2,k)||p&&(0,e.createComponentVNode)(2,S)||(0,e.createComponentVNode)(2,N)]})},k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=(0,a.useSharedState)(l,"holder",""),d=c[0],p=c[1],v=(0,a.useSharedState)(l,"money",""),f=v[0],C=v[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:d,fluid:!0,onInput:function(){function b(g,y){return p(y)}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,t.Input,{value:f,fluid:!0,onInput:function(){function b(g,y){return C(y)}return b}()})})]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!d||!f,mt:1,fluid:!0,icon:"plus",onClick:function(){function b(){return i("finalise_create_account",{holder_name:d,starting_funds:f})}return b}(),content:"Create"})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.access_level,p=c.station_account_number,v=c.account_number,f=c.owner_name,C=c.money,b=c.suspended,g=c.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 y(){return i("toggle_suspension")}return y}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Number",children:["#",v]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Holder",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Balance",children:[C,"\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:v===p,onClick:function(){function y(){return i("revoke_payroll")}return y}()})})})}),d>=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 y(){return i("add_funds")}return y}(),content:"Add Funds"}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function y(){return i("remove_funds")}return y}(),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(y,B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[y.date," ",y.time]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.target_name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[y.amount,"\u20AE"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:y.source_terminal})]},B)})]})})]})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"NanoTrasen Accounts",level:2,children:d.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.owner_name+p.suspended,color:p.suspended?"bad":null,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"#"+p.account_number,onClick:function(){function v(){return i("view_account_detail",{account_index:p.account_index})}return v}()})},p.account_index)})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"There are no accounts available."})})}},75598:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleList=r.AdminShuttleController=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.AdminShuttleController=function(){function N(){return(0,e.createComponentVNode)(2,m.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return N}(),k=r.ShuttleList=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.shuttles,d=i.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(p){return p.name})(c).map(function(p){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 v(){return u("adminobserve",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{m:0,content:"Fly",onClick:function(){function v(){return u("classicmove",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.current_location}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S(p.status)})]},p.ref)})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Overmap Ships",children:(0,e.createComponentVNode)(2,o.Table,{children:(0,a.sortBy)(function(p){var v;return((v=p.name)==null?void 0:v.toLowerCase())||p.name||p.ref})(d).map(function(p){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 v(){return u("adminobserve",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:"Control",onClick:function(){function v(){return u("overmap_control",{ref:p.ref})}return v}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:p.name})]},p.ref)})})})]})}return N}(),S=function(h){switch(h){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},36370:function(x,r,n){"use strict";r.__esModule=!0,r.AgentCard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AgentCard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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:l.map(function(i){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 c(){return h(i.name.toLowerCase().replace(/ /g,""))}return c}(),icon:"cog"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.value})]},i.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 i(){return h("electronic_warfare")}return i}()})})]})})}return V}()},53855:function(x,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},V=r.AiAirlock=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=m[l.power.main]||m[0],i=m[l.power.backup]||m[0],c=m[l.shock]||m[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:!l.power.main,content:"Disrupt",onClick:function(){function d(){return s("disrupt-main")}return d}()}),children:[l.power.main?"Online":"Offline"," ",(!l.wires.main_1||!l.wires.main_2)&&"[Wires have been cut!]"||l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){function d(){return s("disrupt-backup")}return d}()}),children:[l.power.backup?"Online":"Offline"," ",(!l.wires.backup_1||!l.wires.backup_2)&&"[Wires have been cut!]"||l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:c.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!(l.wires.shock&&l.shock===0),content:"Restore",onClick:function(){function d(){return s("shock-restore")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){function d(){return s("shock-temp")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock,content:"Permanent",onClick:function(){function d(){return s("shock-perm")}return d}()})],4),children:[l.shock===2?"Safe":"Electrified"," ",!l.wires.shock&&"[Wires have been cut!]"||l.shock_timeleft>0&&"["+l.shock_timeleft+"s]"||l.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:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){function d(){return s("idscan-toggle")}return d}()}),children:!l.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:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){function d(){return s("bolt-toggle")}return d}()}),children:!l.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:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){function d(){return s("light-toggle")}return d}()}),children:!l.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:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){function d(){return s("safe-toggle")}return d}()}),children:!l.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:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){function d(){return s("speed-toggle")}return d}()}),children:!l.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:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){function d(){return s("open-close")}return d}()}),children:!!(l.locked||l.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},16543:function(x,r,n){"use strict";r.__esModule=!0,r.AiRestorerContent=r.AiRestorer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AiRestorer=function(){function k(){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 k}(),V=r.AiRestorerContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.AI_present,i=l.error,c=l.name,d=l.laws,p=l.isDead,v=l.restoring,f=l.health,C=l.ejectable;return(0,e.createFragment)([i&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:i}),!!C&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:u?c:"----------",disabled:!u,onClick:function(){function b(){return s("PRG_eject")}return b}()}),!!u&&(0,e.createComponentVNode)(2,t.Section,{title:C?"System Status":c,buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,color:p?"bad":"good",children:p?"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:f,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!v&&(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:v,mt:1,onClick:function(){function b(){return s("PRG_beginReconstruction")}return b}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",level:2,children:d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{className:"candystripe",children:b},b)})})]})],0)}return k}()},40083:function(x,r,n){"use strict";r.__esModule=!0,r.AiSupermatter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(84288),V=r.AiSupermatter=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.data,i=u.integrity_percentage,c=u.ambient_temp,d=u.ambient_pressure,p=u.detonating,v=(0,e.createComponentVNode)(2,S);return p&&(v=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:500,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:v})})}return N}(),k=function(h,s){return(0,e.createComponentVNode)(2,m.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"})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.data,i=u.integrity_percentage,c=u.ambient_temp,d=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:i,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:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Environment Pressure",children:[d," kPa"]})]})})}},53314:function(x,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(11477),k=n(45902),S=n(92237),N=r.AirAlarm=function(){function f(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=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,k.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s),!L&&(0,e.createComponentVNode)(2,u)]})})}return f}(),h=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=(y.environment_data||[]).filter(function(w){return w.value>=.01}),L={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},I=L[y.danger_level]||L[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(w){var T=L[w.danger_level]||L[0];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,m.getGasLabel)(w.name),color:T.color,children:[(0,a.toFixed)(w.value,2),w.unit]},w.name)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Local status",color:I.color,children:I.localStatusText}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Area status",color:y.atmos_alarm||y.fire_alarm?"bad":"good",children:y.atmos_alarm&&"Atmosphere Alarm"||y.fire_alarm&&"Fire Alarm"||"Nominal"})],0)||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!y.emagged&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},s=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.target_temperature,I=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:I===1,content:"Off",onClick:function(){function w(){return y("rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{selected:I===2,content:"Auto",onClick:function(){function w(){return y("rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{selected:I===3,content:"On",onClick:function(){function w(){return y("rcon",{rcon:3})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Button,{content:L,onClick:function(){function w(){return y("temperature")}return w}()})})]})})},l={home:{title:"Air Controls",component:function(){function f(){return i}return f}()},vents:{title:"Vent Controls",component:function(){function f(){return c}return f}()},scrubbers:{title:"Scrubber Controls",component:function(){function f(){return d}return f}()},modes:{title:"Operating Mode",component:function(){function f(){return p}return f}()},thresholds:{title:"Alarm Thresholds",component:function(){function f(){return v}return f}()}},u=function(C,b){var g=(0,t.useLocalState)(b,"screen"),y=g[0],B=g[1],L=l[y]||l.home,I=L.component();return(0,e.createComponentVNode)(2,o.Section,{title:L.title,buttons:y&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return B()}return w}()}),children:(0,e.createComponentVNode)(2,I)})},i=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=(0,t.useLocalState)(b,"screen"),I=L[0],w=L[1],T=B.mode,M=B.atmos_alarm;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:M?"exclamation-triangle":"exclamation",color:M&&"caution",content:"Area Atmosphere Alarm",onClick:function(){function A(){return y(M?"reset":"alarm")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:T===3?"exclamation-triangle":"exclamation",color:T===3&&"danger",content:"Panic Siphon",onClick:function(){function A(){return y("mode",{mode:T===3?1:3})}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:2}),(0,e.createComponentVNode)(2,o.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){function A(){return w("vents")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){function A(){return w("scrubbers")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",content:"Operating Mode",onClick:function(){function A(){return w("modes")}return A}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1}),(0,e.createComponentVNode)(2,o.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){function A(){return w("thresholds")}return A}()})],4)},c=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=y.vents;return!B||B.length===0?"Nothing to show":B.map(function(L){return(0,e.createComponentVNode)(2,S.Vent,{vent:L},L.id_tag)})},d=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=y.scrubbers;return!B||B.length===0?"Nothing to show":B.map(function(L){return(0,e.createComponentVNode)(2,S.Scrubber,{scrubber:L},L.id_tag)})},p=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.modes;return!L||L.length===0?"Nothing to show":L.map(function(I){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:I.selected?"check-square-o":"square-o",selected:I.selected,color:I.selected&&I.danger&&"danger",content:I.name,onClick:function(){function w(){return y("mode",{mode:I.mode})}return w}()}),(0,e.createComponentVNode)(2,o.Box,{mt:1})],4,I.mode)})},v=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=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,L.map(function(I){return(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td","LabeledList__label",(0,e.createVNode)(1,"span","color-"+(0,m.getGasColor)(I.name),(0,m.getGasLabel)(I.name),0),2),I.settings.map(function(w){return(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{content:(0,a.toFixed)(w.selected,2),onClick:function(){function T(){return y("threshold",{env:w.env,var:w.val})}return T}()}),2,null,w.val)})],0,null,I.name)}),0)],4,{style:{width:"100%"}})}},85156:function(x,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(58734),a=n(89226),t=n(62188),o=n(42678),m=n(11790),V=n(11477),k=-1,S=1,N=r.AlertModal=function(){function l(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.autofocus,f=p.buttons,C=f===void 0?[]:f,b=p.large_buttons,g=p.message,y=g===void 0?"":g,B=p.timeout,L=p.title,I=(0,t.useLocalState)(i,"selected",0),w=I[0],T=I[1],M=115+(y.length>30?Math.ceil(y.length/4):0)+(y.length&&b?5:0),A=325+(C.length>2?55:0),R=function(){function O(_){w===0&&_===k?T(C.length-1):w===C.length-1&&_===S?T(0):T(w+_)}return O}();return(0,e.createComponentVNode)(2,V.Window,{height:M,title:L,width:A,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function O(_){var P=window.event?_.which:_.keyCode;P===o.KEY_SPACE||P===o.KEY_ENTER?d("choose",{choice:C[w]}):P===o.KEY_ESCAPE?d("cancel"):P===o.KEY_LEFT?(_.preventDefault(),R(k)):(P===o.KEY_TAB||P===o.KEY_RIGHT)&&(_.preventDefault(),R(S))}return O}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:y})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,h,{selected:w})]})]})})})]})}return l}(),h=function(u,i){var c=(0,t.useBackend)(i),d=c.data,p=d.buttons,v=p===void 0?[]:p,f=d.large_buttons,C=d.swapped_buttons,b=u.selected;return(0,e.createComponentVNode)(2,m.Flex,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,y){return f&&v.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s,{button:g,id:y.toString(),selected:b===y})},y):(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,s,{button:g,id:y.toString(),selected:b===y})},y)})})},s=function(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.large_buttons,f=u.button,C=u.selected,b=f.length>7?f.length:7;return(0,e.createComponentVNode)(2,m.Button,{fluid:!!v,height:!!v&&2,onClick:function(){function g(){return d("choose",{choice:f})}return g}(),m:.5,pl:2,pr:2,pt:v?.33:0,selected:C,textAlign:"center",width:!v&&b,children:v?f.toUpperCase():f})}},83747:function(x,r,n){"use strict";r.__esModule=!0,r.AlgaeFarm=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.AlgaeFarm=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.usePower,i=l.materials,c=l.last_flow_rate,d=l.last_power_draw,p=l.inputDir,v=l.outputDir,f=l.input,C=l.output,b=l.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:[c," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw",children:[d," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:1}),i.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.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 y(){return s("ejectMaterial",{mat:g.name})}return y}()})]},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 ("+p+")",children:f?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[f.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,children:[f.percent,"% (",f.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 ("+v+")",children:C?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}return k}()},56258: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(62188),m=n(11790),V=n(11477),k=r.AppearanceChanger=function(){function p(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.config,y=C.data,B=y.name,L=y.specimen,I=y.gender,w=y.gender_id,T=y.hair_style,M=y.facial_hair_style,A=y.ear_style,R=y.tail_style,O=y.wing_style,_=y.markings,P=y.change_race,D=y.change_gender,z=y.change_eye_color,U=y.change_skin_tone,W=y.change_skin_color,K=y.change_hair_color,H=y.change_facial_hair_color,Y=y.change_hair,J=y.change_facial_hair,q=y.mapRef,oe=g.title,ae=z||U||W||K||H,le=-1;P?le=0:D?le=1:ae?le=2:Y?le=4:J&&(le=5);var he=(0,o.useLocalState)(f,"tabIndex",le),me=he[0],Be=he[1];return(0,e.createComponentVNode)(2,V.Window,{width:700,height:650,title:(0,t.decodeHtmlEntities)(oe),children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,m.Section,{title:"Reflection",children:(0,e.createComponentVNode)(2,m.Flex,{children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Species",color:P?null:"grey",children:L}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Biological Sex",color:D?null:"grey",children:I?(0,t.capitalize)(I):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Gender Identity",color:ae?null:"grey",children:w?(0,t.capitalize)(w):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Hair Style",color:Y?null:"grey",children:T?(0,t.capitalize)(T):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Facial Hair Style",color:J?null:"grey",children:M?(0,t.capitalize)(M):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Ear Style",color:Y?null:"grey",children:A?(0,t.capitalize)(A):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Tail Style",color:Y?null:"grey",children:R?(0,t.capitalize)(R):"Not Set"}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wing Style",color:Y?null:"grey",children:O?(0,t.capitalize)(O):"Not Set"})]})}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.ByondUi,{style:{width:"256px",height:"256px"},params:{id:q,type:"map"}})})]})}),(0,e.createComponentVNode)(2,m.Tabs,{children:[P?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===0,onClick:function(){function ce(){return Be(0)}return ce}(),children:"Race"}):null,D?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===1,onClick:function(){function ce(){return Be(1)}return ce}(),children:"Gender & Sex"}):null,ae?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===2,onClick:function(){function ce(){return Be(2)}return ce}(),children:"Colors"}):null,Y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===3,onClick:function(){function ce(){return Be(3)}return ce}(),children:"Hair"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===5,onClick:function(){function ce(){return Be(5)}return ce}(),children:"Ear"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===6,onClick:function(){function ce(){return Be(6)}return ce}(),children:"Tail"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===7,onClick:function(){function ce(){return Be(7)}return ce}(),children:"Wing"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===8,onClick:function(){function ce(){return Be(8)}return ce}(),children:"Markings"})],4):null,J?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:me===4,onClick:function(){function ce(){return Be(4)}return ce}(),children:"Facial Hair"}):null]}),(0,e.createComponentVNode)(2,m.Box,{height:"43%",children:[P&&me===0?(0,e.createComponentVNode)(2,S):null,D&&me===1?(0,e.createComponentVNode)(2,N):null,ae&&me===2?(0,e.createComponentVNode)(2,h):null,Y&&me===3?(0,e.createComponentVNode)(2,s):null,J&&me===4?(0,e.createComponentVNode)(2,l):null,Y&&me===5?(0,e.createComponentVNode)(2,u):null,Y&&me===6?(0,e.createComponentVNode)(2,i):null,Y&&me===7?(0,e.createComponentVNode)(2,c):null,Y&&me===8?(0,e.createComponentVNode)(2,d):null]})]})})}return p}(),S=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.species,B=g.specimen,L=(0,a.sortBy)(function(I){return I.specimen})(y||[]);return(0,e.createComponentVNode)(2,m.Section,{title:"Species",fill:!0,scrollable:!0,children:L.map(function(I){return(0,e.createComponentVNode)(2,m.Button,{content:I.specimen,selected:B===I.specimen,onClick:function(){function w(){return b("race",{race:I.specimen})}return w}()},I.specimen)})})},N=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.gender,B=g.gender_id,L=g.genders,I=g.id_genders;return(0,e.createComponentVNode)(2,m.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Biological Sex",children:L.map(function(w){return(0,e.createComponentVNode)(2,m.Button,{selected:w.gender_key===y,content:w.gender_name,onClick:function(){function T(){return b("gender",{gender:w.gender_key})}return T}()},w.gender_key)})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Gender Identity",children:I.map(function(w){return(0,e.createComponentVNode)(2,m.Button,{selected:w.gender_key===B,content:w.gender_name,onClick:function(){function T(){return b("gender_id",{gender_id:w.gender_key})}return T}()},w.gender_key)})})]})})},h=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.change_eye_color,B=g.change_skin_tone,L=g.change_skin_color,I=g.change_hair_color,w=g.change_facial_hair_color,T=g.eye_color,M=g.skin_color,A=g.hair_color,R=g.facial_hair_color,O=g.ears_color,_=g.ears2_color,P=g.tail_color,D=g.tail2_color,z=g.wing_color,U=g.wing2_color;return(0,e.createComponentVNode)(2,m.Section,{title:"Colors",fill:!0,scrollable:!0,children:[y?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:T,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Eye Color",onClick:function(){function W(){return b("eye_color")}return W}()})]}):null,B?(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{content:"Change Skin Tone",onClick:function(){function W(){return b("skin_tone")}return W}()})}):null,L?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:M,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Skin Color",onClick:function(){function W(){return b("skin_color")}return W}()})]}):null,I?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:A,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Hair Color",onClick:function(){function W(){return b("hair_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:O,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Ears Color",onClick:function(){function W(){return b("ears_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:_,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Ears Color",onClick:function(){function W(){return b("ears2_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:P,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Tail Color",onClick:function(){function W(){return b("tail_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:D,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Tail Color",onClick:function(){function W(){return b("tail2_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:z,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Wing Color",onClick:function(){function W(){return b("wing_color")}return W}()})]}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:U,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Secondary Wing Color",onClick:function(){function W(){return b("wing2_color")}return W}()})]})],4):null,w?(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:R,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Facial Hair Color",onClick:function(){function W(){return b("facial_hair_color")}return W}()})]}):null]})},s=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.hair_style,B=g.hair_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Hair",fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("hair",{hair:L.hairstyle})}return I}(),selected:L.hairstyle===y,content:L.hairstyle},L.hairstyle)})})},l=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.facial_hair_style,B=g.facial_hair_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("facial_hair",{facial_hair:L.facialhairstyle})}return I}(),selected:L.facialhairstyle===y,content:L.facialhairstyle},L.facialhairstyle)})})},u=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.ear_style,B=g.ear_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("ear",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("ear",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},i=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.tail_style,B=g.tail_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("tail",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("tail",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},c=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.wing_style,B=g.wing_styles;return(0,e.createComponentVNode)(2,m.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function L(){return b("wing",{clear:!0})}return L}(),selected:y===null,content:"-- Not Set --"}),(0,a.sortBy)(function(L){return L.name.toLowerCase()})(B).map(function(L){return(0,e.createComponentVNode)(2,m.Button,{onClick:function(){function I(){return b("wing",{ref:L.instance})}return I}(),selected:L.name===y,content:L.name},L.instance)})]})},d=function(v,f){var C=(0,o.useBackend)(f),b=C.act,g=C.data,y=g.markings;return(0,e.createComponentVNode)(2,m.Section,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{content:"Add Marking",onClick:function(){function B(){return b("marking",{todo:1,name:"na"})}return B}()})}),(0,e.createComponentVNode)(2,m.LabeledList,{children:y.map(function(B){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:B.marking_name,children:[(0,e.createComponentVNode)(2,m.ColorBox,{color:B.marking_color,mr:1}),(0,e.createComponentVNode)(2,m.Button,{content:"Change Color",onClick:function(){function L(){return b("marking",{todo:4,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"-",onClick:function(){function L(){return b("marking",{todo:0,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Move down",onClick:function(){function L(){return b("marking",{todo:3,name:B.marking_name})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Move up",onClick:function(){function L(){return b("marking",{todo:2,name:B.marking_name})}return L}()})]},B.marking_name)})})]})}},95587:function(x,r,n){"use strict";r.__esModule=!0,r.ArcadeBattle=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ArcadeBattle=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.name,u=s.temp,i=s.enemyAction,c=s.enemyName,d=s.playerHP,p=s.playerMP,v=s.enemyHP,f=s.enemyMP,C=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:c,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:!C&&i})]}),(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:d,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[d,"HP"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[p,"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:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),C&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){function b(){return h("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 h("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 h("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 h("charge")}return b}(),content:"Recharge!"})})]})]})})})}return V}()},56127:function(x,r,n){"use strict";r.__esModule=!0,r.AreaScrubberControl=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=n(40946),V=r.AreaScrubberControl=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=(0,t.useLocalState)(h,"showArea",!1),c=i[0],d=i[1],p=u.scrubbers;return p?(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 v(){return l("scan")}return v}()})}),(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:c,onClick:function(){function v(){return d(!c)}return v}()})}),(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 v(){return l("allon")}return v}()})}),(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 v(){return l("alloff")}return v}()})})]}),(0,e.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:p.map(function(v){return(0,e.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"32%",children:(0,e.createComponentVNode)(2,k,{scrubber:v,showArea:c})},v.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 v(){return l("scan")}return v}()})]})}return S}(),k=function(N,h){var s=(0,t.useBackend)(h),l=s.act,u=N.scrubber,i=N.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 c(){return l("toggle",{id:u.id})}return c}()}),(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"]}),i&&(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Area",children:(0,m.toTitleCase)(u.area)})]})]})}},59958:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyInfrared=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AssemblyInfrared=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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:l,onClick:function(){function i(){return h("state")}return i}(),children:l?"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 i(){return h("visible")}return i}(),children:u?"Able to be seen":"Invisible"})})]})})})})}return V}()},43454:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyProx=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.AssemblyProx=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.timing,c=u.time,d=u.range,p=u.maxRange,v=u.scanning;return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.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:i,onClick:function(){function f(){return l("timing")}return f}(),children:i?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(){function f(C){return(0,V.formatTime)((0,a.round)(C))}return f}(),onDrag:function(){function f(C,b){return l("set_time",{time:b})}return f}()})})})}),(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:d,maxValue:p,onDrag:function(){function f(C,b){return l("range",{range:b})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Armed",children:[(0,e.createComponentVNode)(2,o.Button,{mr:1,icon:v?"lock":"lock-open",selected:v,onClick:function(){function f(){return l("scanning")}return f}(),children:v?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}return S}()},99152:function(x,r,n){"use strict";r.__esModule=!0,r.AssemblyTimer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.AssemblyTimer=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.timing,c=u.time;return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.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:i,onClick:function(){function d(){return l("timing")}return d}(),children:i?"Counting Down":"Disabled"}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(){function d(p){return(0,V.formatTime)((0,a.round)(p))}return d}(),onDrag:function(){function d(p,v){return l("set_time",{time:v})}return d}()})})})})})})}return S}()},2606:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosAlertConsole=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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,[l.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),l.map(function(i){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.name,color:"bad",onClick:function(){function c(){return h("clear",{ref:i.ref})}return c}()}),2,null,i.name)}),u.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),u.map(function(i){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.name,color:"average",onClick:function(){function c(){return h("clear",{ref:i.ref})}return c}()}),2,null,i.name)})],0)})})})}return V}()},49907:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosControlContent=r.AtmosControl=void 0;var e=n(58734),a=n(45445),t=n(11477),o=n(11790),m=n(62188),V=n(66905),k=(0,V.createLogger)("fuck"),S=r.AtmosControl=function(){function h(s,l){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,N)})})}return h}(),N=r.AtmosControlContent=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=u.config,p=(0,a.sortBy)(function(L){return L.name})(c.alarms||[]),v=(0,m.useLocalState)(l,"tabIndex",0),f=v[0],C=v[1],b=(0,m.useLocalState)(l,"zoom",1),g=b[0],y=b[1],B;return f===0?B=(0,e.createComponentVNode)(2,o.Section,{title:"Alarms",children:p.map(function(L){return(0,e.createComponentVNode)(2,o.Button,{content:L.name,color:L.danger===2?"bad":L.danger===1?"average":"",onClick:function(){function I(){return i("alarm",{alarm:L.ref})}return I}()},L.name)})}):f===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 L(I){return y(I)}return L}(),children:p.filter(function(L){return~~L.z===~~d.mapZLevel}).map(function(L){return(0,e.createComponentVNode)(2,o.NanoMap.Marker,{x:L.x,y:L.y,zoom:g,icon:"bell",tooltip:L.name,color:L.danger?"red":"green",onClick:function(){function I(){return i("alarm",{alarm:L.ref})}return I}()},L.ref)})})})),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===0,onClick:function(){function L(){return C(0)}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function L(){return C(1)}return L}(),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 h}()},15555:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosFilter=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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 h("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(i){return i+" 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(i,c){return h("rate",{rate:c})}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 h("rate",{rate:"max"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.selected,content:u.name,onClick:function(){function i(){return h("filter",{filterset:u.f_type})}return i}()},u.name)})})]})})})})}return V}()},41194:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.AtmosMixer=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.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 l(){return h("power")}return l}()})}),(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 l(u,i){return h("pressure",{pressure:i})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"plus",content:"Max",disabled:s.set_pressure===s.max_pressure,onClick:function(){function l(){return h("pressure",{pressure:"max"})}return l}()})]}),(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 l(u,i){return h("node1",{concentration:i})}return l}()})}),(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 l(u,i){return h("node2",{concentration:i})}return l}()})})]})})})})}return V}()},68162: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(62188),m=n(11790),V=n(11477),k=n(88662),S=n(40946),N=function(l,u,i){if(i===void 0&&(i=1),l.requirements===null)return!0;for(var c=Object.keys(l.requirements),d=function(){var b=f[v],g=u.find(function(y){return y.name===b});if(!g)return 0;if(g.amount=0)&&(d[v]=i[v]);return d}var S={Alphabetical:function(){function i(c,d){return c-d}return i}(),"By availability":function(){function i(c,d){return-(c.affordable-d.affordable)}return i}(),"By price":function(){function i(c,d){return c.price-d.price}return i}()},N=r.Biogenerator=function(){function i(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:f.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:[f.points," points available.",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"blender",onClick:function(){function C(){return v("activate")}return C}(),children:"Activate"}),(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",disabled:!f.beaker,onClick:function(){function C(){return v("detach")}return C}(),children:"Eject Beaker"})]}),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,h)],4)})})}return i}(),h=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.points,b=f.items,g=(0,t.useLocalState)(d,"search",""),y=g[0],B=g[1],L=(0,t.useLocalState)(d,"sort","Alphabetical"),I=L[0],w=L[1],T=(0,t.useLocalState)(d,"descending",!1),M=T[0],A=T[1],R=(0,a.createSearch)(y,function(P){return P[0]}),O=!1,_=Object.entries(b).map(function(P,D){var z=Object.entries(P[1]).filter(R).map(function(U){return U[1].affordable=C>=U[1].price/f.build_eff,U[1]}).sort(S[I]);if(z.length!==0)return M&&(z=z.reverse()),O=!0,(0,e.createComponentVNode)(2,u,{title:P[0],items:z},P[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:O?_:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(c,d){var p=(0,t.useLocalState)(d,"search",""),v=p[0],f=p[1],C=(0,t.useLocalState)(d,"sort",""),b=C[0],g=C[1],y=(0,t.useLocalState)(d,"descending",!1),B=y[0],L=y[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 I(w,T){return f(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",lineHeight:"19px",onSelected:function(){function I(w){return g(w)}return I}()})}),(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 I(){return L(!B)}return I}()})})]})})},l=function(c,d){return!(!c.affordable||c.reagent&&!d.beaker)},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=c.title,b=c.items,g=k(c,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:b.map(function(y){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:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!l(y,f),content:(y.price/f.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){function B(){return v("purchase",{cat:C,name:y.name})}return B}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},y.name)})})))}},66610:function(x,r,n){"use strict";r.__esModule=!0,r.BodyDesigner=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.BodyDesigner=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.menu,C=v.disk,b=v.diskStored,g=v.activeBodyRecord,y=l[f];return(0,e.createComponentVNode)(2,m.Window,{width:400,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[C?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Save To Disk",onClick:function(){function B(){return p("savetodisk")}return B}(),disabled:!g}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",content:"Load From Disk",onClick:function(){function B(){return p("loadfromdisk")}return B}(),disabled:!b}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function B(){return p("ejectdisk")}return B}()})]}):null,y]})})}return u}(),k=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.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 f(){return p("menu",{menu:"Body Records"})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){function f(){return p("menu",{menu:"Stock Records"})}return f}()})]})},S=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.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 C(){return p("menu",{menu:"Main"})}return C}()}),children:f.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:C.name,onClick:function(){function b(){return p("view_brec",{view_brec:C.recref})}return b}()},C.name)})})},N=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.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 C(){return p("menu",{menu:"Main"})}return C}()}),children:f.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",content:C,onClick:function(){function b(){return p("view_stock_brec",{view_stock_brec:C})}return b}()},C)})})},h=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.activeBodyRecord,C=v.mapRef;return f?(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 p("menu",{menu:"Main"})}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:f.real_name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:f.speciesname}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:(0,a.capitalize)(f.gender),onClick:function(){function b(){return p("href_conversion",{target_href:"bio_gender",target_value:1})}return b}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:f.synthetic}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:[f.locked,(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!f.booc,onClick:function(){function b(){return p("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:C,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:f.scale,onClick:function(){function b(){return p("href_conversion",{target_href:"size_multiplier",target_value:1})}return b}()})}),Object.keys(f.styles).map(function(b){var g=f.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 y(){return p("href_conversion",{target_href:g.styleHref,target_value:1})}return y}()}):null,g.colorHref?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:g.color,onClick:function(){function y(){return p("href_conversion",{target_href:g.colorHref,target_value:1})}return y}()}),(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 y(){return p("href_conversion",{target_href:g.colorHref2,target_value:1})}return y}()}),(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 p("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(f.markings).map(function(b){var g=f.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 y(){return p("href_conversion",{target_href:"marking_remove",target_value:b})}return y}()})}),(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 y(){return p("href_conversion",{target_href:"marking_color",target_value:b})}return y}()})})]})},b)})})]})]})})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR: Record Not Found!"})},s=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.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 C(){return p("menu",{menu:"Specific Record"})}return C}()}),style:{"word-break":"break-all"},children:f&&f.booc||"ERROR: Body record not found!"})},l={Main:(0,e.createComponentVNode)(2,k),"Body Records":(0,e.createComponentVNode)(2,S),"Stock Records":(0,e.createComponentVNode)(2,N),"Specific Record":(0,e.createComponentVNode)(2,h),"OOC Notes":(0,e.createComponentVNode)(2,s)}},26393:function(x,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["hasBorer","bad",function(y){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(y){return"Viral pathogen detected in blood stream."}],["blind","average",function(y){return"Cataracts detected."}],["colourblind","average",function(y){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(y){return"Retinal misalignment detected."}],["humanPrey","average",function(y){return"Foreign Humanoid(s) detected: "+y.humanPrey}],["livingPrey","average",function(y){return"Foreign Creature(s) detected: "+y.livingPrey}],["objectPrey","average",function(y){return"Foreign Object(s) detected: "+y.objectPrey}]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],N={average:[.25,.5],bad:[.5,1/0]},h=function(B,L){for(var I=[],w=0;w0?B.reduce(function(L,I){return L===null?I:(0,e.createFragment)([L,!!I&&(0,e.createComponentVNode)(2,o.Box,{children:I})],0)}):null},l=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},u=r.BodyScanner=function(){function y(B,L){var I=(0,t.useBackend)(L),w=I.data,T=w.occupied,M=w.occupant,A=M===void 0?{}:M,R=T?(0,e.createComponentVNode)(2,i,{occupant:A}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,m.Window,{width:690,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:R})})}return y}(),i=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,c,{occupant:L}),(0,e.createComponentVNode)(2,d,{occupant:L}),(0,e.createComponentVNode)(2,p,{occupant:L}),(0,e.createComponentVNode)(2,v,{occupant:L}),(0,e.createComponentVNode)(2,C,{organs:L.extOrgan}),(0,e.createComponentVNode)(2,b,{organs:L.intOrgan})]})},c=function(B,L){var I=(0,t.useBackend)(L),w=I.act,T=I.data,M=T.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 A(){return w("ejectify")}return A}(),children:"Eject"}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function A(){return w("print_p")}return A}(),children:"Print Report"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:M.maxHealth,value:M.health/M.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[M.stat][0],children:V[M.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Volume",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.blood.volume,0)})," ","units\xA0(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(M.blood.percent,0)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Weight",children:(0,a.round)(T.occupant.weight)+"lbs, "+(0,a.round)(T.occupant.weight/2.20463)+"kgs"})]})})},d=function(B){var L=B.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)},p=function(B){var L=B.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:k.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."})})},v=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:h(S,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,f,{value:L[I[1]],marginBottom:T0&&"0.5rem",value:L.totalLoss/100,ranges:N,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:s([L.internalBleeding&&"Internal bleeding",!!L.status.bleeding&&"External bleeding",L.lungRuptured&&"Ruptured lung",L.destroyed&&"Destroyed",!!L.status.broken&&L.status.broken,l(L.germ_level),!!L.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[s([!!L.status.splinted&&"Splinted",!!L.status.robotic&&"Robotic",!!L.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})]),s(L.implants.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},I)})]})})},b=function(B){return B.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"})]}),B.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:N,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:s([l(L.germ_level),!!L.inflamed&&"Appendicitis detected."])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:s([L.robotic===1&&"Robotic",L.robotic===2&&"Assisted",!!L.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"})])})]})]},I)})]})})},g=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."]})})})}},12043:function(x,r,n){"use strict";r.__esModule=!0,r.BombTester=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);function m(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,V(N,h)}function V(N,h){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,u){return l.__proto__=u,l}return s}(),V(N,h)}var k=r.BombTester=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.simulating,d=i.mode,p=i.tank1,v=i.tank1ref,f=i.tank2,C=i.tank2ref,b=i.canister,g=i.sim_canister_output;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c&&(0,e.createComponentVNode)(2,S)||(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 y(){return u("set_mode",{mode:1})}return y}(),selected:d===1,children:"Single Tank"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("set_mode",{mode:2})}return y}(),selected:d===2,children:"Transfer Valve"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("set_mode",{mode:3})}return y}(),selected:d===3,children:"Canister"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Slot",children:p&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("remove_tank",{ref:v})}return y}(),icon:"eject",children:p})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("add_tank",{slot:1})}return y}(),icon:"upload",children:"Insert Tank"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Slot",children:f&&(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("remove_tank",{ref:C})}return y}(),icon:"eject",children:f})||(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function y(){return u("add_tank",{slot:2})}return y}(),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 y(){return u("canister_scan")}return y}(),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 y(B,L){return u("set_can_pressure",{pressure:L})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){function y(){return u("start_sim")}return y}(),fluid:!0,children:"Begin Simulation"})]})})})}return N}(),S=function(N){m(h,N);function h(l){var u;u=N.call(this,l)||this;var i=340,c=205,d=2,p=Math.random()>.5,v=Math.random()>.5;return u.state={x:p?i:0,y:v?c:0,reverseX:!1,reverseY:!1},u.process=setInterval(function(){u.setState(function(f){var C=Object.assign({},f);return C.reverseX?C.x-d<-5?(C.reverseX=!1,C.x+=d):C.x-=d:C.x+d>i?(C.reverseX=!0,C.x-=d):C.x+=d,C.reverseY?C.y-d<-20?(C.reverseY=!1,C.y+=d):C.y-=d:C.y+d>c?(C.reverseY=!0,C.y-=d):C.y+=d,C})},1),u}var s=h.prototype;return s.componentWillUnmount=function(){function l(){clearInterval(this.process)}return l}(),s.render=function(){function l(){var u=this.state,i=u.x,c=u.y,d={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:d,name:"bomb",size:10,color:"red"})})})}return l}(),h}(e.Component)},54180:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyEditor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.BotanyEditor=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.activity,u=s.degradation,i=s.disk,c=s.sourceName,d=s.locus,p=s.loaded;return l?(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:i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene Decay",children:[u,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locus",children:d})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function v(){return h("eject_disk")}return v}(),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:p&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:p})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function v(){return h("apply_gene")}return v}(),children:"Apply Gene Mods"}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"eject",onClick:function(){function v(){return h("eject_packet")}return v}(),children:"Eject Target"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}return V}()},89341:function(x,r,n){"use strict";r.__esModule=!0,r.BotanyIsolator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.BotanyIsolator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.geneMasks,u=s.activity,i=s.degradation,c=s.disk,d=s.loaded,p=s.hasGenetics,v=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:p&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Source",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gene decay",children:[i,"%"]}),c&&l.length&&l.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.mask,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:"download",onClick:function(){function C(){return h("get_gene",{get_gene:f.tag})}return C}(),children:"Extract"})},f.mask)})||null]}),c&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_disk")}return f}(),children:"Eject Loaded Disk"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function f(){return h("clear_buffer")}return f}(),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."}),c&&(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_disk")}return f}(),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:d&&(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:d})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"cog",onClick:function(){function f(){return h("scan_genome")}return f}(),children:"Process Genome"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function f(){return h("eject_packet")}return f}(),children:"Eject Packet"})]})||(0,e.createComponentVNode)(2,t.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}return V}()},42903:function(x,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.BrigTimer=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:138,resizable:!0,children:(0,e.createComponentVNode)(2,m.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 i(){return l(u.timing?"stop":"start")}return i}()}),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 i(){return l("flash")}return i}()})||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 i(c){return(0,V.formatTime)((0,a.round)(c))}return i}(),onDrag:function(){function i(c,d){return l("time",{time:d})}return i}()}),(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 i(){return l("preset",{preset:"short"})}return i}()})}),(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 i(){return l("preset",{preset:"medium"})}return i}()})}),(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 i(){return l("preset",{preset:"long"})}return i}()})})]})]})})})}return S}()},48902: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),m=n(40946),V=n(62188),k=n(11790),S=n(11477),N=r.prevNextCamera=function(){function u(i,c){var d,p;if(!c)return[];var v=i.findIndex(function(f){return f.name===c.name});return[(d=i[v-1])==null?void 0:d.name,(p=i[v+1])==null?void 0:p.name]}return u}(),h=r.selectCameras=function(){function u(i,c,d){c===void 0&&(c=""),d===void 0&&(d="");var p=(0,m.createSearch)(c,function(v){return v.name});return(0,t.flow)([(0,a.filter)(function(v){return v==null?void 0:v.name}),c&&(0,a.filter)(p),d&&(0,a.filter)(function(v){return v.networks.includes(d)}),(0,a.sortBy)(function(v){return v.name})])(i)}return u}(),s=r.CameraConsole=function(){function u(i,c){var d=(0,V.useBackend)(c),p=d.act,v=d.data,f=v.mapRef,C=v.activeCamera,b=h(v.cameras),g=N(b,C),y=g[0],B=g[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,l)}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!y,onClick:function(){function L(){return p("switch_camera",{name:y})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!B,onClick:function(){function L(){return p("switch_camera",{name:B})}return L}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",onClick:function(){function L(){return p("pan",{dir:8})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-up",onClick:function(){function L(){return p("pan",{dir:1})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",onClick:function(){function L(){return p("pan",{dir:4})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-down",onClick:function(){function L(){return p("pan",{dir:2})}return L}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:f,type:"map"}})],4)]})}return u}(),l=r.CameraConsoleContent=function(){function u(i,c){var d=(0,V.useBackend)(c),p=d.act,v=d.data,f=(0,V.useLocalState)(c,"searchText",""),C=f[0],b=f[1],g=(0,V.useLocalState)(c,"networkFilter",""),y=g[0],B=g[1],L=v.activeCamera,I=v.allNetworks;I.sort();var w=h(v.cameras,C,y);return(0,e.createComponentVNode)(2,k.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,k.Flex.Item,{children:(0,e.createComponentVNode)(2,k.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(){function T(M,A){return b(A)}return T}()})}),(0,e.createComponentVNode)(2,k.Flex.Item,{children:(0,e.createComponentVNode)(2,k.Dropdown,{mb:1,width:"177px",displayText:y||"No Filter",options:I,onSelected:function(){function T(M){return B(M)}return T}()})}),(0,e.createComponentVNode)(2,k.Flex.Item,{height:"100%",children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:w.map(function(T){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&T.name===L.name&&"Button--selected"]),T.name,0,{title:T.name,onClick:function(){function M(){return p("switch_camera",{name:T.name})}return M}()},T.name)})})})]})}return u}()},63295:function(x,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(43820),V=n(11477),k=r.Canister=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.connected,c=u.can_relabel,d=u.pressure,p=u.releasePressure,v=u.defaultReleasePressure,f=u.minReleasePressure,C=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:!c,content:"Relabel",onClick:function(){function y(){return l("relabel")}return y}()}),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:d,format:function(){function y(B){return B<1e4?(0,a.toFixed)(B)+" kPa":(0,m.formatSiUnit)(B*1e3,1,"Pa")}return y}()})}),(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:p,unit:"kPa",minValue:f,maxValue:C,stepPixelSize:1,onDrag:function(){function y(B,L){return l("pressure",{pressure:L})}return y}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){function y(){return l("pressure",{pressure:C})}return y}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){function y(){return l("pressure",{pressure:v})}return y}()})]})}),(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 y(){return l("valve")}return y}()})}),(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:i?"plug":"times",color:i?"good":"bad"}),(0,e.createComponentVNode)(2,o.Tooltip,{content:i?"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 y(){return l("eject")}return y}()}),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 S}()},45864:function(x,r,n){"use strict";r.__esModule=!0,r.Canvas=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=["res","value","dotsize"];function V(u,i){if(u==null)return{};var c={},d=Object.keys(u),p,v;for(v=0;v=0)&&(c[p]=u[p]);return c}function k(u,i){u.prototype=Object.create(i.prototype),u.prototype.constructor=u,S(u,i)}function S(u,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(d,p){return d.__proto__=p,d}return c}(),S(u,i)}var N=24,h=function(u){k(i,u);function i(d){var p;return p=u.call(this,d)||this,p.canvasRef=(0,e.createRef)(),p.onCVClick=d.onCanvasClick,p}var c=i.prototype;return c.componentDidMount=function(){function d(){this.drawCanvas(this.props)}return d}(),c.componentDidUpdate=function(){function d(){this.drawCanvas(this.props)}return d}(),c.drawCanvas=function(){function d(p){var v=this.canvasRef.current.getContext("2d"),f=p.value,C=f.length;if(C){var b=f[0].length,g=Math.round(this.canvasRef.current.width/C),y=Math.round(this.canvasRef.current.height/b);v.save(),v.scale(g,y);for(var B=0;B=0)&&(c[p]=u[p]);return c}var S={Alphabetical:function(){function u(i,c){return i-c}return u}(),"By availability":function(){function u(i,c){return-(i.affordable-c.affordable)}return u}(),"By price":function(){function u(i,c){return i.price-c.price}return u}()},N=r.CasinoPrizeDispenserCh=function(){function u(){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.createFragment)([(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)],4)})})}return u}(),h=function(i,c){var d=(0,t.useLocalState)(c,"search",""),p=d[0],v=d[1],f=(0,t.useLocalState)(c,"sort",""),C=f[0],b=f[1],g=(0,t.useLocalState)(c,"descending",!1),y=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 L(I,w){return v(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",lineHeight:"19px",onSelected:function(){function L(I){return b(I)}return L}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:y?"arrow-down":"arrow-up",height:"19px",tooltip:y?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function L(){return B(!y)}return L}()})})]})})},s=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.points,C=v.items,b=(0,t.useLocalState)(c,"search",""),g=b[0],y=b[1],B=(0,t.useLocalState)(c,"sort","Alphabetical"),L=B[0],I=B[1],w=(0,t.useLocalState)(c,"descending",!1),T=w[0],M=w[1],A=(0,a.createSearch)(g,function(_){return _[0]}),R=!1,O=Object.entries(C).map(function(_,P){var D=Object.entries(_[1]).filter(A).map(function(z){return z[1].affordable=f>=z[1].price,z[1]}).sort(S[L]);if(D.length!==0)return T&&(D=D.reverse()),R=!0,(0,e.createComponentVNode)(2,l,{title:_[0],items:D},_[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!"})})})},l=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.title,C=i.items,b=k(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:f},b,{children:C.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 y(){return p("purchase",{cat:f,name:g.name,price:g.price,restriction:g.restriction})}return y}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},g.name)})})))}},15403:function(x,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(58734),a=n(59641),t=n(62188),o=n(11790),m=n(11477),V=n(37655),k=N(n(90928)),S=N(n(47366));function N(v){return v&&v.__esModule?v:{default:v}}function h(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return f};var v,f={},C=Object.prototype,b=C.hasOwnProperty,g=Object.defineProperty||function(ce,te,ee){ce[te]=ee.value},y=typeof Symbol=="function"?Symbol:{},B=y.iterator||"@@iterator",L=y.asyncIterator||"@@asyncIterator",I=y.toStringTag||"@@toStringTag";function w(ce,te,ee){return Object.defineProperty(ce,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}),ce[te]}try{w({},"")}catch(ce){w=function(ee,ie,Ce){return ee[ie]=Ce}}function T(ce,te,ee,ie){var Ce=te&&te.prototype instanceof D?te:D,Se=Object.create(Ce.prototype),we=new me(ie||[]);return g(Se,"_invoke",{value:oe(ce,ee,we)}),Se}function M(ce,te,ee){try{return{type:"normal",arg:ce.call(te,ee)}}catch(ie){return{type:"throw",arg:ie}}}f.wrap=T;var A="suspendedStart",R="suspendedYield",O="executing",_="completed",P={};function D(){}function z(){}function U(){}var W={};w(W,B,function(){return this});var K=Object.getPrototypeOf,H=K&&K(K(Be([])));H&&H!==C&&b.call(H,B)&&(W=H);var Y=U.prototype=D.prototype=Object.create(W);function J(ce){["next","throw","return"].forEach(function(te){w(ce,te,function(ee){return this._invoke(te,ee)})})}function q(ce,te){function ee(Ce,Se,we,pe){var E=M(ce[Ce],ce,Se);if(E.type!=="throw"){var Z=E.arg,re=Z.value;return re&&typeof re=="object"&&b.call(re,"__await")?te.resolve(re.__await).then(function(X){ee("next",X,we,pe)},function(X){ee("throw",X,we,pe)}):te.resolve(re).then(function(X){Z.value=X,we(Z)},function(X){return ee("throw",X,we,pe)})}pe(E.arg)}var ie;g(this,"_invoke",{value:function(){function Ce(Se,we){function pe(){return new te(function(E,Z){ee(Se,we,E,Z)})}return ie=ie?ie.then(pe,pe):pe()}return Ce}()})}function oe(ce,te,ee){var ie=A;return function(Ce,Se){if(ie===O)throw new Error("Generator is already running");if(ie===_){if(Ce==="throw")throw Se;return{value:v,done:!0}}for(ee.method=Ce,ee.arg=Se;;){var we=ee.delegate;if(we){var pe=ae(we,ee);if(pe){if(pe===P)continue;return pe}}if(ee.method==="next")ee.sent=ee._sent=ee.arg;else if(ee.method==="throw"){if(ie===A)throw ie=_,ee.arg;ee.dispatchException(ee.arg)}else ee.method==="return"&&ee.abrupt("return",ee.arg);ie=O;var E=M(ce,te,ee);if(E.type==="normal"){if(ie=ee.done?_:R,E.arg===P)continue;return{value:E.arg,done:ee.done}}E.type==="throw"&&(ie=_,ee.method="throw",ee.arg=E.arg)}}}function ae(ce,te){var ee=te.method,ie=ce.iterator[ee];if(ie===v)return te.delegate=null,ee==="throw"&&ce.iterator.return&&(te.method="return",te.arg=v,ae(ce,te),te.method==="throw")||ee!=="return"&&(te.method="throw",te.arg=new TypeError("The iterator does not provide a '"+ee+"' method")),P;var Ce=M(ie,ce.iterator,te.arg);if(Ce.type==="throw")return te.method="throw",te.arg=Ce.arg,te.delegate=null,P;var Se=Ce.arg;return Se?Se.done?(te[ce.resultName]=Se.value,te.next=ce.nextLoc,te.method!=="return"&&(te.method="next",te.arg=v),te.delegate=null,P):Se:(te.method="throw",te.arg=new TypeError("iterator result is not an object"),te.delegate=null,P)}function le(ce){var te={tryLoc:ce[0]};1 in ce&&(te.catchLoc=ce[1]),2 in ce&&(te.finallyLoc=ce[2],te.afterLoc=ce[3]),this.tryEntries.push(te)}function he(ce){var te=ce.completion||{};te.type="normal",delete te.arg,ce.completion=te}function me(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(le,this),this.reset(!0)}function Be(ce){if(ce||ce===""){var te=ce[B];if(te)return te.call(ce);if(typeof ce.next=="function")return ce;if(!isNaN(ce.length)){var ee=-1,ie=function(){function Ce(){for(;++ee=0;--Ce){var Se=this.tryEntries[Ce],we=Se.completion;if(Se.tryLoc==="root")return ie("end");if(Se.tryLoc<=this.prev){var pe=b.call(Se,"catchLoc"),E=b.call(Se,"finallyLoc");if(pe&&E){if(this.prev=0;--ie){var Ce=this.tryEntries[ie];if(Ce.tryLoc<=this.prev&&b.call(Ce,"finallyLoc")&&this.prev=0;--ee){var ie=this.tryEntries[ee];if(ie.finallyLoc===te)return this.complete(ie.completion,ie.afterLoc),he(ie),P}}return ce}(),catch:function(){function ce(te){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ie=this.tryEntries[ee];if(ie.tryLoc===te){var Ce=ie.completion;if(Ce.type==="throw"){var Se=Ce.arg;he(ie)}return Se}}throw new Error("illegal catch attempt")}return ce}(),delegateYield:function(){function ce(te,ee,ie){return this.delegate={iterator:Be(te),resultName:ee,nextLoc:ie},this.method==="next"&&(this.arg=v),P}return ce}()},f}function s(v,f,C,b,g,y,B){try{var L=v[y](B),I=L.value}catch(w){C(w);return}L.done?f(I):Promise.resolve(I).then(b,g)}function l(v){return function(){var f=this,C=arguments;return new Promise(function(b,g){var y=v.apply(f,C);function B(I){s(y,b,g,B,L,"next",I)}function L(I){s(y,b,g,B,L,"throw",I)}B(void 0)})}}function u(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function i(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,c(v,f)}function c(v,f){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(b,g){return b.__proto__=g,b}return C}(),c(v,f)}var d={bugfix:{icon:"bug",color:"green"},wip:{icon:"hammer",color:"orange"},qol:{icon:"hand-holding-heart",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},add:{icon:"check-circle",color:"green"},expansion:{icon:"check-circle",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},experiment:{icon:"radiation",color:"yellow"},balance:{icon:"balance-scale-right",color:"yellow"},code_imp:{icon:"code",color:"green"},refactor:{icon:"tools",color:"green"},config:{icon:"cogs",color:"purple"},admin:{icon:"user-shield",color:"purple"},server:{icon:"server",color:"purple"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"}},p=r.Changelog=function(v){i(f,v);function f(){var b;return b=v.call(this)||this,b.getData=function(g,y){y===void 0&&(y=1);var B=(0,t.useBackend)(b.context),L=B.act,I=u(b),w=6;if(y>w)return b.setData("Failed to load data after "+w+" attempts");L("get_month",{date:g}),fetch((0,V.resolveAsset)(g+".yml")).then(function(){var T=l(h().mark(function(){function M(A){var R,O,_;return h().wrap(function(){function P(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,A.text();case 2:R=D.sent,O=/^Cannot find/,O.test(R)?(_=50+y*50,I.setData("Loading changelog data"+".".repeat(y+3)),setTimeout(function(){I.getData(g,y+1)},_)):I.setData(S.default.load(R,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return D.stop()}}return P}(),M)}return M}()));return function(M){return T.apply(this,arguments)}}())},b.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},b.dateChoices=[],b}var C=f.prototype;return C.setData=function(){function b(g){this.setState({data:g})}return b}(),C.setSelectedDate=function(){function b(g){this.setState({selectedDate:g})}return b}(),C.setSelectedIndex=function(){function b(g){this.setState({selectedIndex:g})}return b}(),C.componentDidMount=function(){function b(){var g=this,y=(0,t.useBackend)(this.context),B=y.data.dates,L=B===void 0?[]:B;L&&(L.forEach(function(I){return g.dateChoices.push((0,k.default)(I,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(L[0]))}return b}(),C.render=function(){function b(){var g=this,y=this.state,B=y.data,L=y.selectedDate,I=y.selectedIndex,w=(0,t.useBackend)(this.context),T=w.data.dates,M=this.dateChoices,A=M.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:I===0,icon:"chevron-left",onClick:function(){function P(){var D=I-1;return g.setData("Loading changelog data..."),g.setSelectedIndex(D),g.setSelectedDate(M[D]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[D])}return P}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:L,options:M,onSelected:function(){function P(D){var z=M.indexOf(D);return g.setData("Loading changelog data..."),g.setSelectedIndex(z),g.setSelectedDate(D),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[z])}return P}(),selected:L,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:I===M.length-1,icon:"chevron-right",onClick:function(){function P(){var D=I+1;return g.setData("Loading changelog data..."),g.setSelectedIndex(D),g.setSelectedDate(M[D]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),g.getData(T[D])}return P}()})})]}),R=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"CHOMPStation Changelist",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("The GitHub repository can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2"}),(0,e.createTextVNode)(", recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/pulse/monthly"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Visit our wiki "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.chompstation13.net/index.php/Chomp_Station_Wiki"}),(0,e.createTextVNode)(", check out our discord server "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://discord.com/invite/chompers"}),(0,e.createTextVNode)(".")],0),A]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[A,(0,e.createVNode)(1,"h3",null,"CHOMPStation License",16),(0,e.createVNode)(1,"p",null,["All code after ",(0,e.createVNode)(1,"a",null,"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/commit/333c566b88108de218d882840e61928a9b759d8f"})," is licensed under ",(0,e.createVNode)(1,"a",null,"GNU AGPL v3",16,{href:"https://www.gnu.org/licenses/agpl-3.0.html"}),". All code before that commit is licensed under ",(0,e.createVNode)(1,"a",null,"GNU GPL v3",16,{href:"https://www.gnu.org/licenses/gpl-3.0.html"}),", including tools unless their readme specifies otherwise. See ",(0,e.createVNode)(1,"a",null,"LICENSE",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE"})," and ",(0,e.createVNode)(1,"a",null,"GPLv3.txt",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE-GPL3.txt"})," for more details."],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("The TGS DMAPI API is licensed as a subproject under the MIT license."),(0,e.createTextVNode)(" See the footer of "),(0,e.createVNode)(1,"a",null,"code/__DEFINES/tgs.dm",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/__DEFINES/tgs.dm"}),(0,e.createTextVNode)(" and "),(0,e.createVNode)(1,"a",null,"code/modules/tgs/LICENSE",16,{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/modules/tgs/LICENSE"}),(0,e.createTextVNode)(" for the MIT license.")],0),(0,e.createVNode)(1,"p",null,["All assets including icons and sound are under a ",(0,e.createVNode)(1,"a",null,"Creative Commons 3.0 BY-SA license",16,{href:"https://creativecommons.org/licenses/by-sa/3.0/"})," unless otherwise indicated."],0)]}),_=typeof B=="object"&&Object.keys(B).length>0&&Object.entries(B).reverse().map(function(P){var D=P[0],z=P[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,k.default)(D,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(z).map(function(U){var W=U[0],K=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function(H){var Y=Object.keys(H)[0];return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[Y]?d[Y].color:d.unknown.color,name:d[Y]?d[Y].icon:d.unknown.icon})}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:H[Y]})]},Y+H[Y])})})})],4,W)})})},D)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[R,_,typeof B=="string"&&(0,e.createVNode)(1,"p",null,B,0),O]})})}return b}(),f}(e.Component)},24326:function(x,r,n){"use strict";r.__esModule=!0,r.CharacterDirectory=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(s){switch(s){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 h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.personalVisibility,p=c.personalTag,v=c.personalGenderTag,f=c.personalSexualityTag,C=c.personalErpTag,b=c.personalEventTag,g=(0,a.useLocalState)(l,"overlay",null),y=g[0],B=g[1],L=(0,a.useLocalState)(l,"overwritePrefs",!1),I=L[0],w=L[1];return(0,e.createComponentVNode)(2,o.Window,{width:816,height:722,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:y&&(0,e.createComponentVNode)(2,k)||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Settings and Preferences",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:I?"toggle-on":"toggle-off",selected:I,content:I?"On":"Off",onClick:function(){function T(){return w(!I)}return T}()})],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:d?"Shown":"Not Shown",onClick:function(){function T(){return i("setVisible",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p,onClick:function(){function T(){return i("setTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:v,onClick:function(){function T(){return i("setGenderTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sexuality",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:f,onClick:function(){function T(){return i("setSexualityTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:C,onClick:function(){function T(){return i("setErpTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Event Pref",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b,onClick:function(){function T(){return i("setEventTag",{overwrite_prefs:I})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Advertisement",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Edit Ad",onClick:function(){function T(){return i("editAd",{overwrite_prefs:I})}return T}()})})]})}),(0,e.createComponentVNode)(2,S)],4)})})}return h}(),k=function(s,l){var u=(0,a.useLocalState)(l,"overlay",null),i=u[0],c=u[1];return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",onClick:function(){function d(){return c(null)}return d}()}),children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Species",children:(0,e.createComponentVNode)(2,t.Box,{children:i.species})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Vore Tag",children:(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:m(i.tag),children:i.tag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Gender",children:(0,e.createComponentVNode)(2,t.Box,{children:i.gendertag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Sexuality",children:(0,e.createComponentVNode)(2,t.Box,{children:i.sexualitytag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"ERP Tag",children:(0,e.createComponentVNode)(2,t.Box,{children:i.erptag})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Event Pref",children:(0,e.createComponentVNode)(2,t.Box,{children:i.eventtag})}),(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:i.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:i.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:i.flavor_text||"Unset."})})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.directory,p=(0,a.useLocalState)(l,"sortId","name"),v=p[0],f=p[1],C=(0,a.useLocalState)(l,"sortOrder","name"),b=C[0],g=C[1],y=(0,a.useLocalState)(l,"overlay",null),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Directory",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function I(){return i("refresh")}return I}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"species",children:"Species"}),(0,e.createComponentVNode)(2,N,{id:"tag",children:"Vore Tag"}),(0,e.createComponentVNode)(2,N,{id:"gendertag",children:"Gender"}),(0,e.createComponentVNode)(2,N,{id:"sexualitytag",children:"Sexuality"}),(0,e.createComponentVNode)(2,N,{id:"erptag",children:"ERP Tag"}),(0,e.createComponentVNode)(2,N,{id:"eventtag",children:"Event Pref"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),d.sort(function(I,w){var T=b?1:-1;return I[v].localeCompare(w[v])*T}).map(function(I,w){return(0,e.createComponentVNode)(2,t.Table.Row,{backgroundColor:m(I.tag),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{p:1,children:I.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.species}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.tag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.gendertag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.sexualitytag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.erptag}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.eventtag}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return L(I)}return T}(),color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},w)})]})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.id,p=s.children,v=(0,a.useLocalState)(l,"sortId","name"),f=v[0],C=v[1],b=(0,a.useLocalState)(l,"sortOrder","name"),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",color:f!==d&&"transparent",onClick:function(){function B(){f===d?y(!g):(C(d),y(!0))}return B}(),children:[p,f===d&&(0,e.createComponentVNode)(2,t.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},71819:function(x,r,n){"use strict";r.__esModule=!0,r.CheckboxInput=void 0;var e=n(58734),a=n(11790),t=n(30204),o=n(40946),m=n(62188),V=n(57370),k=n(89226),S=n(11477),N=r.CheckboxInput=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.data,c=i.items,d=c===void 0?[]:c,p=i.min_checked,v=i.max_checked,f=i.message,C=i.timeout,b=i.title,g=(0,m.useLocalState)(l,"selections",[]),y=g[0],B=g[1],L=(0,m.useLocalState)(l,"searchQuery",""),I=L[0],w=L[1],T=(0,o.createSearch)(I,function(R){return R}),M=d.filter(T),A=function(){function R(O){var _=y.includes(O)?y.filter(function(P){return P!==O}):[].concat(y,[O]);B(_)}return R}();return(0,e.createComponentVNode)(2,S.Window,{title:b,width:425,height:300,children:[!!C&&(0,e.createComponentVNode)(2,k.Loader,{value:C}),(0,e.createComponentVNode)(2,S.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)(f)," ",p>0&&" (Min: "+p+")",v<50&&" (Max: "+v+")"]})}),(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:M.map(function(R,O){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:y.includes(R),disabled:y.length>=v&&!y.includes(R),fluid:!0,onClick:function(){function _(){return A(R)}return _}(),children:R})})},O)})})})}),(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:I,onInput:function(){function R(O,_){return w(_)}return R}()})})]}),(0,e.createComponentVNode)(2,a.Stack.Item,{mt:.7,children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,V.InputButtons,{input:y})})})]})})]})}return h}()},11784:function(x,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(72679),m=n(11477),V=[5,10,20,30,40,60],k=[1,5,10],S=r.ChemDispenser=function(){function l(u,i){return(0,e.createComponentVNode)(2,m.Window,{width:390,height:655,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)]})})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.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(f,C){return(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",selected:v===f,content:f+"u",m:"0",onClick:function(){function b(){return d("amount",{amount:f})}return b}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Custom Amount",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:v,minValue:1,maxValue:120,onDrag:function(){function f(C,b){return d("amount",{amount:b})}return f}()})})]})})},h=function(u,i){for(var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.chemicals,f=v===void 0?[]:v,C=[],b=0;b<(f.length+1)%3;b++)C.push(!0);return(0,e.createComponentVNode)(2,t.Section,{title:p.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[f.map(function(g,y){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 d("dispense",{reagent:g.id})}return B}()})},y)}),C.map(function(g,y){return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",basis:"25%",height:"20px"},y)})]})})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isBeakerLoaded,f=p.beakerCurrentVolume,C=p.beakerMaxVolume,b=p.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:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[f," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function y(){return d("ejectBeaker")}return y}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function y(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return d("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,I){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function w(){return d("remove",{reagent:B.id,amount:L})}return w}()},I)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return d("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return y}()})})}},61950:function(x,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(72679),V=n(48388),k=[1,5,10,30,60],S=null,N=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=v.args.analysis;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1rem",title:g.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:y.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(y.desc||"").length>0?y.desc:"N/A"}),y.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:y.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:y.blood_dna})],4),!g.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:g.printing?"spinner":"print",disabled:g.printing,iconSpin:!!g.printing,ml:"0.5rem",content:"Print",onClick:function(){function B(){return b("print",{idx:y.idx,beaker:v.args.beaker})}return B}()})]})})})},h=r.ChemMaster=function(){function p(v,f){var C=(0,a.useBackend)(f),b=C.data,g=b.condi,y=b.beaker,B=b.beaker_reagents,L=B===void 0?[]:B,I=b.buffer_reagents,w=I===void 0?[]:I,T=b.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,s,{beaker:y,beakerReagents:L,bufferNonEmpty:w.length>0}),(0,e.createComponentVNode)(2,l,{mode:T,bufferReagents:w}),(0,e.createComponentVNode)(2,u,{isCondiment:g,bufferNonEmpty:w.length>0}),(0,e.createComponentVNode)(2,d)," "]})]})}return p}(),s=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=v.beaker,B=v.beakerReagents,L=v.bufferNonEmpty,I=L?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!y,content:"Eject and Clear Buffer",onClick:function(){function w(){return b("eject")}return w}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!y,content:"Eject and Clear Buffer",onClick:function(){function w(){return b("eject")}return w}()});return(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",buttons:I,children:y?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:B,buttons:function(){function w(T,M){return(0,e.createComponentVNode)(2,t.Box,{mb:M0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:B,buttons:function(){function L(I,w){return(0,e.createComponentVNode)(2,t.Box,{mb:w0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:b}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Vessel is empty."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Catalyst",flex:"content",minHeight:"25%",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!g&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[y," / ",B," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!g||!!p,onClick:function(){function M(){return c("eject_catalyst")}return M}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:g,beakerContents:I})})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.busy,v=d.production_mode,f=d.panel_open,C=d.rxn_vessel,b=d.drug_substance,g=d.bottle_icon,y=d.pill_icon,B=d.patch_icon;return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Settings",overflowY:"auto",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:v?"green":"bad",icon:"wrench",content:v?"Recipe mode: Import":"Recipe mode: Tutorial",onClick:function(){function L(){return c("mode_toggle")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!!p,color:f?"bad":"green",icon:"wrench",content:f?"Panel Open":"Panel Closed",onClick:function(){function L(){return c("panel_toggle")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:!p&&(0,e.createComponentVNode)(2,t.Button,{disabled:!C.length,color:"bad",icon:"flask",tooltip:"For emptying the reaction vessel if the machine stalls.",content:"Bottle Manually",onClick:function(){function L(){return c("bottle_product")}return L}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!p,color:"bad",icon:"minus-circle",content:"EMERGENCY STOP",onClick:function(){function L(){return c("emergency_stop")}return L}()})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,t.Section,{height:"100%",title:"Drug Substance",overflowY:"auto",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bottle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"wine-bottle",content:"Activate",selected:d.drug_substance===1,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:1})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_bottle_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(bottle-"+d.bottle_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pill",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Activate",selected:d.drug_substance===2,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:2})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_pill_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(pill"+d.pill_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patch",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"square",content:"Activate",selected:d.drug_substance===3,mr:"0.5rem",onClick:function(){function L(){return c("drug_form",{drug_index:3})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function L(){return(0,V.modalOpen)(u,"change_patch_style")}return L}(),children:[(0,e.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(patch"+d.patch_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]})]})})})]})}},38389:function(x,r,n){"use strict";r.__esModule=!0,r.ClawMachine=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ClawMachine=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.wintick,u=s.instructions,i=s.gameStatus,c=s.winscreen,d;return i==="CLAWMACHINE_NEW"?d=(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),(0,e.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),u,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Start",onClick:function(){function p(){return h("newgame")}return p}()})]}):i==="CLAWMACHINE_END"?d=(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),(0,e.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr"),c,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Close",onClick:function(){function p(){return h("return")}return p}()})]}):i==="CLAWMACHINE_ON"&&(d=(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:s.wintick,minValue:0,maxValue:10})})}),(0,e.createComponentVNode)(2,t.Box,{align:"center",children:[(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br"),u,(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"hr")," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Up",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Left",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Right",onClick:function(){function p(){return h("pointless")}return p}()}),(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Down",onClick:function(){function p(){return h("pointless")}return p}()})]})]})),(0,e.createComponentVNode)(2,o.Window,{resizable:!0,children:(0,e.createVNode)(1,"center",null,d,0)})}return V}()},44260:function(x,r,n){"use strict";r.__esModule=!0,r.Cleanbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Cleanbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.version,d=s.blood,p=s.patrol,v=s.vocal,f=s.wet_floors,C=s.spray_blood,b=s.rgbpanel,g=s.red_switch,y=s.green_switch,B=s.blue_switch;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Station Cleaner "+c,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function L(){return h("start")}return L}(),children:l?"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:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(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:"Blood",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function L(){return h("blood")}return L}(),children:d?"Clean":"Ignore"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function L(){return h("vocal")}return L}(),children:v?"On":"Off"})})]})})||null,!i&&u&&(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:b&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"red":"maroon",onClick:function(){function L(){return h("red_switch")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:y?"toggle-on":"toggle-off",backgroundColor:y?"green":"darkgreen",onClick:function(){function L(){return h("green_switch")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{fontSize:5.39,icon:B?"toggle-on":"toggle-off",backgroundColor:B?"blue":"darkblue",onClick:function(){function L(){return h("blue_switch")}return L}()})]})||(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:f,onClick:function(){function L(){return h("wet_floors")}return L}(),icon:"screwdriver",children:f?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Weird Button Pressed",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",selected:C,onClick:function(){function L(){return h("spray_blood")}return L}(),icon:"screwdriver",children:C?"Yes":"No"})})]})})})||null]})})}return V}()},18170:function(x,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(48388),k=n(11477),S=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=p.args,y=g.activerecord,B=g.realname,L=g.health,I=g.unidentity,w=g.strucenzymes,T=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:T[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:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:w}),(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 M(){return C("disk",{option:"load"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function M(){return C("disk",{option:"save",savetype:"ui"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function M(){return C("disk",{option:"save",savetype:"ue"})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function M(){return C("disk",{option:"save",savetype:"se"})}return M}()})]}),(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 M(){return C("clone",{ref:y})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function M(){return C("del_rec")}return M}()})]})]})})},N=r.CloningConsole=function(){function d(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.menu;return(0,V.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,k.Window,{resizable:!0,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,s)})]})]})}return d}(),h=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.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 y(){return C("menu",{num:1})}return y}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===2,icon:"folder",onClick:function(){function y(){return C("menu",{num:2})}return y}(),children:"Records"})]})},s=function(p,v){var f=(0,t.useBackend)(v),C=f.data,b=C.menu,g;return b===1?g=(0,e.createComponentVNode)(2,l):b===2&&(g=(0,e.createComponentVNode)(2,u)),g},l=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.loading,y=b.scantemp,B=b.occupant,L=b.locked,I=b.can_brainscan,w=b.scan_mode,T=b.numberofpods,M=b.pods,A=b.selected_pod,R=L&&!!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:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function O(){return C("lock")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function O(){return C("eject")}return O}()})],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:y.color,children:y.text})}),!!I&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"brain":"male",content:w?"Brain":"Body",onClick:function(){function O(){return C("toggle_mode")}return O}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||g,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function O(){return C("scan")}return O}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?M.map(function(O,_){var P;return O.status==="cloning"?P=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.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)(O.progress,0)+"%"})}):O.status==="mess"?P=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):P=(0,e.createComponentVNode)(2,o.Button,{selected:A===O.pod,icon:A===O.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function D(){return C("selectpod",{ref:O.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_"+O.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",_+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.biomass>=150?"circle":"circle-o"}),"\xA0",O.biomass]}),P]},_)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.records;return g.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:g.map(function(y,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:y.realname,onClick:function(){function L(){return C("view_rec",{ref:y.record})}return L}()},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(p,v){var f,C=(0,t.useBackend)(v),b=C.act,g=C.data,y=g.temp;if(!(!y||!y.text||y.text.length<=0)){var B=(f={},f[y.style]=!0,f);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:y.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return b("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},c=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.scanner,y=b.numberofpods,B=b.autoallowed,L=b.autoprocess,I=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:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function w(){return C("autoprocess",{on:L?0:1})}return w}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!I,icon:"eject",content:"Eject Disk",onClick:function(){function w(){return C("disk",{option:"eject"})}return w}()})],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:y?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[y," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},7981:function(x,r,n){"use strict";r.__esModule=!0,r.ColorMateTint=r.ColorMateMatrix=r.ColorMateHSV=r.ColorMate=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ColorMate=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.activemode,d=i.temp,p=i.item||[];return(0,e.createComponentVNode)(2,o.Window,{width:"980",height:"720",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{overflow:"auto",children:(0,e.createComponentVNode)(2,t.Section,{children:[d?(0,e.createComponentVNode)(2,t.NoticeBox,{children:d}):null,Object.keys(p).length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createVNode)(1,"center",null,"Item:",16),(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createVNode)(1,"center",null,"Preview:",16),(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function v(){return u("switch_modes",{mode:1})}return v}(),children:"Tint coloring (Simple)"},"1"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===2,onClick:function(){function v(){return u("switch_modes",{mode:2})}return v}(),children:"HSV coloring (Normal)"},"2"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===3,onClick:function(){function v(){return u("switch_modes",{mode:3})}return v}(),children:"Matrix coloring (Advanced)"},"3")]}),(0,e.createVNode)(1,"center",null,[(0,e.createTextVNode)("Coloring: "),p.name],0),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"33%",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){function v(){return u("paint")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){function v(){return u("clear")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){function v(){return u("drop")}return v}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"66%",children:c===1?(0,e.createComponentVNode)(2,V):c===2?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})]})],4):(0,e.createVNode)(1,"center",null,"No item inserted.",16)]})})})}return N}(),V=r.ColorMateTint=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data;return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){function c(){return u("choose_color")}return c}()})}return N}(),k=r.ColorMateMatrix=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.matrixcolors||[];return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:1,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:4,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(){function d(p,v){return u("set_matrix_color",{color:7,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:2,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:5,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:8,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["RB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:3,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["GB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:6,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["BB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:9,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["CR:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(){function d(p,v){return u("set_matrix_color",{color:10,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["CG:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(){function d(p,v){return u("set_matrix_color",{color:11,value:v})}return d}()})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["CB:"," ",(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(){function d(p,v){return u("set_matrix_color",{color:12,value:v})}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Icon,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})}return N}(),S=r.ColorMateHSV=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.buildhue,d=i.buildsat,p=i.buildval;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Hue:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"85%",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(){function v(f,C){return u("set_hue",{buildhue:C})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Saturation:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Slider,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(){function v(f,C){return u("set_sat",{buildsat:C})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createVNode)(1,"center",null,"Value:",16),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Slider,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(){function v(f,C){return u("set_val",{buildval:C})}return v}()})})]})]})}return N}()},29340:function(x,r,n){"use strict";r.__esModule=!0,r.CommunicationsConsoleContent=r.CommunicationsConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CommunicationsConsole=function(){function s(l,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 s}(),V=r.CommunicationsConsoleContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.menu_state,v=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",p,"Please report this to NT Technical Support."]});return p===1?v=(0,e.createComponentVNode)(2,k):p===2?v=(0,e.createComponentVNode)(2,h):p===3&&(v=(0,e.createComponentVNode)(2,N)),(0,e.createFragment)([(0,e.createComponentVNode)(2,S),v],0)}return s}(),k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.messages,v=d.msg_cooldown,f=d.emagged,C=d.cc_cooldown,b=d.str_security_level,g=d.levels,y=d.authmax,B=d.security_level,L=d.security_level_color,I=d.authenticated,w=d.atcsquelch,T=d.boss_short,M="View ("+p.length+")",A="Make Priority Announcement";v>0&&(A+=" ("+v+"s)");var R=f?"Message [UNKNOWN]":"Message "+T;C>0&&(R+=" ("+C+"s)");var O=b,_=g.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{icon:P.icon,content:P.name,disabled:!I,selected:P.id===B,onClick:function(){function D(){return c("newalertlevel",{level:P.id})}return D}()},P.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:A,disabled:!y||v>0,onClick:function(){function P(){return c("announce")}return P}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:R,disabled:!y||C>0,onClick:function(){function P(){return c("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!y,onClick:function(){function P(){return c("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:R,disabled:!y||C>0,onClick:function(){function P(){return c("MessageCentCom")}return P}()})})]})}),(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:L,children:O}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:_}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!I,onClick:function(){function P(){return c("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:M,disabled:!I,onClick:function(){function P(){return c("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"microphone",content:w?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!I,selected:w,onClick:function(){function P(){return c("toggleatc")}return P}()})})]})})],4)},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.authenticated,v=d.is_ai,f=d.esc_status,C=d.esc_callable,b=d.esc_recallable,g;return p?v?g="AI":p===1?g="Command":p===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:v&&(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:p?"sign-out-alt":"id-card",selected:p,content:p?"Log Out ("+g+")":"Log In",onClick:function(){function y(){return c("auth")}return y}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!p,onClick:function(){function y(){return c("callshuttle")}return y}()})}),!!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!p||v,onClick:function(){function y(){return c("cancelshuttle")}return y}()})})]})})],4)},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.message_current,v=d.message_deletion_allowed,f=d.authenticated,C=d.messages;if(p)return(0,e.createComponentVNode)(2,t.Section,{title:p.title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!f,onClick:function(){function g(){return c("messagelist")}return g}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:p.contents})});var b=C.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:!f||p&&p.title===g.title,onClick:function(){function y(){return c("messagelist",{msgid:g.id})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!f||!v,onClick:function(){function y(){return c("delmessage",{msgid:g.id})}return y}()})]},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 c("main")}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.length&&b||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.stat_display,v=d.authenticated,f=p.presets.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{content:C.label,selected:C.name===p.type,disabled:!v,onClick:function(){function b(){return c("setstat",{statdisp:C.name})}return b}()},C.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 C(){return c("main")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!v,onClick:function(){function C(){return c("setmsg1")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!v,onClick:function(){function C(){return c("setmsg2")}return C}()})})]})})}},52574: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(62188),m=n(11790),V=n(11477),k=n(68285),S=1,N=2,h=3,s=4,l=40,u=5,i=6,c=7,d=8,p=9,v={},f=r.Communicator=function(){function Y(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.currentTab,me=le.video_comm,Be=le.mapRef,ce=(0,o.useLocalState)(q,"videoSetting",0),te=ce[0],ee=ce[1];return(0,e.createComponentVNode)(2,V.Window,{width:475,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[me&&(0,e.createComponentVNode)(2,C,{videoSetting:te,setVideoSetting:ee}),(!me||te!==0)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,m.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:v[he]||(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y,{videoSetting:te,setVideoSetting:ee})],4)]})})}return Y}(),C=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.video_comm,me=le.mapRef,Be=J.videoSetting,ce=J.setVideoSetting;return Be===0?(0,e.createComponentVNode)(2,m.Box,{width:"100%",height:"100%",children:[(0,e.createComponentVNode)(2,m.ByondUi,{width:"100%",height:"95%",params:{id:me,type:"map"}}),(0,e.createComponentVNode)(2,m.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function te(){return ce(1)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function te(){return ae("endvideo")}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function te(){return ae("hang_up")}return te}()})})]})]}):Be===1?(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,e.createComponentVNode)(2,m.Section,{p:0,m:0,children:(0,e.createComponentVNode)(2,m.Flex,{justify:"space-between",spacing:1,children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){function te(){return ce(2)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){function te(){return ce(0)}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){function te(){return ae("endvideo")}return te}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){function te(){return ae("hang_up")}return te}()})})]})}),(0,e.createComponentVNode)(2,m.ByondUi,{width:"200px",height:"200px",params:{id:me,type:"map"}})]}):null},b=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.currentTab;return(0,e.createComponentVNode)(2,m.Section,{title:"Error!",children:["You tried to access tab #",he,", but there was no template defined!"]})},g=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.time,me=le.connectionStatus,Be=le.owner,ce=le.occupation;return(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.Flex,{align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:he}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{color:me===1?"good":"bad",name:me===1?"signal":"exclamation-triangle"})}),(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(Be)}),(0,e.createComponentVNode)(2,m.Flex.Item,{color:"average",children:(0,t.decodeHtmlEntities)(ce)})]})})},y=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.flashlight,me=J.videoSetting,Be=J.setVideoSetting;return(0,e.createComponentVNode)(2,m.Flex,{children:[(0,e.createComponentVNode)(2,m.Flex.Item,{basis:me===2?"60%":"80%",children:(0,e.createComponentVNode)(2,m.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){function ce(){return ae("switch_tab",{switch_tab:S})}return ce}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:he,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){function ce(){return ae("Light")}return ce}()})}),me===2&&(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){function ce(){return Be(1)}return ce}()})})]})},B=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.data,le=ae.voice_mobs,he=ae.communicating,me=ae.requestsReceived,Be=ae.invitesSent,ce=ae.video_comm;return!!(J==="Phone"&&(le.length||he.length||me.length||Be.length||ce))},L=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.homeScreen;return(0,e.createComponentVNode)(2,m.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:he.map(function(me){return(0,e.createComponentVNode)(2,m.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.createComponentVNode)(2,m.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){function Be(){return ae("switch_tab",{switch_tab:me.number})}return Be}(),children:(0,e.createComponentVNode)(2,m.Icon,{spin:B(me.module,q),color:B(me.module,q)?"bad":null,name:me.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.createComponentVNode)(2,m.Box,{children:me.module})]},me.number)})})};v[S]=(0,e.createComponentVNode)(2,L);var I=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddress,me=le.voice_mobs,Be=le.communicating,ce=le.requestsReceived,te=le.invitesSent,ee=le.video_comm,ie=le.selfie_mode;return(0,e.createComponentVNode)(2,m.Section,{title:"Phone",children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,m.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,m.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,m.Input,{fluid:!0,value:he,onInput:function(){function Ce(Se,we){return ae("write_target_address",{val:we})}return Ce}()})}),(0,e.createComponentVNode)(2,m.Flex.Item,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"times",onClick:function(){function Ce(){return ae("clear_target_address")}return Ce}()})})]})})}),(0,e.createComponentVNode)(2,w),(0,e.createComponentVNode)(2,m.Section,{title:"Connection Management",mt:2,children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:ie?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function Ce(){return ae("selfie_mode")}return Ce}()})})}),(0,e.createComponentVNode)(2,m.Section,{title:"External Connections",children:!!me.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:me.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Se(){return ae("disconnect",{disconnect:Ce.true_name})}return Se}()})},Ce.ref)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Internal Connections",children:!!Be.length&&(0,e.createComponentVNode)(2,m.Table,{children:Be.map(function(Ce){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:"label",children:(0,t.decodeHtmlEntities)(Ce.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){function Se(){return ae("disconnect",{disconnect:Ce.true_name})}return Se}()}),ee===null&&(0,e.createComponentVNode)(2,m.Button,{icon:"camera",content:"Start Video",onClick:function(){function Se(){return ae("startvideo",{startvideo:Ce.ref})}return Se}()})||ee===Ce.ref&&(0,e.createComponentVNode)(2,m.Button,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){function Se(){return ae("endvideo",{endvideo:Ce.true_name})}return Se}()})]})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No connections"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Requests Received",children:!!ce.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:ce.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,t.decodeHtmlEntities)(Ce.address)}),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{icon:"signal",content:"Accept",onClick:function(){function Se(){return ae("dial",{dial:Ce.address})}return Se}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"times",content:"Decline",onClick:function(){function Se(){return ae("decline",{decline:Ce.ref})}return Se}()})]})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No requests received."})}),(0,e.createComponentVNode)(2,m.Section,{title:"Invites Sent",children:!!te.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:te.map(function(Ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:(0,t.decodeHtmlEntities)(Ce.name),children:[(0,e.createComponentVNode)(2,m.Box,{children:(0,t.decodeHtmlEntities)(Ce.address)}),(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",onClick:function(){function Se(){ae("copy",{copy:Ce.address})}return Se}(),content:"Copy"})})]},Ce.address)})})||(0,e.createComponentVNode)(2,m.Box,{children:"No invites sent."})})]})]})},w=function(J,q){for(var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddress,me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Be=me.map(function(ee){return(0,e.createComponentVNode)(2,m.Button,{content:ee,fontSize:2,fluid:!0,onClick:function(){function ie(){return ae("add_hex",{add_hex:ee})}return ie}()},ee)}),ce=[],te=0;teoe?q.length>oe?q.slice(0,oe)+"...":q:J+q},O=function(J,q,oe,ae){if(oe<0||oe>ae.length)return A(J,q)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var le=A(J,q),he=A(ae[oe],q);return le&&he?"TinderMessage_Subsequent_Sent":!le&&!he?"TinderMessage_Subsequent_Received":le?"TinderMessage_First_Sent":"TinderMessage_First_Received"},_=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.targetAddressName,me=le.targetAddress,Be=le.imList,ce=(0,o.useLocalState)(q,"clipboardMode",!1),te=ce[0],ee=ce[1];return te?(0,e.createComponentVNode)(2,m.Section,{title:(0,e.createComponentVNode)(2,m.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:R("Conversation with ",(0,t.decodeHtmlEntities)(he),30)}),buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:te,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function ie(){return ee(!te)}return ie}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Section,{style:{height:"95%","overflow-y":"auto"},children:Be.map(function(ie,Ce){return(ie.to_address===me||ie.address===me)&&(0,e.createComponentVNode)(2,m.Box,{className:A(ie,me)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[A(ie,me)?"You":"Them",": ",ie.im]},Ce)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function ie(){return ae("message",{message:me})}return ie}(),content:"Message"})]}):(0,e.createComponentVNode)(2,m.Section,{title:(0,e.createComponentVNode)(2,m.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:R("Conversation with ",(0,t.decodeHtmlEntities)(he),30)}),buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"eye",selected:te,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){function ie(){return ee(!te)}return ie}()}),height:"100%",stretchContents:!0,children:[(0,e.createComponentVNode)(2,m.Section,{style:{height:"95%","overflow-y":"auto"},children:Be.map(function(ie,Ce,Se){return(ie.to_address===me||ie.address===me)&&(0,e.createComponentVNode)(2,m.Box,{textAlign:A(ie,me)?"right":"left",mb:1,children:(0,e.createComponentVNode)(2,m.Box,{maxWidth:"75%",className:O(ie,me,Ce-1,Se),inline:!0,children:(0,t.decodeHtmlEntities)(ie.im)})},Ce)})}),(0,e.createComponentVNode)(2,m.Button,{icon:"comment",onClick:function(){function ie(){return ae("message",{message:me})}return ie}(),content:"Message"})]})};v[l]=(0,e.createComponentVNode)(2,_);var P=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.feeds,me=le.target_feed;return(0,e.createComponentVNode)(2,m.Section,{title:"News",stretchContents:!0,height:"100%",children:!he.length&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||me&&(0,e.createComponentVNode)(2,D)||(0,e.createComponentVNode)(2,z)})},D=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.target_feed;return(0,e.createComponentVNode)(2,m.Section,{title:(0,t.decodeHtmlEntities)(he.name)+" by "+(0,t.decodeHtmlEntities)(he.author),buttons:(0,e.createComponentVNode)(2,m.Button,{content:"Back",icon:"chevron-up",onClick:function(){function me(){return ae("newsfeed",{newsfeed:null})}return me}()}),children:he.messages.map(function(me){return(0,e.createComponentVNode)(2,m.Section,{children:["- ",(0,t.decodeHtmlEntities)(me.body),!!me.img&&(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+me.img}),(0,t.decodeHtmlEntities)(me.caption)||null]}),(0,e.createComponentVNode)(2,m.Box,{color:"grey",children:["[",me.message_type," by ",(0,t.decodeHtmlEntities)(me.author)," -"," ",me.time_stamp,"]"]})]},me.ref)})})},z=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.feeds,me=le.latest_news;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Section,{title:"Recent News",children:(0,e.createComponentVNode)(2,m.Section,{children:me.map(function(Be){return(0,e.createComponentVNode)(2,m.Box,{mb:2,children:[(0,e.createVNode)(1,"h5",null,[(0,t.decodeHtmlEntities)(Be.channel),(0,e.createComponentVNode)(2,m.Button,{ml:1,icon:"chevron-up",onClick:function(){function ce(){return ae("newsfeed",{newsfeed:Be.index})}return ce}(),content:"Go to"})],0),"- ",(0,t.decodeHtmlEntities)(Be.body),!!Be.img&&(0,e.createComponentVNode)(2,m.Box,{children:["[image omitted, view story for more details]",Be.caption||null]}),(0,e.createComponentVNode)(2,m.Box,{fontSize:.9,children:["[",Be.message_type," by"," ",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"average",children:Be.author})," ","- ",Be.time_stamp,"]"]})]},Be.index)})})}),(0,e.createComponentVNode)(2,m.Section,{title:"News Feeds",children:he.map(function(Be){return(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"chevron-up",onClick:function(){function ce(){return ae("newsfeed",{newsfeed:Be.index})}return ce}(),content:Be.name},Be.index)})})],4)};v[u]=(0,e.createComponentVNode)(2,P);var U=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.note;return(0,e.createComponentVNode)(2,m.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",onClick:function(){function me(){return ae("edit")}return me}(),content:"Edit Notes"}),children:(0,e.createComponentVNode)(2,m.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:he})})};v[i]=(0,e.createComponentVNode)(2,U);var W=function(J,q,oe,ae,le){return Jae?"average":J>le?"bad":"good"},K=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.aircontents,me=le.weather,Be="\xB0";return(0,e.createComponentVNode)(2,m.Section,{title:"Weather",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Current Conditions",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,a.filter)(function(ce){return ce.val!=="0"||ce.entry==="Pressure"||ce.entry==="Temperature"})(he).map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.entry,color:W(ce.val,ce.bad_low,ce.poor_low,ce.poor_high,ce.bad_high),children:[ce.val,(0,t.decodeHtmlEntities)(ce.units)]},ce.entry)})})}),(0,e.createComponentVNode)(2,m.Section,{title:"Weather Reports",children:!!me.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:me.map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.Planet,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Time",children:ce.Time}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Weather",children:(0,t.toTitleCase)(ce.Weather)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:["Current: ",ce.Temperature.toFixed()," ",Be,"C | High:"," ",ce.High.toFixed()," ",Be,"C | Low: ",ce.Low.toFixed()," ",Be,"C"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Direction",children:ce.WindDir}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Speed",children:ce.WindSpeed}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Forecast",children:(0,t.decodeHtmlEntities)(ce.Forecast)})]})},ce.Planet)})})||(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})};v[c]=(0,e.createComponentVNode)(2,K),v[d]=(0,e.createComponentVNode)(2,k.CrewManifestContent);var H=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.owner,me=le.occupation,Be=le.connectionStatus,ce=le.address,te=le.visible,ee=le.ring,ie=le.selfie_mode;return(0,e.createComponentVNode)(2,m.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",fluid:!0,content:(0,t.decodeHtmlEntities)(he),onClick:function(){function Ce(){return ae("rename")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:ie?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function Ce(){return ae("selfie_mode")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Occupation",children:(0,t.decodeHtmlEntities)(me)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Connection",children:Be===1?(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"Disconnected"})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Device EPv2 Address",children:ce}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:te,selected:te,fluid:!0,content:te?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){function Ce(){return ae("toggle_visibility")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Ringer",children:[(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:ee,selected:ee,fluid:!0,content:ee?"Ringer on.":"Ringer off.",onClick:function(){function Ce(){return ae("toggle_ringer")}return Ce}()}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:"Set Ringer Tone",onClick:function(){function Ce(){return ae("set_ringer_tone")}return Ce}()})]})]})})};v[p]=(0,e.createComponentVNode)(2,H)},84429:function(x,r,n){"use strict";r.__esModule=!0,r.ComputerFabricator=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.ComputerFabricator=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,m.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),d.state!==0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){function p(){return c("clean_order")}return p}()}),d.state===0&&(0,e.createComponentVNode)(2,k),d.state===1&&(0,e.createComponentVNode)(2,S),d.state===2&&(0,e.createComponentVNode)(2,N),d.state===3&&(0,e.createComponentVNode)(2,h)]})})}return s}(),k=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.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 p(){return c("pick_device",{pick:"1"})}return p}()})}),(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 p(){return c("pick_device",{pick:"2"})}return p}()})})]})})]})},S=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.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:[d.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:d.hw_battery===1,onClick:function(){function p(){return c("hw_battery",{battery:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_battery===2,onClick:function(){function p(){return c("hw_battery",{battery:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_battery===3,onClick:function(){function p(){return c("hw_battery",{battery:"3"})}return p}()})})]}),(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:d.hw_disk===1,onClick:function(){function p(){return c("hw_disk",{disk:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_disk===2,onClick:function(){function p(){return c("hw_disk",{disk:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_disk===3,onClick:function(){function p(){return c("hw_disk",{disk:"3"})}return p}()})})]}),(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:d.hw_netcard===0,onClick:function(){function p(){return c("hw_netcard",{netcard:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_netcard===1,onClick:function(){function p(){return c("hw_netcard",{netcard:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_netcard===2,onClick:function(){function p(){return c("hw_netcard",{netcard:"2"})}return p}()})})]}),(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:d.hw_nanoprint===0,onClick:function(){function p(){return c("hw_nanoprint",{print:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_nanoprint===1,onClick:function(){function p(){return c("hw_nanoprint",{print:"1"})}return p}()})})]}),(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:d.hw_card===0,onClick:function(){function p(){return c("hw_card",{card:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_card===1,onClick:function(){function p(){return c("hw_card",{card:"1"})}return p}()})})]}),d.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:d.hw_cpu===1,onClick:function(){function p(){return c("hw_cpu",{cpu:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_cpu===2,onClick:function(){function p(){return c("hw_cpu",{cpu:"2"})}return p}()})})]}),(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:d.hw_tesla===0,onClick:function(){function p(){return c("hw_tesla",{tesla:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_tesla===1,onClick:function(){function p(){return c("hw_tesla",{tesla:"1"})}return p}()})})]})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){function p(){return c("confirm_order")}return p}()})]})},N=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.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:[d.totalprice,"\u20AE"]})]})]})},h=function(l,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."})]})}},68155:function(x,r,n){"use strict";r.__esModule=!0,r.CookingAppliance=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CookingAppliance=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.temperature,u=s.optimalTemp,i=s.temperatureEnough,c=s.efficiency,d=s.containersRemovable,p=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:i?"good":"blue",value:l,maxValue:u,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l}),"\xB0C / ",u,"\xB0C"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Efficiency",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c}),"%"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Containers",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v,f){return v.empty?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+1),children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:"Empty"})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+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:!d,onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:v.container||"No Container"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v.progressText[0],value:v.progress,maxValue:1,children:v.progressText[1]})})]})},f)})})})]})})}return V}()},68285:function(x,r,n){"use strict";r.__esModule=!0,r.CrewManifestContent=r.CrewManifest=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(78419),V=n(40946),k=r.CrewManifest=function(){function N(){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,S)})})}return N}(),S=r.CrewManifestContent=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.manifest;return(0,e.createComponentVNode)(2,t.Section,{title:"Crew Manifest",noTopPadding:!0,children:c.map(function(d){return!!d.elems.length&&(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:m.COLORS.manifest[d.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:d.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"})]}),d.elems.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{color:"average",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,V.decodeHtmlEntities)(p.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.active})]},p.name+p.rank)})]})},d.cat)})})}return N}()},59694: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(62188),m=n(11477),V=n(11790),k=function(u){return u.dead?"Deceased":parseInt(u.stat,10)===1?"Unconscious":"Living"},S=function(u){return u.dead?"red":parseInt(u.stat,10)===1?"orange":"green"},N=r.CrewMonitor=function(){function l(){return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,h)})})}return l}(),h=r.CrewMonitorContent=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=c.config,f=(0,o.useLocalState)(i,"tabIndex",0),C=f[0],b=f[1],g=(0,t.flow)([(0,a.sortBy)(function(w){return w.name}),(0,a.sortBy)(function(w){return w==null?void 0:w.x}),(0,a.sortBy)(function(w){return w==null?void 0:w.y}),(0,a.sortBy)(function(w){return w==null?void 0:w.realZ})])(p.crewmembers||[]),y=(0,o.useLocalState)(i,"zoom",1),B=y[0],L=y[1],I;return C===0?I=(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(w){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:[(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:S(w),children:k(w)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,V.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"red",children:w.brute}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"orange",children:w.fire}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"green",children:w.tox}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"blue",children:w.oxy}),")"]}):null]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:w.sensor_type===3?p.isAI?(0,e.createComponentVNode)(2,V.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function T(){return d("track",{track:w.ref})}return T}()}):w.area+" ("+w.x+", "+w.y+", "+w.z+")":"Not Available"})]},w.ref)})]}):C===1?I=(0,e.createComponentVNode)(2,s):I="ERROR",(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===0,onClick:function(){function w(){return b(0)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===1,onClick:function(){function w(){return b(1)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,V.Box,{m:2,children:I})],4)}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.config,v=c.data,f=(0,o.useLocalState)(i,"zoom",1),C=f[0],b=f[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(y){return b(y)}return g}(),children:v.crewmembers.filter(function(g){return g.sensor_type===3&&~~g.realZ===~~p.mapZLevel}).map(function(g){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:g.x,y:g.y,zoom:C,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:S(g)},g.ref)})})})}},1123:function(x,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function h(s,l){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,S)})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isOperating,p=c.hasOccupant,v=c.occupant,f=v===void 0?[]:v,C=c.cellTemperature,b=c.cellTemperatureStatus,g=c.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 y(){return i("ejectOccupant")}return y}(),disabled:!p,children:"Eject"}),children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:f.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:f.health,max:f.maxHealth,value:f.health/f.maxHealth,color:f.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f[y.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f[y.type])})})},y.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 y(){return i("ejectBeaker")}return y}(),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 y(){return i(d?"switchOff":"switchOn")}return y}(),selected:d,children:d?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:b,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,N)})]})})],4)},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isBeakerLoaded,p=c.beakerLabel,v=c.beakerVolume;return d?(0,e.createFragment)([p||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No label"}),(0,e.createComponentVNode)(2,t.Box,{color:!v&&"bad",children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function f(C){return Math.round(C)+" units remaining"}return f}()}):"Beaker is empty"})],0):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded"})}},96886:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageItems=r.CryoStorageCrew=r.CryoStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CryoStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[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:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,V),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=r.CryoStorageCrew=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.crew;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Crew",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"No crew currently stored."})})}return S}(),k=r.CryoStorageItems=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=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 c(){return l("allitems")}return c}(),children:"Claim All"}),children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function d(){return l("item",{ref:c.ref})}return d}(),children:c.name},c.ref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},65185:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageVr=r.CryoStorageItemsVr=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(96886),V=r.CryoStorageVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[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:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,m.CryoStorageCrew),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),k=r.CryoStorageItemsVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},12513:function(x,r,n){"use strict";r.__esModule=!0,r.DNAForensics=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DNAForensics=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.scan_progress,u=s.scanning,i=s.bloodsamp,c=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:!i,icon:"power-off",onClick:function(){function d(){return h("scanItem")}return d}(),children:u?"Halt Scan":"Begin Scan"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"eject",onClick:function(){function d(){return h("ejectItem")}return d}(),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:l,maxValue:100})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Blood Sample",children:i&&(0,e.createComponentVNode)(2,t.Box,{children:[i,(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No blood sample inserted."})})]})})}return V}()},21576:function(x,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(48388),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],N=r.DNAModifier=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.irradiating,T=I.dnaBlockSize,M=I.occupant;y.dnaBlockSize=T,y.isDNAInvalid=!M.isViableSubject||!M.uniqueIdentity||!M.structuralEnzymes;var A;return w&&(A=(0,e.createComponentVNode)(2,f,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:700,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)]})]})}return b}(),h=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.locked,T=I.hasOccupant,M=I.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:!T,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function A(){return L("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T||w,icon:"user-slash",content:"Eject",onClick:function(){function A(){return L("ejectOccupant")}return A}()})],4),children:T?(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:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:M.minHealth,max:M.maxHealth,value:M.health/M.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[M.stat][0],children:V[M.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.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:M.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:I.occupant.uniqueEnzymes?I.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."})})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedMenuKey,T=I.hasOccupant,M=I.occupant;if(T){if(y.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 A;return w==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,i)],4):w==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i)],4):w==="buffer"?A=(0,e.createComponentVNode)(2,c):w==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(R,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===R[0],onClick:function(){function _(){return L("selectMenuKey",{key:R[0]})}return _}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:R[2]}),R[1]]},O)})}),A]})},l=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedUIBlock,T=I.selectedUISubBlock,M=I.selectedUITarget,A=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:A.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:y.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:M,format:function(){function R(O){return O.toString(16).toUpperCase()}return R}(),ml:"0",onChange:function(){function R(O,_){return L("changeUITarget",{value:_})}return R}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function R(){return L("pulseUIRadiation")}return R}()})]})},u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedSEBlock,T=I.selectedSESubBlock,M=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:M.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return L("pulseSERadiation")}return A}()})]})},i=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.radiationIntensity,T=I.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:w,popUpPosition:"right",ml:"0",onChange:function(){function M(A,R){return L("radiationIntensity",{value:R})}return M}()})}),(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:T,popUpPosition:"right",ml:"0",onChange:function(){function M(A,R){return L("radiationDuration",{value:R})}return M}()})})]}),(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 M(){return L("pulseRadiation")}return M}()})]})},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.buffers,T=w.map(function(M,A){return(0,e.createComponentVNode)(2,d,{id:A+1,name:"Buffer "+(A+1),buffer:M},A)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Buffers",level:"2",children:T}),(0,e.createComponentVNode)(2,p)],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.id,T=g.name,M=g.buffer,A=I.isInjectorReady,R=T+(M.data?" - "+M.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:R,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!M.data,icon:"trash",content:"Clear",onClick:function(){function O(){return L("bufferOption",{option:"clear",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data,icon:"pen",content:"Rename",onClick:function(){function O(){return L("bufferOption",{option:"changeLabel",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data||!I.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){function O(){return L("bufferOption",{option:"saveDisk",id:w})}return O}()})],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 O(){return L("bufferOption",{option:"saveUI",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveUIAndUE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveSE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!I.hasDisk||!I.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"loadDisk",id:w})}return O}()})]}),M.data?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:M.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[M.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!M.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w,block:1})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"transfer",id:w})}return O}()})]})],4):null]}),!M.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.hasDisk,T=I.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:!w||!T.data,icon:"trash",content:"Wipe",onClick:function(){function M(){return L("wipeDisk")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function M(){return L("ejectDisk")}return M}()})],4),children:w?T.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:T.label?T.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner?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.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."]})})},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.isBeakerLoaded,T=I.beakerVolume,M=I.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function A(){return L("ejectBeaker")}return A}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(A,R){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>T,icon:"syringe",content:A,onClick:function(){function O(){return L("injectRejuvenators",{amount:A})}return O}()},R)}),(0,e.createComponentVNode)(2,t.Button,{disabled:T<=0,icon:"syringe",content:"All",onClick:function(){function A(){return L("injectRejuvenators",{amount:T})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:M||"No label"}),T?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[T," unit",T===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."]})})},f=function(g,y){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 "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,y){for(var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.dnaString,T=g.selectedBlock,M=g.selectedSubblock,A=g.blockSize,R=g.action,O=w.split(""),_=0,P=[],D=function(){for(var W=z/A+1,K=[],H=function(){var q=Y+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:T===W&&M===q,content:O[z+Y],mb:"0",onClick:function(){function oe(){return L(R,{block:W,subblock:q})}return oe}()}))},Y=0;Y1?"Dangerous!":null]},f.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:[!v||!v.length?"None":null,v.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)}),c.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{content:f.stage,icon:"exchange-alt",onClick:function(){function C(){return l("grab",{grab:f.reference})}return C}()},f.stage)}),(0,e.createComponentVNode)(2,t.Button,{content:"Species",icon:"exchange-alt",onClick:function(){function f(){return l("affected_species")}return f}()})]})],4)]})},k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.dish_inserted,c=u.buffer,d=u.species_buffer,p=u.effects,v=u.info,f=u.growth,C=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:c?(0,e.createComponentVNode)(2,t.Box,{children:[c.name," (",c.stage,")"]}):d?(0,e.createComponentVNode)(2,t.Box,{children:d}):"Empty"})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!c&&!d,onClick:function(){function g(){return l("disk")}return g}()}),c?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #1",disabled:c.stage>1,onClick:function(){function g(){return l("splice",{splice:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #2",disabled:c.stage>2,onClick:function(){function g(){return l("splice",{splice:2})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #3",disabled:c.stage>3,onClick:function(){function g(){return l("splice",{splice:3})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #4",disabled:c.stage>4,onClick:function(){function g(){return l("splice",{splice:4})}return g}()})]}):d?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice Species",disabled:!d||v,onClick:function(){function g(){return l("splice",{splice:5})}return g}()})}):null]})}},3153:function(x,r,n){"use strict";r.__esModule=!0,r.DishIncubator=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.DishIncubator=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.on,i=l.system_in_use,c=l.food_supply,d=l.radiation,p=l.growth,v=l.toxins,f=l.chemicals_inserted,C=l.can_breed_virus,b=l.chemical_volume,g=l.max_chemical_volume,y=l.dish_inserted,B=l.blood_already_infected,L=l.virus,I=l.analysed,w=l.infection_rate;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.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 T(){return s("power")}return T}()}),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 T(){return s("rad")}return T}()})}),(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:!i,onClick:function(){function T(){return s("flush")}return T}()})})]}),(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:c})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,color:d>=50?"bad":p>=25?"average":"good",value:d,children:[(0,a.formatCommaNumber)(d*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:v})})]})]}),(0,e.createComponentVNode)(2,o.Section,{title:C?"Vial":"Chemicals",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject "+(C?"Vial":"Chemicals"),disabled:!f,onClick:function(){function T(){return s("ejectchem")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Breed Virus",disabled:!C,onClick:function(){function T(){return s("virus")}return T}()})],4),children:f&&(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:C?"good":"average",children:[y?C?"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:!y,onClick:function(){function T(){return s("ejectdish")}return T}()}),children:y?L?(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:p})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Infection Rate",children:I?w:"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 k}()},82936:function(x,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DisposalBin=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.mode,u=s.pressure,i=s.isAI,c=s.panel_open,d=s.flushing,p,v;return l===2?(p="good",v="Ready"):l<=0?(p="bad",v="N/A"):l===1?(p="average",v="Pressurizing"):(p="average",v="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:p,children:v}),(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:i||c,content:"Disengaged",selected:d?null:"selected",onClick:function(){function f(){return h("disengageHandle")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:i||c,content:"Engaged",selected:d?"selected":null,onClick:function(){function f(){return h("engageHandle")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l===-1,content:"Off",selected:l?null:"selected",onClick:function(){function f(){return h("pumpOff")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l===-1,content:"On",selected:l?"selected":null,onClick:function(){function f(){return h("pumpOn")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:i,content:"Eject Contents",onClick:function(){function f(){return h("eject")}return f}()})})]})]})})})}return V}()},93263:function(x,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DroneConsole=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.drones,u=s.areas,i=s.selected_area,c=s.fabricator,d=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:!c,selected:d,icon:"power-off",content:d?"Enabled":"Disabled",onClick:function(){function p(){return h("toggle_fab")}return p}()}),children:c?(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 p(){return h("search_fab")}return p}()})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Request Drone",children:[(0,e.createComponentVNode)(2,t.Dropdown,{options:u?u.sort():null,selected:i,width:"100%",onSelected:function(){function p(v){return h("set_dcall_area",{area:v})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",content:"Send Ping",onClick:function(){function p(){return h("ping")}return p}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Units",children:l&&l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Resync",onClick:function(){function v(){return h("resync",{ref:p.ref})}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){function v(){return h("shutdown",{ref:p.ref})}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:p.loc}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[p.charge," / ",p.maxCharge]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active",children:p.active?"Yes":"No"})]})},p.name)})}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No drones detected."})})]})})}return V}()},64032:function(x,r,n){"use strict";r.__esModule=!0,r.EmbeddedController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(66905),V=(0,m.createLogger)("fuck"),k={},S=r.EmbeddedController=function(){function B(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.internalTemplateName,R=k[A];if(!R)throw Error("Unable to find Component for template name: "+A);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,R)})})}return B}(),N=function(L,I){var w=L.bars;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:T.color(T.value),minValue:T.minValue,maxValue:T.maxValue,value:T.value,children:T.textValue})},T.label)})})})},h=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A=!0;T.interior_status&&T.interior_status.state==="open"?A=!1:T.external_pressure&&T.chamber_pressure&&(A=!(Math.abs(T.external_pressure-T.chamber_pressure)>5));var R=!0;return T.exterior_status&&T.exterior_status.state==="open"?R=!1:T.internal_pressure&&T.chamber_pressure&&(R=!(Math.abs(T.internal_pressure-T.chamber_pressure)>5)),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){function O(){return M("cycle_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){function O(){return M("cycle_int")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){function O(){return M("force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:R?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){function O(){return M("force_int")}return O}()})]})],4)},s=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={docked:(0,e.createComponentVNode)(2,l),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..."})},R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return T.exterior_status.state==="open"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):T.exterior_status.lock==="unlocked"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):T.exterior_status.lock==="locked"&&(R=(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:A[T.docking_status]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:R})]})})},l=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return T.armed?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"ARMED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SYSTEMS OK"})},u=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!T.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:T.docking_status!=="docked"?"bad":"",onClick:function(){function A(){return M("force_door")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{selected:T.override_enabled,color:T.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){function A(){return M("toggle_override")}return A}()})]})},i=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={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"})},R=A[T.docking_status];return T.override_enabled&&(R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[T.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),R},c=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=function(_){return _<80||_>120?"bad":_<95||_>110?"average":"good"},R=[{minValue:0,maxValue:202,value:M.external_pressure,label:"External Pressure",textValue:M.external_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.internal_pressure,label:"Internal Pressure",textValue:M.internal_pressure+" kPa",color:A}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:R}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Purge",onClick:function(){function O(){return T("purge")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Secure",onClick:function(){function O(){return T("secure")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function O(){return T("abort")}return O}()})})]})],4)};k.AirlockConsoleAdvanced=c;var d=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleSimple=d;var p=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()},{minValue:0,maxValue:100,value:M.chamber_phoron,label:"Chamber Phoron",textValue:M.chamber_phoron+" mol",color:function(){function R(O){return O>5?"bad":O>.5?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsolePhoron=p;var v=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Dock",buttons:M.airlock_disabled||M.override_enabled?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()}):null,children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleDocking=v;var f=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return M.exterior_status.state==="open"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):M.exterior_status.lock==="unlocked"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):M.exterior_status.lock==="locked"&&(A=(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:!M.override_enabled,content:"Force exterior door",onClick:function(){function R(){return T("force_door")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()})],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:A})]})})};k.DockingConsoleSimple=f;var C=function(L,I){var w=(0,a.useBackend)(I),T=w.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:T.airlocks.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:T.airlocks.map(function(M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:M.override_enabled?"bad":"good",label:M.name,children:M.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},M.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)};k.DockingConsoleMulti=C;var b=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.interior_status.state==="open"||M.exterior_status.state==="closed",R=M.exterior_status.state==="open"||M.interior_status.state==="closed";return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:A?"arrow-left":"exclamation-triangle",content:A?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){function O(){T(A?"cycle_ext_door":"force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:R?"arrow-right":"exclamation-triangle",content:R?"Cycle To Interior":"Lock Interior Door",onClick:function(){function O(){T(R?"cycle_int_door":"force_int")}return O}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Exterior Door Status",children:M.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Interior Door Status",children:M.interior_status.state==="closed"?"Locked":"Open"})]})})};k.DoorAccessConsole=b;var g=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:M.armed,color:M.armed?"bad":"average",content:"ARM",onClick:function(){function A(){return T("manual_arm")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!M.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){function A(){return T("force_launch")}return A}()})]})]})],4)};k.EscapePodConsole=g;var y=function(L,I){var w=(0,a.useBackend)(I),T=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,u)})],4)};k.EscapePodBerthConsole=y},23424: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(62188),t=n(11790),o=n(11477),m=r.EntityNarrate=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=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,k)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Select Behaviour",children:(0,e.createComponentVNode)(2,S)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,N)})]})})})]})})})})}return h}(),V=r.EntitySelection=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,v=c.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:d,fill:!0,content:"Multi-Selection",onClick:function(){function f(){return i("change_mode_multi")}return f}()}),children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p.includes(f),onClick:function(){function C(){return i("select_entity",{id_selected:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:f})},f)})})})})})}return h}(),k=r.DisplayDetails=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,v=c.selected_id,f=c.selected_name,C=c.selected_type;return d?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Number of entities selected:",16)," ",p]}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Selected ID:",16)," ",v," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Name:",16)," ",f," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Type:",16)," ",C," ",(0,e.createVNode)(1,"br")]})}return h}(),S=r.ModeSelector=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.privacy_select,p=c.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 v(){return i("change_mode_privacy")}return v}(),selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return i("change_mode_narration")}return v}(),selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})}return h}(),N=r.NarrationInput=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=(0,a.useLocalState)(l,"narration",""),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Narration Text",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return i("narrate",{message:p})}return f}(),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 f(C,b){return v(b)}return f}(),value:p||""})})})})}return h}()},42014:function(x,r,n){"use strict";r.__esModule=!0,r.ExonetNode=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ExonetNode=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.allowPDAs,i=s.allowCommunicators,c=s.allowNewscasters,d=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:l,content:"Power "+(l?"On":"Off"),onClick:function(){function p(){return h("toggle_power")}return p}()}),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 p(){return h("toggle_PDA_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Communicators",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,content:i?"Open":"Closed",onClick:function(){function p(){return h("toggle_communicator_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){function p(){return h("toggle_newscaster_port")}return p}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Logging",children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:[d.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex.Item,{m:"2px",basis:"49%",grow:v%2,children:p},v)}),!d||d.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No logs found."}):null]})})]})})}return V}()},88662: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(62188),m=n(43820),V=n(11790),k=n(11477),S=n(40946),N=n(5339),h;function s(D,z){var U=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(U)return(U=U.call(D)).next.bind(U);if(Array.isArray(D)||(U=l(D))||z&&D&&typeof D.length=="number"){U&&(D=U);var W=0;return function(){return W>=D.length?{done:!0}:{done:!1,value:D[W++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(D,z){if(D){if(typeof D=="string")return u(D,z);var U=Object.prototype.toString.call(D).slice(8,-1);if(U==="Object"&&D.constructor&&(U=D.constructor.name),U==="Map"||U==="Set")return Array.from(D);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return u(D,z)}}function u(D,z){(z==null||z>D.length)&&(z=D.length);for(var U=0,W=new Array(z);UW?{color:p,deficit:z-W}:U>W?{color:d,deficit:z}:z+U>W?{color:d,deficit:z+U-W}:{color:c,deficit:0}},b=function(z,U,W){var K={textColor:c};return Object.keys(W.cost).forEach(function(H){K[H]=C(W.cost[H],U[H],z[H]),K[H].color>K.textColor&&(K.textColor=K[H].color)}),K},g=function(z,U){var W={},K={},H={},Y={};return U.forEach(function(J,q){Y[q]=c,Object.keys(J.cost).forEach(function(oe){W[oe]=W[oe]||0,H[oe]=H[oe]||0,K[oe]=C(J.cost[oe],W[oe],z[oe]),K[oe].color!==c?Y[q]1&&q0});return oe.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:oe.map(function(ae){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,w,{name:ae.name,amount:ae.amount,formatsi:!0}),!J&&(0,e.createComponentVNode)(2,V.Box,{mt:1,style:{"text-align":"center"},children:(0,e.createComponentVNode)(2,L,{material:ae})})]},ae.name)||null})})}return D}(),w=function(z,U){var W=z.name,K=z.amount,H=z.formatsi,Y=z.formatmoney,J=z.color,q=z.style,oe="0";return K<1&&K>0?oe=(0,N.toFixed)(K,2):H?oe=(0,m.formatSiUnit)(K,0):Y?oe=(0,m.formatMoney)(K):oe=K,(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,S.toTitleCase)(W),children:(0,e.createComponentVNode)(2,V.Box,{className:(0,a.classes)(["sheetmaterials32x32",i[W]]),position:"relative",style:q})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{textColor:J,style:{"text-align":"center"},children:oe})})]})},T=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.partSets||[],Y=K.buildableParts||{},J=(0,o.useSharedState)(U,"part_tab",H.length?Y[0]:""),q=J[0],oe=J[1];return(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:H.map(function(ae){return!!Y[ae]&&(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:ae===q,disabled:!Y[ae],onClick:function(){function le(){return oe(ae)}return le}(),children:ae},ae)})})},M=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=function(Ce){for(var Se=s(Ce),we;!(we=Se()).done;){var pe=we.value;if(J[pe])return pe}return null},Y=K.partSets||[],J=K.buildableParts||[],q=z.queueMaterials,oe=z.materials,ae=(0,o.useSharedState)(U,"part_tab",H(Y)),le=ae[0],he=ae[1],me=(0,o.useSharedState)(U,"search_text",""),Be=me[0],ce=me[1];if(!le||!J[le]){var te=H(Y);if(te)he(te);else return}var ee;return Be?(ee=[],y(Be,J).forEach(function(ie){ie.format=b(oe,q,ie),ee.push(ie)})):(ee={Parts:[]},J[le].forEach(function(ie){if(ie.format=b(oe,q,ie),!ie.subCategory){ee.Parts.push(ie);return}ie.subCategory in ee||(ee[ie.subCategory]=[]),ee[ie.subCategory].push(ie)})),(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 ie(Ce,Se){return ce(Se)}return ie}()})})]})}),!!Be&&(0,e.createComponentVNode)(2,A,{name:"Search Results",parts:ee,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ee).map(function(ie){return(0,e.createComponentVNode)(2,A,{name:ie,parts:ee[ie]},ie)})],0)},A=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.buildingPart,J=z.parts,q=z.name,oe=z.forceShow,ae=z.placeholder,le=(0,o.useSharedState)(U,"display_mats",!1),he=le[0];return(!!J.length||oe)&&(0,e.createComponentVNode)(2,V.Section,{title:q,buttons:(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){function me(){return K("add_queue_set",{part_list:J.map(function(Be){return Be.id})})}return me}()}),children:[!J.length&&ae,J.map(function(me){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:Y||me.format.textColor===p,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){function Be(){return K("build_part",{id:me.id})}return Be}()})}),(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 Be(){return K("add_queue_part",{id:me.id})}return Be}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[me.format.textColor],children:me.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: "+me.printTime+"s. "+(me.desc||""),tooltipPosition:"left"})})]}),he&&(0,e.createComponentVNode)(2,V.Flex,{mb:2,children:Object.keys(me.cost).map(function(Be){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"50px",color:v[me.format[Be].color],children:(0,e.createComponentVNode)(2,w,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Be,amount:me.cost[Be]})},Be)})})],0,me.name)})]})},R=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.isProcessingQueue,J=H.queue||[],q=z.queueMaterials,oe=z.missingMaterials,ae=z.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:!J.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){function le(){return K("clear_queue")}return le}()}),!!Y&&(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Stop",icon:"stop",onClick:function(){function le(){return K("stop_queue")}return le}()})||(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Build Queue",icon:"play",onClick:function(){function le(){return K("build_queue")}return le}()})],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,P)}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,_,{textColors:ae})})]})})}),!!J.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,O,{queueMaterials:q,missingMaterials:oe})})})]})},O=function(z,U){var W=z.queueMaterials,K=z.missingMaterials;return(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:Object.keys(W).map(function(H){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"12%",children:[(0,e.createComponentVNode)(2,w,{formatmoney:!0,name:H,amount:W[H]}),!!K[H]&&(0,e.createComponentVNode)(2,V.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,m.formatMoney)(K[H])})]},H)})})},_=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=z.textColors,J=H.queue||[];return J.length?J.map(function(q,oe){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 ae(){return K("del_queue_part",{index:oe+1})}return ae}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[Y[oe]],children:q.name})})]})},q.name)}):(0,e.createFragment)([(0,e.createTextVNode)("No parts in queue.")],4)},P=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.buildingPart,Y=K.storedPart;if(Y){var J=Y.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:J}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(H){var q=H.name,oe=H.duration,ae=H.printTime,le=Math.ceil(oe/10);return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:ae,value:oe,children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:q}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:le>=0&&le+"s"||"Dispensing..."})]})})})}}},61697:function(x,r,n){"use strict";r.__esModule=!0,r.Farmbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Farmbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.locked,i=s.tank,c=s.tankVolume,d=s.tankMaxVolume,p=s.waters_trays,v=s.refills_water,f=s.uproots_weeds,C=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:l,onClick:function(){function y(){return h("power")}return y}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water Tank",children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(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:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function y(){return h("water")}return y}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Refill watertank",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function y(){return h("refill")}return y}(),children:v?"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:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function y(){return h("weed")}return y}(),children:f?"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:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function y(){return h("replacenutri")}return y}(),children:C?"Yes":"No"})})})})]})||null]})})}return V}()},27319:function(x,r,n){"use strict";r.__esModule=!0,r.FaxContent=r.Fax=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(39813),V=n(50947),k=r.Fax=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.data,d=c.authenticated,p=c.copyItem,v=340;return p&&(v=358),d?(0,e.createComponentVNode)(2,o.Window,{width:600,height:v,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,m.LoginInfo),(0,e.createComponentVNode)(2,S)]})}):(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,N),(0,e.createComponentVNode)(2,V.LoginScreen,{machineType:"Fax"})]})})}return s}(),S=r.FaxContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.bossName,v=d.copyItem,f=d.cooldown,C=d.destination,b=d.adminDepartments,g=new Set(b);return(0,e.createComponentVNode)(2,t.Section,{children:[!!f&&(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:[p," Quantum Entanglement Network"]})}),v&&(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:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return c("rename")}return y}(),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:C,onClick:function(){function y(){return c("dept")}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function y(){return c("send")}return y}(),content:"Send",fluid:!0})]})||(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Please insert item to transmit."}),(0,e.createComponentVNode)(2,h)]})}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.copyItem;return p?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",onClick:function(){function v(){return c("remove")}return v}(),content:"Remove Item"})}):null},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.adminDepartments,v=d.destination,f=d.copyItem,C=new Set(p),b="1rem";return f&&(b="1.5rem"),!f||f&&C.has(v)?(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 c("send_automated_staff_request")}return g}(),content:"Send Automated Staff Request",fluid:!0})})]}):null}},51193:function(x,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.FilingCabinet=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.cabinet_name,u=s.contents,i=s.contents_ref;return(0,e.createComponentVNode)(2,o.Window,{title:l||"Filing Cabinet",width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{backgroundColor:"#B88F3D",scrollable:!0,children:[u.map(function(c,d){return(0,e.createComponentVNode)(2,t.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{align:"center",grow:1,children:(0,e.createComponentVNode)(2,t.Box,{align:"center",children:c})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("remove_object",{ref:i[d]})}return p}()})})]},i[d])}),u.length===0&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"white",align:"center",children:["The ",l," is empty!"]})})]})})}return V}()},19860:function(x,r,n){"use strict";r.__esModule=!0,r.Floorbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Floorbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.vocal,d=s.amount,p=s.possible_bmode,v=s.improvefloors,f=s.eattiles,C=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:l,onClick:function(){function g(){return h("start")}return g}(),children:l?"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:d})}),(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:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(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:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("vocal")}return g}(),children:c?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Improves Floors",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("improve")}return g}(),children:v?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Finds Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("tiles")}return g}(),children:f?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return h("make")}return g}(),children:C?"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:p,onSelected:function(){function g(y){return h("bridgemode",{dir:y})}return g}()})})]})})||null]})})}return V}()},19592:function(x,r,n){"use strict";r.__esModule=!0,r.GasPump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.GasPump=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.last_flow_rate,c=s.last_power_draw,d=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:i/10})," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Load",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:d,color:c=100?p="Running":!l&&u>0&&(p="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:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){function v(){return h("gentoggle")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",children:["Generator ",p]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Status",children:[u,"%"]})]})})})})}return V}()},462:function(x,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.GuestPass=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.access,i=l.area,c=l.giver,d=l.giveName,p=l.reason,v=l.duration,f=l.mode,C=l.log,b=l.uid;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:f===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:C.length&&C.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:c||"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:d,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:p,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:v,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})(i).map(function(g){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:g.on,content:g.area_name,onClick:function(){function y(){return s("access",{access:g.area})}return y}()},g.area)})})]})})})}return k}()},98915:function(x,r,n){"use strict";r.__esModule=!0,r.GyrotronControlContent=r.GyrotronControl=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.GyrotronControl=function(){function 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 k}(),V=r.GyrotronControlContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.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 i(){return s("set_tag")}return i}()}),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(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,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{gyro:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_rate",{gyro:i.ref,rate:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_str",{gyro:i.ref,str:p})}return c}()})})]},i.name)})]})})}return k}()},14289:function(x,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Holodeck=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.restrictedPrograms,i=s.currentProgram,c=s.isSilicon,d=s.safetyDisabled,p=s.emagged,v=s.gravity,f=l;return d&&(f=f.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:f.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{color:u.indexOf(C)!==-1?"bad":null,icon:"eye",content:C,selected:i===C,fluid:!0,onClick:function(){function b(){return h("program",{program:C})}return b}()},C)})}),!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Override",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",fluid:!0,disabled:p,color:d?"good":"bad",onClick:function(){function C(){return h("AIoverride")}return C}(),children:[!!p&&"Error, unable to control. ",d?"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:d?(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:v,onClick:function(){function C(){return h("gravity")}return C}(),children:v?"Enabled":"Disabled"})})]})})]})})}return V}()},46065:function(x,r,n){"use strict";r.__esModule=!0,r.ICAssembly=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.ICAssembly=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.total_parts,d=i.max_components,p=i.total_complexity,v=i.max_complexity,f=i.battery_charge,C=i.battery_max,b=i.net_power,g=i.unremovable_circuits,y=i.removable_circuits,B=function(){function I(){return u("remove_cell")}return I}(),L=function(){function I(){return u("rename")}return I}();return(0,e.createComponentVNode)(2,m.Window,{width:600,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:B,children:"Remove Battery"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:L,children:"Rename"})],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:c/d,maxValue:1,children:[c," / ",d," (",(0,a.round)(c/d*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:p/v,maxValue:1,children:[p," / ",v," (",(0,a.round)(p/v*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:f/C,maxValue:1,children:[f," / ",C," (",(0,a.round)(f/C*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 I(w){return"-"+(0,V.formatPower)(Math.abs(w))+"/s"}return I}()})})]})}),g.length&&(0,e.createComponentVNode)(2,S,{title:"Built-in Components",circuits:g})||null,y.length&&(0,e.createComponentVNode)(2,S,{title:"Removable Components",circuits:y})||null]})})}return N}(),S=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=h.title,c=h.circuits;return(0,e.createComponentVNode)(2,o.Section,{title:i,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("open_circuit",{ref:d.ref})}return p}(),children:"View"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("rename_circuit",{ref:d.ref})}return p}(),children:"Rename"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("scan_circuit",{ref:d.ref})}return p}(),children:"Debugger Scan"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("remove_circuit",{ref:d.ref})}return p}(),children:"Remove"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("bottom_circuit",{ref:d.ref})}return p}(),children:"Move to Bottom"})]},d.ref)})})})}},95599:function(x,r,n){"use strict";r.__esModule=!0,r.ICCircuit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(43820),k=r.ICCircuit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.name,p=c.desc,v=c.displayed_name,f=c.removable,C=c.complexity,b=c.power_draw_idle,g=c.power_draw_per_use,y=c.extended_desc,B=c.inputs,L=c.outputs,I=c.activators;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,title:v,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 w(){return i("rename")}return w}(),children:"Rename"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("scan")}return w}(),children:"Scan with Device"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("remove")}return w}(),children:"Remove"})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:C}),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]}),y]}),(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,S,{list:B})})})||null,(0,e.createComponentVNode)(2,t.Flex.Item,{basis:B.length&&L.length?"33%":B.length||L.length?"45%":"100%",children:(0,e.createComponentVNode)(2,t.Section,{title:v,mb:1,children:(0,e.createComponentVNode)(2,t.Box,{children:p})})}),L.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Outputs",children:(0,e.createComponentVNode)(2,S,{list:L})})})||null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Triggers",children:I.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.name,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return i("pin_name",{pin:w.ref})}return T}(),children:w.pulse_out?"":""}),(0,e.createComponentVNode)(2,N,{pin:w})]},w.name)})})]})]})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.list;return c.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_name",{pin:d.ref})}return p}(),children:[(0,m.decodeHtmlEntities)(d.type),": ",d.name]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_data",{pin:d.ref})}return p}(),children:d.data}),(0,e.createComponentVNode)(2,N,{pin:d})]},d.ref)})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.pin;return c.linked.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_unwire",{pin:c.ref,link:d.ref})}return p}(),children:d.name}),"@\xA0",(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("examine",{ref:d.holder_ref})}return p}(),children:d.holder_name})]},d.ref)})}},82723:function(x,r,n){"use strict";r.__esModule=!0,r.ICDetailer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.ICDetailer=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.detail_color,i=l.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(i).map(function(c,d){return(0,e.createComponentVNode)(2,t.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,m.toTitleCase)(c),tooltipPosition:d%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){function p(){return s("change_color",{color:c})}return p}(),style:i[c]===u?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:i[c]},c)})})})})}return k}()},15875:function(x,r,n){"use strict";r.__esModule=!0,r.ICPrinter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ICPrinter=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.metal,d=i.max_metal,p=i.metal_per_sheet,v=i.debug,f=i.upgraded,C=i.can_clone,b=i.assembly_to_clone,g=i.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:c,maxValue:d,children:[c/p," / ",d/p," sheets"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuits Available",children:f?"Advanced":"Regular"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Assembly Cloning",children:C?"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,S)]})})}return N}(),k=function(h,s){return!(!h.can_build||h.cost>s.metal)},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.categories,d=i.debug,p=(0,a.useSharedState)(s,"categoryTarget",null),v=p[0],f=p[1],C=(0,m.filter)(function(b){return b.name===v})(c)[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,m.sortBy)(function(b){return b.name})(c).map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===b.name,onClick:function(){function g(){return f(b.name)}return g}(),children:b.name},b.name)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,m.sortBy)(function(b){return b.name})(C.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:!k(b,i),icon:"print",onClick:function(){function g(){return u("build",{build:b.path})}return g}(),children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},89724:function(x,r,n){"use strict";r.__esModule=!0,r.IDCard=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=n(70237),V=r.IDCard=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.data,l=s.registered_name,u=s.sex,i=s.species,c=s.age,d=s.assignment,p=s.fingerprint_hash,v=s.blood_type,f=s.dna_hash,C=s.photo_front,b=[{name:"Sex",val:u},{name:"Species",val:i},{name:"Age",val:c},{name:"Blood Type",val:v},{name:"Fingerprint",val:p},{name:"DNA Hash",val:f}];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:C&&(0,e.createVNode)(1,"img",null,null,1,{src:C.substr(1,C.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:l})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.RankIcon,{rank:d})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:d})})]})]})})})}return k}()},85418: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(62188),o=n(11790),m=n(11477),V=n(40946),k=n(68285),S=r.IdentificationComputer=function(){function u(){return(0,e.createComponentVNode)(2,m.Window,{width:600,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{resizable:!0,children:(0,e.createComponentVNode)(2,N)})})}return u}(),N=r.IdentificationComputerContent=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.mode,b=v.has_modify,g=v.printing,y=(0,e.createComponentVNode)(2,s,{ntos:f});return f&&!v.have_id_slot?y=(0,e.createComponentVNode)(2,k.CrewManifestContent):g?y=(0,e.createComponentVNode)(2,h):C===1&&(y=(0,e.createComponentVNode)(2,k.CrewManifestContent)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(!f||!!v.have_id_slot)&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===0,onClick:function(){function B(){return p("mode",{mode_target:0})}return B}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===1,onClick:function(){function B(){return p("mode",{mode_target:1})}return B}(),children:"Crew Manifest"}),!f||!!v.have_printer&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{float:"right",icon:"print",onClick:function(){function B(){return p("print")}return B}(),disabled:!C&&!b,color:"",children:"Print"})]}),y],0)}return u}(),h=r.IdentificationComputerPrinting=function(){function u(i,c){return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",children:"Please wait..."})}return u}(),s=r.IdentificationComputerAccessModification=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.station_name,b=v.target_name,g=v.target_owner,y=v.scan_name,B=v.authenticated,L=v.has_modify,I=v.account_number,w=v.centcom_access,T=v.all_centcom_access,M=v.regions,A=v.id_rank,R=v.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 O(){return p("modify")}return O}()})}),!f&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authorized Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:y,onClick:function(){function O(){return p("scan")}return O}()})})]}),!!B&&!!L&&(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 O(_,P){return p("reg",{reg:P})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,o.Input,{value:I,fluid:!0,onInput:function(){function O(_,P){return p("account",{account:P})}return O}()})}),(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 O(){return p("terminate")}return O}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Assignment",level:2,children:(0,e.createComponentVNode)(2,o.Table,{children:[R.map(function(O){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:O.department_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.jobs.map(function(_){return(0,e.createComponentVNode)(2,o.Button,{selected:_.job===A,onClick:function(){function P(){return p("assign",{assign_target:_.job})}return P}(),children:(0,V.decodeHtmlEntities)(_.display_name)},_.job)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:-1,children:"\xA0"})," "],0,O.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 O(){return p("assign",{assign_target:"Custom"})}return O}(),children:"Custom"})})]})]})}),!!w&&(0,e.createComponentVNode)(2,o.Section,{title:"Central Command",level:2,children:T.map(function(O){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:O.allowed,onClick:function(){function _(){return p("access",{access_target:O.ref,allowed:O.allowed})}return _}(),children:(0,V.decodeHtmlEntities)(O.desc)})},O.ref)})})||(0,e.createComponentVNode)(2,o.Section,{title:C,level:2,children:(0,e.createComponentVNode)(2,l,{actName:"access"})})],0)]})}return u}(),l=r.IdentificationComputerRegions=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.actName,C=v.regions;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",spacing:1,children:(0,a.sortBy)(function(b){return b.name})(C).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 y(){return p(f,{access_target:g.ref,allowed:g.allowed})}return y}(),children:(0,V.decodeHtmlEntities)(g.desc)})},g.ref)})})},b.name)})})}return u}()},33835:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanel=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanel=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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:l&&l.length&&l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:i.item?"hand-paper":"gift",onClick:function(){function c(){return h(i.act)}return c}(),children:i.item||"Nothing"})},i.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 i(){return h("internals")}return i}(),children:"Set Internals"})||null})||null]})})}return V}()},77422:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanelHuman=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanelHuman=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.slots,u=s.specialSlots,i=s.internals,c=s.internalsValid,d=s.sensors,p=s.handcuffed,v=s.handcuffedParams,f=s.legcuffed,C=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:[l&&l.length&&l.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 y(){return h(g.act,g.params)}return y}(),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 y(){return h(g.act,g.params)}return y}(),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 h("targetSlot",{slot:"splints"})}return g}(),children:"Remove Splints"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-paper",onClick:function(){function g(){return h("targetSlot",{slot:"pockets"})}return g}(),children:"Empty Pockets"}),c&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function g(){return h("targetSlot",{slot:"internals"})}return g}(),children:"Set Internals"})||null,d&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book-medical",onClick:function(){function g(){return h("targetSlot",{slot:"sensors"})}return g}(),children:"Set Sensors"})||null,p&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",v)}return g}(),children:"Handcuffed"})||null,f&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",C)}return g}(),children:"Legcuffed"})||null,b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",{slot:"tie"})}return g}(),children:"Remove Accessory"})||null]})]})})}return V}()},39749:function(x,r,n){"use strict";r.__esModule=!0,r.IsolationCentrifuge=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.IsolationCentrifuge=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.busy,u=s.antibodies,i=s.pathogens,c=s.is_antibody_sample,d=s.sample_inserted,p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No vial detected."});return d&&(!u&&!i?p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No antibodies or viral strains detected."}):p=(0,e.createFragment)([u?(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",children:u}):null,i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Pathogens",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,children:v.spread_type},v.name)})})}):null],0)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l?(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:l}),2)}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:c?"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&&!i.length,onClick:function(){function v(){return h("print")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!d,onClick:function(){function v(){return h("sample")}return v}()})})]}),p]}),u&&!c||i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u&&!c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Antibodies",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:u,onClick:function(){function v(){return h("antibody")}return v}()})}):null,i.length?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Strain",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v.name,onClick:function(){function f(){return h("isolate",{isolate:v.reference})}return f}()},v.name)})}):null]})}):null],0)})})}return V}()},93432:function(x,r,n){"use strict";r.__esModule=!0,r.JanitorCart=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.JanitorCart=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.mybag,c=u.mybucket,d=u.mymop,p=u.myspray,v=u.myreplacer,f=u.signs,C=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:i||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:i?"grey":"transparent",style:{border:i?null:"2px solid grey"},onClick:function(){function b(){return l("bag")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybag"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:c||"Bucket Slot",tooltipPosition:"bottom",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){function b(){return l("bucket")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybucket"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:d||"Mop Slot",tooltipPosition:"bottom-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){function b(){return l("mop")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mymop"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){function b(){return l("spray")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myspray"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:v||"Light Replacer Slot",tooltipPosition:"top",color:v?"grey":"transparent",style:{border:v?null:"2px solid grey"},onClick:function(){function b(){return l("replacer")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myreplacer"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:f||"Signs Slot",tooltipPosition:"top-start",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){function b(){return l("sign")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"signs"})})]})})}return S}(),V={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},k=function(N,h){var s=(0,a.useBackend)(h),l=s.data,u=N.iconkey,i=l.icons;return u in i?(0,e.createVNode)(1,"img",null,null,1,{src:i[u].substr(1,i[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]})}},1644:function(x,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Jukebox=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.playing,i=l.loop_mode,c=l.volume,d=l.current_track_ref,p=l.current_track,v=l.current_genre,f=l.percent,C=l.tracks,b=C.length&&C.reduce(function(y,B){var L=B.genre||"Uncategorized";return y[L]||(y[L]=[]),y[L].push(B),y},{}),g=u&&(v||"Uncategorized");return(0,e.createComponentVNode)(2,m.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.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&&p&&(0,e.createComponentVNode)(2,o.Box,{children:[p.title," by ",p.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 y(){return s("play")}return y}(),children:"Play"}),(0,e.createComponentVNode)(2,o.Button,{icon:"stop",disabled:!u,onClick:function(){function y(){return s("stop")}return y}(),children:"Stop"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Loop Mode",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",onClick:function(){function y(){return s("loopmode",{loopmode:1})}return y}(),selected:i===1,children:"Next"}),(0,e.createComponentVNode)(2,o.Button,{icon:"random",onClick:function(){function y(){return s("loopmode",{loopmode:2})}return y}(),selected:i===2,children:"Shuffle"}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",onClick:function(){function y(){return s("loopmode",{loopmode:3})}return y}(),selected:i===3,children:"Repeat"}),(0,e.createComponentVNode)(2,o.Button,{icon:"step-forward",onClick:function(){function y(){return s("loopmode",{loopmode:4})}return y}(),selected:i===4,children:"Once"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:f,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:c*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(){function y(B){return(0,a.round)(B,1)+"%"}return y}(),onChange:function(){function y(B,L){return s("volume",{val:(0,a.round)(L/100,2)})}return y}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Available Tracks",children:C.length&&Object.keys(b).sort().map(function(y){return(0,e.createComponentVNode)(2,o.Collapsible,{title:y,color:g===y?"green":"default",child_mt:0,children:(0,e.createVNode)(1,"div",null,b[y].map(function(B){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"play",selected:d===B.ref,onClick:function(){function L(){return s("change_track",{change_track:B.ref})}return L}(),children:B.title},B.ref)}),0,{style:{"margin-left":"1em"}})},y)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}return k}()},11877:function(x,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=["laws","title","noButtons"];function V(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p=0)&&(i[d]=l[d]);return i}var k=r.LawManager=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.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:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Law-synced to ",v]})||null,(0,e.createComponentVNode)(2,S)]})})}return l}(),S=function(u,i){var c=(0,a.useSharedState)(i,"lawsTabIndex",0),d=c[0],p=c[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===0,onClick:function(){function v(){return p(0)}return v}(),children:"Law Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===1,onClick:function(){function v(){return p(1)}return v}(),children:"Law Sets"})]}),d===0&&(0,e.createComponentVNode)(2,N)||null,d===1&&(0,e.createComponentVNode)(2,s)||null],0)},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.ion_law_nr,f=p.ion_law,C=p.zeroth_law,b=p.inherent_law,g=p.supplied_law,y=p.supplied_law_position,B=p.zeroth_laws,L=p.has_zeroth_laws,I=p.ion_laws,w=p.has_ion_laws,T=p.inherent_laws,M=p.has_inherent_laws,A=p.supplied_laws,R=p.has_supplied_laws,O=p.isAI,_=p.isMalf,P=p.isAdmin,D=p.channel,z=p.channels,U=B.map(function(W){return W.zero=!0,W}).concat(T);return(0,e.createComponentVNode)(2,t.Section,{children:[w&&(0,e.createComponentVNode)(2,h,{laws:I,title:v+" Laws:",mt:-2})||null,(L||M)&&(0,e.createComponentVNode)(2,h,{laws:U,title:"Inherent Laws",mt:-2})||null,R&&(0,e.createComponentVNode)(2,h,{laws:A,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:z.map(function(W){return(0,e.createComponentVNode)(2,t.Button,{content:W.channel,selected:D===W.channel,onClick:function(){function K(){return d("law_channel",{law_channel:W.channel})}return K}()},W.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function W(){return d("state_laws")}return W}(),children:"State Laws"})}),O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",onClick:function(){function W(){return d("notify_laws")}return W}(),children:"Notify"})})||null]})}),_&&(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"})]}),P&&!L&&(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:C,fluid:!0,onChange:function(){function W(K,H){return d("change_zeroth_law",{val:H})}return W}()})}),(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 W(){return d("add_zeroth_law")}return W}(),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:f,fluid:!0,onChange:function(){function W(K,H){return d("change_ion_law",{val:H})}return W}()})}),(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 W(){return d("add_ion_law")}return W}(),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 W(K,H){return d("change_inherent_law",{val:H})}return W}()})}),(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 W(){return d("add_inherent_law")}return W}(),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 W(K,H){return d("change_supplied_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function W(){return d("change_supplied_law_position")}return W}(),children:y})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_supplied_law")}return W}(),children:"Add"})})]})]})})||null]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.isAdmin,C=u.laws,b=u.title,g=u.noButtons,y=V(u,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({level:2,title:b},y,{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,v&&!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]}),C.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 L(){return d("state_law",{ref:B.ref,state_law:!B.state})}return L}(),children:B.state?"Yes":"No"})})||null,v&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,icon:"pen",onClick:function(){function L(){return d("edit_law",{edit_law:B.ref})}return L}(),children:"Edit"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,color:"bad",icon:"trash",onClick:function(){function L(){return d("delete_law",{delete_law:B.ref})}return L}(),children:"Delete"})})],4)||null]},B.index)})]})})))},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.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"}),f.length&&f.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!v,icon:"sync",onClick:function(){function b(){return d("transfer_laws",{transfer_laws:C.ref})}return b}(),children:"Load Laws"}),(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function b(){return d("state_law_set",{state_law_set:C.ref})}return b}(),children:"State Laws"})],4),children:[C.laws.has_ion_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.ion_laws,title:C.laws.ion_law_nr+" Laws:"})||null,(C.laws.has_zeroth_laws||C.laws.has_inherent_laws)&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.zeroth_laws.concat(C.laws.inherent_laws),title:C.header})||null,C.laws.has_supplied_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.supplied_laws,title:"Supplied Laws"})||null]},C.name)})||null],0)}},94648:function(x,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(11790),m=n(62188),V=n(42678),k=n(11477),S=r.ListInputModal=function(){function s(l,u){var i=(0,m.useBackend)(u),c=i.act,d=i.data,p=d.items,v=p===void 0?[]:p,f=d.message,C=f===void 0?"":f,b=d.init_value,g=d.large_buttons,y=d.timeout,B=d.title,L=(0,m.useLocalState)(u,"selected",v.indexOf(b)),I=L[0],w=L[1],T=(0,m.useLocalState)(u,"searchBarVisible",v.length>9),M=T[0],A=T[1],R=(0,m.useLocalState)(u,"searchQuery",""),O=R[0],_=R[1],P=function(){function J(q){var oe=H.length-1;if(q===V.KEY_DOWN)if(I===null||I===oe){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var le;w(I+1),(le=document.getElementById((I+1).toString()))==null||le.scrollIntoView()}else if(q===V.KEY_UP)if(I===null||I===0){var he;w(oe),(he=document.getElementById(oe.toString()))==null||he.scrollIntoView()}else{var me;w(I-1),(me=document.getElementById((I-1).toString()))==null||me.scrollIntoView()}}return J}(),D=function(){function J(q){q!==I&&w(q)}return J}(),z=function(){function J(){A(!1),A(!0)}return J}(),U=function(){function J(q){var oe=String.fromCharCode(q),ae=v.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(oe==null?void 0:oe.toLowerCase())});if(ae){var le,he=v.indexOf(ae);w(he),(le=document.getElementById(he.toString()))==null||le.scrollIntoView()}}return J}(),W=function(){function J(q){var oe;q!==O&&(_(q),w(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView())}return J}(),K=function(){function J(){A(!M),_("")}return J}(),H=v.filter(function(J){return J==null?void 0:J.toLowerCase().includes(O.toLowerCase())}),Y=325+Math.ceil(C.length/3)+(g?5:0);return M||setTimeout(function(){var J;return(J=document.getElementById(I.toString()))==null?void 0:J.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:Y,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function J(q){var oe=window.event?q.which:q.keyCode;(oe===V.KEY_DOWN||oe===V.KEY_UP)&&(q.preventDefault(),P(oe)),oe===V.KEY_ENTER&&(q.preventDefault(),c("submit",{entry:H[I]})),!M&&oe>=V.KEY_A&&oe<=V.KEY_Z&&(q.preventDefault(),U(oe)),oe===V.KEY_ESCAPE&&(q.preventDefault(),c("cancel"))}return J}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:M?"search":"font",selected:!0,tooltip:M?"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 J(){return K()}return J}()}),className:"ListInput__Section",fill:!0,title:C,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,N,{filteredItems:H,onClick:D,onFocusSearch:z,searchBarVisible:M,selected:I})}),M&&(0,e.createComponentVNode)(2,h,{filteredItems:H,onSearch:W,searchQuery:O,selected:I}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return s}(),N=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onClick,v=l.onFocusSearch,f=l.searchBarVisible,C=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:d.map(function(b,g){return(0,e.createComponentVNode)(2,o.Button,{color:"transparent",fluid:!0,id:g,onClick:function(){function y(){return p(g)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),c("submit",{entry:d[C]})}return y}(),onKeyDown:function(){function y(B){var L=window.event?B.which:B.keyCode;f&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),v())}return y}(),selected:g===C,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(y){return y.toUpperCase()})},g)})})},h=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onSearch,v=l.searchQuery,f=l.selected;return(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){function C(b){b.preventDefault(),c("submit",{entry:d[f]})}return C}(),onInput:function(){function C(b,g){return p(g)}return C}(),placeholder:"Search...",value:v})}},74639:function(x,r,n){"use strict";r.__esModule=!0,r.LookingGlass=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.LookingGlass=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.currentProgram,i=s.immersion,c=s.gravity,d=Math.min(180+l.length*23,600);return(0,e.createComponentVNode)(2,o.Window,{width:300,height:d,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",selected:p===u,onClick:function(){function v(){return h("program",{program:p})}return v}(),children:p},p)})}),(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:c,onClick:function(){function p(){return h("gravity")}return p}(),children:c?"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:i,onClick:function(){function p(){return h("immersion")}return p}(),children:i?"Enabled":"Disabled"})})]})})]})})}return V}()},1365:function(x,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.MechaControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.beacons,i=l.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:[i.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 c(){return s("clear_log")}return c}()}),children:i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["(",c.time,") (",c.year,")"]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,m.decodeHtmlEntities)(c.message)})]},c.time)})})})||null,u.length&&u.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"comment",onClick:function(){function d(){return s("send_message",{mt:c.ref})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function d(){return s("get_log",{mt:c.ref})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function d(){return s("shock",{mt:c.ref})}return d}()})],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:[c.maxHealth*.75,1/0],average:[c.maxHealth*.5,c.maxHealth*.75],bad:[-1/0,c.maxHealth*.5]},value:c.health,maxValue:c.maxHealth})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:c.cell&&(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[c.cellMaxCharge*.75,1/0],average:[c.cellMaxCharge*.5,c.cellMaxCharge*.75],bad:[-1/0,c.cellMaxCharge*.5]},value:c.cellCharge,maxValue:c.cellMaxCharge})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Air Tank",children:[c.airtank,"kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:c.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,m.toTitleCase)(c.location)||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active Equipment",children:c.active||"None"}),c.cargoMax&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[c.cargoMax*.75,1/0],average:[c.cargoMax*.5,c.cargoMax*.75],good:[-1/0,c.cargoMax*.5]},value:c.cargoUsed,maxValue:c.cargoMax})})||null]})},c.name)})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mecha beacons found."})]})})}return k}()},69909:function(x,r,n){"use strict";r.__esModule=!0,r.Medbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Medbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.beaker,c=s.beaker_total,d=s.beaker_max,p=s.locked,v=s.heal_threshold,f=s.heal_threshold_max,C=s.injection_amount_min,b=s.injection_amount,g=s.injection_amount_max,y=s.use_beaker,B=s.declare_treatment,L=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:l,onClick:function(){function I(){return h("power")}return I}(),children:l?"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:!i,icon:"eject",onClick:function(){function I(){return h("eject")}return I}(),children:"Eject"}),children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:p?"good":"bad",children:p?"Locked":"Unlocked"})]})}),!p&&(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:f,value:v,onDrag:function(){function I(w,T){return h("adj_threshold",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Amount",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:C,maxValue:g,value:b,onDrag:function(){function I(w,T){return h("adj_inject",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function I(){return h("use_beaker")}return I}(),children:y?"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 I(){return h("declaretreatment")}return I}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function I(){return h("togglevoice")}return I}(),children:L?"On":"Off"})})]})})||null]})})}return V}()},82854:function(x,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},h=function(g,y){(0,o.modalOpen)(g,"edit",{field:y.edit,value:y.value})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=g.args;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",title:I.name||"Virus",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",color:"red",onClick:function(){function w(){return L("modal_close")}return w}()}),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:[I.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible cure",children:I.antigen}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate of Progression",children:I.rate}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Antibiotic Resistance",children:[I.resistance,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species Affected",children:I.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.symptoms.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.stage+". "+w.name,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Strength:"})," ",w.strength,"\xA0",(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",w.aggressiveness]},w.stage)})})})]})})})},l=r.MedicalRecords=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.authenticated,w=L.screen;if(!I)return(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var T;return w===2?T=(0,e.createComponentVNode)(2,u):w===3?T=(0,e.createComponentVNode)(2,i):w===4?T=(0,e.createComponentVNode)(2,c):w===5?T=(0,e.createComponentVNode)(2,v):w===6&&(T=(0,e.createComponentVNode)(2,f)),(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,t.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:T})]})]})}return b}(),u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function T(M,A){return L("search",{t1:A})}return T}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.map(function(T,M){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",content:T.id+": "+T.name,onClick:function(){function A(){return L("d_rec",{d_rec:T.ref})}return A}()},M)})})],4)},i=function(g,y){var B=(0,a.useBackend)(y),L=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 I(){return L("del_all")}return I}()})],0)},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical,T=I.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",level:2,mt:"-6px",children:(0,e.createComponentVNode)(2,d)}),(0,e.createComponentVNode)(2,t.Section,{title:"Medical Data",level:2,children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",level:2,children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!w.empty,content:"Delete Medical Record",color:"bad",onClick:function(){function M(){return L("del_r")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:T?"spinner":"print",disabled:T,iconSpin:!!T,content:"Print Entry",ml:"0.5rem",onClick:function(){function M(){return L("print_p")}return M}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function M(){return L("screen",{screen:2})}return M}()})]})],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.general;return!I||!I.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:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:w.value}),!!w.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return h(y,w)}return M}()})]},T)})})}),(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"right",textAlign:"right",children:!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:w.substr(1,w.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})})],4)},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical;return!w||!w.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 T(){return L("new")}return T}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:w.fields.map(function(T,M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[T.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function A(){return h(y,T)}return A}()})]})},M)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",level:2,children:[w.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,M){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:T.header}),(0,e.createVNode)(1,"br"),T.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return L("del_c",{del_c:M+1})}return A}()})]},M)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function T(){return(0,o.modalOpen)(y,"add_c")}return T}()})]})],4)},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.virus;return w.sort(function(T,M){return T.name>M.name?1:-1}),w.map(function(T,M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"flask",content:T.name,mb:"0.5rem",onClick:function(){function A(){return L("vir",{vir:T.D})}return A}()}),(0,e.createVNode)(1,"br")],4,M)})},f=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.medbots;return I.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"There are no Medbots."}):I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Collapsible,{open:!0,title:w.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:[w.area||"Unknown"," (",w.x,", ",w.y,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w.on?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Online"}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.use_beaker?"Reservoir: "+w.total_volume+"/"+w.maximum_volume:"Using internal synthesizer."})],4):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Offline"})})]})})},T)})},C=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===2,onClick:function(){function T(){return L("screen",{screen:2})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===5,onClick:function(){function T(){return L("screen",{screen:5})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"database"}),"Virus Database"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===6,onClick:function(){function T(){return L("screen",{screen:6})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===3,onClick:function(){function T(){return L("screen",{screen:3})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",s)},38223:function(x,r,n){"use strict";r.__esModule=!0,r.MessageMonitor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k=n(84288),S=r.MessageMonitor=function(){function d(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.auth,y=b.linkedServer,B=b.message,L=b.hacking,I=b.emag,w;return L||I?w=(0,e.createComponentVNode)(2,N):g?y?w=(0,e.createComponentVNode)(2,s):w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"}):w=(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,m.Window,{width:670,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice),w]})})}return d}(),N=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.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"]})})},h=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.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 y(B,L){return C("auth",{key:L})}return y}()})]}),!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"terminal",content:"Hack",onClick:function(){function y(){return C("hack")}return y}()}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},s=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer,y=(0,t.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1],I;return B===0?I=(0,e.createComponentVNode)(2,l):B===1?I=(0,e.createComponentVNode)(2,u,{logs:g.pda_msgs,pda:!0}):B===2?I=(0,e.createComponentVNode)(2,u,{logs:g.rc_msgs,rc:!0}):B===3?I=(0,e.createComponentVNode)(2,i):B===4&&(I=(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 w(){return L(0)}return w}(),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 w(){return L(1)}return w}(),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 w(){return L(2)}return w}(),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 w(){return L(3)}return w}(),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 w(){return L(4)}return w}(),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 w(){return C("deauth")}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:I})],4)},l=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.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 y(){return C("find")}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:"Server "+(g.active?"Enabled":"Disabled"),selected:g.active,onClick:function(){function y(){return C("active")}return y}()})],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 y(){return C("pass")}return y}()}),(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"})]})},u=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=p.logs,y=p.pda,B=p.rc;return(0,e.createComponentVNode)(2,o.Section,{title:y?"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 L(){return C(y?"del_pda":"del_rc")}return L}()}),children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:g.map(function(L,I){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:I%2,children:(0,e.createComponentVNode)(2,o.Section,{title:L.sender+" -> "+L.recipient,buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function w(){return C("delete",{id:L.ref,type:B?"rc":"pda"})}return w}()}),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",children:L.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Verification",color:L.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.decodeHtmlEntities)(L.id_auth)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamp",children:L.stamp})]}):L.message})},L.ref)})})})},i=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.possibleRecipients,y=b.customsender,B=b.customrecepient,L=b.customjob,I=b.custommessage,w=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:y,onChange:function(){function T(M,A){return C("set_sender",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender's Job",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:L,onChange:function(){function T(M,A){return C("set_sender_job",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recipient",children:(0,e.createComponentVNode)(2,o.Dropdown,{value:B,options:w,width:"100%",mb:-.7,onSelected:function(){function T(M){return C("set_recipient",{val:g[M]})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,mb:.5,value:I,onChange:function(){function T(M,A){return C("set_message",{val:A})}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){function T(){return C("send_message")}return T}()})]})},c=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.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(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y.index,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){function B(){return C("deltoken",{deltoken:y.index})}return B}()}),children:y.token},y.index)})}),(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add New Entry",onClick:function(){function y(){return C("addtoken")}return y}()})]})}},31546:function(x,r,n){"use strict";r.__esModule=!0,r.Microwave=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Microwave=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.config,l=N.data,u=l.broken,i=l.operating,c=l.dirty,d=l.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!!"})})||i&&(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...!"]})})||c&&(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!"]})})||d.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 p(){return h("cook")}return p}(),children:"Microwave"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("dispose")}return p}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,children:[p.amt," ",p.extra]},p.name)})})})||(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[s.title," is empty."]})})})})}return V}()},64193:function(x,r,n){"use strict";r.__esModule=!0,r.MiningOreProcessingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=r.MiningOreProcessingConsole=function(){function l(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.unclaimedPoints,f=p.ores,C=p.showAllOres,b=p.power,g=p.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.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 y(){return d("insert")}return y}(),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 y(){return d("speed_toggle")}return y}(),children:g?"High-Speed Active":"High-Speed Inactive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:b,onClick:function(){function y(){return d("power")}return y}(),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:v<1,icon:"download",onClick:function(){function y(){return d("claim")}return y}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})})})}),(0,e.createComponentVNode)(2,s)]})})}return l}(),S=["Not Processing","Smelting","Compressing","Alloying"],N=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,i){return N.indexOf(u.ore)===-1||N.indexOf(i.ore)===-1?u.ore-i.ore:N.indexOf(i.ore)-N.indexOf(u.ore)},s=function(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.ores,f=p.showAllOres,C=p.power;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function b(){return d("showAllOres")}return b}(),children:f?"All Ores":"Ores in Machine"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:v.length&&v.sort(h).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:S,selected:S[b.processing],onSelected:function(){function g(y){return d("toggleSmelting",{ore:b.ore,set:S.indexOf(y)})}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."})})})}},94702:function(x,r,n){"use strict";r.__esModule=!0,r.MiningStackingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.MiningStackingConsole=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.stacktypes,i=l.stackingAmt;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:i,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function c(d,p){return s("change_stack",{amt:p})}return c}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),u.length&&u.sort().map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(c.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function d(){return s("release_stack",{stack:c.type})}return d}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.amt})},c.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return k}()},677:function(x,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=["title","items"];function S(i,c){if(i==null)return{};var d={},p=Object.keys(i),v,f;for(f=0;f=0)&&(d[v]=i[v]);return d}var N={Alphabetical:function(){function i(c,d){return c-d}return i}(),"By availability":function(){function i(c,d){return-(c.affordable-d.affordable)}return i}(),"By price":function(){function i(c,d){return c.price-d.price}return i}()},h=r.MiningVendor=function(){function i(c,d){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.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,l),(0,e.createComponentVNode)(2,s)]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.has_id,b=f.id,g=f.items,y=(0,t.useLocalState)(d,"search",""),B=y[0],L=y[1],I=(0,t.useLocalState)(d,"sort","Alphabetical"),w=I[0],T=I[1],M=(0,t.useLocalState)(d,"descending",!1),A=M[0],R=M[1],O=(0,a.createSearch)(B,function(D){return D[0]}),_=!1,P=Object.entries(g).map(function(D,z){var U=Object.entries(D[1]).filter(O).map(function(W){return W[1].affordable=C&&b.points>=W[1].price,W[1]}).sort(N[w]);if(U.length!==0)return A&&(U=U.reverse()),_=!0,(0,e.createComponentVNode)(2,u,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:_?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(c,d){var p=(0,t.useLocalState)(d,"search",""),v=p[0],f=p[1],C=(0,t.useLocalState)(d,"sort",""),b=C[0],g=C[1],y=(0,t.useLocalState)(d,"descending",!1),B=y[0],L=y[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 I(w,T){return f(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(N),width:"100%",lineHeight:"19px",onSelected:function(){function I(w){return g(w)}return I}()})}),(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 I(){return L(!B)}return I}()})})]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=c.title,b=c.items,g=S(c,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:b.map(function(y){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:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!f.has_id||f.id.points=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},i=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.config,g=f.data,y=g.nif_percent,B=g.nif_stat,L=g.last_notification,I=g.nutrition,w=g.isSynthetic,T=g.modules,M=p.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:y,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[l(B,y)," (",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:y}),"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:I,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:u(I,w)})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.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 R(){return C("uninstall",{module:A.ref})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function R(){return M(A)}return R}(),tooltip:"View Information",tooltipPosition:"left"})],4),children:A.activates&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:A.active,content:A.stat_text,onClick:function(){function R(){return C("toggle_module",{module:A.ref})}return R}()})||(0,e.createComponentVNode)(2,t.Box,{children:A.stat_text})},A.ref)})})})]})},c=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.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:h,onSelected:function(){function y(B){return C("setTheme",{theme:B})}return y}()})})})}},97540:function(x,r,n){"use strict";r.__esModule=!0,r.NTNetRelay=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(84288),V=r.NTNetRelay=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity,f=(0,e.createComponentVNode)(2,k);return c&&(f=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.Window,{width:c?700:500,height:c?600:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:"Relay "+(d?"On":"Off"),onClick:function(){function f(){return u("toggle")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network Buffer Status",children:[p," / ",v," 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 f(){return u("purge")}return f}()})})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data;return(0,e.createComponentVNode)(2,m.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 c(){return u("restart")}return c}()})})]})}},4024:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k="Main Menu",S="New Channel",N="View List",h="New Story",s="Print",l="New Wanted",u="View Wanted",i="View Selected Channel",c=r.Newscaster=function(){function I(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.screen,_=R.user;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice,{decode:!0}),(0,e.createComponentVNode)(2,d)]})})}return I}(),d=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.user,_=(0,t.useSharedState)(T,"screen",k),P=_[0],D=_[1],z=L[P];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,z,{setScreen:D})})},p=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.securityCaster,_=R.wanted_issue,P=w.setScreen;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",children:[_&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(u)}return D}(),color:"bad",children:"Read WANTED Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(N)}return D}(),children:"View Feed Channels"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(S)}return D}(),children:"Create Feed Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(h)}return D}(),children:"Create Feed Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"print",onClick:function(){function D(){return P(s)}return D}(),children:"Print Newspaper"})]}),!!O&&(0,e.createComponentVNode)(2,o.Section,{title:"Feed Security Functions",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(l)}return D}(),children:'Manage "Wanted" Issue'})})],0)},v=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.c_locked,P=R.user,D=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 z(){return D(k)}return z}(),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)(O),onInput:function(){function z(U,W){return A("set_channel_name",{val:W})}return z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Author",color:"good",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Feeds",children:(0,e.createComponentVNode)(2,o.Button,{icon:_?"lock":"lock-open",selected:!_,onClick:function(){function z(){return A("set_channel_lock")}return z}(),children:_?"No":"Yes"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function z(){return A("submit_new_channel")}return z}(),children:"Submit Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function z(){return D(k)}return z}(),children:"Cancel"})]})},f=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channels,_=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 P(){return _(k)}return P}(),children:"Back"}),children:O.map(function(P){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",color:P.admin?"good":P.censored?"bad":"",onClick:function(){function D(){A("show_channel",{show_channel:P.ref}),_(i)}return D}(),children:(0,a.decodeHtmlEntities)(P.name)},P.name)})})},C=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.user,P=R.title,D=R.msg,z=R.photo_data,U=w.setScreen,W={"white-space":"nowrap"},K={width:"100%","word-break":"break-all","word-wrap":"break-word"};return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Message...",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Back"}),children:[(0,e.createVNode)(1,"table",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Receiving Channel:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,onClick:function(){function H(){return A("set_channel_receiving")}return H}(),children:O||"Unset"}),2,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Author:",16,{style:W}),(0,e.createVNode)(1,"td","color-good",_,0,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Title:",16,{style:W}),(0,e.createVNode)(1,"td",null,P||"(no title yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_title")}return H}(),icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Body:",16,{style:W}),(0,e.createVNode)(1,"td",null,D||"(no message yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_message")}return H}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Attach Photo:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function H(){return A("set_attachment")}return H}(),children:z?"Photo Attached":"No Photo"}),2,{colspan:2})],4)],4,{style:{width:"calc(100% + 0.5em)",margin:"-0.25em -0.25em 0 -0.25em",padding:0}}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function H(){return A("submit_new_message")}return H}(),children:"Submit Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Cancel"})]})},b=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.total_num,_=R.active_num,P=R.message_num,D=R.paper_remaining,z=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",O," Feed channels,"," ",_," of which are active, and a total of ",P," Feed stories."]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Paper remaining",children:[D*100," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function U(){return A("print_paper")}return U}(),children:"Print Paper"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Cancel"})]})},g=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.msg,P=R.photo_data,D=R.user,z=R.wanted_issue,U=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 W(){return U(k)}return W}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[!!z&&(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)(O),onInput:function(){function W(K,H){return A("set_channel_name",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(_),onInput:function(){function W(K,H){return A("set_wanted_desc",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function W(){return A("set_attachment")}return W}(),children:P?"Photo Attached":"No Photo"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prosecutor",color:"good",children:D})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function W(){return A("submit_wanted")}return W}(),children:"Submit Wanted Issue"}),!!z&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){function W(){return A("cancel_wanted")}return W}(),children:"Take Down Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function W(){return U(k)}return W}(),children:"Cancel"})]})},y=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.wanted_issue,_=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),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)(O.author)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal",children:(0,a.decodeHtmlEntities)(O.criminal)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,a.decodeHtmlEntities)(O.desc)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:O.img&&(0,e.createVNode)(1,"img",null,null,1,{src:O.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 P(){return _(k)}return P}(),children:"Back"}),children:"There are no wanted issues currently outstanding."})},B=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.viewing_channel,_=R.securityCaster,P=R.company,D=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(O.name),buttons:(0,e.createFragment)([!!_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){function z(){return A("toggle_d_notice",{ref:O.ref})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(N)}return z}(),children:"Back"})],0),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Created By",children:_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.decodeHtmlEntities)(O.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){function z(){return A("censor_channel_author",{ref:O.ref})}return z}()})||(0,e.createComponentVNode)(2,o.Box,{children:(0,a.decodeHtmlEntities)(O.author)})})}),!!O.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 ",P," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!O.messages.length&&O.messages.map(function(z){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(z.body),!!z.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+z.img}),(0,a.decodeHtmlEntities)(z.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[Story by ",(0,a.decodeHtmlEntities)(z.author)," -"," ",z.timestamp,"]"]}),!!_&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){function U(){return A("censor_channel_story_body",{ref:z.ref})}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){function U(){return A("censor_channel_story_author",{ref:z.ref})}return U}()})],4)]},z.ref)})||!O.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 z(){return D(N)}return z}(),children:"Back"}),children:"The channel you were looking for no longer exists."})},L={};L[k]=p,L[S]=v,L[N]=f,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B},83945:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBoard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NoticeBoard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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:l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,i){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 c(){return h("look",{ref:u.ref})}return c}()})||u.ispaper&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sticky-note",content:"Read",onClick:function(){function c(){return h("read",{ref:u.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Write",onClick:function(){function c(){return h("write",{ref:u.ref})}return c}()})],4)||"Unknown Entity",(0,e.createComponentVNode)(2,t.Button,{icon:"minus-circle",content:"Remove",onClick:function(){function c(){return h("remove",{ref:u.ref})}return c}()})]},i)})}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No notices posted here."})})})})}return V}()},45835:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAccessDecrypter=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(85418),m=n(11790),V=r.NtosAccessDecrypter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.message,i=l.running,c=l.rate,d=l.factor,p=l.regions,v=function(){function C(b){for(var g="";g.lengthd?g+="0":g+="1";return g}return C}(),f=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,m.NoticeBox,{children:u})||i&&(0,e.createComponentVNode)(2,m.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",c," PHash/s",(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"ban",onClick:function(){function C(){return s("PRG_reset")}return C}(),children:"Abort"})]})||(0,e.createComponentVNode)(2,m.Section,{title:"Pick access code to decrypt",children:p.length&&(0,e.createComponentVNode)(2,o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.createComponentVNode)(2,m.Box,{children:"Please insert ID card."})})})})}return k}()},32974:function(x,r,n){"use strict";r.__esModule=!0,r.NtosArcade=void 0;var e=n(58734),a=n(37655),t=n(62188),o=n(11790),m=n(11477),V=r.NtosArcade=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data;return(0,e.createComponentVNode)(2,m.NtosWindow,{width:450,height:350,children:(0,e.createComponentVNode)(2,m.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:l.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[l.PlayerHitpoints,"HP"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l.PlayerMP,"MP"]})})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Section,{backgroundColor:l.PauseState===1?"#1b3622":"#471915",children:l.Status})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.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:l.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)(l.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:l.GameActive===0||l.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:l.GameActive===0||l.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:l.GameActive===0||l.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:l.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:l.GameActive===1,onClick:function(){function u(){return s("Dispense_Tickets")}return u}(),content:"Claim Tickets"})]}),(0,e.createComponentVNode)(2,o.Box,{color:l.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",l.TicketCount]})]})})})}return k}()},95982:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAtmosControl=void 0;var e=n(58734),a=n(11477),t=n(49907),o=r.NtosAtmosControl=function(){function m(){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 m}()},70824: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),m=n(62188),V=n(11790),k=n(11477),S=n(48902),N=r.prevNextCamera=function(){function l(u,i){var c,d;if(!i)return[];var p=u.findIndex(function(v){return v.name===i.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]}return l}(),h=r.selectCameras=function(){function l(u,i,c){i===void 0&&(i=""),c===void 0&&(c="");var d=(0,o.createSearch)(i,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),i&&(0,a.filter)(d),c&&(0,a.filter)(function(p){return p.networks.includes(c)}),(0,a.sortBy)(function(p){return p.name})])(u)}return l}(),s=r.NtosCameraConsole=function(){function l(u,i){var c=(0,m.useBackend)(i),d=c.act,p=c.data,v=p.mapRef,f=p.activeCamera,C=h(p.cameras),b=N(C,f),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,k.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,k.NtosWindow.Content,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.CameraConsoleContent),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),f&&f.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 d("switch_camera",{name:g})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!y,onClick:function(){function B(){return d("switch_camera",{name:y})}return B}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",onClick:function(){function B(){return d("pan",{dir:8})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-up",onClick:function(){function B(){return d("pan",{dir:1})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",onClick:function(){function B(){return d("pan",{dir:4})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-down",onClick:function(){function B(){return d("pan",{dir:2})}return B}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})})}return l}()},30536:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCommunicationsConsole=void 0;var e=n(58734),a=n(11477),t=n(29340),o=r.NtosCommunicationsConsole=function(){function m(){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 m}()},94821:function(x,r,n){"use strict";r.__esModule=!0,r.NtosConfiguration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosConfiguration=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.power_usage,i=s.battery_exists,c=s.battery,d=c===void 0?{}:c,p=s.disk_size,v=s.disk_used,f=s.hardware,C=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.NtosWindow,{theme:l,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:!i&&"average",children:i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge,minValue:0,maxValue:d.max,ranges:{good:[d.max/2,1/0],average:[d.max/4,d.max/2],bad:[-1/0,d.max/4]},children:[d.charge," / ",d.max]}):"Not Available"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"File System",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:p,color:"good",children:[v," GQ / ",p," GQ"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hardware Components",children:C.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 h("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}()},56722:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewManifest=void 0;var e=n(58734),a=n(11477),t=n(68285),o=r.NtosCrewManifest=function(){function m(){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 m}()},9562:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewMonitor=void 0;var e=n(58734),a=n(11477),t=n(59694),o=r.NtosCrewMonitor=function(){function m(){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 m}()},20716:function(x,r,n){"use strict";r.__esModule=!0,r.NtosDigitalWarrant=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.NtosDigitalWarrant=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=c.allwarrants,b=(0,e.createComponentVNode)(2,k);return v&&(b=(0,e.createComponentVNode)(2,N)),(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 h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.allwarrants;return(0,e.createComponentVNode)(2,t.Section,{title:"Warrants",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",fluid:!0,onClick:function(){function p(){return i("addwarrant")}return p}(),children:"Create New Warrant"}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Arrest Warrants",children:(0,e.createComponentVNode)(2,S,{type:"arrest"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Search Warrants",children:(0,e.createComponentVNode)(2,S,{type:"search"})})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.type,p=c.allwarrants,v=(0,m.filter)(function(f){return f.arrestsearch===d})(p);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:d==="arrest"?"Name":"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d==="arrest"?"Charges":"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"})]}),v.length&&v.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.warrantname}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.charges}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.auth}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function C(){return i("editwarrant",{id:f.id})}return C}()})})]},f.id)})||(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=f==="arrest",b=f==="arrest"?"Name":"Location",g=f==="arrest"?"Charges":"Reason";return(0,e.createComponentVNode)(2,t.Section,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function y(){return i("savewarrant")}return y}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function y(){return i("deletewarrant")}return y}(),children:"Delete"}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function y(){return i("back")}return y}(),children:"Back"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,buttons:C&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function y(){return i("editwarrantname")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()}),children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantcharges")}return y}()}),children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorized By",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"balance-scale",onClick:function(){function y(){return i("editwarrantauth")}return y}()}),children:v})]})})}},14559:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailAdministration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(42185),V=r.NtosEmailAdministration=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.cur_title,f=d.current_account,C=(0,e.createComponentVNode)(2,k);return p?C=(0,e.createComponentVNode)(2,S):v?C=(0,e.createComponentVNode)(2,N):f&&(C=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:C})})}return s}(),k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.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 v(){return c("newaccount")}return v}(),children:"Create New Account"}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",onClick:function(){function f(){return c("viewaccount",{viewaccount:v.uid})}return f}(),children:v.login},v.uid)})]})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Message",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("back")}return v}(),children:"Back"}),children:p})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,m.NtosEmailClientViewMessage,{administrator:!0})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.msg_title,f=d.msg_body,C=d.msg_timestamp,b=d.msg_source,g=d.current_account,y=d.cur_suspended,B=d.messages,L=d.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 I(){return c("back")}return I}(),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:y?"bad":"",icon:"ban",tooltip:(y?"Uns":"S")+"uspend Account?",onClick:function(){function I(){return c("ban")}return I}(),children:y?"Suspended":"Normal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",onClick:function(){function I(){return c("changepass")}return I}(),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(I){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function w(){return c("viewmail",{viewmail:I.uid})}return w}(),children:"View"})})]},I.uid)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No messages found in selected account."})})]})}},42185:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailClientViewMessage=r.NtosEmailClient=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.NtosEmailClient=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.PC_device_theme,g=C.error,y=C.downloading,B=C.current_account,L=(0,e.createComponentVNode)(2,i);return g?L=(0,e.createComponentVNode)(2,u,{error:g}):y?L=(0,e.createComponentVNode)(2,k):B&&(L=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:b,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:L})})}return c}(),k=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.down_filename,g=C.down_progress,y=C.down_size,B=C.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," (",y," 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:y,children:[g,"/",y," (",(0,m.round)(g/y*100,1),"%)"]})})]})})},S=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.addressbook,y=C.new_message,B=C.cur_title,L=(0,e.createComponentVNode)(2,N);return g?L=(0,e.createComponentVNode)(2,s):y?L=(0,e.createComponentVNode)(2,l):B&&(L=(0,e.createComponentVNode)(2,h)),(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 I(){return f("new_message")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){function I(){return f("changepassword")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){function I(){return f("logout")}return I}()})],4),children:L})},N=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.folder,y=C.messagecount,B=C.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 L(){return f("set_folder",{set_folder:"Inbox"})}return L}(),children:"Inbox"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Spam",onClick:function(){function L(){return f("set_folder",{set_folder:"Spam"})}return L}(),children:"Spam"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Deleted",onClick:function(){function L(){return f("set_folder",{set_folder:"Deleted"})}return L}(),children:"Deleted"})]}),y&&(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(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 f("view",{view:L.uid})}return I}(),tooltip:"View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function I(){return f("reply",{reply:L.uid})}return I}(),tooltip:"Reply"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function I(){return f("delete",{delete:L.uid})}return I}(),tooltip:"Delete"})]})]},L.timestamp+L.title)})]})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["No emails found in ",g,"."]})]})},h=r.NtosEmailClientViewMessage=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=d.administrator,g=C.cur_title,y=C.cur_source,B=C.cur_timestamp,L=C.cur_body,I=C.cur_hasattachment,w=C.cur_attachment_filename,T=C.cur_attachment_size,M=C.cur_uid;return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:b?(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function A(){return f("back")}return A}()}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){function A(){return f("reply",{reply:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){function A(){return f("delete",{delete:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){function A(){return f("save",{save:M})}return A}()}),I&&(0,e.createComponentVNode)(2,t.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){function A(){return f("downloadattachment")}return A}()})||null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){function A(){return f("cancel",{cancel:M})}return A}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"From",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"At",children:B}),I&&!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",color:"average",children:[w," (",T,"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:L}})})})]})})}return c}(),s=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.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 f("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 y(){return f("set_recipient",{set_recipient:g.login})}return y}()},g.login)})})},l=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.msg_title,y=C.msg_recipient,B=C.msg_body,L=C.msg_hasattachment,I=C.msg_attachment_filename,w=C.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 T(){return f("send")}return T}(),children:"Send Message"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("cancel")}return T}()})],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 T(M,A){return f("edit_title",{val:A})}return T}()})}),(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:y,onInput:function(){function T(M,A){return f("edit_recipient",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"address-book",onClick:function(){function T(){return f("addressbook")}return T}(),tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachments",buttons:L&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("remove_attachment")}return T}(),children:"Remove Attachment"})||(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function T(){return f("addattachment")}return T}(),children:"Add Attachment"}),children:L&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[I," (",w,"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 T(){return f("edit_body")}return T}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},u=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=d.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 f("reset")}return b}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:C})})},i=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.stored_login,g=C.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 y(B,L){return f("edit_login",{val:L})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Password",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function y(B,L){return f("edit_password",{val:L})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",onClick:function(){function y(){return f("login")}return y}(),children:"Log In"})]})}},96365:function(x,r,n){"use strict";r.__esModule=!0,r.NtosFileManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosFileManager=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.PC_device_theme,i=l.usbconnected,c=l.filename,d=l.filedata,p=l.error,v=l.files,f=v===void 0?[]:v,C=l.usbfiles,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:u,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[c&&(0,e.createComponentVNode)(2,t.Section,{title:"Viewing File "+c,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:d&&(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:d}})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V,{files:f,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copytousb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}return g}()})}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:(0,e.createComponentVNode)(2,V,{usbmode:!0,files:b,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copyfromusb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}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),p&&(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:p})})]})]})})}return k}(),V=function(S){var N=S.files,h=N===void 0?[]:N,s=S.usbconnected,l=S.usbmode,u=S.onUpload,i=S.onDelete,c=S.onRename,d=S.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"})]}),h.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.undeletable?p.name:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(){function v(f,C){return c(p.uid,C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Open",onClick:function(){function v(){return d(p.uid)}return v}()})],4)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){function v(){return i(p.uid)}return v}()}),!!s&&(l?(0,e.createComponentVNode)(2,t.Button,{icon:"download",tooltip:"Download",onClick:function(){function v(){return u(p.uid)}return v}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"upload",tooltip:"Upload",onClick:function(){function v(){return u(p.uid)}return v}()}))],0)})]},p.name)})]})}},39032:function(x,r,n){"use strict";r.__esModule=!0,r.NtosIdentificationComputer=void 0;var e=n(58734),a=n(11477),t=n(85418),o=r.NtosIdentificationComputer=function(){function m(){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 m}()},41448:function(x,r,n){"use strict";r.__esModule=!0,r.NtosMain=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m={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 k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.device_theme,i=l.programs,c=i===void 0?[]:i,d=l.has_light,p=l.light_on,v=l.comp_light_color,f=l.removable_media,C=f===void 0?[]:f,b=l.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:[!!d&&(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"144px",icon:"lightbulb",selected:p,onClick:function(){function y(){return s("PC_toggle_light")}return y}(),children:["Flashlight: ",p?"ON":"OFF"]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,onClick:function(){function y(){return s("PC_light_color")}return y}(),children:["Color:",(0,e.createComponentVNode)(2,t.ColorBox,{ml:1,color:v})]})]}),(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 y(){return s("PC_Eject_Disk",{name:"ID"})}return y}()}),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]})]})}),!!C.length&&(0,e.createComponentVNode)(2,t.Section,{title:"Media Eject",children:(0,e.createComponentVNode)(2,t.Table,{children:C.map(function(y){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:y,onClick:function(){function B(){return s("PC_Eject_Disk",{name:y})}return B}()})})},y)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(y){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:m[y.name]||"window-maximize-o",content:y.desc,onClick:function(){function B(){return s("PC_runprogram",{name:y.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:!!y.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:y.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:y.autorun,onClick:function(){function B(){return s("PC_setautorun",{name:y.name})}return B}(),children:"AR"})})]},y.name)})})})]})})}return k}()},28774:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetChat=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetChat=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.can_admin,u=s.adminmode,i=s.authed,c=s.username,d=s.active_channel,p=s.is_operator,v=s.all_channels,f=v===void 0?[]:v,C=s.clients,b=C===void 0?[]:C,g=s.messages,y=g===void 0?[]:g,B=d!==null,L=i||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 I(w,T){return h("PRG_newchannel",{new_channel_name:T})}return I}()}),f.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:I.chan,selected:I.id===d,color:"transparent",onClick:function(){function w(){return h("PRG_joinchannel",{id:I.id})}return w}()},I.chan)})]}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,mt:1,content:c+"...",currentValue:c,onCommit:function(){function I(w,T){return h("PRG_changename",{new_name:T})}return I}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(u?"ON":"OFF"),color:u?"bad":"good",onClick:function(){function I(){return h("PRG_toggleadmin")}return I}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:B&&(L?y.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.msg},I.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 I(w,T){return h("PRG_speak",{message:T})}return I}()})]}),(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(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.name},I.name)})}),B&&L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(){function I(w,T){return h("PRG_savelog",{log_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){function I(){return h("PRG_leavechannel")}return I}()})],4),!!p&&i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){function I(){return h("PRG_deletechannel")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(){function I(w,T){return h("PRG_renamechannel",{new_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(){function I(w,T){return h("PRG_setpassword",{new_password:T})}return I}()})],4)]})]})})})})})}return V}()},73924:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDosContent=r.NtosNetDos=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetDos=function(){function k(){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 k}(),V=r.NtosNetDosContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.relays,i=u===void 0?[]:u,c=l.focus,d=l.target,p=l.speed,v=l.overload,f=l.capacity,C=l.error;if(C)return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:C}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){function y(){return s("PRG_reset")}return y}()})],4);var b=function(){function y(B){for(var L="",I=v/f;L.lengthI?L+="0":L+="1";return L}return y}(),g=45;return d?(0,e.createComponentVNode)(2,t.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{children:["CURRENT SPEED: ",p," 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:i.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.id,selected:c===y.id,onClick:function(){function B(){return s("PRG_target_relay",{targid:y.id})}return B}()},y.id)})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!c,mt:1,onClick:function(){function y(){return s("PRG_execute")}return y}()})]})}return k}()},72973:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDownloader=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.NtosNetDownloader=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.PC_device_theme,c=u.disk_size,d=u.disk_used,p=u.downloadable_programs,v=p===void 0?[]:p,f=u.error,C=u.hacked_programs,b=C===void 0?[]:C,g=u.hackedavailable;return(0,e.createComponentVNode)(2,m.NtosWindow,{theme:i,width:480,height:735,resizable:!0,children:(0,e.createComponentVNode)(2,m.NtosWindow.Content,{scrollable:!0,children:[!!f&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:1,children:f}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset",onClick:function(){function y(){return l("PRG_reseterror")}return y}()})]}),(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:d,minValue:0,maxValue:c,children:d+" GQ / "+c+" GQ"})})})}),(0,e.createComponentVNode)(2,o.Section,{children:v.map(function(y){return(0,e.createComponentVNode)(2,k,{program:y},y.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(y){return(0,e.createComponentVNode)(2,k,{program:y},y.filename)})]})]})})}return S}(),k=function(N,h){var s=N.program,l=(0,t.useBackend)(h),u=l.act,i=l.data,c=i.disk_size,d=i.disk_used,p=i.downloadcompletion,v=i.downloading,f=i.downloadname,C=i.downloadsize,b=i.downloadspeed,g=i.downloads_queue,y=c-d;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===f&&(0,e.createComponentVNode)(2,o.ProgressBar,{color:"green",minValue:0,maxValue:C,value:p,children:[(0,a.round)(p/C*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>y,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>y&&(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})]})}},96255:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetMonitor=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosNetMonitor=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=s.ntnetrelays,u=s.ntnetstatus,i=s.config_softwaredownload,c=s.config_peertopeer,d=s.config_communication,p=s.config_systemcontrol,v=s.idsalarm,f=s.idsstatus,C=s.ntnetmaxlogs,b=s.maxlogs,g=s.minlogs,y=s.banned_nids,B=s.ntnetlogs,L=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 I(){return h("toggleWireless")}return I}()}),children:l?(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:l})}):"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:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){function I(){return h("toggle_function",{id:"1"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){function I(){return h("toggle_function",{id:"2"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){function I(){return h("toggle_function",{id:"3"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){function I(){return h("toggle_function",{id:"4"})}return I}()})})]})}),(0,e.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!v&&(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 I(){return h("ban_nid")}return I}(),children:"Ban NID"}),(0,e.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){function I(){return h("unban_nid")}return I}(),children:"Unban NID"})],4),children:y.join(", ")||"None"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){function I(){return h("toggleIDS")}return I}()}),(0,e.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){function I(){return h("resetIDS")}return I}()})],4)}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,e.createComponentVNode)(2,a.NumberInput,{value:C,minValue:g,maxValue:b,width:"39px",onChange:function(){function I(w,T){return h("updatemaxlogs",{new_number:T})}return I}()})})]}),(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 I(){return h("purgelogs")}return I}()}),children:L.map(function(I){return(0,e.createComponentVNode)(2,a.Box,{className:"candystripe",children:I.entry},I.entry)})})]})]})})}return V}()},47198:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetTransfer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetTransfer=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.downloading,f=d.uploading,C=d.upload_filelist,b=(0,e.createComponentVNode)(2,h);return p?b=(0,e.createComponentVNode)(2,V):v?b=(0,e.createComponentVNode)(2,k):f?b=(0,e.createComponentVNode)(2,S):C.length&&(b=(0,e.createComponentVNode)(2,N)),(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 s}(),V=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.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 v(){return c("PRG_reset")}return v}(),children:"Reset"}),children:["Additional Information: ",p]})},k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.download_name,v=d.download_progress,f=d.download_size,C=d.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:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:f,children:[v," / ",f," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Speed",children:[C," 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 c("PRG_reset")}return b}(),children:"Cancel Download"})})]})})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.upload_clients,v=d.upload_filename,f=d.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:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Provided file",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Server Password",children:f?"Enabled":"Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commands",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function C(){return c("PRG_setpassword")}return C}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function C(){return c("PRG_reset")}return C}(),children:"Cancel Upload"})]})]})})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.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 v(){return c("PRG_reset")}return v}(),children:"Cancel"}),children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lock",onClick:function(){function v(){return c("PRG_setpassword")}return v}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Section,{title:"Pick file to serve.",level:2,children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"upload",onClick:function(){function f(){return c("PRG_uploadfile",{uid:v.uid})}return f}(),children:[v.filename," (",v.size,"GQ)"]},v.uid)})})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.servers;return(0,e.createComponentVNode)(2,t.Section,{title:"Available Files",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"upload",onClick:function(){function v(){return c("PRG_uploadmenu")}return v}(),children:"Send File"}),children:p.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.uid,children:[!!v.haspassword&&(0,e.createComponentVNode)(2,t.Icon,{name:"lock",mr:1}),v.filename,"\xA0 (",v.size,"GQ)\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return c("PRG_downloadfile",{uid:v.uid})}return f}(),children:"Download"})]},v.uid)})})||(0,e.createComponentVNode)(2,t.Box,{children:"No upload servers found."})})}},75627:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNewsBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.NtosNewsBrowser=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article,p=c.download,v=c.message,f=(0,e.createComponentVNode)(2,S);return d?f=(0,e.createComponentVNode)(2,k):p&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!v&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_clearmessage")}return C}()})]}),f]})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article;if(!d)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var p=d.title,v=d.cover,f=d.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+p,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function C(){return i("PRG_savearticle")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_reset")}return C}(),children:"Close"})],4),children:[!!v&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(v)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.showing_archived,p=c.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function v(){return i("PRG_toggle_archived")}return v}(),checked:d,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.length&&p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return i("PRG_openarticle",{uid:v.uid})}return f}()}),children:[v.size," GQ"]},v.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.download,p=d.download_progress,v=d.download_maxprogress,f=d.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:p,maxValue:v,children:[p," / ",v," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Download Speed",children:[f," 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 C(){return i("PRG_reset")}return C}(),children:"Abort Download"})})]})})}},84804:function(x,r,n){"use strict";r.__esModule=!0,r.NtosOvermapNavigation=void 0;var e=n(58734),a=n(11477),t=n(85513),o=r.NtosOvermapNavigation=function(){function m(){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 m}()},91142:function(x,r,n){"use strict";r.__esModule=!0,r.NtosPowerMonitor=void 0;var e=n(58734),a=n(11477),t=n(8694),o=r.NtosPowerMonitor=function(){function m(){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 m}()},95538:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRCON=void 0;var e=n(58734),a=n(11477),t=n(23613),o=r.NtosRCON=function(){function m(){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 m}()},23754:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRevelation=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosRevelation=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=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(i,c){return h("PRG_obfuscate",{new_name:c})}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:l?"ARMED":"DISARMED",color:l?"bad":"average",onClick:function(){function u(){return h("PRG_arm")}return u}()})})}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l})]})})})}return V}()},1446:function(x,r,n){"use strict";r.__esModule=!0,r.NtosShutoffMonitor=void 0;var e=n(58734),a=n(11477),t=n(56780),o=r.NtosShutoffMonitor=function(){function m(){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 m}()},73068:function(x,r,n){"use strict";r.__esModule=!0,r.NtosStationAlertConsole=void 0;var e=n(58734),a=n(11477),t=n(93840),o=r.NtosStationAlertConsole=function(){function m(){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 m}()},2329:function(x,r,n){"use strict";r.__esModule=!0,r.NtosSupermatterMonitor=void 0;var e=n(58734),a=n(11477),t=n(7287),o=r.NtosSupermatterMonitor=function(){function m(){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 m}()},35452:function(x,r,n){"use strict";r.__esModule=!0,r.NtosUAV=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosUAV=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.current_uav,u=s.signal_strength,i=s.in_use,c=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:l&&l.status||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal",children:l&&u||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l.power,onClick:function(){function d(){return h("power_uav")}return d}(),children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Camera",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,disabled:!l.power,onClick:function(){function d(){return h("view_uav")}return d}(),children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Paired UAVs",children:c.length&&c.map(function(d){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 p(){return h("switch_uav",{switch_uav:d.uavref})}return p}(),children:d.name})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function p(){return h("del_uav",{del_uav:d.uavref})}return p}()})})]},d.uavref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No UAVs Paired."})})]})})}return V}()},79101:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWordProcessor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosWordProcessor=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.error,i=s.browsing,c=s.files,d=s.usbconnected,p=s.usbfiles,v=s.filename,f=s.filedata;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:l,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 C(){return h("PRG_backtomenu")}return C}()})]})||i&&(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 C(){return h("PRG_closebrowser")}return C}()}),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})]}),c.map(function(C,b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.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 h("PRG_openfile",{PRG_openfile:C.name})}return g}(),children:"Open"})})]},b)})]})})})||(0,e.createComponentVNode)(2,t.Section,{title:"Document: "+v,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_newfile")}return C}(),children:"New"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_loadmenu")}return C}(),children:"Load"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_savefile")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_saveasfile")}return C}(),children:"Save As"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_editfile")}return C}(),children:"Edit"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_txtrpeview")}return C}(),children:"Preview"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_taghelp")}return C}(),children:"Formatting Help"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,onClick:function(){function C(){return h("PRG_printfile")}return C}(),children:"Print"})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})})]})})})}return V}()},90132:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(42678),m=n(62188),V=n(11790),k=n(11477),S=r.NumberInputModal=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.init_value,p=c.large_buttons,v=c.message,f=v===void 0?"":v,C=c.timeout,b=c.title,g=(0,m.useLocalState)(l,"input",d),y=g[0],B=g[1],L=function(){function T(M){M!==y&&B(M)}return T}(),I=function(){function T(M){M!==y&&B(M)}return T}(),w=140+(f.length>30?Math.ceil(f.length/3):0)+(f.length&&p?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:b,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function T(M){var A=window.event?M.which:M.keyCode;A===o.KEY_ENTER&&i("submit",{entry:y}),A===o.KEY_ESCAPE&&i("cancel")}return T}(),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:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,N,{input:y,onClick:I,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return h}(),N=function(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.min_value,p=c.max_value,v=c.init_value,f=s.input,C=s.onClick,b=s.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:f===d,icon:"angle-double-left",onClick:function(){function g(){return C(d)}return g}(),tooltip:d?"Min ("+d+")":"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:d,maxValue:p,onChange:function(){function g(y,B){return b(B)}return g}(),onEnter:function(){function g(y,B){return i("submit",{entry:B})}return g}(),value:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===p,icon:"angle-double-right",onClick:function(){function g(){return C(p)}return g}(),tooltip:p?"Max ("+p+")":"Max"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===v,icon:"redo",onClick:function(){function g(){return C(v)}return g}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},84035:function(x,r,n){"use strict";r.__esModule=!0,r.OmniFilter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S){return S.input?"Input":S.output?"Output":S.f_type?S.f_type:"Disabled"},V=r.OmniFilter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.power,i=l.config,c=l.ports,d=l.set_flow_rate,p=l.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:i?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:i,onClick:function(){function v(){return s("power")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:i,onClick:function(){function v(){return s("configure")}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c?c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.dir+" Port",children:i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:v.input,icon:"compress-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"in",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:v.output,icon:"expand-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"out",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:v.input||v.output,content:v.f_type||"None",onClick:function(){function f(){return s("switch_filter",{mode:v.f_type,dir:v.dir})}return f}()})],4):m(v)},v.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:[p," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:d/10+" L/s",onClick:function(){function v(){return s("set_flow_rate")}return v}()}):d/10+" L/s"})]})})]})})}return k}()},6238:function(x,r,n){"use strict";r.__esModule=!0,r.OmniMixer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(N){return N.input?"Input":N.output?"Output":N.f_type?N.f_type:"Disabled"},V=r.OmniMixer=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.power,c=u.config,d=u.ports,p=u.set_flow_rate,v=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:c?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function f(){return l("power")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:c,onClick:function(){function f(){return l("configure")}return f}()})],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"}),c?(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"}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),d?d.map(function(f){return(0,e.createComponentVNode)(2,k,{port:f,config:c},f.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:[v," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){function f(){return l("set_flow_rate")}return f}()}):p/10+" L/s"})]})})]})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=N.port,i=N.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:i?(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}return c}()}):m(u)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i?(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:"out",dir:u.dir})}return c}()}):u.concentration*100+"%"}),i?(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 c(){return l("switch_con",{dir:u.dir})}return c}()})}),(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 c(){return l("switch_conlock",{dir:u.dir})}return c}()})})],4):null]})}},46476:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11477),m=n(11790),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function i(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.hasOccupant,b=f.choice,g;return b?g=(0,e.createComponentVNode)(2,u):g=C?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,l),(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,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!b,icon:"user",onClick:function(){function y(){return v("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!b,icon:"cog",onClick:function(){function y(){return v("choiceOn")}return y}(),children:"Options"})]}),(0,e.createComponentVNode)(2,m.Section,{flexGrow:"1",children:g})]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.data,f=v.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Section,{title:"Patient",level:"2",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxHealth,value:f.health/f.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,b){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:f[C[1]]/100,ranges:S,children:(0,a.round)(f[C[1]])},b)},b)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxTemp,value:f.bodyTemperature/f.maxTemp,color:N[f.temperatureSuitability+3],children:[(0,a.round)(f.btCelsius),"\xB0C, ",(0,a.round)(f.btFaren),"\xB0F"]})}),!!f.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.bloodMax,value:f.bloodLevel/f.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[f.bloodPercent,"%, ",f.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[f.pulse," BPM"]})],4)]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:f.surgery&&f.surgery.length?(0,e.createComponentVNode)(2,m.LabeledList,{children:f.surgery.map(function(C){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C.name,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Current State",children:C.currentStage}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(b){return(0,e.createVNode)(1,"div",null,b,0,null,b)})})]})},C.name)})}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})],4)},l=function(){return(0,e.createComponentVNode)(2,m.Flex,{textAlign:"center",height:"100%",children:(0,e.createComponentVNode)(2,m.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.verbose,b=f.health,g=f.healthAlarm,y=f.oxy,B=f.oxyAlarm,L=f.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return v(C?"verboseOff":"verboseOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function I(){return v(b?"healthOff":"healthOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:g,stepPixelSize:"5",ml:"0",format:function(){function I(w){return w+"%"}return I}(),onChange:function(){function I(w,T){return v("health_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function I(){return v(y?"oxyOff":"oxyOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:B,stepPixelSize:"5",ml:"0",onChange:function(){function I(w,T){return v("oxy_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function I(){return v(L?"critOff":"critOn")}return I}()})})]})}},96008:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapDisperser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapDisperser=function(){function S(N,h){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,k)})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.faillink,c=u.calibration,d=u.overmapdir,p=u.cal_accuracy,v=u.strength,f=u.range,C=u.next_shot,b=u.nopower,g=u.skill,y=u.chargeload;return i?(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,m.OvermapPanControls,{actToDo:"choose",selected:function(){function B(L){return L===d}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:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cooldown",children:C===0&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Ready"})||C>1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," 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:p}),"%",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"exchange-alt",onClick:function(){function B(){return l("skill_calibration")}return B}(),children:"Pre-Calibration"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:c.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:["Cal #",L,":",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"random",onClick:function(){function I(){return l("calibration",{calibration:L})}return I}(),children:B.toString()})]},L)})})]})}),(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 l("strength")}return B}(),children:v})}),(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 l("range")}return B}(),children:f})})]})})}),(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 l("fire")}return B}(),children:"Fire ORB"})})]})}},54030:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapEnginesContent=r.OvermapEngines=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapEngines=function(){function k(S,N){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 k}(),V=r.OvermapEnginesContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.global_state,i=l.global_limit,c=l.engines_info,d=l.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 p(){return s("global_toggle")}return p}(),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 p(){return s("global_limit",{global_limit:-.1})}return p}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("set_global_limit")}return p}(),children:[i,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("global_limit",{global_limit:.1})}return p}(),icon:"plus"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Thrust",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:c.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:v!==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 #",v+1," | Thrust:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust})," | Limit:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust_limiter,format:function(){function f(C){return C+"%"}return f}()})]}),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:p.eng_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Box,{color:p.eng_on?p.eng_on===1?"good":"average":"bad",children:p.eng_on?p.eng_on===1?"Online":"Booting":"Offline"}),p.eng_status.map(function(f){return Array.isArray(f)?(0,e.createComponentVNode)(2,t.Box,{color:f[1],children:f[0]}):(0,e.createComponentVNode)(2,t.Box,{children:f})})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Thrust",children:p.eng_thrust}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:-.1,engine:p.eng_reference})}return f}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("set_limit",{engine:p.eng_reference})}return f}(),children:[p.eng_thrust_limiter,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:.1,engine:p.eng_reference})}return f}(),icon:"plus"})]})]})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,iconSpin:p.eng_on===-1,color:p.eng_on===-1?"purple":null,selected:p.eng_on===1,icon:"power-off",onClick:function(){function f(){return s("toggle_engine",{engine:p.eng_reference})}return f}(),children:p.eng_on?p.eng_on===1?"Shutoff":"Booting":"Startup"})})]},v)})})],4)}return k}()},3774:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapFull=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(54030),V=n(39526),k=n(35780),S=r.OvermapFull=function(){function N(h,s){var l=(0,a.useLocalState)(s,"overmapFullState",0),u=l[0],i=l[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 c(){return i(0)}return c}(),children:"Engines"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===1,onClick:function(){function c(){return i(1)}return c}(),children:"Helm"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===2,onClick:function(){function c(){return i(2)}return c}(),children:"Sensors"})]}),u===0&&(0,e.createComponentVNode)(2,m.OvermapEnginesContent),u===1&&(0,e.createComponentVNode)(2,V.OvermapHelmContent),u===2&&(0,e.createComponentVNode)(2,k.OvermapShipSensorsContent)]})})}return N}()},39526:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapHelmContent=r.OvermapHelm=r.OvermapFlightDataWrap=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapHelm=function(){function l(u,i){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,k)})})}return l}(),k=r.OvermapHelmContent=function(){function l(u,i){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,S)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"25%",height:"180px",children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"35%",height:"180px",children:(0,e.createComponentVNode)(2,h)})]}),(0,e.createComponentVNode)(2,s)],4)}return l}(),S=r.OvermapFlightDataWrap=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Flight Data",16),(0,e.createComponentVNode)(2,m.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.canburn,f=p.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,m.OvermapPanControls,{disabled:!v,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:f,onClick:function(){function C(){return d("manual")}return C}(),icon:"compass",children:f?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.dest,f=p.d_x,C=p.d_y,b=p.speedlimit,g=p.autopilot,y=p.autopilot_disabled;return y?(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 d("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:v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{setx:!0})}return B}(),children:f}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{sety:!0})}return B}(),children:C})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function B(){return d("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 d("speedlimit")}return B}(),children:[b," Gm/h"]})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,selected:g,disabled:!v,icon:"robot",onClick:function(){function B(){return d("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 d("apilot_lock")}return B}(),children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.sector,f=p.s_x,C=p.s_y,b=p.sector_info,g=p.landed,y=p.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:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[f," : ",C]}),(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 d("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 d("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"})]}),y.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 L(){return d("setds",{x:B.x,y:B.y})}return L}(),children:"Plot Course"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function L(){return d("remove",{remove:B.reference})}return L}(),children:"Remove"})]})]},B.name)})]})})]})}},85513:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapNavigationContent=r.OvermapNavigation=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapNavigation=function(){function S(){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,k)})})}return S}(),k=r.OvermapNavigationContent=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.sector,c=u.s_x,d=u.s_y,p=u.sector_info,v=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:v,onClick:function(){function f(){return l("viewing")}return f}(),children:"Map View"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[c," : ",d]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Additional Information",children:p})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flight Data",children:(0,e.createComponentVNode)(2,m.OvermapFlightData,{disableLimiterControls:!0})})],4)}return S}()},28204:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShieldGenerator=function(){function N(h,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 N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.modes,d=i.offline_for;return d?(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: ",d," seconds."]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{title:"Field Calibration",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:p.status,onClick:function(){function v(){return u("toggle_mode",{toggle_mode:p.flag})}return v}(),children:p.status?"Enabled":"Disabled"}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:p.desc}),(0,e.createComponentVNode)(2,t.Box,{mt:.5,children:["Multiplier: ",p.multiplier]})]},p.name)})})],4)},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.overloaded,p=i.mitigation_max,v=i.mitigation_physical,f=i.mitigation_em,C=i.mitigation_heat,b=i.field_integrity,g=i.max_energy,y=i.current_energy,B=i.percentage_energy,L=i.total_segments,I=i.functional_segments,w=i.field_radius,T=i.target_radius,M=i.input_cap_kw,A=i.upkeep_power_usage,R=i.power_usage,O=i.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:c===1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Shutting Down"})||c===2&&(d&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Overloaded"})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Running"}))||c===3&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Inactive"})||c===4&&(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:["Spinning Up\xA0",T!==w&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[O*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:y,maxValue:g,children:[y," / ",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:[f,"% EM / ",v,"% PH / ",C,"% HE / ",p,"% MAX"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})," kW"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Energy Use",children:M&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:R,maxValue:M,children:[R," / ",M," kW"]})})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})," kW (No Limit)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Field Size",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"\xA0/\xA0",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L})," m\xB2 (radius"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),", target"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T}),")"]})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.hacked,p=i.idle_multiplier,v=i.idle_valid_values;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([c>=2&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("begin_shutdown")}return f}(),selected:!0,children:"Turn off"}),c===3&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:0})}return f}(),children:"Activate"})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:1})}return f}(),selected:!0,children:"Deactivate"})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("start_generator")}return f}(),children:"Turn on"}),c&&d&&(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",onClick:function(){function f(){return u("emergency_shutdown")}return f}(),color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",onClick:function(){function f(){return u("set_range")}return f}(),children:"Set Field Range"}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",onClick:function(){function f(){return u("set_input_cap")}return f}(),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:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{selected:f===p,disabled:c===4,onClick:function(){function C(){return u("switch_idle",{switch_idle:f})}return C}(),children:f},f)})})})]})}},35780:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShipSensorsContent=r.OvermapShipSensors=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShipSensors=function(){function k(S,N){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 k}(),V=r.OvermapShipSensorsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.viewing,i=l.on,c=l.range,d=l.health,p=l.max_health,v=l.heat,f=l.critical_heat,C=l.status,b=l.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:i,onClick:function(){function g(){return s("toggle_sensor")}return g}(),children:i?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(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:c})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p*.75,1/0],average:[p*.25,p*.75],bad:[-1/0,p*.25]},value:d,maxValue:p,children:[d," / ",p]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[f*.75,1/0],average:[f*.5,f*.75],good:[-1/0,f*.5]},value:v,maxValue:f,children:v0||!v)&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"times",onClick:function(){function B(){return l("cancel",{cancel:y+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 y(){return l("queue",{queue:g.type})}return y}(),children:(0,m.toTitleCase)(g.name)})},g.name)})})]})})}return S}()},27252:function(x,r,n){"use strict";r.__esModule=!0,r.PathogenicIsolator=void 0;var e=n(58734),a=n(62188),t=n(48388),o=n(11790),m=n(11477),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.can_print,p=s.args;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!d,icon:"print",content:"Print",onClick:function(){function v(){return i("print",{type:"virus_record",vir:p.record})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function v(){return i("modal_close")}return v}()})],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:[p.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:p.antigen}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rate of Progression",children:p.rate}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species Affected",children:p.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.symptoms.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.stage+". "+v.name,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Strength:"})," ",v.strength,"\xA0"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",v.aggressiveness]})]},v.stage)})})})]})})})},k=r.PathogenicIsolator=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isolating,p=(0,a.useLocalState)(l,"tabIndex",0),v=p[0],f=p[1],C=null;return v===0?C=(0,e.createComponentVNode)(2,S):v===1&&(C=(0,e.createComponentVNode)(2,N)),(0,t.modalRegisterBodyOverride)("virus",V),(0,e.createComponentVNode)(2,m.Window,{height:500,width:520,resizable:!0,children:[(0,e.createComponentVNode)(2,t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[d&&(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:v===0,onClick:function(){function b(){return f(0)}return b}(),children:"Home"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function b(){return f(1)}return b}(),children:"Database"})]}),C]})]})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,v=c.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:!v,onClick:function(){function f(){return i("print",{type:"patient_diagnosis"})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){function f(){return i("eject")}return f}()})],4),children:p.length&&p.map(function(f){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 #"),f.unique_id],0),f.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 C(){return i("isolate",{isolate:f.reference})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Database",disabled:!f.is_in_database,onClick:function(){function C(){return i("view_entry",{vir:f.record})}return C}()})]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",mb:1,children:f.name}),f.dna]})]},f.unique_id)})||(d?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No samples detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No syringe inserted."}))})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Database",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!p,onClick:function(){function v(){return i("print",{type:"virus_list"})}return v}()}),children:d.length&&d.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function f(){return i("view_entry",{vir:v.record})}return f}(),children:v.name},v.name)})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"The viral database is empty."})})}},32183:function(x,r,n){"use strict";r.__esModule=!0,r.Pda=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(61082),V=n(67484),k=function(u){var i;try{i=V("./"+u+".jsx")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",u);throw d}var c=i[u];return c||(0,m.routingError)("missingExport",u)},S=r.Pda=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.app,f=p.owner,C=p.useRetro;if(!f)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=k(v.template),g=(0,a.useLocalState)(i,"settingsMode",!1),y=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:580,height:670,theme:C?"pda-retro":null,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N,{settingsMode:y,setSettingsMode:B}),y&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:v.icon,mr:1}),v.name]}),p:1,children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Box,{mb:8}),(0,e.createComponentVNode)(2,s,{setSettingsMode:B})]})})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.settingsMode,f=u.setSettingsMode,C=p.idInserted,b=p.idLink,g=p.cartridge_name,y=p.stationTime;return(0,e.createComponentVNode)(2,t.Box,{mb:1,children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-between",children:[!!C&&(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",color:"transparent",onClick:function(){function B(){return d("Authenticate")}return B}(),content:b})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:y}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:v,onClick:function(){function B(){return f(!v)}return B}(),icon:"cog"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("Retro")}return B}(),icon:"adjust"})]})]})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.idInserted,f=p.idLink,C=p.cartridge_name,b=p.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 d("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 d("TouchSounds")}return g}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cartridge",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Eject")}return g}(),content:C})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Authenticate")}return g}(),content:f})})]})})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.setSettingsMode,f=p.app,C=p.useRetro;return(0,e.createComponentVNode)(2,t.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#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:f.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){function b(){return d("Back")}return b}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:f.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){function b(){v(!1),d("Home")}return b}()})})]})})}},90394:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);function m(h,s){var l=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(l)return(l=l.call(h)).next.bind(l);if(Array.isArray(h)||(l=V(h))||s&&h&&typeof h.length=="number"){l&&(h=l);var u=0;return function(){return u>=h.length?{done:!0}:{done:!1,value:h[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(h,s){if(h){if(typeof h=="string")return k(h,s);var l=Object.prototype.toString.call(h).slice(8,-1);if(l==="Object"&&h.constructor&&(l=h.constructor.name),l==="Map"||l==="Set")return Array.from(h);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return k(h,s)}}function k(h,s){(s==null||s>h.length)&&(s=h.length);for(var l=0,u=new Array(s);l=.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:[!l.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:l.active?"power-off":"times",onClick:function(){function c(){return s("toggle_power")}return c}(),selected:l.active,disabled:!l.ready_to_boot,children:l.active?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Type",buttons:l.fuel_stored>=1&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"eject",disabled:l.active,onClick:function(){function c(){return s("eject")}return c}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,t.Box,{color:i,children:[l.fuel_stored,"cm\xB3 ",l.sheet_name]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.fuel_stored/l.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[l.fuel_stored,"cm\xB3 / ",l.fuel_capacity,"cm\xB3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Usage",children:[l.fuel_usage," cm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.temperature_current,maxValue:l.temperature_max+30,color:l.temperature_overheat?"bad":"good",children:[(0,m.round)(l.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:l.unsafe_output?"bad":null,children:l.power_output}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust output",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",onClick:function(){function c(){return s("lower_power")}return c}(),children:l.power_generated}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function c(){return s("higher_power")}return c}(),children:l.power_generated})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power available",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l.connected&&"bad",children:l.connected?l.power_available:"Unconnected"})})]})})]})})}return k}()},80387:function(x,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortablePump=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.direction,i=l.target_pressure,c=l.default_pressure,d=l.min_pressure,p=l.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,m.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 v(){return s("direction")}return v}()}),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:d,maxValue:p,value:i,unit:"kPa",stepPixelSize:.3,onChange:function(){function v(f,C){return s("pressure",{pressure:C})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:i===d,onClick:function(){function v(){return s("pressure",{pressure:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",disabled:i===c,onClick:function(){function v(){return s("pressure",{pressure:"reset"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:i===p,onClick:function(){function v(){return s("pressure",{pressure:"max"})}return v}()})]})]})})]})})}return k}()},47750:function(x,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortableScrubber=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.rate,i=l.minrate,c=l.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,m.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:i,maxValue:c,value:u,unit:"L/s",onChange:function(){function d(p,v){return s("volume_adj",{vol:v})}return d}()})})})})]})})}return k}()},45143:function(x,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PortableTurret=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.on,i=s.lethal,c=s.lethal_is_configurable,d=s.targetting_is_configurable,p=s.check_weapons,v=s.neutralize_noaccess,f=s.neutralize_norecord,C=s.neutralize_criminals,b=s.neutralize_all,g=s.neutralize_nonsynth,y=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 ",l?"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:l,onClick:function(){function L(){return h("power")}return L}()})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"exclamation-triangle":"times",content:i?"On":"Off",color:i?"bad":"",disabled:l,onClick:function(){function L(){return h("lethal")}return L}()})})]})}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Wanted Criminals",disabled:l,onClick:function(){function L(){return h("autharrest")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"No Sec Record",disabled:l,onClick:function(){function L(){return h("authnorecord")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Weapons",disabled:l,onClick:function(){function L(){return h("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Unauthorized Access",disabled:l,onClick:function(){function L(){return h("authaccess")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:y,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:l,onClick:function(){function L(){return h("authxeno")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"All Non-Synthetics",disabled:l,onClick:function(){function L(){return h("authsynth")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Downed Targets",disabled:l,onClick:function(){function L(){return h("authdown")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:l,onClick:function(){function L(){return h("authall")}return L}()})]})],4)]})})}return V}()},8694: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),m=n(59641),V=n(62188),k=n(11790),S=n(11477),N=5e5,h=r.powerRank=function(){function d(p){var v=String(p.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(v)}return d}(),s=r.PowerMonitor=function(){function d(){return(0,e.createComponentVNode)(2,S.Window,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,l)})})}return d}(),l=r.PowerMonitorContent=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=b.map_levels,y=b.all_sensors,B=b.focus;if(B)return(0,e.createComponentVNode)(2,u,{focus:B});var L=(0,e.createComponentVNode)(2,k.Box,{color:"bad",children:"No sensors detected"});return y&&(L=(0,e.createComponentVNode)(2,k.Table,{children:y.map(function(I){return(0,e.createComponentVNode)(2,k.Table.Row,{children:(0,e.createComponentVNode)(2,k.Table.Cell,{children:(0,e.createComponentVNode)(2,k.Button,{content:I.name,icon:I.alarm?"bell":"sign-in-alt",onClick:function(){function w(){return C("setsensor",{id:I.name})}return w}()})})},I.name)})})),(0,e.createComponentVNode)(2,k.Section,{title:"No active sensor. Listing all.",buttons:(0,e.createComponentVNode)(2,k.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){function I(){return C("refresh")}return I}()}),children:L})}return d}(),u=r.PowerMonitorFocus=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=p.focus,y=g.history,B=(0,V.useLocalState)(v,"sortByField",null),L=B[0],I=B[1],w=y.supply[y.supply.length-1]||0,T=y.demand[y.demand.length-1]||0,M=y.supply.map(function(_,P){return[P,_]}),A=y.demand.map(function(_,P){return[P,_]}),R=Math.max.apply(Math,[N].concat(y.supply,y.demand)),O=(0,t.flow)([(0,a.map)(function(_,P){return Object.assign({},_,{id:_.name+P})}),L==="name"&&(0,a.sortBy)(function(_){return _.name}),L==="charge"&&(0,a.sortBy)(function(_){return-_.charge}),L==="draw"&&(0,a.sortBy)(function(_){return-h(_.load)},function(_){return-parseFloat(_.load)}),L==="problems"&&(0,a.sortBy)(function(_){return _.eqp},function(_){return _.lgt},function(_){return _.env},function(_){return _.charge},function(_){return _.name})])(g.areas);return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Section,{title:g.name,buttons:(0,e.createComponentVNode)(2,k.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){function _(){return C("clear")}return _}()})}),(0,e.createComponentVNode)(2,k.Flex,{mx:-.5,mb:1,children:[(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,width:"200px",children:(0,e.createComponentVNode)(2,k.Section,{children:(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:w,minValue:0,maxValue:R,color:"teal",children:(0,o.toFixed)(w/1e3)+" kW"})}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:T,minValue:0,maxValue:R,color:"pink",children:(0,o.toFixed)(T/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,grow:1,children:(0,e.createComponentVNode)(2,k.Section,{position:"relative",height:"100%",children:[(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:M,rangeX:[0,M.length-1],rangeY:[0,R],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:A,rangeX:[0,A.length-1],rangeY:[0,R],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,k.Section,{children:[(0,e.createComponentVNode)(2,k.Box,{mb:1,children:[(0,e.createComponentVNode)(2,k.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="name",content:"Name",onClick:function(){function _(){return I(L!=="name"&&"name")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="charge",content:"Charge",onClick:function(){function _(){return I(L!=="charge"&&"charge")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="draw",content:"Draw",onClick:function(){function _(){return I(L!=="draw"&&"draw")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="problems",content:"Problems",onClick:function(){function _(){return I(L!=="problems"&&"problems")}return _}()})]}),(0,e.createComponentVNode)(2,k.Table,{children:[(0,e.createComponentVNode)(2,k.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,k.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,k.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),O.map(function(_,P){return(0,e.createVNode)(1,"tr","Table__row candystripe",[(0,e.createVNode)(1,"td",null,_.name,0),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,e.createComponentVNode)(2,i,{charging:_.charging,charge:_.charge}),2),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",_.load,0),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.eqp}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.lgt}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.env}),2)],4,null,_.id)})]})]})],4)}return d}(),i=r.AreaCharge=function(){function d(p){var v=p.charging,f=p.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Icon,{width:"18px",textAlign:"center",name:v===0&&(f>50?"battery-half":"battery-quarter")||v===1&&"bolt"||v===2&&"battery-full",color:v===0&&(f>50?"yellow":"red")||v===1&&"yellow"||v===2&&"green"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(f)+"%"})],4)}return d}();i.defaultHooks=m.pureComponentHooks;var c=function(p){var v=p.status,f=!!(v&2),C=!!(v&1),b=(f?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:f?"good":"bad",content:C?void 0:"M",title:b})};c.defaultHooks=m.pureComponentHooks},70955:function(x,r,n){"use strict";r.__esModule=!0,r.PrecisionEditor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrecisionEditor=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.screenstate;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seed status",children:[c==="main"&&(0,e.createComponentVNode)(2,V),c==="colors"&&(0,e.createComponentVNode)(2,k),c==="reagents"&&(0,e.createComponentVNode)(2,S)]})})})}return N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.health,d=i.plantcolor,p=i.fruitcolor,v=i.chems,f=i.seedname;return(0,e.createComponentVNode)(2,t.LabeledList,{children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:f}),c<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-c+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:C.displayname,onClick:function(){function b(){return u("prune",{gene_name:C.name})}return b}()},C.displayname)})}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Colors",onClick:function(){function C(){return u("change_focus",{window:"colors"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add Reagents",onClick:function(){function C(){return u("change_focus",{window:"reagents"})}return C}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Seed",onClick:function(){function C(){return u("eject")}return C}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.plantcolor,d=i.fruitcolor;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:c}),(0,e.createComponentVNode)(2,t.ColorBox,{color:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:d}),(0,e.createComponentVNode)(2,t.ColorBox,{color:d}),(0,e.createComponentVNode)(2,t.Button,{content:"Change plant color",onClick:function(){function p(){return u("change_color",{option:0})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change fruit color",onClick:function(){function p(){return u("change_color",{option:1})}return p}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.beakerchems,d=i.health;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.createComponentVNode)(2,t.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.createComponentVNode)(2,t.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),c?(0,e.createFragment)([d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available reagents",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p.displayname,onClick:function(){function v(){return u("add_chem",{target_chem:p.name})}return v}()},p.displayname)})}):(0,e.createComponentVNode)(2,t.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Beaker",onClick:function(){function p(){return u("eject_beaker")}return p}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})}},22217:function(x,r,n){"use strict";r.__esModule=!0,r.PressureRegulator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PressureRegulator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.max_pressure,c=s.input_pressure,d=s.output_pressure,p=s.regulate_mode,v=s.set_flow_rate,f=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:c/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f/10})," L/s"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"Unlocked":"Closed",selected:l,onClick:function(){function C(){return h("toggle_valve")}return C}()}),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:p===0,onClick:function(){function C(){return h("regulate_mode",{mode:"off"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"Input",selected:p===1,onClick:function(){function C(){return h("regulate_mode",{mode:"input"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"Output",selected:p===2,onClick:function(){function C(){return h("regulate_mode",{mode:"output"})}return C}()})],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 C(){return h("set_press",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_press",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_press",{press:"set"})}return C}()})],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 C(){return h("set_flow_rate",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_flow_rate",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_flow_rate",{press:"set"})}return C}()})],4),children:[v/10," L/s"]})]})})]})})}return V}()},97749:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerManagement=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrisonerManagement=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.chemImplants,i=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:l&&(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 c(){return h("lock")}return c}(),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 c(){return h("lock")}return c}(),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(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.host}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.units,"u remaining"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:1})}return d}(),children:"(1)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:5})}return d}(),children:"(5)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:10})}return d}(),children:"(10)"})]})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Tracking Implants",children:i.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"})]}),i.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.host," (",c.id,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.loc}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("warn",{imp:c.ref})}return d}(),children:"Message"})})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})})],4)})})}return V}()},23613:function(x,r,n){"use strict";r.__esModule=!0,r.RCONContent=r.RCON=void 0;var e=n(58734),a=n(5339),t=n(43820),o=n(62188),m=n(11790),V=n(11477),k=n(40946),S=1e3,N=r.RCON=function(){function c(d,p){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,h)})})}return c}(),h=r.RCONContent=function(){function c(d,p){var v=(0,o.useLocalState)(p,"tabIndex",0),f=v[0],C=v[1],b;return f===0?b=(0,e.createComponentVNode)(2,s):f===1&&(b=(0,e.createComponentVNode)(2,i)),(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:b})],4)}return c}(),s=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=v.data,b=C.smes_info,g=C.pages,y=C.current_page,B=function(I){return I()};return(0,e.createComponentVNode)(2,m.Section,{title:"SMESs (Page "+y+")",children:[(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,children:b.map(function(L){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{smes:L})},L.RCON_tag)})}),"Page Selection:",(0,e.createVNode)(1,"br"),B(function(){for(var L=[],I=function(M){L.push((0,e.createComponentVNode)(2,m.Button,{selected:y===M,onClick:function(){function A(){return f("set_smes_page",{index:M})}return A}(),children:M},M))},w=1;w=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: ",C.engagecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Active: ",C.activecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Passive: ",C.passivecost]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:C.desc})]}),C.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,m.capitalize)(C.chargetype)}),C.charges.map(function(g,y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.capitalize)(g.caption),children:(0,e.createComponentVNode)(2,t.Button,{selected:C.realchargetype===g.index,icon:"arrow-right",onClick:function(){function B(){return i("interact_module",{module:C.index,module_mode:"select_charge_type",charge_type:g.index})}return B}()})},g.caption)})]})})}):null]},C.name)})]})}},82402:function(x,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(11477),k=r.Radio=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.rawfreq,c=u.minFrequency,d=u.maxFrequency,p=u.listening,v=u.broadcasting,f=u.subspace,C=u.subspaceSwitchable,b=u.chan_list,g=u.loudspeaker,y=u.mic_cut,B=u.spk_cut,L=u.useSyndMode,I=m.RADIO_CHANNELS.find(function(T){return T.freq===Number(i)}),w=156;return b&&b.length>0?w+=b.length*28+6:w+=24,C&&(w+=38),(0,e.createComponentVNode)(2,V.Window,{width:310,height:w,resizable:!0,theme:L?"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:c/10,maxValue:d/10,value:i/10,format:function(){function T(M){return(0,a.toFixed)(M,1)}return T}(),onDrag:function(){function T(M,A){return l("setFrequency",{freq:(0,a.round)(A*10)})}return T}()}),I&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:I.color,ml:2,children:["[",I.name,"]"]})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:p?"volume-up":"volume-mute",selected:p,disabled:B,onClick:function(){function T(){return l("listen")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:v?"microphone":"microphone-slash",selected:v,disabled:y,onClick:function(){function T(){return l("broadcast")}return T}()}),!!C&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"bullhorn",selected:f,content:"Subspace Tx "+(f?"ON":"OFF"),onClick:function(){function T(){return l("subspace")}return T}()})}),!!C&&(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 T(){return l("toggleLoudspeaker")}return T}()})})]})]})}),(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(T){var M=m.RADIO_CHANNELS.find(function(R){return R.freq===Number(T.freq)}),A="default";return M&&(A=M.color),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.display_name,labelColor:A,textAlign:"right",children:T.secure_channel&&f?(0,e.createComponentVNode)(2,o.Button,{icon:T.sec_channel_listen?"square-o":"check-square-o",selected:!T.sec_channel_listen,content:T.sec_channel_listen?"Off":"On",onClick:function(){function R(){return l("channel",{channel:T.chan})}return R}()}):(0,e.createComponentVNode)(2,o.Button,{content:"Switch",selected:T.chan===i,onClick:function(){function R(){return l("specFreq",{channel:T.chan})}return R}()})},T.chan)}):null})]})]})})}return S}()},25114: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(62188),m=n(11790),V=n(11477),k=["Atmospherics","Disposals"],S=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"},N=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],h=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.selected_color,g=f.mode;return(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Category",children:k.map(function(y,B){return(0,e.createComponentVNode)(2,m.Button,{selected:C===B,icon:S[y],color:"transparent",onClick:function(){function L(){return v("category",{category:B})}return L}(),children:y},y)})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Modes",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:N.map(function(y){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g&y.bitmask,fluid:!0,content:y.name,onClick:function(){function B(){return v("mode",{mode:y.bitmask})}return B}()})},y.bitmask)})})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Color",children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,width:"64px",color:f.paint_colors[b],children:(0,t.capitalize)(b)}),Object.keys(f.paint_colors).map(function(y){return(0,e.createComponentVNode)(2,m.ColorBox,{ml:1,color:f.paint_colors[y],onClick:function(){function B(){return v("color",{paint_color:y})}return B}()},y)})]})]})})},s=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.piping_layer,g=f.pipe_layers,y=f.preview_rows.flatMap(function(B){return B.previews});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,width:7.5,children:[C===0&&(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,mb:1,children:Object.keys(g).map(function(B){return(0,e.createComponentVNode)(2,m.Stack.Item,{my:0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g[B]===b,content:B,onClick:function(){function L(){return v("piping_layer",{piping_layer:g[B]})}return L}()})},B)})}),(0,e.createComponentVNode)(2,m.Box,{width:"120px",children:y.map(function(B){return(0,e.createComponentVNode)(2,m.Button,{ml:0,title:B.dir_name,selected:B.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){function L(){return v("setdir",{dir:B.dir,flipped:B.flipped})}return L}(),children:(0,e.createComponentVNode)(2,m.Box,{className:(0,a.classes)(["pipes32x32",B.dir+"-"+B.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},B.dir)})})]})},l=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.categories,b=C===void 0?[]:C,g=(0,o.useLocalState)(d,"categoryName"),y=g[0],B=g[1],L=b.find(function(I){return I.cat_name===y})||b[0];return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:b.map(function(I,w){return(0,e.createComponentVNode)(2,m.Tabs.Tab,{fluid:!0,icon:S[I.cat_name],selected:I.cat_name===L.cat_name,onClick:function(){function T(){return B(I.cat_name)}return T}(),children:I.cat_name},I.cat_name)})}),L==null?void 0:L.recipes.map(function(I){return(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:I.selected,content:I.pipe_name,title:I.pipe_name,onClick:function(){function w(){return v("pipe_type",{pipe_type:I.pipe_index,category:L.cat_name})}return w}()},I.pipe_index)})]})},u=r.RapidPipeDispenser=function(){function i(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.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,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})})})}return i}()},83942:function(x,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=0,k=1,S=2,N=3,h=4,s=5,l=6,u=7,i=8,c=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.silent;return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,o.Button,{selected:!_,icon:_?"volume-mute":"volume-up",onClick:function(){function P(){return R("toggleSilent")}return P}(),children:["Speaker ",_?"OFF":"ON"]})})},d=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.supply_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Supplies",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},p=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.assist_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Request assistance from another department",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},v=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.info_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Report Anonymous Information",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},f=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=T.dept_list,_=T.department;return(0,e.createComponentVNode)(2,o.LabeledList,{children:O.sort().map(function(P){return P!==_&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"envelope-open-text",onClick:function(){function D(){return R("write",{write:P,priority:1})}return D}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"exclamation-triangle",onClick:function(){function D(){return R("write",{write:P,priority:2})}return D}(),children:"High Priority"})],4)})||null})})},C=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.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 _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},b=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.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 _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},g=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message_log;return(0,e.createComponentVNode)(2,o.Section,{title:"Messages",children:_.length&&_.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(P[0]),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function z(){return R("print",{print:D+1})}return z}(),children:"Print"}),children:(0,a.decodeHtmlEntities)(P[1])},D)})||(0,e.createComponentVNode)(2,o.Box,{children:"No messages."})})},y=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message,P=O.recipient,D=O.priority,z=O.msgStamped,U=O.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 "+P,children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Priority",children:D===2?"High Priority":D===1?"Normal Priority":"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Validated By",color:U?"good":"bad",children:(0,a.decodeHtmlEntities)(U)||"No Validation"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamped By",color:z?"good":"bad",children:(0,a.decodeHtmlEntities)(z)||"No Stamp"})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"share",onClick:function(){function W(){return R("department",{department:P})}return W}(),children:"Send Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function W(){return R("setScreen",{setScreen:V})}return W}(),children:"Back"})]})},B=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.screen,D=O.message_log,z=O.newmessagepriority,U=O.silent,W=O.announcementConsole,K=O.assist_dept,H=O.supply_dept,Y=O.info_dept,J=O.message,q=O.recipient,oe=O.priority,ae=O.msgStamped,le=O.msgVerified,he=O.announceAuth;return(0,e.createComponentVNode)(2,o.Section,{title:"Send Station-Wide Announcement",children:[he&&(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 me(){return R("writeAnnouncement")}return me}(),children:"Edit"}),children:J||"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:!J||!he,icon:"share",onClick:function(){function me(){return R("sendAnnouncement")}return me}(),children:"Announce"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function me(){return R("setScreen",{setScreen:V})}return me}(),children:"Back"})]})},L={};L[V]=c,L[k]=p,L[S]=d,L[N]=v,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B;var I=r.RequestConsole=function(){function w(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.screen,P=O.newmessagepriority,D=O.announcementConsole,z=L[_];return(0,e.createComponentVNode)(2,m.Window,{width:520,height:410,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===l,onClick:function(){function U(){return R("setScreen",{setScreen:l})}return U}(),icon:"envelope-open-text",children:"Messages"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===k,onClick:function(){function U(){return R("setScreen",{setScreen:k})}return U}(),icon:"share-square",children:"Assistance"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===S,onClick:function(){function U(){return R("setScreen",{setScreen:S})}return U}(),icon:"share-square",children:"Supplies"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===N,onClick:function(){function U(){return R("setScreen",{setScreen:N})}return U}(),icon:"share-square-o",children:"Report"}),D&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===i,onClick:function(){function U(){return R("setScreen",{setScreen:i})}return U}(),icon:"volume-up",children:"Announce"})||null,(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===V,onClick:function(){function U(){return R("setScreen",{setScreen:V})}return U}(),icon:"cog"})]}),P&&(0,e.createComponentVNode)(2,o.Section,{title:P>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:P>1?"bad":"average",bold:P>1})||null,(0,e.createComponentVNode)(2,z)]})})}return w}()},69701:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=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 I(){return y("print",{print:1})}return I}(),children:"Print This Page"}),children:(0,e.createComponentVNode)(2,o.Table,{children:L.map(function(I){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:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:[" - Level ",I.level]})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:I.desc})})]},I.name)})})})},k=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=C.title,L=C.target,I=y[L];return typeof I=="number"?B+" - Page "+(I+1):B},S=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=C.target;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function L(){return y(B,{reset:!0})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-left",onClick:function(){function L(){return y(B,{reverse:-1})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-right",onClick:function(){function L(){return y(B,{reverse:1})}return L}()})],4)},N=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function I(){return y("print",{print:2})}return I}(),children:"Print This Page"}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function I(w,T){return y("search",{search:T})}return I}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:I.name,children:I.desc},I.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]})},h=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.tech,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogTech",!1),T=w[0],M=w[1];return T?(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 A(){return M(!1)}return A}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_tech",{copy_tech_ID:A.id})}return R}(),children:"Copy To Disk"})},A.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)"})}),I.stored&&(0,e.createComponentVNode)(2,o.Box,{mt:2,children:[(0,e.createComponentVNode)(2,o.Box,{children:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:["Level: ",I.level]}),(0,e.createComponentVNode)(2,o.Box,{children:["Description: ",I.desc]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_tech")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_tech")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),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 A(){return M(!0)}return A}(),children:"Load Tech To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),children:"Eject Disk"})]})]})},s=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogData",!1),T=w[0],M=w[1];return T?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{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 A(){return M(!1)}return A}()}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function A(R,O){return y("search",{search:O})}return A}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_design",{copy_design_ID:A.id})}return R}(),children:"Copy To Disk"})},A.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]}):(0,e.createComponentVNode)(2,o.Box,{children:I.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:I.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Lathe Type",children:I.build_type}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Materials",children:Object.keys(I.materials).map(function(A){return(0,e.createComponentVNode)(2,o.Box,{children:[A," x ",I.materials[A]]},A)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_design")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_design")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),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 A(){return M(!0)}return A}(),children:"Load Design To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),children:"Eject Disk"})]})})},l=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.d_disk,w=L.t_disk;return!I.present&&!w.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,h,{disk:w}),(0,e.createComponentVNode)(2,s,{disk:I})]})},u=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info.linked_destroy;if(!L.present)return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var I=L.loaded_item,w=L.origin_tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:I&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Origin Tech",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.length&&w.map(function(T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.name,children:[T.level,"\xA0\xA0",T.current&&"(Current: "+T.current+")"]},T.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 T(){return y("deconstruct")}return T}(),children:"Deconstruct Item"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function T(){return y("eject_item")}return T}(),children:"Eject Item"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"No Item Loaded. Standing-by..."})})},i=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.target,I=C.designs,w=C.buildName,T=C.buildFiveName;return L?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{target:"builder_page",title:"Designs"}),buttons:(0,e.createComponentVNode)(2,S,{target:"builder_page"}),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function M(A,R){return y("search",{search:R})}return M}(),mb:1}),I&&I.length?I.map(function(M){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:M.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 A(){return y(w,{build:M.id,imprint:M.id})}return A}(),children:"Build"}),T&&(0,e.createComponentVNode)(2,o.Button,{mb:-1,onClick:function(){function A(){return y(T,{build:M.id,imprint:M.id})}return A}(),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:M.mat_list.join(" ")}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",ml:1,children:M.chem_list.join(" ")})]})]}),(0,e.createComponentVNode)(2,o.Divider)],4,M.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(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.name,I=null,w=null;if(L==="Protolathe"?(I=B.info.linked_lathe,w=B.lathe_designs):(I=B.info.linked_imprinter,w=B.imprinter_designs),!I||!I.present)return(0,e.createComponentVNode)(2,o.Section,{title:L,children:["No ",L," found."]});var T=I,M=T.total_materials,A=T.max_materials,R=T.total_volume,O=T.max_volume,_=T.busy,P=T.mats,D=T.reagents,z=T.queue,U=(0,t.useSharedState)(b,"protoTab",0),W=U[0],K=U[1],H="transparent",Y=!1,J="layer-group";_?(J="hammer",H="average",Y=!0):z&&z.length&&(J="sync",H="green",Y=!0);var q=L==="Protolathe"?"removeP":"removeI",oe=L==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",ae=L==="Protolathe"?"disposeP":"disposeI",le=L==="Protolathe"?"disposeallP":"disposeallI";return(0,e.createComponentVNode)(2,o.Section,{title:L,buttons:_&&(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:M,maxValue:A,children:[M," cm\xB3 / ",A," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Chemicals",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R,maxValue:O,children:[R,"u / ",O,"u"]})})]}),(0,e.createComponentVNode)(2,o.Tabs,{mt:1,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:W===0,onClick:function(){function he(){return K(0)}return he}(),children:"Build"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:J,iconSpin:Y,color:H,selected:W===1,onClick:function(){function he(){return K(1)}return he}(),children:"Queue"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cookie-bite",selected:W===2,onClick:function(){function he(){return K(2)}return he}(),children:"Mat Storage"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"flask",selected:W===3,onClick:function(){function he(){return K(3)}return he}(),children:"Chem Storage"})]}),W===0&&(0,e.createComponentVNode)(2,i,{target:I,designs:w,buildName:L==="Protolathe"?"build":"imprint",buildFiveName:L==="Protolathe"?"buildfive":null})||W===1&&(0,e.createComponentVNode)(2,o.LabeledList,{children:z.length&&z.map(function(he){return he.index===1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,labelColor:"bad",children:_?(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 me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})]})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})},he.name)})||(0,e.createComponentVNode)(2,o.Box,{m:1,children:"Queue Empty."})})||W===2&&(0,e.createComponentVNode)(2,o.LabeledList,{children:P.map(function(he){var me=(0,t.useLocalState)(b,"ejectAmt"+he.name,0),Be=me[0],ce=me[1];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(he.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{minValue:0,width:"100px",value:Be,maxValue:he.sheets,onDrag:function(){function te(ee,ie){return ce(ie)}return te}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;ce(0),y(oe,(ee={},ee[oe]=he.name,ee.amount=Be,ee))}return te}(),children:"Num"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;return y(oe,(ee={},ee[oe]=he.name,ee.amount=50,ee))}return te}(),children:"All"})],4),children:[he.amount," cm\xB3"]},he.name)})})||W===3&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:D.length&&D.map(function(he){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:[he.volume,"u",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",onClick:function(){function me(){return y(ae,{dispose:he.id})}return me}(),children:"Purge"})]},he.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 he(){return y(le)}return he}(),children:"Disposal All Chemicals In Storage"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},d=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.sync,w=L.linked_destroy,T=L.linked_imprinter,M=L.linked_lathe,A=(0,t.useSharedState)(b,"settingsTab",0),R=A[0],O=A[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 _(){return O(0)}return _}(),selected:R===0,children:"General"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"link",onClick:function(){function _(){return O(1)}return _}(),selected:R===1,children:"Device Linkages"})]}),R===0&&(0,e.createComponentVNode)(2,o.Box,{children:[I&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",onClick:function(){function _(){return y("sync")}return _}(),children:"Sync Database with Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"unlink",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Disconnect from Research Network"})],4)||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"link",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Connect to Research Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"lock",onClick:function(){function _(){return y("lock")}return _}(),children:"Lock Console"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){function _(){return y("reset")}return _}(),children:"Reset R&D Database"})]})||R===1&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){function _(){return y("find_device")}return _}(),children:"Re-sync with Nearby Devices"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[w.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"destroy"})}return _}(),children:"Disconnect"})})||null,M.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"lathe"})}return _}(),children:"Disconnect"})})||null,T.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"imprinter"})}return _}(),children:"Disconnect"})})||null]})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},p=[{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,u)},{name:"Settings",icon:"cog",template:(0,e.createComponentVNode)(2,d)},{name:"Research List",icon:"flask",template:(0,e.createComponentVNode)(2,V)},{name:"Design List",icon:"file",template:(0,e.createComponentVNode)(2,N)},{name:"Disk Operations",icon:"save",template:(0,e.createComponentVNode)(2,l)}],v=r.ResearchConsole=function(){function f(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.busy_msg,I=B.locked,w=(0,t.useSharedState)(b,"rdmenu",0),T=w[0],M=w[1],A=!1;return(L||I)&&(A=!0),(0,e.createComponentVNode)(2,m.Window,{width:850,height:630,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:p.map(function(R,O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:R.icon,selected:T===O,disabled:A,onClick:function(){function _(){return M(O)}return _}(),children:R.name},O)})}),L&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing...",children:L})||I&&(0,e.createComponentVNode)(2,o.Section,{title:"Console Locked",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){return y("lock")}return R}(),icon:"lock-open",children:"Unlock"})})||p[T].template]})})}return f}()},6743:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchServerController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ResearchServerController=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.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,k)})})}return l}(),k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=p.servers,C=p.consoles,b=(0,a.useSharedState)(i,"selectedServer",null),g=b[0],y=b[1],B=f.find(function(L){return L.id===g});return B?(0,e.createComponentVNode)(2,S,{setSelectedServer:y,server:B}):(0,e.createComponentVNode)(2,t.Section,{title:"Server Selection",children:f.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return y(L.id)}return I}(),children:L.name})},L.name)})})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=u.server,C=u.setSelectedServer,b=(0,a.useSharedState)(i,"tab",0),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,t.Section,{title:f.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function B(){return C(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 y(0)}return B}(),children:"Access Rights"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function B(){return y(1)}return B}(),children:"Data Management"}),v&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function B(){return y(2)}return B}(),color:"red",children:"Server-to-Server Transfer"})||null]}),g===0&&(0,e.createComponentVNode)(2,N,{server:f})||null,g===1&&(0,e.createComponentVNode)(2,h,{server:f})||null,g===2&&v&&(0,e.createComponentVNode)(2,s,{server:f})||null]})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.consoles,C=function(y,B){return y.id_with_upload.indexOf(B.id)!==-1},b=function(y,B){return y.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:f.length&&f.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name+" ("+g.loc+")",children:[(0,e.createComponentVNode)(2,t.Button,{icon:C(v,g)?"lock-open":"lock",selected:C(v,g),onClick:function(){function y(){return d("toggle_upload",{server:v.ref,console:g.ref})}return y}(),children:C(v,g)?"Upload On":"Upload Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:b(v,g)?"lock-open":"lock",selected:b(v,g),onClick:function(){function y(){return d("toggle_download",{server:v.ref,console:g.ref})}return y}(),children:b(v,g)?"Download On":"Download Off"})]},g.name)})})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Research Levels",children:v.tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){function C(){return d("reset_tech",{server:v.ref,tech:f.id})}return C}()})},f.name)})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Designs",children:(0,m.filter)(function(f){return!!f.name})(v.designs).map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){function C(){return d("reset_design",{server:v.ref,design:f.id})}return C}()})},f.name)})})],4)},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.badmin,C=p.servers;return f?(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Server Data Transfer",children:C.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 ",v.name," To ",b.name]}),onClick:function(){function g(){return d("transfer_data",{server:v.ref,target:b.ref})}return g}()})},b.name)})}):null}},1319:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingConsole=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(48388),V=n(11477),k=1,S=2,N=3,h=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.obviously_dead,P=A.oocnotes,D=A.can_sleeve_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function z(){return T("modal_close")}return z}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"user-plus",content:"Sleeve",onClick:function(){function z(){return T("sleeve",{ref:R,mode:1})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-plus",content:"Card",onClick:function(){function z(){return T("sleeve",{ref:R,mode:2})}return z}()})]}),(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:P})})]})})},s=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.species,P=A.sex,D=A.mind_compat,z=A.synthetic,U=A.oocnotes,W=A.can_grow_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function K(){return T("modal_close")}return K}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:D}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:z?"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:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{disabled:!W,icon:"user-plus",content:z?"Build":"Grow",onClick:function(){function K(){return T("create",{ref:R})}return K}()})})]})})},l=r.ResleevingConsole=function(){function B(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu,R=M.coredumped,O=M.emergency,_=(0,e.createFragment)([(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,i)})],4);return R&&(_=(0,e.createComponentVNode)(2,c)),O&&(_=(0,e.createComponentVNode)(2,d)),(0,m.modalRegisterBodyOverride)("view_b_rec",s),(0,m.modalRegisterBodyOverride)("view_m_rec",h),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:_})]})}return B}(),u=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===k,icon:"home",onClick:function(){function R(){return T("menu",{num:k})}return R}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===S,icon:"folder",onClick:function(){function R(){return T("menu",{num:S})}return R}(),children:"Body Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===N,icon:"folder",onClick:function(){function R(){return T("menu",{num:N})}return R}(),children:"Mind Records"})]})},i=function(L,I){var w=(0,t.useBackend)(I),T=w.data,M=T.menu,A=T.bodyrecords,R=T.mindrecords,O;return M===k?O=(0,e.createComponentVNode)(2,p):M===S?O=(0,e.createComponentVNode)(2,b,{records:A,actToDo:"view_b_rec"}):M===N&&(O=(0,e.createComponentVNode)(2,b,{records:R,actToDo:"view_m_rec"})),O},c=function(L,I){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)})]})})},d=function(L,I){var w=(0,t.useBackend)(I),T=w.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 M(){return T("ejectdisk")}return M}()})}),(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 M(){return T("coredump")}return M}()})})]})},p=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.loading,R=M.scantemp,O=M.occupant,_=M.locked,P=M.can_brainscan,D=M.scan_mode,z=M.pods,U=M.selected_pod,W=_&&!!O;return(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f)]})},v=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.selected_pod;return A&&A.length?A.map(function(_,P){var D;return _.status==="cloning"?D=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:_.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)(_.progress,0)+"%"})}):_.status==="mess"?D=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):D=(0,e.createComponentVNode)(2,o.Button,{selected:O===_.pod,icon:O===_.pod&&"check",content:"Select",mt:R&&R.length?"2rem":"0.5rem",onClick:function(){function z(){return T("selectpod",{ref:_.pod})}return z}()}),(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_"+_.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:_.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:_.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:_.biomass>=150?"circle":"circle-o"}),"\xA0",_.biomass]}),D]},P)}):null},f=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.sleevers,R=M.spods,O=M.selected_sleever;return A&&A.length?A.map(function(_,P){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_"+(_.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:_.occupied?"label":"bad",children:_.name}),(0,e.createComponentVNode)(2,o.Button,{selected:O===_.sleever,icon:O===_.sleever&&"check",content:"Select",mt:R&&R.length?"3rem":"1.5rem",onClick:function(){function D(){return T("selectsleever",{ref:_.sleever})}return D}()})]},P)}):null},C=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.spods,R=M.selected_printer;return A&&A.length?A.map(function(O,_){var P;return O.status==="cloning"?P=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.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)(O.progress,0)+"%"})}):O.status==="mess"?P=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):P=(0,e.createComponentVNode)(2,o.Button,{selected:R===O.spod,icon:R===O.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function D(){return T("selectprinter",{ref:O.spod})}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:"synthprinter"+(O.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:O.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.steel>=15e3?"circle":"circle-o"}),"\xA0",O.steel]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.glass>=15e3?"circle":"circle-o"}),"\xA0",O.glass]}),P]},_)}):null},b=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=L.records,A=L.actToDo;return M.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:M.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:R.name,onClick:function(){function _(){return T(A,{ref:R.recref})}return _}()},O)})}):(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."]})})},g=function(L,I){var w,T=(0,t.useBackend)(I),M=T.act,A=T.data,R=A.temp;if(!(!R||!R.text||R.text.length<=0)){var O=(w={},w[R.style]=!0,w);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},O,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:R.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function _(){return M("cleartemp")}return _}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},y=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.sleevers,_=M.autoallowed,P=M.autoprocess,D=M.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: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:"SynthFabs",children:R&&R.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[R.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sleevers",children:O&&O.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[O.length," Connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},7426:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingPod=void 0;var e=n(58734),a=n(11477),t=n(62188),o=n(11790),m=r.ResleevingPod=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.data,s=h.occupied,l=h.name,u=h.health,i=h.maxHealth,c=h.stat,d=h.mindStatus,p=h.mindName,v=h.resleeveSick,f=h.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:l}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:c===2?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"}):c===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/i,children:[u,"%"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Status",children:d?"Present":"Missing"}),d?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),v?(0,e.createComponentVNode)(2,o.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",f?(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}()},21429:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RoboticsControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.can_hack,i=l.safety,c=l.show_detonate_all,d=l.cyborgs,p=d===void 0?[]:d;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function v(){return s("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:i,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return s("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:p,can_hack:u})]})})}return k}(),V=function(S,N){var h=S.cyborgs,s=S.can_hack,l=(0,a.useBackend)(N),u=l.act,i=l.data;return h.length?h.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([!!c.hackable&&!c.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return u("hackbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:c.locked_down?"unlock":"lock",color:c.locked_down?"good":"default",content:c.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function d(){return u("stopbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!i.auth,color:"bad",onClick:function(){function d(){return u("killbot",{ref:c.ref})}return d}()})],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:c.status?"bad":c.locked_down?"average":"good",children:c.status?"Not Responding":c.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:c.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.health>50?"good":"bad",value:c.health/100})}),typeof c.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.charge>30?"good":"bad",value:c.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:c.cell_capacity<3e4?"average":"good",children:c.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"})}),!!c.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:c.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:c.synchronization?"default":"average",children:c.synchronization||"None"})})]})},c.ref)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},30941:function(x,r,n){"use strict";r.__esModule=!0,r.RogueZones=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RogueZones=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.timeout_percent,u=s.diffstep,i=s.difficulty,c=s.occupied,d=s.scanning,p=s.updated,v=s.debug,f=s.shuttle_location,C=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:i}),(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 y(){return h("recall_shuttle")}return y}(),children:"Recall Shuttle"})||null,children:f}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",c," 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 y(){return h("scan_for_new")}return y}(),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:l,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,p&&!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Timeout Percent: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["Diffstep: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["Difficulty: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["Occupied: ",c]}),(0,e.createComponentVNode)(2,t.Box,{children:["Debug: ",v]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle Location: ",f]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle at station: ",C]}),(0,e.createComponentVNode)(2,t.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}return V}()},82713:function(x,r,n){"use strict";r.__esModule=!0,r.RustCoreMonitorContent=r.RustCoreMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustCoreMonitor=function(){function 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 k}(),V=r.RustCoreMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.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 i(){return s("set_tag")}return i}()}),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(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,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.has_field?"Online":"Offline",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_active",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.reactant_dump?"Dump":"Maintain",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_reactantdump",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_instability}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_temperature}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.has_field&&"yellow",value:i.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_fieldstr",{core:i.ref,fieldstr:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell)]},i.name)})]})})}return k}()},27743:function(x,r,n){"use strict";r.__esModule=!0,r.RustFuelControl=r.RustFuelContent=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustFuelControl=function(){function 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 k}(),V=r.RustFuelContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.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 i(){return s("set_tag")}return i}()}),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(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,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{fuel:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_amt}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_type})]},i.name)})]})})}return k}()},75614:function(x,r,n){"use strict";r.__esModule=!0,r.Secbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Secbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.idcheck,d=s.check_records,p=s.check_arrest,v=s.arrest_type,f=s.declare_arrests,C=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:l,onClick:function(){function g(){return h("power")}return g}(),children:l?"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:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(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:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("idcheck")}return g}(),children:c?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Security Records",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function g(){return h("ignorerec")}return g}(),children:d?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Arrest Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return h("ignorearr")}return g}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Operating Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("switchmode")}return g}(),children:v?"Detain":"Arrest"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Report Arrests",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("declarearrests")}return g}(),children:f?"Yes":"No"})}),!!C&&(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 h("patrol")}return g}(),children:b?"Yes":"No"})})]})})||null]})})}return V}()},69919:function(x,r,n){"use strict";r.__esModule=!0,r.SecureSafe=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],i=l.locked,c=l.l_setshort,d=l.code,p=l.emagged;return(0,e.createComponentVNode)(2,t.Box,{width:"185px",children:(0,e.createComponentVNode)(2,t.Grid,{width:"1px",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Grid.Column,{children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,mb:"6px",content:f,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!c&&1||f!=="R"&&!i||d==="ERROR"&&f!=="R"&&1,onClick:function(){function C(){return s("type",{digit:f})}return C}()},f)})},v[0])})})})},V=r.SecureSafe=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.code,i=l.l_setshort,c=l.l_set,d=l.emagged,p=l.locked,v=!(c||i);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:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!i&&(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:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,t.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,t.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return k}()},92983:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N=function(v,f){(0,o.modalOpen)(v,"edit",{field:f.edit,value:f.value})},h=r.SecurityRecords=function(){function p(v,f){var C=(0,a.useBackend)(f),b=C.data,g=b.authenticated,y=b.screen;if(!g)return(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var B;return y===2?B=(0,e.createComponentVNode)(2,s):y===3?B=(0,e.createComponentVNode)(2,l):y===4&&(B=(0,e.createComponentVNode)(2,u)),(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,t.Section,{flexGrow:!0,children:B})]})]})}return p}(),s=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=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(L,I){return b("search",{t1:I})}return B}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:y.map(function(B,L){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 I(){return b("d_rec",{d_rec:B.ref})}return I}()},L)})})],4)},l=function(v,f){var C=(0,a.useBackend)(f),b=C.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)},u=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=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:!!y.empty,content:"Delete Security Record",color:"bad",onClick:function(){function L(){return b("del_r")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!y.empty,content:"Delete Record (All)",color:"bad",onClick:function(){function L(){return b("del_r_2")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){function L(){return b("print_p")}return L}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function L(){return b("screen",{screen:2})}return L}()})]})],4)},i=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.general;return!y||!y.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:y.fields.map(function(B,L){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 I(){return N(f,B)}return I}()})]},L)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:[!!y.has_photos&&y.photos.map(function(B,L){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 #",L+1]},L)}),(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(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.security;return!y||!y.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:y.fields.map(function(B,L){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 I(){return N(f,B)}return I}()})]})},L)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",children:[y.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):y.comments.map(function(B,L){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 I(){return b("del_c",{del_c:L+1})}return I}()})]},L)}),(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)(f,"add_c")}return B}()})]})],4)},d=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===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:y===3,onClick:function(){function B(){return b("screen",{screen:3})}return B}(),children:"Record Maintenance"})]})}},24217:function(x,r,n){"use strict";r.__esModule=!0,r.SeedStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(45445),k=r.SeedStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.scanner,c=u.seeds,d=(0,V.sortBy)(function(p){return p.name.toLowerCase()})(c);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:d.map(function(p){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,m.toTitleCase)(p.name)+" #"+p.uid,children:(0,e.createComponentVNode)(2,t.Section,{width:"165%",title:"Traits",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(p.traits).map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.toTitleCase)(v),children:p.traits[v]},v)})})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.4,children:[p.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 v(){return l("vend",{id:p.id})}return v}(),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 v(){return l("purge",{id:p.id})}return v}(),children:"Purge"})})]},p.name+p.uid)})})})})}return S}()},37707:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldCapacitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=r.ShieldCapacitor=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.active,c=u.time_since_fail,d=u.stored_charge,p=u.max_charge,v=u.charge_rate,f=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:i,content:i?"Online":"Offline",onClick:function(){function C(){return l("toggle")}return C}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor Status",children:c>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:d,format:function(){function C(b){return(0,V.formatSiUnit)(b,0,"J")}return C}()})," ","(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:100*(0,m.round)(d/p,1)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{value:v,step:100,stepPixelSize:.2,minValue:1e4,maxValue:f,format:function(){function C(b){return(0,V.formatPower)(b)}return C}(),onDrag:function(){function C(b,g){return l("charge_rate",{rate:g})}return C}()})})]})})})})}return S}()},92794:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=n(84288),S=r.ShieldGenerator=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.locked;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:p?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,h)})})}return s}(),N=function(l,u){return(0,e.createComponentVNode)(2,k.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."})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.lockedData,v=p.capacitors,f=p.active,C=p.failing,b=p.radius,g=p.max_radius,y=p.z_range,B=p.max_z_range,L=p.average_field_strength,I=p.target_field_strength,w=p.max_field_strength,T=p.shields,M=p.upkeep,A=p.strengthen_rate,R=p.max_strengthen_rate,O=p.gen_power,_=(v||[]).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:C?(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,m.round)(L,2)," Renwick (",I&&(0,m.round)(100*L/I,1)||"NA","%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Upkeep Power",children:(0,V.formatPower)(M)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shield Generation Power",children:(0,V.formatPower)(O)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Currently Shielded",children:[T," m\xB2"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:_?v.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor #"+D,children:[P.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)(P.stored_charge,0,"J")," (",100*(0,m.round)(P.stored_charge/P.max_charge,2),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:P.failing?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."})})]})]},D)}):(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:f?"Online":"Offline",selected:f,onClick:function(){function P(){return c("toggle")}return P}()}),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 P(D,z){return c("change_radius",{val:z})}return P}()})}),(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:y,unit:"vertical range",onDrag:function(){function P(D,z){return c("z_range",{val:z})}return P}()})}),(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:R,value:A,format:function(){function P(D){return(0,m.round)(D,1)}return P}(),unit:"Renwick/s",onDrag:function(){function P(D,z){return c("strengthen_rate",{val:z})}return P}()})}),(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:w,value:I,unit:"Renwick",onDrag:function(){function P(D,z){return c("target_field_strength",{val:z})}return P}()})})]})})],4)}},56780:function(x,r,n){"use strict";r.__esModule=!0,r.ShutoffMonitorContent=r.ShutoffMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.ShutoffMonitor=function(){function k(S,N){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 k}(),V=r.ShutoffMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.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(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,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.open?"Yes":"No"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.enabled?"Auto":"Manual"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.open?"Opened":"Closed",selected:i.open,disabled:!i.enabled,onClick:function(){function c(){return s("toggle_open",{valve:i.ref})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.enabled?"Auto":"Manual",selected:i.enabled,onClick:function(){function c(){return s("toggle_enable",{valve:i.ref})}return c}()})]})]},i.name)})]})})}return k}()},7309:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleControl=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(d,p){var v="ERROR",f="bad",C=!1;return d==="docked"?(v="DOCKED",f="good"):d==="docking"?(v="DOCKING",f="average",C=!0):d==="undocking"?(v="UNDOCKING",f="average",C=!0):d==="undocked"&&(v="UNDOCKED",f="#676767"),C&&p&&(v=v+"-MANUAL"),(0,e.createComponentVNode)(2,o.Box,{color:f,children:v})},k=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=d.engineName,g=b===void 0?"Bluespace Drive":b,y=C.shuttle_status,B=C.shuttle_state,L=C.has_docking,I=C.docking_status,w=C.docking_override,T=C.docking_codes;return(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:y}),(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"})}),L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",children:V(I,w)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Codes",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function M(){return f("set_codes")}return M}(),children:T||"Not Set"})})],4)||null]})]})},S=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_launch,g=C.can_cancel,y=C.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 f("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 f("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 f("force")}return B}(),color:"bad",disabled:!y,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},N=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)],4)},h=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_cloak,g=C.can_pick,y=C.legit,B=C.cloaked,L=C.destination_name;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(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:y?"ATC Inhibitor":"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:B,icon:B?"eye":"eye-o",onClick:function(){function I(){return f("toggle_cloaked")}return I}(),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 I(){return f("pick")}return I}(),children:L})})]})}),(0,e.createComponentVNode)(2,S)],4)},s=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_pick,g=C.destination_name,y=C.fuel_usage,B=C.fuel_span,L=C.remaining_fuel;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k,{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 I(){return f("pick")}return I}(),children:g})}),y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Est. Delta-V Budget",color:B,children:[L," m/s"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[y," m/s"]})],4)||null]})}),(0,e.createComponentVNode)(2,S)],4)},l=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.autopilot,g=C.can_rename,y=C.shuttle_state,B=C.is_moving,L=C.skip_docking,I=C.docking_status,w=C.docking_override,T=C.shuttle_location,M=C.can_cloak,A=C.cloaked,R=C.can_autopilot,O=C.routes,_=C.is_in_transit,P=C.travel_progress,D=C.time_left,z=C.doors,U=C.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 W(){return f("rename_command")}return W}(),children:"Rename"})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Engines",children:y==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||y==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||y==="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)(T)}),!L&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{selected:I==="docked",disabled:I!=="undocked"&&I!=="docked",onClick:function(){function W(){return f("dock_command")}return W}(),children:"Dock"}),(0,e.createComponentVNode)(2,o.Button,{selected:I==="undocked",disabled:I!=="docked"&&I!=="undocked",onClick:function(){function W(){return f("undock_command")}return W}(),children:"Undock"})],4),children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,inline:!0,children:V(I,w)})})||null,M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"eye":"eye-o",onClick:function(){function W(){return f("toggle_cloaked")}return W}(),children:A?"Enabled":"Disabled"})})||null,R&&(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 W(){return f("toggle_autopilot")}return W}(),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:O.length&&O.map(function(W){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"rocket",onClick:function(){function K(){return f("traverse",{traverse:W.index})}return K}(),children:W.travel_time})},W.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),_&&(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:P,children:[D,"s"]})})})})||null,Object.keys(z).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Hatch Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(z).map(function(W){var K=z[W];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:[K.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",K.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"})]},W)})})})||null,Object.keys(U).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(U).map(function(W){var K=U[W];return K.reading===-1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,color:"bad",children:"Unable to get sensor air reading."}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[K.pressure,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[K.temp,"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Oxygen",children:[K.oxygen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nitrogen",children:[K.nitrogen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Carbon Dioxide",children:[K.carbon_dioxide,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Phoron",children:[K.phoron,"%"]}),K.other&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other",children:[K.other,"%"]})||null]})},W)})})})||null],0)},u={ShuttleControlConsoleDefault:(0,e.createComponentVNode)(2,N),ShuttleControlConsoleMulti:(0,e.createComponentVNode)(2,h),ShuttleControlConsoleExploration:(0,e.createComponentVNode)(2,s),ShuttleControlConsoleWeb:(0,e.createComponentVNode)(2,l)},i=r.ShuttleControl=function(){function c(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.subtemplate;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:u[b]})})}return c}()},76289:function(x,r,n){"use strict";r.__esModule=!0,r.SignalerContent=r.Signaler=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Signaler=function(){function S(){return(0,e.createComponentVNode)(2,m.Window,{width:280,height:132,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=r.SignalerContent=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.code,c=u.frequency,d=u.minFrequency,p=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:d/10,maxValue:p/10,value:c/10,format:function(){function v(f){return(0,a.toFixed)(f,1)}return v}(),width:"80px",onDrag:function(){function v(f,C){return l("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"freq"})}return v}()})})]}),(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:i,width:"80px",onDrag:function(){function v(f,C){return l("code",{code:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"code"})}return v}()})})]}),(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 v(){return l("signal")}return v}()})})})]})}return S}()},78491:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function p(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.hasOccupant,B=y?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,d);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:B})})}return p}(),s=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.dialysis,L=g.stomachpumping;return(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i,{title:"Dialysis",active:B,actToDo:"togglefilter"}),(0,e.createComponentVNode)(2,i,{title:"Stomach Pump",active:L,actToDo:"togglepump"}),(0,e.createComponentVNode)(2,c)],4)},l=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.auto_eject_dead,L=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 I(){return b("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return b("ejectify")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{content:L,onClick:function(){function I(){return b("changestasis")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:0,max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[y.stat][0],children:V[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:N[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},u=function(v,f){var C=(0,t.useBackend)(f),b=C.data,g=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[y[1]]/100,ranges:S,children:(0,a.round)(g[y[1]],0)},B)},B)})})})},i=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,I=v.active,w=v.actToDo,T=v.title,M=I&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:T,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!y||L<=0,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Active":"Inactive",onClick:function(){function A(){return b(w)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y,icon:"eject",content:"Eject",onClick:function(){function A(){return b("removebeaker")}return A}()})],4),children:y?(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:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},c=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.chemicals,L=g.maxchem,I=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Chemicals",flexGrow:"1",children:B.map(function(w,T){var M="",A;return w.overdosing?(M="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(M="average",A=(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:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:A,children:(0,e.createComponentVNode)(2,o.Flex,{align:"flex-start",children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w.occ_amount/L,color:M,mr:"0.5rem",children:[w.pretty_amount,"/",L,"u"]}),I.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+R>L||y.stat===2,icon:"syringe",content:R,mb:"0",height:"19px",onClick:function(){function _(){return b("chemical",{chemid:w.id,amount:R})}return _}()},O)})]})})},T)})})},d=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=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.",y&&(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]})})})}},47296:function(x,r,n){"use strict";r.__esModule=!0,r.SmartVend=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.SmartVend=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.config,u=h.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,m.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 ",l.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(i,c){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," in stock"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"1",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:1})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"5",disabled:i.amount<5,onClick:function(){function d(){return s("Release",{index:i.index,amount:5})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"25",disabled:i.amount<25,onClick:function(){function d(){return s("Release",{index:i.index,amount:25})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"50",disabled:i.amount<50,onClick:function(){function d(){return s("Release",{index:i.index,amount:50})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Custom",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"All",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:i.amount})}return d}()})]})]},c)})(u.contents)]})]})})})}return k}()},11524:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(43820),m=n(11477),V=n(5339),k=1e3,S=r.Smes=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.capacityPercent,d=i.capacity,p=i.charge,v=i.inputAttempt,f=i.inputting,C=i.inputLevel,b=i.inputLevelMax,g=i.inputAvailable,y=i.outputAttempt,B=i.outputting,L=i.outputLevel,I=i.outputLevelMax,w=i.outputUsed,T=c>=100&&"good"||f&&"average"||"bad",M=B&&"good"||p>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,V.round)(p/(1e3*60),1)," kWh /"," ",(0,V.round)(d/(1e3*60))," kWh (",c,"%)"]})}),(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:v?"sync-alt":"times",selected:v,onClick:function(){function A(){return u("tryinput")}return A}(),children:v?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:c>=100&&"Fully Charged"||f&&"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:C===0,onClick:function(){function A(){return u("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function A(){return u("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/k,fillValue:g/k,minValue:0,maxValue:b/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("input",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===b,onClick:function(){function A(){return u("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===b,onClick:function(){function A(){return u("input",{target:"max"})}return A}()})]})]})}),(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:y?"power-off":"times",selected:y,onClick:function(){function A(){return u("tryoutput")}return A}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:M,children:B?"Sending":p>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:L===0,onClick:function(){function A(){return u("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function A(){return u("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/k,minValue:0,maxValue:I/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("output",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===I,onClick:function(){function A(){return u("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===I,onClick:function(){function A(){return u("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})}return N}()},48027:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.SolarControl=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.generated,i=l.generated_ratio,c=l.sun_angle,d=l.array_angle,p=l.rotation_rate,v=l.max_rotation_rate,f=l.tracking_state,C=l.connected_panels,b=l.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:C>0?"good":"bad",children:C})]})}),(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:i,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Star orientation",children:[c,"\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:f===0,onClick:function(){function g(){return s("tracking",{mode:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:f===1,onClick:function(){function g(){return s("tracking",{mode:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:f===2,disabled:!b,onClick:function(){function g(){return s("tracking",{mode:2})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Azimuth",children:[(f===0||f===1)&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:d,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth",{value:B})}return g}()}),f===1&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-v-.01,maxValue:v+.01,value:p,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth_rate",{value:B})}return g}()}),f===2&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mt:"3px",children:[d+"\xB0"," (auto)"]})]})]})})]})})}return k}()},99621:function(x,r,n){"use strict";r.__esModule=!0,r.SpaceHeater=void 0;var e=n(58734),a=n(78419),t=n(62188),o=n(11790),m=n(11477),V=r.SpaceHeater=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.temp,i=l.minTemp,c=l.maxTemp,d=l.cell,p=l.power;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:[p,"% ",!d&&"(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:i-a.T0C,maxValue:c-a.T0C,unit:"C",onChange:function(){function v(f,C){return s("temp",{newtemp:C+a.T0C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Cell",children:d?(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Cell",onClick:function(){function v(){return s("cellremove")}return v}()}):(0,e.createComponentVNode)(2,o.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){function v(){return s("cellinstall")}return v}()})})]})})]})})}return k}()},80498:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Stack=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.amount,p=c.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: "+d,children:(0,e.createComponentVNode)(2,V,{recipes:p})})})})}return h}(),V=function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipes,p=Object.keys(d).sort();return p.map(function(v){var f=d[v];return f.ref===void 0?(0,e.createComponentVNode)(2,t.Collapsible,{ml:1,mb:-.7,color:"label",title:v,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,children:(0,e.createComponentVNode)(2,h,{recipes:f})})}):(0,e.createComponentVNode)(2,N,{title:v,recipe:f})})},k=function(s,l){return s.req_amount>l?0:Math.floor(l/s.req_amount)},S=function(s,l){for(var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipe,p=s.maxMultiplier,v=Math.min(p,Math.floor(d.max_res_amount/d.res_amount)),f=[5,10,25],C=[],b=function(){var L=y[g];v>=L&&C.push((0,e.createComponentVNode)(2,t.Button,{content:L*d.res_amount+"x",onClick:function(){function I(){return i("make",{ref:d.ref,multiplier:L})}return I}()}))},g=0,y=f;g1?"s":""),y+=")",f>1&&(y=f+"x "+y);var B=k(p,d);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:y,onClick:function(){function L(){return i("make",{ref:p.ref,multiplier:1})}return L}()})}),C>1&&B>1&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,S,{recipe:p,maxMultiplier:B})})]})})})}},66528:function(x,r,n){"use strict";r.__esModule=!0,r.StarcasterCh=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.StarcasterCh=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article,d=(0,e.createComponentVNode)(2,S);return c&&(d=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:d})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article;if(!c)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var d=c.title,p=c.cover,v=c.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+d,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function f(){return u("PRG_reset")}return f}(),children:"Close"}),children:[!!p&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(p)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:v}})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.showing_archived,d=i.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function p(){return u("PRG_toggle_archived")}return p}(),checked:c,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.length&&d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function v(){return u("PRG_openarticle",{uid:p.uid})}return v}()})},p.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},93840:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationAlertConsole=function(){function k(){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 k}(),V=r.StationAlertConsoleContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.categories,i=u===void 0?[]:u;return i.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.category,children:(0,e.createVNode)(1,"ul",null,[c.alarms.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),c.alarms.map(function(d){var p="";return d.has_cameras?p=(0,e.createComponentVNode)(2,t.Section,{children:d.cameras.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{disabled:v.deact,content:v.name+(v.deact?" (deactived)":""),icon:"video",onClick:function(){function f(){return s("switchTo",{camera:v.camera})}return f}()},v.name)})}):d.lost_sources&&(p=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Lost Alarm Sources: ",d.lost_sources]})),(0,e.createVNode)(1,"li",null,[d.name,d.origin_lost?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Alarm Origin Lost."}):"",p],0,null,d.name)})],0)},c.category)})}return k}()},50976:function(x,r,n){"use strict";r.__esModule=!0,r.StationBlueprintsContent=r.StationBlueprints=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationBlueprints=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,V)})}return k}(),V=r.StationBlueprintsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=h.config,i=l.mapRef,c=l.areas,d=l.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:i,type:"map"}}),2)],4)}return k}()},31357:function(x,r,n){"use strict";r.__esModule=!0,r.StockExchange=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StockExchange=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.screen,f=p.stationName,C;return v==="stocks"?C=(0,e.createComponentVNode)(2,V):v==="logs"?C=(0,e.createComponentVNode)(2,N):v==="archive"?C=(0,e.createComponentVNode)(2,h):v==="graph"&&(C=(0,e.createComponentVNode)(2,s)),(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:f+" Stock Exchange",children:C})})})}return l}(),V=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.balance,f=p.stationName,C=p.viewMode,b=(0,e.createComponentVNode)(2,k);return C==="Full"?b=(0,e.createComponentVNode)(2,k):C==="Compressed"&&(b=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Welcome, "),(0,e.createVNode)(1,"b",null,[f,(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)(" "),v],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"View mode: ",16),(0,e.createComponentVNode)(2,t.Button,{content:C,onClick:function(){function g(){return d("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 d("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})]})},k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;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),f.map(function(C){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:C.ID}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Name}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Value}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Owned}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.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 d("stocks_buy",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:!1,onClick:function(){function b(){return d("stocks_sell",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"A",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"H",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br")]})]},C.ID)})]})]})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,C.name,0)," ",(0,e.createVNode)(1,"span",null,C.ID,0),C.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)," ",C.Unification," ago.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Current value per share:",16)," ",C.Value," |"," ",(0,e.createComponentVNode)(2,t.Button,{content:"View history",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),"You currently own ",(0,e.createVNode)(1,"b",null,C.Owned,0)," shares in this company.",(0,e.createVNode)(1,"br"),"There are ",C.Avail," purchasable shares on the market currently.",(0,e.createVNode)(1,"br"),C.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 d("stocks_buy",{share:C.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 d("stocks_sell",{share:C.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,C.Products,0),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"View news archives",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()})," ",(0,e.createComponentVNode)(2,t.Divider)]},C.ID)})})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.logs,f=v===void 0?[]:v;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 C(){return d("stocks_backbutton")}return C}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.type!=="borrow"?(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" "),C.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,C.stocks,0),(0,e.createTextVNode)(" stocks at "),C.shareprice,(0,e.createTextVNode)(" a share for"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" total credits"),(0,e.createTextVNode)(" "),C.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,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0):(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" borrowed "),(0,e.createVNode)(1,"b",null,C.stocks,0),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("stocks with a deposit of "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" credits in"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0),(0,e.createComponentVNode)(2,t.Divider)]},C.time)}),0)]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.events,C=f===void 0?[]:f,b=p.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 "),v],0),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function y(){return d("stocks_backbutton")}return y}()}),(0,e.createVNode)(1,"h3",null,"Events",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,C.map(function(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.current_title,0),(0,e.createVNode)(1,"br"),y.current_desc],0),(0,e.createComponentVNode)(2,t.Divider)]},y.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(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.headline,0),(0,e.createVNode)(1,"i",null,y.subtitle,0),(0,e.createVNode)(1,"br"),y.article,(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("- "),y.author,(0,e.createTextVNode)(", "),y.spacetime,(0,e.createTextVNode)(" (via"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,y.outlet,0),(0,e.createTextVNode)(")")],0),(0,e.createComponentVNode)(2,t.Divider)]},y.headline)}),0)]})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.maxValue,C=p.values,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function g(){return d("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,f],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,[v,(0,e.createTextVNode)(" share value per share")],0)]})}},44261:function(x,r,n){"use strict";r.__esModule=!0,r.SuitCycler=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitCycler=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.active,p=c.locked,v=c.uv_active,f=(0,e.createComponentVNode)(2,V);return v?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):d&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:320,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.occupied,v=c.suit,f=c.helmet,C=c.departments,b=c.species,g=c.uv_level,y=c.max_uv_level,B=c.can_repair,L=c.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 I(){return i("lock")}return I}()}),children:[!!(p&&d)&&(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 I(){return i("eject_guy")}return I}()})]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"square":"square-o",content:f||"Empty",disabled:!f,onClick:function(){function I(){return i("dispense",{item:"helmet"})}return I}()})}),(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 I(){return i("dispense",{item:"suit"})}return I}()})}),B&&L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit Damage",children:[L,(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Repair",onClick:function(){function I(){return i("repair_suit")}return I}()})]}):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:C,selected:C[0],onSelected:function(){function I(w){return i("department",{department:w})}return I}()})}),(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 I(w){return i("species",{species:w})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){function I(){return i("apply_paintjob")}return I}()})]}),(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:y,stepPixelSize:30,onChange:function(){function I(w,T){return i("radlevel",{radlevel:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Decontaminate",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){function I(){return i("uv")}return I}()})})]})})],4)},k=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.model_text,p=c.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 ",d," 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:!p,onClick:function(){function v(){return i("lock")}return v}()})})]})},N=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},58954:function(x,r,n){"use strict";r.__esModule=!0,r.SuitStorageUnit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitStorageUnit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.panelopen,p=c.uv_active,v=c.broken,f=(0,e.createComponentVNode)(2,V);return d?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):v&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:365,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.locked,p=c.open,v=c.safeties,f=c.occupied,C=c.suit,b=c.helmet,g=c.mask;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",minHeight:"260px",buttons:(0,e.createFragment)([!p&&(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Unlock":"Lock",onClick:function(){function y(){return i("lock")}return y}()}),!d&&(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Close":"Open",onClick:function(){function y(){return i("door")}return y}()})],0),children:[!!(f&&v)&&(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 y(){return i("eject_guy")}return y}()})]}),d&&(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"})]})||p&&(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 y(){return i("dispense",{item:"helmet"})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){function y(){return i("dispense",{item:"suit"})}return y}()})}),(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 y(){return i("dispense",{item:"mask"})}return y}()})})]})||(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:f&&v,textAlign:"center",onClick:function(){function y(){return i("uv")}return y}()})]})},k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.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 ",p?"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:p,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:p?"red":"green",format:function(){function v(f){return f?"15nm":"185nm"}return v}(),onChange:function(){function v(f,C){return i("toggleUV")}return v}()})}),(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"," ",d?(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 v(){return i("togglesafeties")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"black":"red",mr:2}),(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"green":"black"})]})]})]})]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},N=function(s,l){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."})}},7287:function(x,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitorContent=r.SupermatterMonitor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=n(40946),k=r.SupermatterMonitor=function(){function s(l,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,S)})})}return s}(),S=r.SupermatterMonitorContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.active;return p?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,N)}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.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 v(){return c("refresh")}return v}()}),children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:p.map(function(v,f){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"49%",grow:f%2,children:(0,e.createComponentVNode)(2,t.Section,{title:v.area_name+" (#"+v.uid+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:[v.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 C(){return c("set",{set:v.uid})}return C}()})})]})})},f)})})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.SM_area,v=d.SM_integrity,f=d.SM_power,C=d.SM_ambienttemp,b=d.SM_ambientpressure,g=d.SM_EPR,y=d.SM_gas_O2,B=d.SM_gas_CO2,L=d.SM_gas_N2,I=d.SM_gas_PH,w=d.SM_gas_N2O;return(0,e.createComponentVNode)(2,t.Section,{title:(0,V.toTitleCase)(p),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){function T(){return c("clear")}return T}()}),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:v,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:f>300&&"bad"||f>150&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" MeV/cm\xB3"}return T}(),value:f})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:C>5e3&&"bad"||C>4e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" K"}return T}(),value:C})})}),(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 T(M){return(0,m.round)(M,2)+" kPa"}return T}(),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 T(M){return(0,m.round)(M,2)}return T}(),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:y}),"%"]}),(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:L}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"PH",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2O",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),"%"]})]})})]})})}},68164:function(x,r,n){"use strict";r.__esModule=!0,r.SupplyConsole=void 0;var e=n(58734),a=n(45445),t=n(43820),o=n(62188),m=n(11790),V=n(48388),k=n(11477),S=n(75671),N=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=p.args,B=y.name,L=y.cost,I=y.manifest,w=y.ref,T=y.random;return(0,e.createComponentVNode)(2,m.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:B,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"shopping-cart",content:"Buy - "+L+" points",disabled:L>g,onClick:function(){function M(){return C("request_crate",{ref:w})}return M}()}),children:(0,e.createComponentVNode)(2,m.Section,{title:"Contains"+(T?" any "+T+" of:":""),scrollable:!0,height:"200px",children:I.map(function(M){return(0,e.createComponentVNode)(2,m.Box,{children:M},M)})})})},h=r.SupplyConsole=function(){function d(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data;return(0,V.modalRegisterBodyOverride)("view_crate",N),(0,e.createComponentVNode)(2,k.Window,{width:700,height:620,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"100%"}),(0,e.createComponentVNode)(2,m.Section,{title:"Supply Records",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)]})]})})}return d}(),s=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=b.shuttle,B=b.shuttle_auth,L=null,I=!1;return B&&(y.launch===1&&y.mode===0?L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Away",onClick:function(){function w(){return C("send_shuttle",{mode:"send_away"})}return w}()}):y.launch===2&&(y.mode===3||y.mode===1)?L=(0,e.createComponentVNode)(2,m.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"cancel_shuttle"})}return w}()}):y.launch===1&&y.mode===5&&(L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){function w(){return C("send_shuttle",{mode:"send_to_station"})}return w}()})),y.force&&(I=!0)),(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Supply Points",children:(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:g})})}),(0,e.createComponentVNode)(2,m.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Location",buttons:(0,e.createFragment)([L,I?(0,e.createComponentVNode)(2,m.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"force_shuttle"})}return w}()}):null],0),children:y.location}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Engine",children:y.engine}),y.mode===4?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"ETA",children:y.time>1?(0,t.formatTime)(y.time):"LATE"}):null]})})]})},l=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.order_auth,y=(0,o.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,m.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"box",selected:B===0,onClick:function(){function I(){return L(0)}return I}(),children:"Request"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"check-circle-o",selected:B===1,onClick:function(){function I(){return L(1)}return I}(),children:"Accepted"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"circle-o",selected:B===2,onClick:function(){function I(){return L(2)}return I}(),children:"Requests"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===3,onClick:function(){function I(){return L(3)}return I}(),children:"Order history"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===4,onClick:function(){function I(){return L(4)}return I}(),children:"Export history"})]}),B===0?(0,e.createComponentVNode)(2,u):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]})},u=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.categories,y=b.supply_packs,B=b.contraband,L=b.supply_points,I=(0,o.useLocalState)(v,"activeCategory",null),w=I[0],T=I[1],M=(0,S.flow)([(0,a.filter)(function(A){return A.group===w}),(0,a.filter)(function(A){return!A.contraband||B}),(0,a.sortBy)(function(A){return A.name}),(0,a.sortBy)(function(A){return A.cost>L})])(y);return(0,e.createComponentVNode)(2,m.Section,{level:2,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,m.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:g.map(function(A){return(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:A,selected:A===w,onClick:function(){function R(){return T(A)}return R}()},A)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,ml:2,children:(0,e.createComponentVNode)(2,m.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(A){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Stack,{align:"center",justify:"flex-start",children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"70%",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:A.name,color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"#",color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate_multi",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"C",color:A.cost>L?"red":null,onClick:function(){function R(){return C("view_crate",{crate:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:[A.cost," points"]})]})},A.name)})})})]})})},i=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=p.mode,y=b.orders,B=b.order_auth,L=b.supply_points,I=y.filter(function(w){return w.status===g||g==="All"});return I.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:[g==="Requested"&&B?(0,e.createComponentVNode)(2,m.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){function w(){return C("clear_all_requests")}return w}()}):null,I.map(function(w,T){return(0,e.createComponentVNode)(2,m.Section,{title:"Order "+(T+1),buttons:g==="All"&&B?(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){function M(){return C("delete_order",{ref:w.ref})}return M}()}):null,children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[w.entries.map(function(M){return M.entry?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:M.field,buttons:B?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function A(){C("edit_order_value",{ref:w.ref,edit:M.field,default:M.entry})}return A}()}):null,children:M.entry}):null}),g==="All"?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",children:w.status}):null]}),B&&g==="Requested"?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"check",content:"Approve",disabled:w.cost>L,onClick:function(){function M(){return C("approve_order",{ref:w.ref})}return M}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"times",content:"Deny",onClick:function(){function M(){return C("deny_order",{ref:w.ref})}return M}()})],4):null]},T)})]}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No orders found."})},c=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.receipts,y=b.order_auth;return g.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:g.map(function(B,L){return(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[B.title.map(function(I){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.field,buttons:y?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function w(){return C("export_edit",{ref:B.ref,edit:I.field,default:I.entry})}return w}()}):null,children:I.entry},I.field)}),B.error?(0,e.createComponentVNode)(2,m.LabeledList.Item,{labelColor:"red",label:"Error",children:B.error}):B.contents.map(function(I,w){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.object,buttons:y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function T(){return C("export_edit_field",{ref:B.ref,index:w+1,edit:"meow",default:I.object})}return T}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){function T(){return C("export_delete_field",{ref:B.ref,index:w+1})}return T}()})],4):null,children:[I.quantity,"x -> ",I.value," points"]},w)})]}),y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){function I(){return C("export_add_field",{ref:B.ref})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",content:"Delete Record",onClick:function(){function I(){return C("export_delete",{ref:B.ref})}return I}()})],4):null]},L)})}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No receipts found."})}},50698:function(x,r,n){"use strict";r.__esModule=!0,r.TEGenerator=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.TEGenerator=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.data,i=u.totalOutput,c=u.maxTotalOutput,d=u.thermalOutput,p=u.primary,v=u.secondary;return(0,e.createComponentVNode)(2,m.Window,{width:550,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:i,maxValue:c,children:(0,V.formatPower)(i)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermal Output",children:(0,V.formatPower)(d)})]})}),p&&v?(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,S,{name:"Primary Circulator",values:p})}),(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,S,{name:"Secondary Circulator",values:v})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})}return N}(),S=function(h,s){var l=h.name,u=h.values,i=u.dir,c=u.output,d=u.flowCapacity,p=u.inletPressure,v=u.inletTemperature,f=u.outletPressure,C=u.outletTemperature;return(0,e.createComponentVNode)(2,o.Section,{title:l+" ("+i+")",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Output",children:(0,V.formatPower)(c)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Flow Capacity",children:[(0,a.round)(d,2),"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Pressure",children:(0,V.formatSiUnit)(p*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Temperature",children:[(0,a.round)(v,2)," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Pressure",children:(0,V.formatSiUnit)(f*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Temperature",children:[(0,a.round)(C,2)," K"]})]})})}},29023:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Tank=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.connected,u=s.showToggle,i=u===void 0?!0:u,c=s.maskConnected,d=s.tankPressure,p=s.releasePressure,v=s.defaultReleasePressure,f=s.minReleasePressure,C=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:!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:l?"air-freshener":"lock-open",selected:l,disabled:!c,content:"Mask Release Valve",onClick:function(){function b(){return h("toggle")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask Connected",children:c?"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:d/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:p===f,onClick:function(){function b(){return h("pressure",{pressure:"min"})}return b}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(p),width:"65px",unit:"kPa",minValue:f,maxValue:C,onChange:function(){function b(g,y){return h("pressure",{pressure:y})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:p===C,onClick:function(){function b(){return h("pressure",{pressure:"max"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:p===v,onClick:function(){function b(){return h("pressure",{pressure:"reset"})}return b}()})]})]})})]})})}return V}()},91299:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TankDispenser=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=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:l?"square":"square-o",content:"Dispense",disabled:!l,onClick:function(){function i(){return h("plasma")}return i}()}),children:l}),(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 i(){return h("oxygen")}return i}()}),children:u})]})})})})}return V}()},32235:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsLogBrowser=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.TelecommsLogBrowser=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.universal_translate,p=c.network,v=c.temp,f=c.servers,C=c.selectedServer;return(0,e.createComponentVNode)(2,m.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[v?(0,e.createComponentVNode)(2,o.NoticeBox,{danger:v.color==="bad",warning:v.color!=="bad",children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-box",verticalAlign:"middle",children:v.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function b(){return i("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 i("scan")}return b}()}),(0,e.createComponentVNode)(2,o.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:f.length===0,onClick:function(){function b(){return i("release")}return b}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{content:p,icon:"pen",onClick:function(){function b(){return i("network")}return b}()})})})}),C?(0,e.createComponentVNode)(2,S,{network:p,server:C,universal_translate:d}):(0,e.createComponentVNode)(2,k,{network:p,servers:f})]})})}return h}(),k=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.servers;return!p||!p.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 v(){return i("scan")}return v}()})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.name+" ("+v.id+")",children:(0,e.createComponentVNode)(2,o.Button,{content:"View",icon:"eye",onClick:function(){function f(){return i("view",{id:v.id})}return f}()})},v.id)})})})},S=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.server,v=s.universal_translate;return(0,e.createComponentVNode)(2,o.Section,{title:"Server ("+p.id+")",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Return",icon:"undo",onClick:function(){function f(){return i("mainmenu")}return f}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Recorded Traffic",children:p.totalTraffic>=1024?(0,a.round)(p.totalTraffic/1024)+" Terrabytes":p.totalTraffic+" Gigabytes"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stored Logs",mt:"4px",children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:!p.logs||!p.logs.length?"No Logs Detected.":p.logs.map(function(f){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:f.id%2,children:(0,e.createComponentVNode)(2,o.Section,{title:v||f.parameters.uspeech||f.parameters.intelligible||f.input_type==="Execution Error"?f.input_type:"Audio File",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()}),children:f.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:f.parameters.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Delete",children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()})})]}):v||f.parameters.uspeech||f.parameters.intelligible?(0,e.createComponentVNode)(2,N,{log:f}):(0,e.createComponentVNode)(2,N,{error:!0})})},f.id)})})})]})},N=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.log,p=s.error,v=d&&d.parameters||{none:"none"},f=v.timecode,C=v.name,b=v.race,g=v.job,y=v.message;return p?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:f}),(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:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:[C," (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:y})]})}},81443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMachineBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TelecommsMachineBrowser=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.network,i=l.temp,c=l.machinelist,d=l.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:[i?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:i.color==="bad",warning:i.color!=="bad",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-box",verticalAlign:"middle",children:i.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function p(){return s("cleartemp")}return p}()}),(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 p(){return s("scan")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:c.length===0,onClick:function(){function p(){return s("release")}return p}()})],4),children:(0,e.createComponentVNode)(2,t.Button,{content:u,icon:"pen",onClick:function(){function p(){return s("network")}return p}()})})})}),c&&c.length?(0,e.createComponentVNode)(2,V,{title:d?d.name+" ("+d.id+")":"Detected Network Entities",list:d?d.links:c,showBack:d}):(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 p(){return s("scan")}return p}()})})]})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=S.list,i=S.title,c=S.showBack;return(0,e.createComponentVNode)(2,t.Section,{title:i,buttons:c&&(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){function d(){return s("mainmenu")}return d}()}),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(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name+" ("+d.id+")",children:(0,e.createComponentVNode)(2,t.Button,{content:"View",icon:"eye",onClick:function(){function p(){return s("view",{id:d.id})}return p}()})},d.id)}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},63443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMultitoolMenu=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(45246),m=n(11477),V=r.TelecommsMultitoolMenu=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.TemporaryNotice),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S,{options:b})]})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:d?"On":"Off",onClick:function(){function I(){return u("toggle")}return I}()}),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:p,onClick:function(){function I(){return u("id")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v,onClick:function(){function I(){return u("network")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prefabrication",children:f?"TRUE":"FALSE"}),C?(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:[L?(0,e.createFragment)([L.name,(0,e.createTextVNode)(" ("),L.id,(0,e.createTextVNode)(")")],0):null,(0,e.createComponentVNode)(2,t.Button,{color:L?"green":null,content:L?"Link ("+L.id+")":"Add Machine",icon:L?"link":"plus",onClick:L?function(){return u("link")}:function(){return u("buffer")}}),L?(0,e.createComponentVNode)(2,t.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){function I(){return u("flush")}return I}()}):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(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.ref+" "+I.name+" ("+I.id+")",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",onClick:function(){function w(){return u("unlink",{unlink:I.index})}return w}()})},I.ref)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Filtering Frequencies",mt:1,children:[y.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{content:I.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){function w(){return u("delete",{delete:I.freq})}return w}()},I.index)}),!y||y.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No filters."}):null]})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=h.options,d=c.use_listening_level,p=c.use_broadcasting,v=c.use_receiving,f=c.listening_level,C=c.broadcasting,b=c.receiving,g=c.use_change_freq,y=c.change_freq,B=c.use_broadcast_range,L=c.use_receive_range,I=c.range,w=c.minRange,T=c.maxRange;return!d&&!p&&!v&&!g&&!B&&!L?(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:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal Locked to Station",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"lock-closed":"lock-open",content:f?"Yes":"No",onClick:function(){function M(){return u("change_listening")}return M}()})}):null,p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Broadcasting",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:C,content:C?"Yes":"No",onClick:function(){function M(){return u("broadcast")}return M}()})}):null,v?(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 M(){return u("receive")}return M}()})}):null,g?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Signal Frequency",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wave-square",selected:!!y,content:y?"Yes ("+y+")":"No",onClick:function(){function M(){return u("change_freq")}return M}()})}):null,B||L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(B?"Broadcast":"Receive")+" Range",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:I,minValue:w,maxValue:T,unit:"gigameters",stepPixelSize:4,format:function(){function M(A){return A+1}return M}(),onDrag:function(){function M(A,R){return u("range",{range:R})}return M}()})}):null]})})}},73616:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Teleporter=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked_name,u=s.station_connected,i=s.hub_connected,c=s.calibrated,d=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 p(){return h("select_target")}return p}(),content:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibrated",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){function p(){return h("test_fire")}return p}(),content:c?"Accurate":"Test Fire"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleporter",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,color:d?"good":"bad",onClick:function(){function p(){return h("toggle_on")}return p}(),content:d?"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:i?"Connected":"Not Connected"})]})})})})}return V}()},60726:function(x,r,n){"use strict";r.__esModule=!0,r.TelesciConsoleContent=r.TelesciConsole=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.TelesciConsole=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.noTelepad;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:c&&(0,e.createComponentVNode)(2,k)||(0,e.createComponentVNode)(2,S)})})}return N}(),k=function(h,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."]})},S=r.TelesciConsoleContent=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.insertedGps,d=i.rotation,p=i.currentZ,v=i.cooldown,f=i.crystalCount,C=i.maxCrystals,b=i.maxPossibleDistance,g=i.maxAllowedDistance,y=i.distance,B=i.tempMsg,L=i.sectorOptions,I=i.lastTeleData;return(0,e.createComponentVNode)(2,o.Section,{title:"Telepad Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!c,onClick:function(){function w(){return u("ejectGPS")}return w}(),content:"Eject GPS"}),children:[(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:v&&(0,e.createComponentVNode)(2,o.Box,{children:["Telepad is recharging. Please wait"," ",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," 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:d,format:function(){function w(T){return T+"\xB0"}return w}(),step:1,minValue:-900,maxValue:900,onDrag:function(){function w(T,M){return u("setrotation",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:y,format:function(){function w(T){return T+"/"+g+" m"}return w}(),minValue:0,maxValue:g,step:1,stepPixelSize:4,onDrag:function(){function w(T,M){return u("setdistance",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sector",children:(0,a.sortBy)(function(w){return Number(w)})(L).map(function(w){return(0,e.createComponentVNode)(2,o.Button,{icon:"check-circle",content:w,selected:p===w,onClick:function(){function T(){return u("setz",{setz:w})}return T}()},w)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:-90,onClick:function(){function w(){return u("send")}return w}(),content:"Send"}),(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:90,onClick:function(){function w(){return u("receive")}return w}(),content:"Receive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",iconRotation:90,onClick:function(){function w(){return u("recal")}return w}(),content:"Recalibrate"})]})]}),I&&(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:[I.src_x,", ",I.src_y]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:[I.distance,"m"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transit Time",children:[I.time," secs"]})]})})||(0,e.createComponentVNode)(2,o.Section,{mt:1,children:"No teleport data found."}),(0,e.createComponentVNode)(2,o.Section,{children:["Crystals: ",f," / ",C]})]})}return N}()},8529:function(x,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(62188),m=n(42678),V=n(11790),k=n(11477),S=r.sanitizeMultiline=function(){function l(u){return u.replace(/(\n|\r\n){3,}/,"\n\n")}return l}(),N=r.removeAllSkiplines=function(){function l(u){return u.replace(/[\r\n]+/,"")}return l}(),h=r.TextInputModal=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.large_buttons,f=p.max_length,C=p.message,b=C===void 0?"":C,g=p.multiline,y=p.placeholder,B=p.timeout,L=p.title,I=(0,o.useLocalState)(i,"input",y||""),w=I[0],T=I[1],M=function(){function O(_){if(_!==w){var P=g?S(_):N(_);T(P)}}return O}(),A=g||w.length>=30,R=135+(b.length>30?Math.ceil(b.length/4):0)+(A?75:0)+(b.length&&v?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:L,width:325,height:R,children:[B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function O(_){var P=window.event?_.which:_.keyCode;P===m.KEY_ENTER&&(!A||!_.shiftKey)&&d("submit",{entry:w}),P===m.KEY_ESCAPE&&d("cancel")}return O}(),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,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s,{input:w,onType:M})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+f})})]})})})]})}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.max_length,f=p.multiline,C=u.input,b=u.onType,g=f||C.length>=30;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:f||C.length>=30?"100%":"1.8rem",maxLength:v,onEscape:function(){function y(){return d("cancel")}return y}(),onEnter:function(){function y(B){g&&B.shiftKey||(B.preventDefault(),d("submit",{entry:C}))}return y}(),onInput:function(){function y(B,L){return b(L)}return y}(),placeholder:"Type something...",value:C})}},70194:function(x,r,n){"use strict";r.__esModule=!0,r.TguiFeedback=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TguiFeedback=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.open_windows,u=s.selected_window,i=(0,a.useLocalState)(S,"rating",""),c=i[0],d=i[1],p=(0,a.useLocalState)(S,"comment",""),v=p[0],f=p[1];return(0,e.createComponentVNode)(2,o.Window,{width:550,height:460,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Open Windows",scrollable:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u,onClick:function(){function b(){return h("pick_window",{win:C})}return b}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:C})},C)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Rating",children:["Please enter your rating of this window from a range from 1 to 5",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{onChange:function(){function C(b,g){return d(g)}return C}(),value:c})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Optional Comment",children:["If you want, you can leave an optional comment as well!",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function C(b,g){return f(g)}return C}(),value:v})]}),(0,e.createComponentVNode)(2,t.Button,{content:"Submit",onClick:function(){function C(){return h("submit",{rating:c,comment:v})}return C}()})],4)," ",": ",(0,e.createFragment)([(0,e.createTextVNode)("Please select an open window on the left!")],4)]})]})})}return V}()},69344:function(x,r,n){"use strict";r.__esModule=!0,r.Ticket=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.Ticket=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.title,g=d.name,y=d.ticket_ref,B=d.state,L=d.level,I=d.handler,w=d.opened_at,T=d.closed_at,M=d.opened_at_date,A=d.closed_at_date,R=d.actions,O=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function _(){return c("retitle")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function _(){return c("legacy")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[L],color:k[L]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C,": ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[L]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[B]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:I}),N[B]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[M," (",Math.round(w/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[A," (",Math.round(T/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function _(){return c("reopen")}return _}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:R}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(O).slice(0).map(function(_){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:O[_]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function _(P,D){return f(D)}return _}(),onKeyDown:function(){function _(P){var D=window.event?P.which:P.keyCode;D===a.KEY_ENTER&&(c("send_msg",{msg:v,ticket_ref:y}),f(""))}return _}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function _(){c("send_msg",{msg:v,ticket_ref:y}),f("")}return _}()})})]})})]})]})})})}return s}()},5903:function(x,r,n){"use strict";r.__esModule=!0,r.TicketChat=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.TicketChat=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.level,g=d.handler,y=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:V[b],color:k[b]})}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(y).slice(0).map(function(B){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:y[B]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function B(L,I){return f(I)}return B}(),onKeyDown:function(){function B(L){var I=window.event?L.which:L.keyCode;I===a.KEY_ENTER&&(c("send_msg",{msg:v}),f(""))}return B}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function B(){c("send_msg",{msg:v}),f("")}return B}()})})]})})]})]})})})}return s}()},680:function(x,r,n){"use strict";r.__esModule=!0,r.TicketsPanel=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Admin",1:"Mentor",2:"All Levels"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown",all:"All States"},h={open:"white",resolved:"green",closed:"grey",unknown:"orange"},s=function(i,c,d){var p=[];return i.forEach(function(v){(v.state===c||c==="all")&&(v.level===d||d===2)&&p.push(v)}),p},l=r.TicketsPanel=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.tickets,C=v.selected_ticket,b=(0,t.useLocalState)(c,"stateFilter","open"),g=b[0],y=b[1],B=(0,t.useLocalState)(c,"levelFilter",2),L=B[0],I=B[1],w=(0,t.useLocalState)(c,"ticketChat",""),T=w[0],M=w[1],A=s(f,g,L);return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Filter",children:[(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(N),selected:N[g],onSelected:function(){function R(O){return y(Object.keys(N)[Object.values(N).indexOf(O)])}return R}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(V),selected:V[L],onSelected:function(){function R(O){return I(Object.values(V).indexOf(O))}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Tickets",scrollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function R(){return p("new_ticket")}return R}(),children:["New Ticket",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),A.map(function(R){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R.id===(C==null?void 0:C.id),onClick:function(){function O(){return p("pick_ticket",{ticket_id:R.id})}return O}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{content:V[R.level],color:k[R.level]})," ",R.name]}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.9,textColor:h[R.state],children:["State: ",N[R.state]," | Assignee:"," ",R.handler]})]})},R.id)})]})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:C&&(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C.id,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[C.level],color:k[C.level]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C.id,":"," ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.name}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[C.level]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[C.state]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:C.handler}),N[C.state]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[C.opened_at_date," (",Math.round(C.opened_at/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[C.closed_at_date," (",Math.round(C.closed_at/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function R(){return p("reopen_ticket")}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.actions}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{maxWidth:"500px",children:Object.keys(C.log).slice(0).map(function(R){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.log[R]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:T,onInput:function(){function R(O,_){return M(_)}return R}(),onKeyDown:function(){function R(O){var _=window.event?O.which:O.keyCode;_===a.KEY_ENTER&&(p("send_msg",{msg:T}),M(""))}return R}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function R(){p("send_msg",{msg:T}),M("")}return R}()})})]})})]})]})||(0,e.createComponentVNode)(2,o.Section,{title:"No ticket selected",buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})]}),children:"Please select a ticket on the left to view its details."})})]})})})}return u}()},45336:function(x,r,n){"use strict";r.__esModule=!0,r.TimeClock=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(70237),k=r.TimeClock=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.department_hours,c=u.user_name,d=u.card,p=u.assignment,v=u.job_datum,f=u.allow_change_job,C=u.job_choices;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.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 "+c,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(i).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,color:i[b]>6?"good":i[b]>1?"average":"bad",children:[(0,a.toFixed)(i[b],1)," ",i[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 l("id")}return b}(),children:d||"Insert ID"})}),!!v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Box,{backgroundColor:v.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:v.title})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,inline:!0,mr:1,children:v.title})})]})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Departments",children:v.departments}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pay Scale",children:v.economic_modifier}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"PTO Elegibility",children:v.timeoff_factor>0&&(0,e.createComponentVNode)(2,o.Box,{children:["Earns PTO - ",v.pto_department]})||v.timeoff_factor<0&&(0,e.createComponentVNode)(2,o.Box,{children:["Requires PTO - ",v.pto_department]})||(0,e.createComponentVNode)(2,o.Box,{children:"Neutral"})})],4)]})}),!!(f&&v&&v.timeoff_factor!==0&&p!=="Dismissed")&&(0,e.createComponentVNode)(2,o.Section,{title:"Employment Actions",children:v.timeoff_factor>0&&(i[v.pto_department]>0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){function b(){return l("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(C).length&&Object.keys(C).map(function(b){var g=C[b];return g.map(function(y){return(0,e.createComponentVNode)(2,o.Button,{icon:"suitcase",onClick:function(){function B(){return l("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":y})}return B}(),children:y},y)})})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}return S}()},59799:function(x,r,n){"use strict";r.__esModule=!0,r.TraitTutorial=r.TraitSelection=r.TraitDescription=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TraitTutorial=function(){function S(N,h){var s=(0,a.useBackend)(h),l=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 S}(),V=r.TraitSelection=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.names,c=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:i.map(function(d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===c,onClick:function(){function p(){return l("select_trait",{name:d})}return p}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d})},d)})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:8,children:c&&(0,e.createComponentVNode)(2,t.Section,{title:c,children:(0,e.createComponentVNode)(2,k,{name:c})})})]})}return S}(),k=r.TraitDescription=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=N.name,c=u.descriptions,d=u.categories,p=u.tutorials;return(0,e.createComponentVNode)(2,t.Section,{StackWrap:!0,children:[(0,e.createVNode)(1,"b",null,"Name:",16)," ",i,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Category:",16)," ",d[i],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Description:",16)," ",c[i],(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:p[i]}})]})}return S}()},18871:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TransferValve=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tank_one,u=s.tank_two,i=s.attached_device,c=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:c?"unlock":"lock",content:c?"Open":"Closed",disabled:!l||!u,onClick:function(){function d(){return h("toggle")}return d}()})})})}),(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:!i,onClick:function(){function d(){return h("device")}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function d(){return h("remove_device")}return d}()})}):(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:l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function d(){return h("tankone")}return d}()})}):(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 d(){return h("tanktwo")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}return V}()},57427:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineControl=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.TurbineControl=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.connected,i=l.compressor_broke,c=l.turbine_broke,d=l.broken,p=l.door_status,v=l.online,f=l.power,C=l.rpm,b=l.temp;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,m.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:d&&(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:v?"good":"bad",children:v&&!i&&!c?"Online":"Offline"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Compressor",children:i&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Compressor is inoperable."})||c&&(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:v,content:"Compressor Power",onClick:function(){function g(){return s(v?"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:p,onClick:function(){function g(){return s("doors")}return g}(),content:p?"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:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C})," RPM"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Temperature",children:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generated Power",children:d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{format:function(){function g(y){return(0,a.formatPower)(y)}return g}(),value:Number(f)})})]})})]})})}return k}()},68710:function(x,r,n){"use strict";r.__esModule=!0,r.Turbolift=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Turbolift=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.floors,u=s.doors_open,i=s.fire_mode;return(0,e.createComponentVNode)(2,o.Window,{width:480,height:260+i*25,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Floor Selection",className:i?"Section--elevator--fire":null,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"door-open":"door-closed",content:u?i?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:u&&!i,color:i?"red":null,onClick:function(){function c(){return h("toggle_doors")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){function c(){return h("emergency_stop")}return c}()})],4),children:[!i||(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:l.map(function(c){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:c.label||"Floor #"+c.id}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"8%",textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){function d(){return h("move_to_floor",{ref:c.ref})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}return V}()},3790:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=r.GenericUplink=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(43820),V=n(11477),k=25,S=r.Uplink=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.data,v=(0,t.useLocalState)(c,"screen",0),f=v[0],C=v[1],b=p.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,N,{screen:f,setScreen:C}),f===0&&(0,e.createComponentVNode)(2,s,{currencyAmount:b,currencySymbol:"TC"})||f===1&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,o.Section,{color:"bad",children:"Error"})]})})}return u}(),N=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.screen,C=i.setScreen,b=v.discount_name,g=v.discount_amount,y=v.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:f===0,onClick:function(){function B(){return C(0)}return B}(),children:"Request Items"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function B(){return C(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:"," ",y]})||(0,e.createComponentVNode)(2,o.Box,{children:"No items currently discounted."})})]})},h=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.exploit,C=v.locked_records;return(0,e.createComponentVNode)(2,o.Section,{title:"Exploitable Information",buttons:f&&(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Back",onClick:function(){function b(){return p("view_exploits",{id:0})}return b}()}),children:f&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Home System",children:f.home_system}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Birthplace",children:f.birthplace}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Citizenship",children:f.citizenship}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Faction",children:f.faction}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Religion",children:f.religion}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other Affiliations",children:f.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:f.nanoui_exploit_record.split("
").map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:b},b)})})]})})||C.map(function(b){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",fluid:!0,content:b.name,onClick:function(){function g(){return p("view_exploits",{id:b.id})}return g}()},b.id)})})},s=r.GenericUplink=function(){function u(i,c){var d,p,v=i.currencyAmount,f=v===void 0?0:v,C=i.currencySymbol,b=C===void 0?"\u20AE":C,g=(0,t.useBackend)(c),y=g.act,B=g.data,L=B.compactMode,I=B.lockable,w=B.categories,T=w===void 0?[]:w,M=(0,t.useLocalState)(c,"searchText",""),A=M[0],R=M[1],O=(0,t.useLocalState)(c,"category",(d=T[0])==null?void 0:d.name),_=O[0],P=O[1],D=(0,a.createSearch)(A,function(U){return U.name+U.desc}),z=A.length>0&&T.flatMap(function(U){return U.items||[]}).filter(D).filter(function(U,W){return W0?"good":"bad",children:[(0,m.formatMoney)(f)," ",b]}),buttons:(0,e.createFragment)([(0,e.createTextVNode)("Search"),(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,value:A,onInput:function(){function U(W,K){return R(K)}return U}(),mx:1}),(0,e.createComponentVNode)(2,o.Button,{icon:L?"list":"info",content:L?"Compact":"Detailed",onClick:function(){function U(){return y("compact_toggle")}return U}()}),!!I&&(0,e.createComponentVNode)(2,o.Button,{icon:"lock",content:"Lock",onClick:function(){function U(){return y("lock")}return U}()})],0),children:(0,e.createComponentVNode)(2,o.Flex,{children:[A.length===0&&(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:T.map(function(U){var W;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U.name===_,onClick:function(){function K(){return P(U.name)}return K}(),children:[U.name," (",((W=U.items)==null?void 0:W.length)||0,")"]},U.name)})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,basis:0,children:[z.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:A.length===0?"No items in this category.":"No results found."}),(0,e.createComponentVNode)(2,l,{compactMode:A.length>0||L,currencyAmount:f,currencySymbol:b,items:z})]})]})})}return u}(),l=function(i,c){var d=i.compactMode,p=i.currencyAmount,v=i.currencySymbol,f=(0,t.useBackend)(c),C=f.act,b=(0,t.useLocalState)(c,"hoveredItem",{}),g=b[0],y=b[1],B=g&&g.cost||0,L=i.items.map(function(I){var w=g&&g.name!==I.name,T=p-B=0)&&(O[P]=A[P]);return O}var N=[null,"average","bad"],h={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"},s={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."},l=r.VorePanel=function(){function A(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=(0,t.useLocalState)(O,"panelTabIndex",0),U=z[0],W=z[1],K=[];return K[0]=(0,e.createComponentVNode)(2,i),K[1]=(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,m.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[D.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 H(){return P("saveprefs")}return H}()})}),(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 H(){P("saveprefs"),P("exportpanel")}return H}()})})]})})||null,(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===0,onClick:function(){function H(){return W(0)}return H}(),children:["Bellies",(0,e.createComponentVNode)(2,o.Icon,{name:"list",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===1,onClick:function(){function H(){return W(1)}return H}(),children:["Preferences",(0,e.createComponentVNode)(2,o.Icon,{name:"user-cog",ml:.5})]})]}),K[U]||"Error"]})})}return A}(),u=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.inside,U=z.absorbed,W=z.belly_name,K=z.belly_mode,H=z.desc,Y=z.pred,J=z.contents,q=z.ref;return W?(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:[(0,e.createComponentVNode)(2,o.Box,{color:"green",inline:!0,children:["You are currently ",U?"absorbed into":"inside"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:[Y,"'s"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"red",inline:!0,children:W}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:h[K],inline:!0,children:s[K]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"label",children:H}),J.length&&(0,e.createComponentVNode)(2,o.Collapsible,{title:"Belly Contents",children:(0,e.createComponentVNode)(2,y,{contents:J,belly:q})})||"There is nothing else around you."]}):(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:"You aren't inside anyone."})},i=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.our_bellies,U=D.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 W(){return P("newbelly")}return W}(),children:["New",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("exportpanel")}return W}(),children:["Export",(0,e.createComponentVNode)(2,o.Icon,{name:"file-export",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("importpanel")}return W}(),children:["Import",(0,e.createComponentVNode)(2,o.Icon,{name:"file-import",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),z.map(function(W){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W.selected,textColor:h[W.digest_mode],onClick:function(){function K(){return P("bellypick",{bellypick:W.ref})}return K}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,textColor:W.selected&&h[W.digest_mode]||null,children:[W.name," (",W.contents,")"]})},W.name)})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:U&&(0,e.createComponentVNode)(2,o.Section,{title:U.belly_name,children:(0,e.createComponentVNode)(2,c,{belly:U})})})]})},c=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.contents,U=(0,t.useLocalState)(O,"bellyTabIndex",0),W=U[0],K=U[1],H=[];return H[0]=(0,e.createComponentVNode)(2,d,{belly:D}),H[1]=(0,e.createComponentVNode)(2,p,{belly:D}),H[2]=(0,e.createComponentVNode)(2,v,{belly:D}),H[3]=(0,e.createComponentVNode)(2,C,{belly:D}),H[4]=(0,e.createComponentVNode)(2,b,{belly:D}),H[5]=(0,e.createComponentVNode)(2,g,{belly:D}),H[6]=(0,e.createComponentVNode)(2,y,{outside:!0,contents:z}),H[7]=(0,e.createComponentVNode)(2,B,{belly:D}),H[8]=(0,e.createComponentVNode)(2,L,{belly:D}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===0,onClick:function(){function Y(){return K(0)}return Y}(),children:"Controls"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===1,onClick:function(){function Y(){return K(1)}return Y}(),children:"Descriptions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===2,onClick:function(){function Y(){return K(2)}return Y}(),children:"Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===3,onClick:function(){function Y(){return K(3)}return Y}(),children:"Sounds"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===4,onClick:function(){function Y(){return K(4)}return Y}(),children:"Visuals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===5,onClick:function(){function Y(){return K(5)}return Y}(),children:"Interactions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===6,onClick:function(){function Y(){return K(6)}return Y}(),children:["Contents (",z.length,")"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===7,onClick:function(){function Y(){return K(7)}return Y}(),children:"Liquid Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===8,onClick:function(){function Y(){return K(8)}return Y}(),children:"Liquid Messages"})]}),H[W]||"Error"],0)},d=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_name,U=D.mode,W=D.item_mode,K=D.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 H(){return P("move_belly",{dir:-1})}return H}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){function H(){return P("move_belly",{dir:1})}return H}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_name"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{color:h[U],onClick:function(){function H(){return P("set_attribute",{attribute:"b_mode"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode Addons",children:[K.length&&K.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_addons"})}return H}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_item_mode"})}return H}(),content:W})}),(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 H(){return P("set_attribute",{attribute:"b_del"})}return H}()})})]})},p=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.verb,U=D.release_verb,W=D.desc,K=D.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 H(){return P("set_attribute",{attribute:"b_desc"})}return H}(),icon:"pen"}),children:W}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_absorbed_desc"})}return H}(),icon:"pen"}),children:K}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_verb"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_release_verb"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Examine Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"em"})}return H}(),content:"Examine Message (when full)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ema"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smo"})}return H}(),content:"Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smi"})}return H}(),content:"Struggle Message (inside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})}return H}(),content:"Absorbed Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escap"})}return H}(),content:"Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escao"})}return H}(),content:"Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escp"})}return H}(),content:"Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esco"})}return H}(),content:"Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escout"})}return H}(),content:"Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escip"})}return H}(),content:"Escape Item Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escio"})}return H}(),content:"Escape Item Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})}return H}(),content:"Escape Item Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})}return H}(),content:"Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})}return H}(),content:"Escape Fail Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})}return H}(),content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})}return H}(),content:"Absorbed Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})}return H}(),content:"Absorbed Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})}return H}(),content:"Absorbed Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})}return H}(),content:"Absorbed Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})}return H}(),content:"Absorbed Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})}return H}(),content:"Primary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})}return H}(),content:"Primary Transfer Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})}return H}(),content:"Secondary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})}return H}(),content:"Interaction Chance Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})}return H}(),content:"Interaction Chance Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})}return H}(),content:"Interaction Chance Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})}return H}(),content:"Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})}return H}(),content:"Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amp"})}return H}(),content:"Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amo"})}return H}(),content:"Absorb Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})}return H}(),content:"Unabsorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})}return H}(),content:"Idle Messages (Hold)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})}return H}(),content:"Idle Messages (Hold Absorbed)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})}return H}(),content:"Idle Messages (Digest)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})}return H}(),content:"Idle Messages (Absorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})}return H}(),content:"Idle Messages (Unabsorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})}return H}(),content:"Idle Messages (Drain)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})}return H}(),content:"Idle Messages (Heal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})}return H}(),content:"Idle Messages (Size Steal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})}return H}(),content:"Idle Messages (Shrink)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})}return H}(),content:"Idle Messages (Grow)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})}return H}(),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 H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"reset"})}return H}(),content:"Reset Messages"})})]})},v=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.can_taste,Y=K.is_feedable,J=K.nutrition_percent,q=K.digest_brute,oe=K.digest_burn,ae=K.digest_oxy,le=K.digest_tox,he=K.digest_clone,me=K.bulge_size,Be=K.display_absorbed_examine,ce=K.shrink_grow_size,te=K.emote_time,ee=K.emote_active,ie=K.contaminates,Ce=K.contaminate_flavor,Se=K.contaminate_color,we=K.egg_type,pe=K.egg_name,E=K.recycling,Z=K.storing_nutrition,re=K.entrance_logs,X=K.item_digest_logs,ne=K.selective_preference,ve=K.save_digest_mode,Ve=K.eating_privacy_local,Ie=K.silicon_belly_overlay_preference,Pe=K.belly_mob_mult,Ae=K.belly_item_mult,Oe=K.belly_overall_mult,de=K.vorespawn_blacklist,ge=K.private_struggle;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 j(){return P("set_attribute",{attribute:"b_tastes"})}return j}(),icon:H?"toggle-on":"toggle-off",selected:H,content:H?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Feedable",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_feedable"})}return j}(),icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contaminates",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contaminates"})}return j}(),icon:ie?"toggle-on":"toggle-off",selected:ie,content:ie?"Yes":"No"})}),ie&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Flavor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_flavor"})}return j}(),icon:"pen",content:Ce})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Color",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_color"})}return j}(),icon:"pen",content:(0,a.capitalize)(Se)})})],4)||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nutritional Gain",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_nutritionpercent"})}return j}(),content:J+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Examine Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_bulge_size"})}return j}(),content:me*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_display_absorbed_examine"})}return j}(),icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Vore Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_eating_privacy"})}return j}(),content:(0,a.capitalize)(Ve)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Struggle Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_private_struggle"})}return j}(),icon:ge?"toggle-on":"toggle-off",selected:ge,content:ge?"Private":"Loud"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Save Digest Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_save_digest_mode"})}return j}(),icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"True":"False"})})]}),(0,e.createComponentVNode)(2,f,{belly:K})]}),(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 j(){return P("set_attribute",{attribute:"b_emoteactive"})}return j}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Active":"Inactive"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emote Delay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_emotetime"})}return j}(),content:te+" seconds"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Brute Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_brute_dmg"})}return j}(),content:q})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Burn Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_burn_dmg"})}return j}(),content:oe})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_oxy_dmg"})}return j}(),content:ae})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Toxins Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_tox_dmg"})}return j}(),content:le})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Clone Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_clone_dmg"})}return j}(),content:he})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_grow_shrink"})}return j}(),content:ce*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Spawn Blacklist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_vorespawn_blacklist"})}return j}(),icon:de?"toggle-on":"toggle-off",selected:de,content:de?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Egg Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_type"})}return j}(),icon:"pen",content:(0,a.capitalize)(we)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Egg Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_name"})}return j}(),icon:"pen",content:pe||"Default"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recycling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_recycling"})}return j}(),icon:E?"toggle-on":"toggle-off",selected:E,content:E?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Storing Nutrition",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_storing_nutrition"})}return j}(),icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Storing":"Absorbing"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Entrance Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_entrance_logs"})}return j}(),icon:re?"toggle-on":"toggle-off",selected:re,content:re?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Digestion Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_item_digest_logs"})}return j}(),icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Selective Mode Preference",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_selective_mode_pref_toggle"})}return j}(),content:(0,a.capitalize)(ne)})})]})})]})},f=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.silicon_belly_overlay_preference,Y=K.belly_sprite_option_shown,J=K.belly_sprite_to_affect,q=K.belly_mob_mult,oe=K.belly_item_mult,ae=K.belly_overall_mult;return U?Y&&J==="sleeper"?(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 le(){return P("set_attribute",{attribute:"b_silicon_belly"})}return le}(),content:(0,a.capitalize)(H)})})})}):(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createVNode)(1,"span",null,"Your module does either not support vore sprites or you've selected a belly sprite other than the sleeper within the Visuals section.",16,{style:{color:"red"}})}):W?(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)})},C=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.is_wet,U=D.wet_loop,W=D.fancy,K=D.sound,H=D.release_sound,Y=D.sound_volume,J=D.noise_freq;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 q(){return P("set_attribute",{attribute:"b_wetness"})}return q}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Loop",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_wetloop"})}return q}(),icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_fancy_sound"})}return q}(),icon:W?"toggle-on":"toggle-off",selected:W,content:W?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound"})}return q}(),content:K}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_soundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_release"})}return q}(),content:H}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_releasesoundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sound Volume",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound_volume"})}return q}(),content:Y+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Noise Frequency",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_noise_freq"})}return q}(),content:J})})]})})})},b=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_fullscreen,U=D.belly_fullscreen_color,W=D.belly_fullscreen_color2,K=D.belly_fullscreen_color3,H=D.belly_fullscreen_color4,Y=D.belly_fullscreen_alpha,J=D.mapRef,q=D.colorization_enabled,oe=D.possible_fullscreens,ae=D.disable_hud,le=D.vore_sprite_flags,he=D.affects_voresprite,me=D.absorbed_voresprite,Be=D.absorbed_multiplier,ce=D.liquid_voresprite,te=D.liquid_multiplier,ee=D.item_voresprite,ie=D.item_multiplier,Ce=D.health_voresprite,Se=D.resist_animation,we=D.voresprite_size_factor,pe=D.belly_sprite_option_shown,E=D.belly_sprite_to_affect,Z=D.undergarment_chosen,re=D.undergarment_if_none,X=D.undergarment_color,ne=D.tail_option_shown,ve=D.tail_to_change_to,Ve=D.tail_colouration,Ie=D.tail_extra_overlay,Pe=D.tail_extra_overlay2;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Vore Sprites",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Affect Vore Sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_affects_vore_sprites"})}return Ae}(),icon:he?"toggle-on":"toggle-off",selected:he,content:he?"Yes":"No"})}),he?(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Mode",children:[le.length&&le.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_vore_sprite_flags"})}return Ae}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})}return Ae}(),icon:me?"toggle-on":"toggle-off",selected:me,content:me?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_absorbed_multiplier"})}return Ae}(),content:Be})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_liquid_for_sprites"})}return Ae}(),icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_liquid_multiplier"})}return Ae}(),content:te})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count items for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_items_for_sprites"})}return Ae}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Items Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_item_multiplier"})}return Ae}(),content:ie})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prey health affects vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_health_impacts_size"})}return Ae}(),icon:Ce?"toggle-on":"toggle-off",selected:Ce,content:Ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Animation when prey resist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_resist_animation"})}return Ae}(),icon:Se?"toggle-on":"toggle-off",selected:Se,content:Se?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Size Factor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_size_factor_sprites"})}return Ae}(),content:we})}),pe?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_belly_sprite_to_affect"})}return Ae}(),content:E})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createVNode)(1,"span",null,"You do not have any bellysprites.",16,{style:{color:"red"}})}),ne&&le.includes("Undergarment addition")?(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment type to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_choice"})}return Ae}(),content:Z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment if none equipped",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_if_none"})}return Ae}(),content:re})}),(0,e.createComponentVNode)(2,T,{action_name:"b_undergarment_color",value_of:null,back_color:X,name_of:"Undergarment Color if none"})],4):"",ne&&le.includes("Tail adjustment")?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tail to change to",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_tail_to_change_to"})}return Ae}(),content:ve})}):""],0):""]})})}),(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,T,{action_name:"b_fullscreen_color",value_of:null,back_color:U,name_of:"1"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color2",value_of:null,back_color:W,name_of:"2"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color3",value_of:null,back_color:K,name_of:"3"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color4",value_of:null,back_color:H,name_of:"4"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_alpha",value_of:null,back_color:"#FFFFFF",name_of:"Alpha"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Enable Coloration",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_colorization_enabled"})}return Ae}(),icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_preview_belly"})}return Ae}(),content:"Preview"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Clear Preview",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_clear_preview"})}return Ae}(),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 Ae(){return P("set_attribute",{attribute:"b_disable_hud"})}return Ae}(),icon:ae?"toggle-on":"toggle-off",selected:ae,content:ae?"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:z===""||z===null,onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_fullscreen",val:null})}return Ae}(),children:"Disabled"}),Object.keys(oe).map(function(Ae){return(0,e.createVNode)(1,"span",null,(0,e.createComponentVNode)(2,o.Button,{width:"256px",height:"256px",selected:Ae===z,onClick:function(){function Oe(){return P("set_attribute",{attribute:"b_fullscreen",val:Ae})}return Oe}(),children:(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["vore240x240",Ae]),style:{transform:"translate(0%, 4%)"}})},Ae),2,{style:{width:"256px"}})})]})]})],4)},g=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.escapable,U=D.interacts,W=D.vorespawn_blacklist,K=D.autotransfer_enabled,H=D.autotransfer;return(0,e.createComponentVNode)(2,o.Section,{title:"Belly Interactions",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapable"})}return Y}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Interactions On":"Interactions Off"}),children:[z?(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:U.escapechance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapechance_absorbed+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance_absorbed"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Time",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapetime/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapetime"})}return Y}()})}),(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:U.transferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation?U.transferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation"})}return Y}()})}),(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:U.transferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation_secondary?U.transferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation_secondary"})}return Y}()})}),(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:U.absorbchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_absorbchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.digestchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_digestchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider)]}):"These options only display while interactions are turned on.",(0,e.createComponentVNode)(2,o.Section,{title:"Auto-Transfer Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_enabled"})}return Y}(),icon:K?"toggle-on":"toggle-off",selected:K,content:K?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:K?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Time",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferwait/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferwait"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Min Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_min_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_min_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Max Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_max_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_max_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation?H.autotransferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Mobs)",children:[H.autotransfer_whitelist.length&&H.autotransfer_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Items)",children:[H.autotransfer_whitelist_items.length&&H.autotransfer_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Mobs)",children:[H.autotransfer_blacklist.length&&H.autotransfer_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Items)",children:[H.autotransfer_blacklist_items.length&&H.autotransfer_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation_secondary?H.autotransferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Mobs)",children:[H.autotransfer_secondary_whitelist.length&&H.autotransfer_secondary_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Items)",children:[H.autotransfer_secondary_whitelist_items.length&&H.autotransfer_secondary_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Mobs)",children:[H.autotransfer_secondary_blacklist.length&&H.autotransfer_secondary_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Items)",children:[H.autotransfer_secondary_blacklist_items.length&&H.autotransfer_secondary_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]})]}):"These options only display while Auto-Transfer is enabled."})]})},y=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.show_pictures,U=R.contents,W=R.belly,K=R.outside,H=K===void 0?!1:K;return(0,e.createFragment)([H&&(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){function Y(){return P("pick_from_outside",{pickall:!0})}return Y}(),children:"All"})||null,z&&(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,o.Button,{width:"64px",color:Y.absorbed?"purple":N[Y.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+Y.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Y.name]},Y.name)})})||(0,e.createComponentVNode)(2,o.LabeledList,{children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:Y.name,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:-1,mb:-1,color:Y.absorbed?"purple":N[Y.stat],onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:"Interact"})},Y.ref)})})],0)},B=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.show_liq,U=D.liq_interacts,W=D.liq_reagent_gen,K=D.liq_reagent_type,H=D.liq_reagent_name,Y=D.liq_reagent_transfer_verb,J=D.liq_reagent_nutri_rate,q=D.liq_reagent_capacity,oe=D.liq_sloshing,ae=D.liq_reagent_addons,le=D.show_liq_fullness,he=D.liq_messages,me=D.liq_msg1,Be=D.liq_msg2,ce=D.liq_msg3,te=D.liq_msg4,ee=D.liq_msg5,ie=D.custom_reagentcolor,Ce=D.custom_reagentalpha,Se=D.liquid_overlay,we=D.max_liquid_level,pe=D.reagent_touches,E=D.mush_overlay,Z=D.mush_color,re=D.mush_alpha,X=D.max_mush,ne=D.min_mush,ve=D.item_mush_val,Ve=D.metabolism_overlay,Ie=D.metabolism_mush_ratio,Pe=D.max_ingested,Ae=D.custom_ingested_color,Oe=D.custom_ingested_alpha;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_show_liq"})}return de}(),icon:z?"toggle-on":"toggle-off",selected:z,tooltipPosition:"left",tooltip:"These are the settings for liquid bellies, every belly has a liquid storage.",content:z?"Liquids On":"Liquids Off"}),children:z?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generate Liquids",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_gen"})}return de}(),icon:U.liq_reagent_gen?"toggle-on":"toggle-off",selected:U.liq_reagent_gen,content:U.liq_reagent_gen?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_type"})}return de}(),icon:"pen",content:U.liq_reagent_type})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_name"})}return de}(),content:U.liq_reagent_name})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_transfer_verb"})}return de}(),content:U.liq_reagent_transfer_verb})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generation Time",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_nutri_rate"})}return de}(),icon:"clock",content:(U.liq_reagent_nutri_rate+1)*10/60+" Hours"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Capacity",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_capacity"})}return de}(),content:U.liq_reagent_capacity})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Slosh Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_sloshing"})}return de}(),icon:U.liq_sloshing?"toggle-on":"toggle-off",selected:U.liq_sloshing,content:U.liq_sloshing?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Addons",children:[U.liq_reagent_addons.length&&U.liq_reagent_addons.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_addons"})}return de}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Application to Prey",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_reagent_touches"})}return de}(),icon:U.reagent_touches?"toggle-on":"toggle-off",selected:U.reagent_touches,content:U.reagent_touches?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_reagentcolor",value_of:null,back_color:U.custom_reagentcolor,name_of:"Custom Liquid Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liquid_overlay"})}return de}(),icon:U.liquid_overlay?"toggle-on":"toggle-off",selected:U.liquid_overlay,content:U.liquid_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Max Liquid Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_liquid_level"})}return de}(),content:U.max_liquid_level+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_reagentalpha"})}return de}(),content:U.custom_reagentalpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fullness Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_overlay"})}return de}(),icon:U.mush_overlay?"toggle-on":"toggle-off",selected:U.mush_overlay,content:U.mush_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_mush_color",value_of:null,back_color:U.mush_color,name_of:"Custom Mush Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_alpha"})}return de}(),content:U.mush_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_mush"})}return de}(),content:U.max_mush})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Minimum Mush Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_min_mush"})}return de}(),content:U.min_mush+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mush Value",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_item_mush_val"})}return de}(),content:U.item_mush_val+" fullness per item"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_overlay"})}return de}(),icon:U.metabolism_overlay?"toggle-on":"toggle-off",selected:U.metabolism_overlay,content:U.metabolism_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Mush Ratio",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_mush_ratio"})}return de}(),content:U.metabolism_mush_ratio+" fullness per reagent unit"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_ingested"})}return de}(),content:U.max_ingested})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Metabolism Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_ingested_color",value_of:null,back_color:U.custom_ingested_color,name_of:"Custom Metabolism Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_ingested_alpha"})}return de}(),content:U.custom_ingested_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Purge Liquids",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_purge"})}return de}(),content:"Purge Liquids"})})]}):"These options only display while liquid settings are turned on."})},L=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.liq_interacts,U=D.liq_reagent_gen,W=D.liq_reagent_type,K=D.liq_reagent_name,H=D.liq_reagent_transfer_verb,Y=D.liq_reagent_nutri_rate,J=D.liq_reagent_capacity,q=D.liq_sloshing,oe=D.liq_reagent_addons,ae=D.show_liq_fullness,le=D.liq_messages,he=D.liq_msg_toggle1,me=D.liq_msg_toggle2,Be=D.liq_msg_toggle3,ce=D.liq_msg_toggle4,te=D.liq_msg_toggle5,ee=D.liq_msg1,ie=D.liq_msg2,Ce=D.liq_msg3,Se=D.liq_msg4,we=D.liq_msg5;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Messages",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_show_liq_fullness"})}return pe}(),icon:ae?"toggle-on":"toggle-off",selected:ae,tooltipPosition:"left",tooltip:"These are the settings for belly visibility when involving liquids fullness.",content:ae?"Messages On":"Messages Off"}),children:ae?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"0 to 20%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle1"})}return pe}(),icon:le.liq_msg_toggle1?"toggle-on":"toggle-off",selected:le.liq_msg_toggle1,content:le.liq_msg_toggle1?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg1"})}return pe}(),content:"Examine Message (0 to 20%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"20 to 40%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle2"})}return pe}(),icon:le.liq_msg_toggle2?"toggle-on":"toggle-off",selected:le.liq_msg_toggle2,content:le.liq_msg_toggle2?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg2"})}return pe}(),content:"Examine Message (20 to 40%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"40 to 60%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle3"})}return pe}(),icon:le.liq_msg_toggle3?"toggle-on":"toggle-off",selected:le.liq_msg_toggle3,content:le.liq_msg_toggle3?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg3"})}return pe}(),content:"Examine Message (40 to 60%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"60 to 80%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle4"})}return pe}(),icon:le.liq_msg_toggle4?"toggle-on":"toggle-off",selected:le.liq_msg_toggle4,content:le.liq_msg_toggle4?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg4"})}return pe}(),content:"Examine Message (60 to 80%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"80 to 100%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle5"})}return pe}(),icon:le.liq_msg_toggle5?"toggle-on":"toggle-off",selected:le.liq_msg_toggle5,content:le.liq_msg_toggle5?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg5"})}return pe}(),content:"Examine Message (80 to 100%)"})]})]}):"These options only display while liquid examination settings are turned on."})},I=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.prefs,U=z.digestable,W=z.devourable,K=z.resizable,H=z.feeding,Y=z.absorbable,J=z.digest_leave_remains,q=z.allowmobvore,oe=z.permit_healbelly,ae=z.show_vore_fx,le=z.can_be_drop_prey,he=z.can_be_drop_pred,me=z.latejoin_vore,Be=z.latejoin_prey,ce=z.allow_spontaneous_tf,te=z.step_mechanics_active,ee=z.pickup_mechanics_active,ie=z.noisy,Ce=z.noisy_full,Se=z.liq_rec,we=z.liq_giv,pe=z.autotransferable,E=z.drop_vore,Z=z.stumble_vore,re=z.slip_vore,X=z.throw_vore,ne=z.food_vore,ve=z.nutrition_message_visible,Ve=z.weight_message_visible,Ie=z.eating_privacy_global,Pe=D.show_pictures,Ae=(0,t.useLocalState)(O,"tabIndex",0),Oe=Ae[0],de=Ae[1],ge={digestion:{action:"toggle_digest",test:U,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:Y,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:W,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:q,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:H,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:oe,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:le,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:he,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:E,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:re,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:Z,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:X,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:ne,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"}},spawnbelly:{action:"toggle_latejoin_vore",test:me,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:Be,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:ie,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"}},noisy_full:{action:"toggle_noisy_full",test:Ce,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching Disabled"}},resize:{action:"toggle_resize",test:K,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:te,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:ae,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:J,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:ee,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:ce,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:ve,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:Ie,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"}},liquid_receive:{action:"toggle_liq_rec",test:Se,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:we,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},autotransferable:{action:"toggle_autotransferable",test:pe,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}}};return(0,e.createComponentVNode)(2,o.Section,{title:"Mechanical Preferences",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:Pe,onClick:function(){function j(){return P("show_pictures")}return j}(),children:["Contents Preference: ",Pe?"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,w,{spec:ge.digestion})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.absorbable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.devour})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.mobvore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.feed})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.healbelly,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_prey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_pred})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_drop_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_slip_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_stumble_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_throw_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_food_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnbelly})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnprey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy_full})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.resize})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.steppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.vore_fx,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.remains,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.pickuppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.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 j(){return P("switch_selective_mode_pref")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.eating_privacy_global})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.autotransferable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_receive,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_give,tooltipPosition:"top"})})]}),(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 j(){return P("setflavor")}return j}()})}),(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 j(){return P("setsmell")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"en"})}return j}(),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 j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ew"})}return j}(),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,w,{spec:ge.examine_nutrition})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,w,{spec:ge.examine_weight})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Vore Sprite Color",onClick:function(){function j(){return P("set_vs_color")}return j}()})})]})}),(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 j(){return P("saveprefs")}return j}()})}),(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 j(){return P("reloadprefs")}return j}()})})]})})]})},w=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.spec,z=S(R,k),U=D.action,W=D.test,K=D.tooltip,H=D.content;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({onClick:function(){function Y(){return P(U)}return Y}(),icon:W?"toggle-on":"toggle-off",selected:W,fluid:!0,tooltip:K.main+" "+(W?K.disable:K.enable),content:W?H.enabled:H.disabled},z)))},T=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("set_attribute",{attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})},M=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("liq_set_attribute",{liq_attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})}},75105:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanelExport=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m={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',"Digest (Dispersed Damage)":'Item: Digest (Dispersed Damage)'},k={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},S={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},N={Creatures:"",Absorbed:"",Carbon:"",Silicon:"",Mobs:"",Animals:"",Mice:"",Dead:"","Digestable Creatures":"","Absorbable Creatures":"","Full Health":"",Items:"",Trash:"",Eggs:"",Remains:"","Indigestible Items":"","Recyclable Items":"",Ores:"","Clothes and Bags":"",Food:""},h=function(f){var C=[];return f==null||f.forEach(function(b){C.push(''+b+"")}),C.length===0&&C.push("No Addons Set"),C},s=function(f){var C=[];return f==null||f.forEach(function(b){C.push(''+b+"")}),C.length===0&&C.push("No Addons Set"),C},l=function(f,C){var b=[];return f==null||f.forEach(function(g){b.push(''+g+"")}),b.length===0&&(C?b.push("Everything"):b.push("Nothing")),b},u=function(f,C){var b=f.name,g=f.desc,y=f.absorbed_desc,B=f.vore_verb,L=f.release_verb,I=f.mode,w=f.addons,T=f.item_mode,M=f.digest_brute,A=f.digest_burn,R=f.digest_oxy,O=f.can_taste,_=f.is_feedable,P=f.contaminates,D=f.contamination_flavor,z=f.contamination_color,U=f.nutrition_percent,W=f.bulge_size,K=f.display_absorbed_examine,H=f.save_digest_mode,Y=f.emote_active,J=f.emote_time,q=f.shrink_grow_size,oe=f.vorespawn_blacklist,ae=f.egg_type,le=f.egg_name,he=f.selective_preference,me=f.recycling,Be=f.storing_nutrition,ce=f.entrance_logs,te=f.item_digest_logs,ee=f.struggle_messages_outside,ie=f.struggle_messages_inside,Ce=f.absorbed_struggle_messages_outside,Se=f.absorbed_struggle_messages_inside,we=f.escape_attempt_messages_owner,pe=f.escape_attempt_messages_prey,E=f.escape_messages_owner,Z=f.escape_messages_prey,re=f.escape_messages_outside,X=f.escape_item_messages_owner,ne=f.escape_item_messages_prey,ve=f.escape_item_messages_outside,Ve=f.escape_fail_messages_owner,Ie=f.escape_fail_messages_prey,Pe=f.escape_attempt_absorbed_messages_owner,Ae=f.escape_attempt_absorbed_messages_prey,Oe=f.escape_absorbed_messages_owner,de=f.escape_absorbed_messages_prey,ge=f.escape_absorbed_messages_outside,j=f.escape_fail_absorbed_messages_owner,ue=f.escape_fail_absorbed_messages_prey,be=f.primary_transfer_messages_owner,ke=f.primary_transfer_messages_prey,Te=f.secondary_transfer_messages_owner,Ee=f.secondary_transfer_messages_prey,Re=f.digest_chance_messages_owner,_e=f.digest_chance_messages_prey,De=f.absorb_chance_messages_owner,Ue=f.absorb_chance_messages_prey,Xe=f.digest_messages_owner,Qe=f.digest_messages_prey,$e=f.absorb_messages_owner,ht=f.absorb_messages_prey,lt=f.unabsorb_messages_owner,ut=f.unabsorb_messages_prey,kt=f.examine_messages,St=f.examine_messages_absorbed,Mt=f.emotes_digest,Bt=f.emotes_hold,Ot=f.emotes_holdabsorbed,Pt=f.emotes_absorb,Ct=f.emotes_heal,dt=f.emotes_drain,et=f.emotes_steal,nt=f.emotes_egg,st=f.emotes_shrink,vt=f.emotes_grow,gt=f.emotes_unabsorb,$t=f.is_wet,Yt=f.wet_loop,Xt=f.fancy_vore,Qt=f.vore_sound,Lt=f.release_sound,Jt=f.sound_volume,Zt=f.noise_freq,_t=f.affects_vore_sprites,It=f.count_absorbed_prey_for_sprite,Je=f.resist_triggers_animation,qt=f.size_factor_for_sprite,en=f.belly_sprite_to_affect,tn=f.belly_fullscreen,xt=f.belly_fullscreen_color,mt=f.belly_fullscreen_color2,yn=f.belly_fullscreen_color3,kn=f.belly_fullscreen_color4,Sn=f.belly_fullscreen_alpha,nn=f.colorization_enabled,on=f.disable_hud,Rt=f.escapable,rn=f.escapechance,at=f.escapechance_absorbed,an=f.escapetime,cn=f.transferchance,ln=f.transferlocation,un=f.transferchance_secondary,dn=f.transferlocation_secondary,sn=f.absorbchance,wt=f.digestchance,mn=f.autotransferwait,Tt=f.autotransferchance,Dt=f.autotransferlocation,Ft=f.autotransferchance_secondary,jt=f.autotransferlocation_secondary,fn=f.autotransfer_enabled,pn=f.autotransfer_min_amount,hn=f.autotransfer_max_amount,it=f.autotransfer_whitelist,Vt=f.autotransfer_blacklist,Wt=f.autotransfer_secondary_whitelist,Cn=f.autotransfer_secondary_blacklist,vn=f.autotransfer_whitelist_items,zt=f.autotransfer_blacklist_items,Ut=f.autotransfer_secondary_whitelist_items,gn=f.autotransfer_secondary_blacklist_items,Nt=f.show_liquids,Nn=f.reagentbellymode,At=f.reagent_chosen,Ht=f.reagent_name,bn=f.reagent_transfer_verb,Gt=f.gen_time_display,Kt=f.custom_max_volume,Et=f.vorefootsteps_sounds,Bn=f.reagent_mode_flag_list,F=f.liquid_overlay,G=f.max_liquid_level,Q=f.reagent_touches,se=f.mush_overlay,Ne=f.mush_color,ye=f.mush_alpha,Le=f.max_mush,xe=f.min_mush,We=f.item_mush_val,Fe=f.custom_reagentcolor,je=f.custom_reagentalpha,ze=f.metabolism_overlay,Ge=f.metabolism_mush_ratio,Ye=f.max_ingested,He=f.custom_ingested_color,qe=f.custom_ingested_alpha,Ke=f.liquid_fullness1_messages,ct=f.liquid_fullness2_messages,tt=f.liquid_fullness3_messages,bt=f.liquid_fullness4_messages,ot=f.liquid_fullness5_messages,ft=f.fullness1_messages,rt=f.fullness2_messages,yt=f.fullness3_messages,Ze=f.fullness4_messages,pt=f.fullness5_messages,$="";return $+='

',$+='

",$+='
',$+='
',$+="Addons:
"+h(w)+"

",$+="== Descriptions ==
",$+="Vore Verb:
"+B+"

",$+="Release Verb:
"+L+"

",$+='Description:
"'+g+'"

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

',$+="
",$+="== Messages ==
",$+='
',$+='
",$+='
',$+='
',$+='
',we==null||we.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',pe==null||pe.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',E==null||E.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Z==null||Z.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',re==null||re.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',X==null||X.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ne==null||ne.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ve==null||ve.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ve==null||Ve.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ie==null||Ie.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Pe==null||Pe.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ae==null||Ae.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Oe==null||Oe.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',de==null||de.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ge==null||ge.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',j==null||j.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ue==null||ue.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',be==null||be.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ke==null||ke.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Te==null||Te.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ee==null||Ee.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Re==null||Re.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',_e==null||_e.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',De==null||De.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ue==null||Ue.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ee==null||ee.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ie==null||ie.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ce==null||Ce.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Se==null||Se.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Xe==null||Xe.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Qe==null||Qe.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',$e==null||$e.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ht==null||ht.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',lt==null||lt.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',ut==null||ut.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',kt==null||kt.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',St==null||St.forEach(function(Me){$+=Me+"
"}),$+="
",$+="
",$+="
",$+="
",$+="
= Idle Messages =

",$+="

Idle Messages (Hold):

",Bt==null||Bt.forEach(function(Me){$+=Me+"
"}),$+="


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

",Ot==null||Ot.forEach(function(Me){$+=Me+"
"}),$+="


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

",Mt==null||Mt.forEach(function(Me){$+=Me+"
"}),$+="


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

",Pt==null||Pt.forEach(function(Me){$+=Me+"
"}),$+="


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

",gt==null||gt.forEach(function(Me){$+=Me+"
"}),$+="


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

",dt==null||dt.forEach(function(Me){$+=Me+"
"}),$+="


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

",Ct==null||Ct.forEach(function(Me){$+=Me+"
"}),$+="


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

",et==null||et.forEach(function(Me){$+=Me+"
"}),$+="


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

",st==null||st.forEach(function(Me){$+=Me+"
"}),$+="


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

",vt==null||vt.forEach(function(Me){$+=Me+"
"}),$+="


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

",nt==null||nt.forEach(function(Me){$+=Me+"
"}),$+="


",$+="


",$+="
",$+='
',$+='
',$+='

',$+='

",$+='
',$+='
',$+='
    ',$+='
  • Can Taste: '+(O?'Yes':'No')+"
  • ",$+='
  • Feedable: '+(_?'Yes':'No')+"
  • ",$+='
  • Contaminates: '+(P?'Yes':'No')+"
  • ",$+='
  • Contamination Flavor: '+D+"
  • ",$+='
  • Contamination Color: '+z+"
  • ",$+='
  • Nutritional Gain: '+U+"%
  • ",$+='
  • Required Examine Size: '+W*100+"%
  • ",$+='
  • Display Absorbed Examines: '+(K?'True':'False')+"
  • ",$+='
  • Save Digest Mode: '+(H?'True':'False')+"
  • ",$+='
  • Idle Emotes: '+(Y?'Active':'Inactive')+"
  • ",$+='
  • Idle Emote Delay: '+J+" seconds
  • ",$+='
  • Shrink/Grow Size: '+q*100+"%
  • ",$+='
  • Vore Spawn Blacklist: '+(oe?'Yes':'No')+"
  • ",$+='
  • Egg Type: '+ae+"
  • ",$+='
  • Selective Mode Preference: '+he+"
  • ",$+="
",$+="
",$+='
',$+='

',$+='

",$+='
',$+='
',$+='
    ',$+='
  • Fleshy Belly: '+($t?'Yes':'No')+"
  • ",$+='
  • Internal Loop: '+(Yt?'Yes':'No')+"
  • ",$+='
  • Use Fancy Sounds: '+(Xt?'Yes':'No')+"
  • ",$+='
  • Vore Sound: '+Qt+"
  • ",$+='
  • Release Sound: '+Lt+"
  • ",$+="
",$+="
",$+='
',$+='

',$+='

",$+='
",$+='
',$+="Vore Sprites",$+='
    ',$+='
  • Affect Vore Sprites: '+(_t?'Yes':'No')+"
  • ",$+='
  • Count Absorbed prey for vore sprites: '+(It?'Yes':'No')+"
  • ",$+='
  • Animation when prey resist: '+(Je?'Yes':'No')+"
  • ",$+='
  • Vore Sprite Size Factor: '+qt+"
  • ",$+='
  • Belly Sprite to affect: '+en+"
  • ",$+="
",$+="Belly Fullscreens Preview and Coloring",$+='
    ',$+='
  • Color: '+xt+"",$+="
",$+="Vore FX",$+='
    ',$+='
  • Disable Prey HUD: '+(on?'Yes':'No')+"
  • ",$+="
",$+="
",$+='
',$+='

',$+='

",$+='
',$+='
',$+="Belly Interactions ("+(Rt?'Enabled':'Disabled')+")",$+='
    ',$+='
  • Escape Chance: '+rn+"%
  • ",$+='
  • Escape Chance: '+at+"%
  • ",$+='
  • Escape Time: '+an/10+"s
  • ",$+='
  • Transfer Chance: '+cn+"%
  • ",$+='
  • Transfer Location: '+ln+"
  • ",$+='
  • Secondary Transfer Chance: '+un+"%
  • ",$+='
  • Secondary Transfer Location: '+dn+"
  • ",$+='
  • Absorb Chance: '+sn+"%
  • ",$+='
  • Digest Chance: '+wt+"%
  • ",$+="
",$+="
",$+="Auto-Transfer Options ("+(fn?'Enabled':'Disabled')+")",$+='
    ',$+='
  • Auto-Transfer Time: '+mn/10+"s
  • ",$+='
  • Auto-Transfer Chance: '+Tt+"%
  • ",$+='
  • Auto-Transfer Location: '+Dt+"
  • ",$+='
  • Auto-Transfer Chance: '+Ft+"%
  • ",$+='
  • Auto-Transfer Location: '+jt+"
  • ",$+='
  • Auto-Transfer Min Amount: '+pn+"
  • ",$+='
  • Auto-Transfer Max Amount: '+hn+"
  • ",$+='
  • Auto-Transfer Primary Chance: '+Tt+"%
  • ",$+='
  • Auto-Transfer Primary Location: '+Dt+"
  • ",$+='
  • Auto-Transfer Primary Whitelist (Mobs): '+l(it,!0)+"
  • ",$+='
  • Auto-Transfer Primary Whitelist (Items): '+l(vn,!0)+"
  • ",$+='
  • Auto-Transfer Primary Blacklist (Mobs): '+l(Vt,!1)+"
  • ",$+='
  • Auto-Transfer Primary Blacklist (Items): '+l(zt,!1)+"
  • ",$+='
  • Auto-Transfer Secondary Chance: '+Ft+"%
  • ",$+='
  • Auto-Transfer Secondary Location: '+jt+"
  • ",$+='
  • Auto-Transfer Secondary Whitelist (Mobs): '+l(Wt,!0)+"
  • ",$+='
  • Auto-Transfer Secondary Whitelist (Items): '+l(Ut,!0)+"
  • ",$+='
  • Auto-Transfer Secondary Blacklist (Mobs): '+l(Cn,!1)+"
  • ",$+='
  • Auto-Transfer Secondary Blacklist (Items): '+l(gn,!1)+"
  • ",$+="
",$+="
",$+='
',$+='

',$+='

",$+='
',$+='
',$+='
    ',$+='
  • Generate Liquids: '+(Nn?'On':'Off')+"
  • ",$+='
  • Liquid Type: '+At+"
  • ",$+='
  • Liquid Name: '+Ht+"
  • ",$+='
  • Transfer Verb: '+bn+"
  • ",$+='
  • Generation Time: '+Gt+"
  • ",$+='
  • Liquid Capacity: '+Kt+"
  • ",$+='
  • Slosh Sounds: '+(Et?'On':'Off')+"
  • ",$+='
  • Liquid Addons: '+s(Bn)+"
  • ",$+="
",$+="
",$+='
',$+='

',$+='

",$+='
',$+='
',$+='
',$+='
",$+='
',$+='
',$+='
',ft==null||ft.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',rt==null||rt.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',yt==null||yt.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',Ze==null||Ze.forEach(function(Me){$+=Me+"
"}),$+="
",$+='
',pt==null||pt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="
",$+="
",$+="
",$+="
",$+="
",$},i=function(){var f=new Date,C=String(f.getHours());C.length<2&&(C="0"+C);var b=String(f.getMinutes());b.length<2&&(b="0"+b);var g=String(f.getDate());g.length<2&&(g="0"+g);var y=String(f.getMonth()+1);y.length<2&&(y="0"+y);var B=String(f.getFullYear());return" "+B+"-"+y+"-"+g+" ("+C+" "+b+")"},c=function(f,C){var b=(0,a.useBackend)(f),g=b.act,y=b.data,B=y.db_version,L=y.db_repo,I=y.mob_name,w=y.bellies,T=i(),M=I+T+C,A;if(C===".html"){var R="";A=new Blob([''+w.length+" Exported Bellies (DB_VER: "+L+"-"+B+')'+R+'

Bellies of '+I+'

Generated on: '+T+'

'],{type:"text/html;charset=utf8"}),w.forEach(function(O,_){A=new Blob([A,u(O,_)],{type:"text/html;charset=utf8"})}),A=new Blob([A,"
",'