mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 04:06:00 +00:00
1 line
2.4 MiB
1 line
2.4 MiB
!function(){var e={92179:function(e,t,n){"use strict";t.__esModule=!0,t.popperGenerator=C,t.createPopper=void 0;var o=m(n(30505)),r=m(n(43545)),a=m(n(46213)),c=m(n(32440)),i=(m(n(61131)),m(n(45700))),l=m(n(68369)),d=(m(n(38574)),m(n(25435)),m(n(22709)),m(n(36284))),s=m(n(19574));t.detectOverflow=s["default"];var u=n(67458);n(56728);function m(e){return e&&e.__esModule?e:{"default":e}}var p={placement:"bottom",modifiers:[],strategy:"absolute"};function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function C(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,s=void 0===n?[]:n,m=t.defaultOptions,C=void 0===m?p:m;return function(e,t,n){void 0===n&&(n=C);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},p,C),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],N=!1,g={state:m,setOptions:function(n){V(),m.options=Object.assign({},C,m.options,n),m.scrollParents={reference:(0,u.isElement)(e)?(0,a["default"])(e):e.contextElement?(0,a["default"])(e.contextElement):[],popper:(0,a["default"])(t)};var o=(0,i["default"])((0,d["default"])([].concat(s,m.options.modifiers)));return m.orderedModifiers=o.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:m,name:t,instance:g,options:o}),c=function(){function e(){}return e}();f.push(a||c)}})),g.update()},forceUpdate:function(){if(!N){var e=m.elements,t=e.reference,n=e.popper;if(h(t,n)){m.rects={reference:(0,o["default"])(t,(0,c["default"])(n),"fixed"===m.options.strategy),popper:(0,r["default"])(n)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<m.orderedModifiers.length;a++)if(!0!==m.reset){var i=m.orderedModifiers[a],l=i.fn,d=i.options,s=void 0===d?{}:d,u=i.name;"function"==typeof l&&(m=l({state:m,options:s,name:u,instance:g})||m)}else m.reset=!1,a=-1}}},update:(0,l["default"])((function(){return new Promise((function(e){g.forceUpdate(),e(m)}))})),destroy:function(){V(),N=!0}};if(!h(e,t))return g;function V(){f.forEach((function(e){return e()})),f=[]}return g.setOptions(n).then((function(e){!N&&n.onFirstUpdate&&n.onFirstUpdate(e)})),g}}var f=C();t.createPopper=f},97607:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.isShadowRoot)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1};var o=n(67458)},94294:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),a=1,c=1;(0,o.isHTMLElement)(e)&&t&&(a=n.width/e.offsetWidth||1,c=n.height/e.offsetHeight||1);return{width:r(n.width/a),height:r(n.height/c),top:r(n.top/c),right:r(n.right/a),bottom:r(n.bottom/c),left:r(n.left/a),x:r(n.left/a),y:r(n.top/c)}};var o=n(67458),r=Math.round},48162:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t,n){var o="clippingParents"===t?function(e){var t=(0,c["default"])((0,m["default"])(e)),n=["absolute","fixed"].indexOf((0,d["default"])(e).position)>=0&&(0,s.isHTMLElement)(e)?(0,i["default"])(e):e;if(!(0,s.isElement)(n))return[];return t.filter((function(e){return(0,s.isElement)(e)&&(0,p["default"])(e,n)&&"body"!==(0,h["default"])(e)}))}(e):[].concat(t),r=[].concat(o,[n]),a=r[0],l=r.reduce((function(t,n){var o=g(e,n);return t.top=(0,f.max)(o.top,t.top),t.right=(0,f.min)(o.right,t.right),t.bottom=(0,f.min)(o.bottom,t.bottom),t.left=(0,f.max)(o.left,t.left),t}),g(e,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l};var o=n(56728),r=N(n(78331)),a=N(n(68692)),c=N(n(46213)),i=N(n(32440)),l=N(n(58386)),d=N(n(61131)),s=n(67458),u=N(n(94294)),m=N(n(31613)),p=N(n(97607)),h=N(n(99624)),C=N(n(20935)),f=n(62836);function N(e){return e&&e.__esModule?e:{"default":e}}function g(e,t){return t===o.viewport?(0,C["default"])((0,r["default"])(e)):(0,s.isHTMLElement)(t)?function(e){var t=(0,u["default"])(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,C["default"])((0,a["default"])((0,l["default"])(e)))}},30505:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t,n){void 0===n&&(n=!1);var s=(0,c.isHTMLElement)(t),u=(0,c.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),m=(0,l["default"])(t),p=(0,o["default"])(e,u),h={scrollLeft:0,scrollTop:0},C={x:0,y:0};(s||!s&&!n)&&(("body"!==(0,a["default"])(t)||(0,d["default"])(m))&&(h=(0,r["default"])(t)),(0,c.isHTMLElement)(t)?((C=(0,o["default"])(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=(0,i["default"])(m)));return{x:p.left+h.scrollLeft-C.x,y:p.top+h.scrollTop-C.y,width:p.width,height:p.height}};var o=s(n(94294)),r=s(n(71942)),a=s(n(99624)),c=n(67458),i=s(n(45471)),l=s(n(58386)),d=s(n(37229));function s(e){return e&&e.__esModule?e:{"default":e}}},61131:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(0,r["default"])(e).getComputedStyle(e)};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},58386:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(((0,o.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement};var o=n(67458)},68692:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t,n=(0,o["default"])(e),l=(0,c["default"])(e),d=null==(t=e.ownerDocument)?void 0:t.body,s=(0,i.max)(n.scrollWidth,n.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),u=(0,i.max)(n.scrollHeight,n.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),m=-l.scrollLeft+(0,a["default"])(e),p=-l.scrollTop;"rtl"===(0,r["default"])(d||n).direction&&(m+=(0,i.max)(n.clientWidth,d?d.clientWidth:0)-s);return{width:s,height:u,x:m,y:p}};var o=l(n(58386)),r=l(n(61131)),a=l(n(45471)),c=l(n(1255)),i=n(62836);function l(e){return e&&e.__esModule?e:{"default":e}}},50552:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},43545:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=e.offsetWidth,o=e.offsetHeight;Math.abs(t.width-n)<=1&&(n=t.width);Math.abs(t.height-o)<=1&&(o=t.height);return{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}};var o,r=(o=n(94294))&&o.__esModule?o:{"default":o}},99624:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e?(e.nodeName||"").toLowerCase():null}},71942:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return e!==(0,r["default"])(e)&&(0,a.isHTMLElement)(e)?(0,c["default"])(e):(0,o["default"])(e)};var o=i(n(1255)),r=i(n(31677)),a=n(67458),c=i(n(50552));function i(e){return e&&e.__esModule?e:{"default":e}}},32440:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,o["default"])(e),n=s(e);for(;n&&(0,i["default"])(n)&&"static"===(0,a["default"])(n).position;)n=s(n);if(n&&("html"===(0,r["default"])(n)||"body"===(0,r["default"])(n)&&"static"===(0,a["default"])(n).position))return t;return n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,c.isHTMLElement)(e)){if("fixed"===(0,a["default"])(e).position)return null}var n=(0,l["default"])(e);for(;(0,c.isHTMLElement)(n)&&["html","body"].indexOf((0,r["default"])(n))<0;){var o=(0,a["default"])(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t};var o=d(n(31677)),r=d(n(99624)),a=d(n(61131)),c=n(67458),i=d(n(79130)),l=d(n(31613));function d(e){return e&&e.__esModule?e:{"default":e}}function s(e){return(0,c.isHTMLElement)(e)&&"fixed"!==(0,a["default"])(e).position?e.offsetParent:null}},31613:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){if("html"===(0,o["default"])(e))return e;return e.assignedSlot||e.parentNode||((0,a.isShadowRoot)(e)?e.host:null)||(0,r["default"])(e)};var o=c(n(99624)),r=c(n(58386)),a=n(67458);function c(e){return e&&e.__esModule?e:{"default":e}}},66055:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function l(e){if(["html","body","#document"].indexOf((0,a["default"])(e))>=0)return e.ownerDocument.body;if((0,c.isHTMLElement)(e)&&(0,r["default"])(e))return e;return l((0,o["default"])(e))};var o=i(n(31613)),r=i(n(37229)),a=i(n(99624)),c=n(67458);function i(e){return e&&e.__esModule?e:{"default":e}}},78331:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,o["default"])(e),n=(0,r["default"])(e),c=t.visualViewport,i=n.clientWidth,l=n.clientHeight,d=0,s=0;c&&(i=c.width,l=c.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=c.offsetLeft,s=c.offsetTop));return{width:i,height:l,x:d+(0,a["default"])(e),y:s}};var o=c(n(31677)),r=c(n(58386)),a=c(n(45471));function c(e){return e&&e.__esModule?e:{"default":e}}},31677:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},1255:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},45471:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(0,o["default"])((0,r["default"])(e)).left+(0,a["default"])(e).scrollLeft};var o=c(n(94294)),r=c(n(58386)),a=c(n(1255));function c(e){return e&&e.__esModule?e:{"default":e}}},67458:function(e,t,n){"use strict";t.__esModule=!0,t.isElement=function(e){var t=(0,r["default"])(e).Element;return e instanceof t||e instanceof Element},t.isHTMLElement=function(e){var t=(0,r["default"])(e).HTMLElement;return e instanceof t||e instanceof HTMLElement},t.isShadowRoot=function(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r["default"])(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},37229:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)};var o,r=(o=n(61131))&&o.__esModule?o:{"default":o}},79130:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return["table","td","th"].indexOf((0,r["default"])(e))>=0};var o,r=(o=n(99624))&&o.__esModule?o:{"default":o}},46213:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function l(e,t){var n;void 0===t&&(t=[]);var i=(0,o["default"])(e),d=i===(null==(n=e.ownerDocument)?void 0:n.body),s=(0,a["default"])(i),u=d?[s].concat(s.visualViewport||[],(0,c["default"])(i)?i:[]):i,m=t.concat(u);return d?m:m.concat(l((0,r["default"])(u)))};var o=i(n(66055)),r=i(n(31613)),a=i(n(31677)),c=i(n(37229));function i(e){return e&&e.__esModule?e:{"default":e}}},56728:function(e,t){"use strict";t.__esModule=!0,t.modifierPhases=t.afterWrite=t.write=t.beforeWrite=t.afterMain=t.main=t.beforeMain=t.afterRead=t.read=t.beforeRead=t.placements=t.variationPlacements=t.reference=t.popper=t.viewport=t.clippingParents=t.end=t.start=t.basePlacements=t.auto=t.left=t.right=t.bottom=t.top=void 0;t.top="top";var n="bottom";t.bottom=n;var o="right";t.right=o;var r="left";t.left=r;var a="auto";t.auto=a;var c=["top",n,o,r];t.basePlacements=c;var i="start";t.start=i;var l="end";t.end=l;t.clippingParents="clippingParents";t.viewport="viewport";t.popper="popper";t.reference="reference";var d=c.reduce((function(e,t){return e.concat([t+"-"+i,t+"-"+l])}),[]);t.variationPlacements=d;var s=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+i,t+"-"+l])}),[]);t.placements=s;var u="beforeRead";t.beforeRead=u;var m="read";t.read=m;var p="afterRead";t.afterRead=p;var h="beforeMain";t.beforeMain=h;var C="main";t.main=C;var f="afterMain";t.afterMain=f;var N="beforeWrite";t.beforeWrite=N;var g="write";t.write=g;var V="afterWrite";t.afterWrite=V;var b=[u,m,p,h,C,f,N,g,V];t.modifierPhases=b},34739:function(e,t,n){"use strict";t.__esModule=!0;var o={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};t.createPopperLite=t.createPopper=t.createPopperBase=t.detectOverflow=t.popperGenerator=void 0;var r=n(56728);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))}));var a=n(18726);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))}));var c=n(92179);t.popperGenerator=c.popperGenerator,t.detectOverflow=c.detectOverflow,t.createPopperBase=c.createPopper;var i=n(48069);t.createPopper=i.createPopper;var l=n(39030);t.createPopperLite=l.createPopper},34559:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(99624))&&o.__esModule?o:{"default":o},a=n(67458);var c={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},c=t.elements[e];(0,a.isHTMLElement)(c)&&(0,r["default"])(c)&&(Object.assign(c.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?c.removeAttribute(e):c.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],c=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,a.isHTMLElement)(o)&&(0,r["default"])(o)&&(Object.assign(o.style,i),Object.keys(c).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};t["default"]=c},76340:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=m(n(22709)),r=m(n(43545)),a=m(n(97607)),c=m(n(32440)),i=m(n(16615)),l=m(n(52534)),d=m(n(32055)),s=m(n(76294)),u=n(56728);n(67458);function m(e){return e&&e.__esModule?e:{"default":e}}var p=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,d["default"])("number"!=typeof e?e:(0,s["default"])(e,u.basePlacements))};var h={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,d=e.options,s=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o["default"])(n.placement),C=(0,i["default"])(h),f=[u.left,u.right].indexOf(h)>=0?"height":"width";if(s&&m){var N=p(d.padding,n),g=(0,r["default"])(s),V="y"===C?u.top:u.left,b="y"===C?u.bottom:u.right,v=n.rects.reference[f]+n.rects.reference[C]-m[C]-n.rects.popper[f],k=m[C]-n.rects.reference[C],_=(0,c["default"])(s),y=_?"y"===C?_.clientHeight||0:_.clientWidth||0:0,w=v/2-k/2,x=N[V],S=y-g[f]-N[b],B=y/2-g[f]/2+w,I=(0,l["default"])(x,B,S),L=C;n.modifiersData[a]=((t={})[L]=I,t.centerOffset=I-B,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,a["default"])(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};t["default"]=h},11300:function(e,t,n){"use strict";t.__esModule=!0,t.mapToStyles=m,t["default"]=void 0;var o=n(56728),r=s(n(32440)),a=s(n(31677)),c=s(n(58386)),i=s(n(61131)),l=s(n(22709)),d=n(62836);function s(e){return e&&e.__esModule?e:{"default":e}}var u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m(e){var t,n=e.popper,l=e.popperRect,s=e.placement,m=e.offsets,p=e.position,h=e.gpuAcceleration,C=e.adaptive,f=e.roundOffsets,N=!0===f?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,d.round)((0,d.round)(t*o)/o)||0,y:(0,d.round)((0,d.round)(n*o)/o)||0}}(m):"function"==typeof f?f(m):m,g=N.x,V=void 0===g?0:g,b=N.y,v=void 0===b?0:b,k=m.hasOwnProperty("x"),_=m.hasOwnProperty("y"),y=o.left,w=o.top,x=window;if(C){var S=(0,r["default"])(n),B="clientHeight",I="clientWidth";S===(0,a["default"])(n)&&(S=(0,c["default"])(n),"static"!==(0,i["default"])(S).position&&(B="scrollHeight",I="scrollWidth")),S=S,s===o.top&&(w=o.bottom,v-=S[B]-l.height,v*=h?1:-1),s===o.left&&(y=o.right,V-=S[I]-l.width,V*=h?1:-1)}var L,T=Object.assign({position:p},C&&u);return h?Object.assign({},T,((L={})[w]=_?"0":"",L[y]=k?"0":"",L.transform=(x.devicePixelRatio||1)<2?"translate("+V+"px, "+v+"px)":"translate3d("+V+"px, "+v+"px, 0)",L)):Object.assign({},T,((t={})[w]=_?v+"px":"",t[y]=k?V+"px":"",t.transform="",t))}var p={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,c=void 0===a||a,i=n.roundOffsets,d=void 0===i||i,s={placement:(0,l["default"])(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,m(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,m(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};t["default"]=p},27020:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(31677))&&o.__esModule?o:{"default":o};var a={passive:!0};var c={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,c=o.scroll,i=void 0===c||c,l=o.resize,d=void 0===l||l,s=(0,r["default"])(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,a)})),d&&s.addEventListener("resize",n.update,a),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,a)})),d&&s.removeEventListener("resize",n.update,a)}},data:{}};t["default"]=c},45922:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=s(n(70045)),r=s(n(22709)),a=s(n(28916)),c=s(n(19574)),i=s(n(31565)),l=n(56728),d=s(n(45412));function s(e){return e&&e.__esModule?e:{"default":e}}var u={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var u=n.mainAxis,m=void 0===u||u,p=n.altAxis,h=void 0===p||p,C=n.fallbackPlacements,f=n.padding,N=n.boundary,g=n.rootBoundary,V=n.altBoundary,b=n.flipVariations,v=void 0===b||b,k=n.allowedAutoPlacements,_=t.options.placement,y=(0,r["default"])(_),w=C||(y===_||!v?[(0,o["default"])(_)]:function(e){if((0,r["default"])(e)===l.auto)return[];var t=(0,o["default"])(e);return[(0,a["default"])(e),t,(0,a["default"])(t)]}(_)),x=[_].concat(w).reduce((function(e,n){return e.concat((0,r["default"])(n)===l.auto?(0,i["default"])(t,{placement:n,boundary:N,rootBoundary:g,padding:f,flipVariations:v,allowedAutoPlacements:k}):n)}),[]),S=t.rects.reference,B=t.rects.popper,I=new Map,L=!0,T=x[0],A=0;A<x.length;A++){var D=x[A],M=(0,r["default"])(D),E=(0,d["default"])(D)===l.start,P=[l.top,l.bottom].indexOf(M)>=0,F=P?"width":"height",O=(0,c["default"])(t,{placement:D,boundary:N,rootBoundary:g,altBoundary:V,padding:f}),R=P?E?l.right:l.left:E?l.bottom:l.top;S[F]>B[F]&&(R=(0,o["default"])(R));var j=(0,o["default"])(R),W=[];if(m&&W.push(O[M]<=0),h&&W.push(O[R]<=0,O[j]<=0),W.every((function(e){return e}))){T=D,L=!1;break}I.set(D,W)}if(L)for(var z=function(e){var t=x.find((function(t){var n=I.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},H=v?3:1;H>0;H--){if("break"===z(H))break}t.placement!==T&&(t.modifiersData[s]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};t["default"]=u},82860:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=n(56728),a=(o=n(19574))&&o.__esModule?o:{"default":o};function c(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function i(e){return[r.top,r.right,r.bottom,r.left].some((function(t){return e[t]>=0}))}var l={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,d=(0,a["default"])(t,{elementContext:"reference"}),s=(0,a["default"])(t,{altBoundary:!0}),u=c(d,o),m=c(s,r,l),p=i(u),h=i(m);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:m,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}};t["default"]=l},18726:function(e,t,n){"use strict";t.__esModule=!0,t.preventOverflow=t.popperOffsets=t.offset=t.hide=t.flip=t.eventListeners=t.computeStyles=t.arrow=t.applyStyles=void 0;var o=m(n(34559));t.applyStyles=o["default"];var r=m(n(76340));t.arrow=r["default"];var a=m(n(11300));t.computeStyles=a["default"];var c=m(n(27020));t.eventListeners=c["default"];var i=m(n(45922));t.flip=i["default"];var l=m(n(82860));t.hide=l["default"];var d=m(n(33310));t.offset=d["default"];var s=m(n(74371));t.popperOffsets=s["default"];var u=m(n(21532));function m(e){return e&&e.__esModule?e:{"default":e}}t.preventOverflow=u["default"]},33310:function(e,t,n){"use strict";t.__esModule=!0,t.distanceAndSkiddingToXY=c,t["default"]=void 0;var o,r=(o=n(22709))&&o.__esModule?o:{"default":o},a=n(56728);function c(e,t,n){var o=(0,r["default"])(e),c=[a.left,a.top].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],d=i[1];return l=l||0,d=(d||0)*c,[a.left,a.right].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}var i={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=a.placements.reduce((function(e,n){return e[n]=c(n,t.rects,i),e}),{}),d=l[t.placement],s=d.x,u=d.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}};t["default"]=i},74371:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(17175))&&o.__esModule?o:{"default":o};var a={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r["default"])({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};t["default"]=a},21532:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(56728),r=h(n(22709)),a=h(n(16615)),c=h(n(82898)),i=h(n(52534)),l=h(n(43545)),d=h(n(32440)),s=h(n(19574)),u=h(n(45412)),m=h(n(41801)),p=n(62836);function h(e){return e&&e.__esModule?e:{"default":e}}var C={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,C=n.mainAxis,f=void 0===C||C,N=n.altAxis,g=void 0!==N&&N,V=n.boundary,b=n.rootBoundary,v=n.altBoundary,k=n.padding,_=n.tether,y=void 0===_||_,w=n.tetherOffset,x=void 0===w?0:w,S=(0,s["default"])(t,{boundary:V,rootBoundary:b,padding:k,altBoundary:v}),B=(0,r["default"])(t.placement),I=(0,u["default"])(t.placement),L=!I,T=(0,a["default"])(B),A=(0,c["default"])(T),D=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,P="function"==typeof x?x(Object.assign({},t.rects,{placement:t.placement})):x,F={x:0,y:0};if(D){if(f||g){var O="y"===T?o.top:o.left,R="y"===T?o.bottom:o.right,j="y"===T?"height":"width",W=D[T],z=D[T]+S[O],H=D[T]-S[R],U=y?-E[j]/2:0,G=I===o.start?M[j]:E[j],q=I===o.start?-E[j]:-M[j],Y=t.elements.arrow,K=y&&Y?(0,l["default"])(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,m["default"])(),Q=$[O],X=$[R],J=(0,i["default"])(0,M[j],K[j]),Z=L?M[j]/2-U-J-Q-P:G-J-Q-P,ee=L?-M[j]/2+U+J+X+P:q+J+X+P,te=t.elements.arrow&&(0,d["default"])(t.elements.arrow),ne=te?"y"===T?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,re=D[T]+Z-oe-ne,ae=D[T]+ee-oe;if(f){var ce=(0,i["default"])(y?(0,p.min)(z,re):z,W,y?(0,p.max)(H,ae):H);D[T]=ce,F[T]=ce-W}if(g){var ie="x"===T?o.top:o.left,le="x"===T?o.bottom:o.right,de=D[A],se=de+S[ie],ue=de-S[le],me=(0,i["default"])(y?(0,p.min)(se,re):se,de,y?(0,p.max)(ue,ae):ue);D[A]=me,F[A]=me-de}}t.modifiersData[h]=F}},requiresIfExists:["offset"]};t["default"]=C},39030:function(e,t,n){"use strict";t.__esModule=!0,t.defaultModifiers=t.createPopper=void 0;var o=n(92179);t.popperGenerator=o.popperGenerator,t.detectOverflow=o.detectOverflow;var r=l(n(27020)),a=l(n(74371)),c=l(n(11300)),i=l(n(34559));function l(e){return e&&e.__esModule?e:{"default":e}}var d=[r["default"],a["default"],c["default"],i["default"]];t.defaultModifiers=d;var s=(0,o.popperGenerator)({defaultModifiers:d});t.createPopper=s},48069:function(e,t,n){"use strict";t.__esModule=!0;var o={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};t.defaultModifiers=t.createPopperLite=t.createPopper=void 0;var r=n(92179);t.popperGenerator=r.popperGenerator,t.detectOverflow=r.detectOverflow;var a=f(n(27020)),c=f(n(74371)),i=f(n(11300)),l=f(n(34559)),d=f(n(33310)),s=f(n(45922)),u=f(n(21532)),m=f(n(76340)),p=f(n(82860)),h=n(39030);t.createPopperLite=h.createPopper;var C=n(18726);function f(e){return e&&e.__esModule?e:{"default":e}}Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===C[e]||(t[e]=C[e]))}));var N=[a["default"],c["default"],i["default"],l["default"],d["default"],s["default"],u["default"],m["default"],p["default"]];t.defaultModifiers=N;var g=(0,r.popperGenerator)({defaultModifiers:N});t.createPopperLite=t.createPopper=g},31565:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){void 0===t&&(t={});var n=t,i=n.placement,l=n.boundary,d=n.rootBoundary,s=n.padding,u=n.flipVariations,m=n.allowedAutoPlacements,p=void 0===m?r.placements:m,h=(0,o["default"])(i),C=h?u?r.variationPlacements:r.variationPlacements.filter((function(e){return(0,o["default"])(e)===h})):r.basePlacements,f=C.filter((function(e){return p.indexOf(e)>=0}));0===f.length&&(f=C);var N=f.reduce((function(t,n){return t[n]=(0,a["default"])(e,{placement:n,boundary:l,rootBoundary:d,padding:s})[(0,c["default"])(n)],t}),{});return Object.keys(N).sort((function(e,t){return N[e]-N[t]}))};var o=i(n(45412)),r=n(56728),a=i(n(19574)),c=i(n(22709));function i(e){return e&&e.__esModule?e:{"default":e}}},17175:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t,n=e.reference,i=e.element,l=e.placement,d=l?(0,o["default"])(l):null,s=l?(0,r["default"])(l):null,u=n.x+n.width/2-i.width/2,m=n.y+n.height/2-i.height/2;switch(d){case c.top:t={x:u,y:n.y-i.height};break;case c.bottom:t={x:u,y:n.y+n.height};break;case c.right:t={x:n.x+n.width,y:m};break;case c.left:t={x:n.x-i.width,y:m};break;default:t={x:n.x,y:n.y}}var p=d?(0,a["default"])(d):null;if(null!=p){var h="y"===p?"height":"width";switch(s){case c.start:t[p]=t[p]-(n[h]/2-i[h]/2);break;case c.end:t[p]=t[p]+(n[h]/2-i[h]/2)}}return t};var o=i(n(22709)),r=i(n(45412)),a=i(n(16615)),c=n(56728);function i(e){return e&&e.__esModule?e:{"default":e}}},68369:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=undefined,n(e())}))}))),t}}},19574:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){void 0===t&&(t={});var n=t,m=n.placement,p=void 0===m?e.placement:m,h=n.boundary,C=void 0===h?l.clippingParents:h,f=n.rootBoundary,N=void 0===f?l.viewport:f,g=n.elementContext,V=void 0===g?l.popper:g,b=n.altBoundary,v=void 0!==b&&b,k=n.padding,_=void 0===k?0:k,y=(0,s["default"])("number"!=typeof _?_:(0,u["default"])(_,l.basePlacements)),w=V===l.popper?l.reference:l.popper,x=e.elements.reference,S=e.rects.popper,B=e.elements[v?w:V],I=(0,r["default"])((0,d.isElement)(B)?B:B.contextElement||(0,a["default"])(e.elements.popper),C,N),L=(0,o["default"])(x),T=(0,c["default"])({reference:L,element:S,strategy:"absolute",placement:p}),A=(0,i["default"])(Object.assign({},S,T)),D=V===l.popper?A:L,M={top:I.top-D.top+y.top,bottom:D.bottom-I.bottom+y.bottom,left:I.left-D.left+y.left,right:D.right-I.right+y.right},E=e.modifiersData.offset;if(V===l.popper&&E){var P=E[p];Object.keys(M).forEach((function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,n=[l.top,l.bottom].indexOf(e)>=0?"y":"x";M[e]+=P[n]*t}))}return M};var o=m(n(94294)),r=m(n(48162)),a=m(n(58386)),c=m(n(17175)),i=m(n(20935)),l=n(56728),d=n(67458),s=m(n(32055)),u=m(n(76294));function m(e){return e&&e.__esModule?e:{"default":e}}},76294:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}},41434:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}},82898:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return"x"===e?"y":"x"}},22709:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return e.split("-")[0]};n(56728)},41801:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(){return{top:0,right:0,bottom:0,left:0}}},16615:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},70045:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))};var n={left:"right",right:"left",bottom:"top",top:"bottom"}},28916:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.replace(/start|end/g,(function(e){return n[e]}))};var n={start:"end",end:"start"}},45412:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.split("-")[1]}},62836:function(e,t){"use strict";t.__esModule=!0,t.round=t.min=t.max=void 0;var n=Math.max;t.max=n;var o=Math.min;t.min=o;var r=Math.round;t.round=r},36284:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}},32055:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return Object.assign({},(0,r["default"])(),e)};var o,r=(o=n(41801))&&o.__esModule?o:{"default":o}},45700:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=function(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}(e);return o.modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])};var o=n(56728)},20935:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},25435:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=new Set;return e.filter((function(e){var o=t(e);if(!n.has(o))return n.add(o),!0}))}},38574:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":t.name;break;case"enabled":t.enabled;case"phase":r.modifierPhases.indexOf(t.phase);break;case"fn":t.fn;break;case"effect":t.effect;break;case"requires":Array.isArray(t.requires);break;case"requiresIfExists":Array.isArray(t.requiresIfExists)}t.requires&&t.requires.forEach((function(t){e.find((function(e){return e.name===t}))}))}))}))};(o=n(41434))&&o.__esModule;var o,r=n(56728)},52534:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t,n){return(0,o.max)(e,(0,o.min)(t,n))};var o=n(62836)},83923:function(e){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},1372:function(e,t,n){"use strict";var o=n(35611);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},36910:function(e,t,n){"use strict";var o=n(17657),r=n(83681),a=n(74217),c=o("unscopables"),i=Array.prototype;i[c]==undefined&&a.f(i,c,{configurable:!0,value:r(null)}),e.exports=function(e){i[c][e]=!0}},69953:function(e,t,n){"use strict";var o=n(37015).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},50997:function(e){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},63518:function(e,t,n){"use strict";var o=n(35611);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},32977:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},19216:function(e,t,n){"use strict";var o,r,a,c=n(32977),i=n(75592),l=n(84253),d=n(35611),s=n(28919),u=n(47953),m=n(52188),p=n(11807),h=n(74217).f,C=n(6863),f=n(18444),N=n(17657),g=n(41080),V=l.Int8Array,b=V&&V.prototype,v=l.Uint8ClampedArray,k=v&&v.prototype,_=V&&C(V),y=b&&C(b),w=Object.prototype,x=w.isPrototypeOf,S=N("toStringTag"),B=g("TYPED_ARRAY_TAG"),I=g("TYPED_ARRAY_CONSTRUCTOR"),L=c&&!!f&&"Opera"!==u(l.opera),T=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},M=function(e){if(!d(e))return!1;var t=u(e);return"DataView"===t||s(A,t)||s(D,t)},E=function(e){if(!d(e))return!1;var t=u(e);return s(A,t)||s(D,t)};for(o in A)(a=(r=l[o])&&r.prototype)?m(a,I,r):L=!1;for(o in D)(a=(r=l[o])&&r.prototype)&&m(a,I,r);if((!L||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},L))for(o in A)l[o]&&f(l[o],_);if((!L||!y||y===w)&&(y=_.prototype,L))for(o in A)l[o]&&f(l[o].prototype,y);if(L&&C(k)!==y&&f(k,y),i&&!s(y,S))for(o in T=!0,h(y,S,{get:function(){return d(this)?this[B]:undefined}}),A)l[o]&&m(l[o],B,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_CONSTRUCTOR:I,TYPED_ARRAY_TAG:T&&B,aTypedArray:function(e){if(E(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f&&!x.call(_,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(i){if(n)for(var o in A){var r=l[o];if(r&&s(r.prototype,e))try{delete r.prototype[e]}catch(a){}}y[e]&&!n||p(y,e,n?t:L&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(i){if(f){if(n)for(o in A)if((r=l[o])&&s(r,e))try{delete r[e]}catch(a){}if(_[e]&&!n)return;try{return p(_,e,n?t:L&&_[e]||t)}catch(a){}}for(o in A)!(r=l[o])||r[e]&&!n||p(r,e,t)}},isView:M,isTypedArray:E,TypedArray:_,TypedArrayPrototype:y}},80246:function(e,t,n){"use strict";var o=n(84253),r=n(75592),a=n(32977),c=n(52188),i=n(3993),l=n(69691),d=n(50997),s=n(3997),u=n(39570),m=n(77559),p=n(16567),h=n(6863),C=n(18444),f=n(78870).f,N=n(74217).f,g=n(22051),V=n(29108),b=n(79947),v=b.get,k=b.set,_="ArrayBuffer",y="DataView",w="Wrong index",x=o.ArrayBuffer,S=x,B=o.DataView,I=B&&B.prototype,L=Object.prototype,T=o.RangeError,A=p.pack,D=p.unpack,M=function(e){return[255&e]},E=function(e){return[255&e,e>>8&255]},P=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},O=function(e){return A(e,23,4)},R=function(e){return A(e,52,8)},j=function(e,t){N(e.prototype,t,{get:function(){return v(this)[t]}})},W=function(e,t,n,o){var r=m(n),a=v(e);if(r+t>a.byteLength)throw T(w);var c=v(a.buffer).bytes,i=r+a.byteOffset,l=c.slice(i,i+t);return o?l:l.reverse()},z=function(e,t,n,o,r,a){var c=m(n),i=v(e);if(c+t>i.byteLength)throw T(w);for(var l=v(i.buffer).bytes,d=c+i.byteOffset,s=o(+r),u=0;u<t;u++)l[d+u]=s[a?u:t-u-1]};if(a){if(!l((function(){x(1)}))||!l((function(){new x(-1)}))||l((function(){return new x,new x(1.5),new x(NaN),x.name!=_}))){for(var H,U=(S=function(e){return d(this,S),new x(m(e))}).prototype=x.prototype,G=f(x),q=0;G.length>q;)(H=G[q++])in S||c(S,H,x[H]);U.constructor=S}C&&h(I)!==L&&C(I,L);var Y=new B(new S(2)),K=I.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||i(I,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else S=function(e){d(this,S,_);var t=m(e);k(this,{bytes:g.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},B=function(e,t,n){d(this,B,y),d(e,S,y);var o=v(e).byteLength,a=s(t);if(a<0||a>o)throw T("Wrong offset");if(a+(n=n===undefined?o-a:u(n))>o)throw T("Wrong length");k(this,{buffer:e,byteLength:n,byteOffset:a}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},r&&(j(S,"byteLength"),j(B,"buffer"),j(B,"byteLength"),j(B,"byteOffset")),i(B.prototype,{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return F(W(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return F(W(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return D(W(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return D(W(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){z(this,1,e,M,t)},setUint8:function(e,t){z(this,1,e,M,t)},setInt16:function(e,t){z(this,2,e,E,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){z(this,2,e,E,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){z(this,4,e,P,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){z(this,4,e,P,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){z(this,4,e,O,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){z(this,8,e,R,t,arguments.length>2?arguments[2]:undefined)}});V(S,_),V(B,y),e.exports={ArrayBuffer:S,DataView:B}},59571:function(e,t,n){"use strict";var o=n(12104),r=n(55205),a=n(39570),c=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),i=a(n.length),l=r(e,i),d=r(t,i),s=arguments.length>2?arguments[2]:undefined,u=c((s===undefined?i:r(s,i))-d,i-l),m=1;for(d<l&&l<d+u&&(m=-1,d+=u-1,l+=u-1);u-- >0;)d in n?n[l]=n[d]:delete n[l],l+=m,d+=m;return n}},22051:function(e,t,n){"use strict";var o=n(12104),r=n(55205),a=n(39570);e.exports=function(e){for(var t=o(this),n=a(t.length),c=arguments.length,i=r(c>1?arguments[1]:undefined,n),l=c>2?arguments[2]:undefined,d=l===undefined?n:r(l,n);d>i;)t[i++]=e;return t}},90369:function(e,t,n){"use strict";var o=n(69033).forEach,r=n(37902)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},11955:function(e){"use strict";e.exports=function(e,t){for(var n=0,o=t.length,r=new e(o);o>n;)r[n]=t[n++];return r}},28213:function(e,t,n){"use strict";var o=n(74271),r=n(12104),a=n(32648),c=n(14195),i=n(39570),l=n(39241),d=n(3170);e.exports=function(e){var t,n,s,u,m,p,h=r(e),C="function"==typeof this?this:Array,f=arguments.length,N=f>1?arguments[1]:undefined,g=N!==undefined,V=d(h),b=0;if(g&&(N=o(N,f>2?arguments[2]:undefined,2)),V==undefined||C==Array&&c(V))for(n=new C(t=i(h.length));t>b;b++)p=g?N(h[b],b):h[b],l(n,b,p);else for(m=(u=V.call(h)).next,n=new C;!(s=m.call(u)).done;b++)p=g?a(u,N,[s.value,b],!0):s.value,l(n,b,p);return n.length=b,n}},25945:function(e,t,n){"use strict";var o=n(26553),r=n(39570),a=n(55205),c=function(e){return function(t,n,c){var i,l=o(t),d=r(l.length),s=a(c,d);if(e&&n!=n){for(;d>s;)if((i=l[s++])!=i)return!0}else for(;d>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},69033:function(e,t,n){"use strict";var o=n(74271),r=n(50990),a=n(12104),c=n(39570),i=n(77454),l=[].push,d=function(e){var t=1==e,n=2==e,d=3==e,s=4==e,u=6==e,m=7==e,p=5==e||u;return function(h,C,f,N){for(var g,V,b=a(h),v=r(b),k=o(C,f,3),_=c(v.length),y=0,w=N||i,x=t?w(h,_):n||m?w(h,0):undefined;_>y;y++)if((p||y in v)&&(V=k(g=v[y],y,b),e))if(t)x[y]=V;else if(V)switch(e){case 3:return!0;case 5:return g;case 6:return y;case 2:l.call(x,g)}else switch(e){case 4:return!1;case 7:l.call(x,g)}return u?-1:d||s?s:x}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},41183:function(e,t,n){"use strict";var o=n(26553),r=n(3997),a=n(39570),c=n(37902),i=Math.min,l=[].lastIndexOf,d=!!l&&1/[1].lastIndexOf(1,-0)<0,s=c("lastIndexOf"),u=d||!s;e.exports=u?function(e){if(d)return l.apply(this,arguments)||0;var t=o(this),n=a(t.length),c=n-1;for(arguments.length>1&&(c=i(c,r(arguments[1]))),c<0&&(c=n+c);c>=0;c--)if(c in t&&t[c]===e)return c||0;return-1}:l},93537:function(e,t,n){"use strict";var o=n(69691),r=n(17657),a=n(12338),c=r("species");e.exports=function(e){return a>=51||!o((function(){var t=[];return(t.constructor={})[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},37902:function(e,t,n){"use strict";var o=n(69691);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},28249:function(e,t,n){"use strict";var o=n(83923),r=n(12104),a=n(50990),c=n(39570),i=function(e){return function(t,n,i,l){o(n);var d=r(t),s=a(d),u=c(d.length),m=e?u-1:0,p=e?-1:1;if(i<2)for(;;){if(m in s){l=s[m],m+=p;break}if(m+=p,e?m<0:u<=m)throw TypeError("Reduce of empty array with no initial value")}for(;e?m>=0:u>m;m+=p)m in s&&(l=n(l,s[m],m,d));return l}};e.exports={left:i(!1),right:i(!0)}},58737:function(e){"use strict";var t=Math.floor,n=function(e,t){for(var n,o,r=e.length,a=1;a<r;){for(o=a,n=e[a];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==a++&&(e[o]=n)}return e},o=function(e,t,n){for(var o=e.length,r=t.length,a=0,c=0,i=[];a<o||c<r;)a<o&&c<r?i.push(n(e[a],t[c])<=0?e[a++]:t[c++]):i.push(a<o?e[a++]:t[c++]);return i};e.exports=function r(e,a){var c=e.length,i=t(c/2);return c<8?n(e,a):o(r(e.slice(0,i),a),r(e.slice(i),a),a)}},73612:function(e,t,n){"use strict";var o=n(35611),r=n(89999),a=n(17657)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)?o(t)&&null===(t=t[a])&&(t=undefined):t=undefined),t===undefined?Array:t}},77454:function(e,t,n){"use strict";var o=n(73612);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},32648:function(e,t,n){"use strict";var o=n(63518),r=n(61781);e.exports=function(e,t,n,a){try{return a?t(o(n)[0],n[1]):t(n)}catch(c){throw r(e),c}}},68762:function(e,t,n){"use strict";var o=n(17657)("iterator"),r=!1;try{var a=0,c={next:function(){return{done:!!a++}},"return":function(){r=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(i){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a={};a[o]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(i){}return n}},77e3:function(e){"use strict";var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},47953:function(e,t,n){"use strict";var o=n(64910),r=n(77e3),a=n(17657)("toStringTag"),c="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),a))?n:c?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},74568:function(e,t,n){"use strict";var o=n(74217).f,r=n(83681),a=n(3993),c=n(74271),i=n(50997),l=n(56342),d=n(71179),s=n(64157),u=n(75592),m=n(40421).fastKey,p=n(79947),h=p.set,C=p.getterFor;e.exports={getConstructor:function(e,t,n,d){var s=e((function(e,o){i(e,s,t),h(e,{type:t,index:r(null),first:undefined,last:undefined,size:0}),u||(e.size=0),o!=undefined&&l(o,e[d],{that:e,AS_ENTRIES:n})})),p=C(t),f=function(e,t,n){var o,r,a=p(e),c=N(e,t);return c?c.value=n:(a.last=c={index:r=m(t,!0),key:t,value:n,previous:o=a.last,next:undefined,removed:!1},a.first||(a.first=c),o&&(o.next=c),u?a.size++:e.size++,"F"!==r&&(a.index[r]=c)),e},N=function(e,t){var n,o=p(e),r=m(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key==t)return n};return a(s.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=undefined),delete t[n.index],n=n.next;e.first=e.last=undefined,u?e.size=0:this.size=0},"delete":function(e){var t=this,n=p(t),o=N(t,e);if(o){var r=o.next,a=o.previous;delete n.index[o.index],o.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==o&&(n.first=r),n.last==o&&(n.last=a),u?n.size--:t.size--}return!!o},forEach:function(e){for(var t,n=p(this),o=c(e,arguments.length>1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!N(this,e)}}),a(s.prototype,n?{get:function(e){var t=N(this,e);return t&&t.value},set:function(e,t){return f(this,0===e?0:e,t)}}:{add:function(e){return f(this,e=0===e?0:e,e)}}),u&&o(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var o=t+" Iterator",r=C(t),a=C(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},57396:function(e,t,n){"use strict";var o=n(3993),r=n(40421).getWeakData,a=n(63518),c=n(35611),i=n(50997),l=n(56342),d=n(69033),s=n(28919),u=n(79947),m=u.set,p=u.getterFor,h=d.find,C=d.findIndex,f=0,N=function(e){return e.frozen||(e.frozen=new g)},g=function(){this.entries=[]},V=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=V(this,e);if(t)return t[1]},has:function(e){return!!V(this,e)},set:function(e,t){var n=V(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=C(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,o){i(e,u,t),m(e,{type:t,id:f++,frozen:undefined}),o!=undefined&&l(o,e[d],{that:e,AS_ENTRIES:n})})),h=p(t),C=function(e,t,n){var o=h(e),c=r(a(t),!0);return!0===c?N(o).set(t,n):c[o.id]=n,e};return o(u.prototype,{"delete":function(e){var t=h(this);if(!c(e))return!1;var n=r(e);return!0===n?N(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!c(e))return!1;var n=r(e);return!0===n?N(t).has(e):n&&s(n,t.id)}}),o(u.prototype,n?{get:function(e){var t=h(this);if(c(e)){var n=r(e);return!0===n?N(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return C(this,e,t)}}:{add:function(e){return C(this,e,!0)}}),u}}},42006:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(41441),c=n(11807),i=n(40421),l=n(56342),d=n(50997),s=n(35611),u=n(69691),m=n(68762),p=n(29108),h=n(22285);e.exports=function(e,t,n){var C=-1!==e.indexOf("Map"),f=-1!==e.indexOf("Weak"),N=C?"set":"add",g=r[e],V=g&&g.prototype,b=g,v={},k=function(e){var t=V[e];c(V,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(f&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return f&&!s(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(f&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof g||!(f||V.forEach&&!u((function(){(new g).entries().next()})))))b=n.getConstructor(t,e,C,N),i.enable();else if(a(e,!0)){var _=new b,y=_[N](f?{}:-0,1)!=_,w=u((function(){_.has(1)})),x=m((function(e){new g(e)})),S=!f&&u((function(){for(var e=new g,t=5;t--;)e[N](t,t);return!e.has(-0)}));x||((b=t((function(t,n){d(t,b,e);var o=h(new g,t,b);return n!=undefined&&l(n,o[N],{that:o,AS_ENTRIES:C}),o}))).prototype=V,V.constructor=b),(w||S)&&(k("delete"),k("has"),C&&k("get")),(S||y)&&k(N),f&&V.clear&&delete V.clear}return v[e]=b,o({global:!0,forced:b!=g},v),p(b,e),f||n.setStrong(b,e,C),b}},49957:function(e,t,n){"use strict";var o=n(28919),r=n(28482),a=n(22245),c=n(74217);e.exports=function(e,t){for(var n=r(t),i=c.f,l=a.f,d=0;d<n.length;d++){var s=n[d];o(e,s)||i(e,s,l(t,s))}}},93937:function(e,t,n){"use strict";var o=n(17657)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},28954:function(e,t,n){"use strict";var o=n(69691);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},34141:function(e,t,n){"use strict";var o=n(44184),r=n(92082),a=/"/g;e.exports=function(e,t,n,c){var i=r(o(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+r(c).replace(a,""")+'"'),l+">"+i+"</"+t+">"}},38415:function(e,t,n){"use strict";var o=n(39881).IteratorPrototype,r=n(83681),a=n(39160),c=n(29108),i=n(82723),l=function(){return this};e.exports=function(e,t,n){var d=t+" Iterator";return e.prototype=r(o,{next:a(1,n)}),c(e,d,!1,!0),i[d]=l,e}},52188:function(e,t,n){"use strict";var o=n(75592),r=n(74217),a=n(39160);e.exports=o?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},39160:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},39241:function(e,t,n){"use strict";var o=n(14613),r=n(74217),a=n(39160);e.exports=function(e,t,n){var c=o(t);c in e?r.f(e,c,a(0,n)):e[c]=n}},79873:function(e,t,n){"use strict";var o=n(69691),r=n(47497).start,a=Math.abs,c=Date.prototype,i=c.getTime,l=c.toISOString;e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!o((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),o=t<0?"-":t>9999?"+":"";return o+r(a(t),o?6:4,0)+"-"+r(e.getUTCMonth()+1,2,0)+"-"+r(e.getUTCDate(),2,0)+"T"+r(e.getUTCHours(),2,0)+":"+r(e.getUTCMinutes(),2,0)+":"+r(e.getUTCSeconds(),2,0)+"."+r(n,3,0)+"Z"}:l},57763:function(e,t,n){"use strict";var o=n(63518),r=n(28734);e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return r(this,e)}},71179:function(e,t,n){"use strict";var o=n(56174),r=n(38415),a=n(6863),c=n(18444),i=n(29108),l=n(52188),d=n(11807),s=n(17657),u=n(1986),m=n(82723),p=n(39881),h=p.IteratorPrototype,C=p.BUGGY_SAFARI_ITERATORS,f=s("iterator"),N="keys",g="values",V="entries",b=function(){return this};e.exports=function(e,t,n,s,p,v,k){r(n,t,s);var _,y,w,x=function(e){if(e===p&&T)return T;if(!C&&e in I)return I[e];switch(e){case N:case g:case V:return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",B=!1,I=e.prototype,L=I[f]||I["@@iterator"]||p&&I[p],T=!C&&L||x(p),A="Array"==t&&I.entries||L;if(A&&(_=a(A.call(new e)),h!==Object.prototype&&_.next&&(u||a(_)===h||(c?c(_,h):"function"!=typeof _[f]&&l(_,f,b)),i(_,S,!0,!0),u&&(m[S]=b))),p==g&&L&&L.name!==g&&(B=!0,T=function(){return L.call(this)}),u&&!k||I[f]===T||l(I,f,T),m[t]=T,p)if(y={values:x(g),keys:v?T:x(N),entries:x(V)},k)for(w in y)(C||B||!(w in I))&&d(I,w,y[w]);else o({target:t,proto:!0,forced:C||B},y);return y}},55282:function(e,t,n){"use strict";var o=n(65781),r=n(28919),a=n(3444),c=n(74217).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||c(t,e,{value:a.f(e)})}},75592:function(e,t,n){"use strict";var o=n(69691);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},21477:function(e,t,n){"use strict";var o=n(84253),r=n(35611),a=o.document,c=r(a)&&r(a.createElement);e.exports=function(e){return c?a.createElement(e):{}}},20967:function(e,t,n){"use strict";var o=n(72319).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},46392:function(e){"use strict";e.exports="object"==typeof window},85749:function(e,t,n){"use strict";var o=n(72319);e.exports=/MSIE|Trident/.test(o)},20037:function(e,t,n){"use strict";var o=n(72319),r=n(84253);e.exports=/iphone|ipod|ipad/i.test(o)&&r.Pebble!==undefined},24542:function(e,t,n){"use strict";var o=n(72319);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(o)},41488:function(e,t,n){"use strict";var o=n(77e3),r=n(84253);e.exports="process"==o(r.process)},47501:function(e,t,n){"use strict";var o=n(72319);e.exports=/web0s(?!.*chrome)/i.test(o)},72319:function(e,t,n){"use strict";var o=n(69808);e.exports=o("navigator","userAgent")||""},12338:function(e,t,n){"use strict";var o,r,a=n(84253),c=n(72319),i=a.process,l=a.Deno,d=i&&i.versions||l&&l.version,s=d&&d.v8;s?r=(o=s.split("."))[0]<4?1:o[0]+o[1]:c&&(!(o=c.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=c.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},12200:function(e,t,n){"use strict";var o=n(72319).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},23344:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},56174:function(e,t,n){"use strict";var o=n(84253),r=n(22245).f,a=n(52188),c=n(11807),i=n(30889),l=n(49957),d=n(41441);e.exports=function(e,t){var n,s,u,m,p,h=e.target,C=e.global,f=e.stat;if(n=C?o:f?o[h]||i(h,{}):(o[h]||{}).prototype)for(s in t){if(m=t[s],u=e.noTargetGet?(p=r(n,s))&&p.value:n[s],!d(C?s:h+(f?".":"#")+s,e.forced)&&u!==undefined){if(typeof m==typeof u)continue;l(m,u)}(e.sham||u&&u.sham)&&a(m,"sham",!0),c(n,s,m,e)}}},69691:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},68880:function(e,t,n){"use strict";n(12654);var o=n(11807),r=n(71841),a=n(69691),c=n(17657),i=n(52188),l=c("species"),d=RegExp.prototype;e.exports=function(e,t,n,s){var u=c(e),m=!a((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),p=m&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[u]=/./[u]),n.exec=function(){return t=!0,null},n[u](""),!t}));if(!m||!p||n){var h=/./[u],C=t(u,""[e],(function(e,t,n,o,a){var c=t.exec;return c===r||c===d.exec?m&&!a?{done:!0,value:h.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}));o(String.prototype,e,C[0]),o(d,u,C[1])}s&&i(d[u],"sham",!0)}},904:function(e,t,n){"use strict";var o=n(89999),r=n(39570),a=n(74271);e.exports=function c(e,t,n,i,l,d,s,u){for(var m,p=l,h=0,C=!!s&&a(s,u,3);h<i;){if(h in n){if(m=C?C(n[h],h,t):n[h],d>0&&o(m))p=c(e,t,m,r(m.length),p,d-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=m}p++}h++}return p}},7056:function(e,t,n){"use strict";var o=n(69691);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},74271:function(e,t,n){"use strict";var o=n(83923);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},68719:function(e,t,n){"use strict";var o=n(83923),r=n(35611),a=[].slice,c={},i=function(e,t,n){if(!(t in c)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";c[t]=Function("C,a","return new C("+o.join(",")+")")}return c[t](e,n)};e.exports=Function.bind||function(e){var t=o(this),n=a.call(arguments,1),c=function(){var o=n.concat(a.call(arguments));return this instanceof c?i(t,o.length,o):t.apply(e,o)};return r(t.prototype)&&(c.prototype=t.prototype),c}},69808:function(e,t,n){"use strict";var o=n(84253),r=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?r(o[e]):o[e]&&o[e][t]}},3170:function(e,t,n){"use strict";var o=n(47953),r=n(82723),a=n(17657)("iterator");e.exports=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||r[o(e)]}},55444:function(e,t,n){"use strict";var o=n(12104),r=Math.floor,a="".replace,c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,i=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,d,s){var u=n+e.length,m=l.length,p=i;return d!==undefined&&(d=o(d),p=c),a.call(s,p,(function(o,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(u);case"<":c=d[a.slice(1,-1)];break;default:var i=+a;if(0===i)return o;if(i>m){var s=r(i/10);return 0===s?o:s<=m?l[s-1]===undefined?a.charAt(1):l[s-1]+a.charAt(1):o}c=l[i-1]}return c===undefined?"":c}))}},84253:function(e,t,n){"use strict";var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},28919:function(e,t,n){"use strict";var o=n(12104),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(o(e),t)}},90311:function(e){"use strict";e.exports={}},21419:function(e,t,n){"use strict";var o=n(84253);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},2369:function(e,t,n){"use strict";var o=n(69808);e.exports=o("document","documentElement")},78251:function(e,t,n){"use strict";var o=n(75592),r=n(69691),a=n(21477);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},16567:function(e){"use strict";var t=Math.abs,n=Math.pow,o=Math.floor,r=Math.log,a=Math.LN2;e.exports={pack:function(e,c,i){var l,d,s,u=new Array(i),m=8*i-c-1,p=(1<<m)-1,h=p>>1,C=23===c?n(2,-24)-n(2,-77):0,f=e<0||0===e&&1/e<0?1:0,N=0;for((e=t(e))!=e||e===Infinity?(d=e!=e?1:0,l=p):(l=o(r(e)/a),e*(s=n(2,-l))<1&&(l--,s*=2),(e+=l+h>=1?C/s:C*n(2,1-h))*s>=2&&(l++,s/=2),l+h>=p?(d=0,l=p):l+h>=1?(d=(e*s-1)*n(2,c),l+=h):(d=e*n(2,h-1)*n(2,c),l=0));c>=8;u[N++]=255&d,d/=256,c-=8);for(l=l<<c|d,m+=c;m>0;u[N++]=255&l,l/=256,m-=8);return u[--N]|=128*f,u},unpack:function(e,t){var o,r=e.length,a=8*r-t-1,c=(1<<a)-1,i=c>>1,l=a-7,d=r-1,s=e[d--],u=127&s;for(s>>=7;l>0;u=256*u+e[d],d--,l-=8);for(o=u&(1<<-l)-1,u>>=-l,l+=t;l>0;o=256*o+e[d],d--,l-=8);if(0===u)u=1-i;else{if(u===c)return o?NaN:s?-Infinity:Infinity;o+=n(2,t),u-=i}return(s?-1:1)*o*n(2,u-t)}}},50990:function(e,t,n){"use strict";var o=n(69691),r=n(77e3),a="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},22285:function(e,t,n){"use strict";var o=n(35611),r=n(18444);e.exports=function(e,t,n){var a,c;return r&&"function"==typeof(a=t.constructor)&&a!==n&&o(c=a.prototype)&&c!==n.prototype&&r(e,c),e}},89853:function(e,t,n){"use strict";var o=n(55935),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},40421:function(e,t,n){"use strict";var o=n(56174),r=n(90311),a=n(35611),c=n(28919),i=n(74217).f,l=n(78870),d=n(59995),s=n(41080),u=n(7056),m=!1,p=s("meta"),h=0,C=Object.isExtensible||function(){return!0},f=function(e){i(e,p,{value:{objectID:"O"+h++,weakData:{}}})},N=e.exports={enable:function(){N.enable=function(){},m=!0;var e=l.f,t=[].splice,n={};n[p]=1,e(n).length&&(l.f=function(n){for(var o=e(n),r=0,a=o.length;r<a;r++)if(o[r]===p){t.call(o,r,1);break}return o},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!c(e,p)){if(!C(e))return"F";if(!t)return"E";f(e)}return e[p].objectID},getWeakData:function(e,t){if(!c(e,p)){if(!C(e))return!0;if(!t)return!1;f(e)}return e[p].weakData},onFreeze:function(e){return u&&m&&C(e)&&!c(e,p)&&f(e),e}};r[p]=!0},79947:function(e,t,n){"use strict";var o,r,a,c=n(82911),i=n(84253),l=n(35611),d=n(52188),s=n(28919),u=n(55935),m=n(85152),p=n(90311),h="Object already initialized",C=i.WeakMap;if(c||u.state){var f=u.state||(u.state=new C),N=f.get,g=f.has,V=f.set;o=function(e,t){if(g.call(f,e))throw new TypeError(h);return t.facade=e,V.call(f,e,t),t},r=function(e){return N.call(f,e)||{}},a=function(e){return g.call(f,e)}}else{var b=m("state");p[b]=!0,o=function(e,t){if(s(e,b))throw new TypeError(h);return t.facade=e,d(e,b,t),t},r=function(e){return s(e,b)?e[b]:{}},a=function(e){return s(e,b)}}e.exports={set:o,get:r,has:a,enforce:function(e){return a(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},14195:function(e,t,n){"use strict";var o=n(17657),r=n(82723),a=o("iterator"),c=Array.prototype;e.exports=function(e){return e!==undefined&&(r.Array===e||c[a]===e)}},89999:function(e,t,n){"use strict";var o=n(77e3);e.exports=Array.isArray||function(e){return"Array"==o(e)}},41441:function(e,t,n){"use strict";var o=n(69691),r=/#|\.prototype\./,a=function(e,t){var n=i[c(e)];return n==d||n!=l&&("function"==typeof t?o(t):!!t)},c=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=a.data={},l=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},93624:function(e,t,n){"use strict";var o=n(35611),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},35611:function(e){"use strict";e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1986:function(e){"use strict";e.exports=!1},86133:function(e,t,n){"use strict";var o=n(35611),r=n(77e3),a=n(17657)("match");e.exports=function(e){var t;return o(e)&&((t=e[a])!==undefined?!!t:"RegExp"==r(e))}},78253:function(e,t,n){"use strict";var o=n(69808),r=n(40647);e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return"function"==typeof t&&Object(e)instanceof t}},56342:function(e,t,n){"use strict";var o=n(63518),r=n(14195),a=n(39570),c=n(74271),i=n(3170),l=n(61781),d=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var s,u,m,p,h,C,f,N=n&&n.that,g=!(!n||!n.AS_ENTRIES),V=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),v=c(t,N,1+g+b),k=function(e){return s&&l(s),new d(!0,e)},_=function(e){return g?(o(e),b?v(e[0],e[1],k):v(e[0],e[1])):b?v(e,k):v(e)};if(V)s=e;else{if("function"!=typeof(u=i(e)))throw TypeError("Target is not iterable");if(r(u)){for(m=0,p=a(e.length);p>m;m++)if((h=_(e[m]))&&h instanceof d)return h;return new d(!1)}s=u.call(e)}for(C=s.next;!(f=C.call(s)).done;){try{h=_(f.value)}catch(y){throw l(s),y}if("object"==typeof h&&h&&h instanceof d)return h}return new d(!1)}},61781:function(e,t,n){"use strict";var o=n(63518);e.exports=function(e){var t=e["return"];if(t!==undefined)return o(t.call(e)).value}},39881:function(e,t,n){"use strict";var o,r,a,c=n(69691),i=n(6863),l=n(52188),d=n(28919),s=n(17657),u=n(1986),m=s("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(r=i(i(a)))!==Object.prototype&&(o=r):p=!0);var h=o==undefined||c((function(){var e={};return o[m].call(e)!==e}));h&&(o={}),u&&!h||d(o,m)||l(o,m,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},82723:function(e){"use strict";e.exports={}},19997:function(e){"use strict";var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},43334:function(e,t,n){"use strict";var o=n(24305),r=Math.abs,a=Math.pow,c=a(2,-52),i=a(2,-23),l=a(2,127)*(2-i),d=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=r(e),s=o(e);return a<d?s*(a/d/i+1/c-1/c)*d*i:(n=(t=(1+i/c)*a)-(t-a))>l||n!=n?s*Infinity:s*n}},83659:function(e){"use strict";var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},24305:function(e){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},80909:function(e,t,n){"use strict";var o,r,a,c,i,l,d,s,u=n(84253),m=n(22245).f,p=n(33453).set,h=n(24542),C=n(20037),f=n(47501),N=n(41488),g=u.MutationObserver||u.WebKitMutationObserver,V=u.document,b=u.process,v=u.Promise,k=m(u,"queueMicrotask"),_=k&&k.value;_||(o=function(){var e,t;for(N&&(e=b.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?c():a=undefined,n}}a=undefined,e&&e.enter()},h||N||f||!g||!V?!C&&v&&v.resolve?((d=v.resolve(undefined)).constructor=v,s=d.then,c=function(){s.call(d,o)}):c=N?function(){b.nextTick(o)}:function(){p.call(u,o)}:(i=!0,l=V.createTextNode(""),new g(o).observe(l,{characterData:!0}),c=function(){l.data=i=!i})),e.exports=_||function(e){var t={fn:e,next:undefined};a&&(a.next=t),r||(r=t,c()),a=t}},4302:function(e,t,n){"use strict";var o=n(84253);e.exports=o.Promise},54772:function(e,t,n){"use strict";var o=n(12338),r=n(69691);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},82911:function(e,t,n){"use strict";var o=n(84253),r=n(89853),a=o.WeakMap;e.exports="function"==typeof a&&/native code/.test(r(a))},82101:function(e,t,n){"use strict";var o=n(83923),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},18774:function(e,t,n){"use strict";var o=n(86133);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},64630:function(e,t,n){"use strict";var o=n(84253).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},78025:function(e,t,n){"use strict";var o=n(84253),r=n(92082),a=n(84703).trim,c=n(65181),i=o.parseFloat,l=1/i(c+"-0")!=-Infinity;e.exports=l?function(e){var t=a(r(e)),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},55092:function(e,t,n){"use strict";var o=n(84253),r=n(92082),a=n(84703).trim,c=n(65181),i=o.parseInt,l=/^[+-]?0[Xx]/,d=8!==i(c+"08")||22!==i(c+"0x16");e.exports=d?function(e,t){var n=a(r(e));return i(n,t>>>0||(l.test(n)?16:10))}:i},64905:function(e,t,n){"use strict";var o=n(75592),r=n(69691),a=n(84547),c=n(21061),i=n(77659),l=n(12104),d=n(50990),s=Object.assign,u=Object.defineProperty;e.exports=!s||r((function(){if(o&&1!==s({b:1},s(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||a(s({},t)).join("")!=r}))?function(e,t){for(var n=l(e),r=arguments.length,s=1,u=c.f,m=i.f;r>s;)for(var p,h=d(arguments[s++]),C=u?a(h).concat(u(h)):a(h),f=C.length,N=0;f>N;)p=C[N++],o&&!m.call(h,p)||(n[p]=h[p]);return n}:s},83681:function(e,t,n){"use strict";var o,r=n(63518),a=n(91543),c=n(23344),i=n(90311),l=n(2369),d=n(21477),s=n(85152),u=s("IE_PROTO"),m=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},C=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}C=document.domain&&o?h(o):function(){var e,t=d("iframe");if(t.style)return t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F}()||h(o);for(var e=c.length;e--;)delete C.prototype[c[e]];return C()};i[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m.prototype=r(e),n=new m,m.prototype=null,n[u]=e):n=C(),t===undefined?n:a(n,t)}},91543:function(e,t,n){"use strict";var o=n(75592),r=n(74217),a=n(63518),c=n(84547);e.exports=o?Object.defineProperties:function(e,t){a(e);for(var n,o=c(t),i=o.length,l=0;i>l;)r.f(e,n=o[l++],t[n]);return e}},74217:function(e,t,n){"use strict";var o=n(75592),r=n(78251),a=n(63518),c=n(14613),i=Object.defineProperty;t.f=o?i:function(e,t,n){if(a(e),t=c(t),a(n),r)try{return i(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},22245:function(e,t,n){"use strict";var o=n(75592),r=n(77659),a=n(39160),c=n(26553),i=n(14613),l=n(28919),d=n(78251),s=Object.getOwnPropertyDescriptor;t.f=o?s:function(e,t){if(e=c(e),t=i(t),d)try{return s(e,t)}catch(n){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},59995:function(e,t,n){"use strict";var o=n(26553),r=n(78870).f,a={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"[object Window]"==a.call(e)?function(e){try{return r(e)}catch(t){return c.slice()}}(e):r(o(e))}},78870:function(e,t,n){"use strict";var o=n(3613),r=n(23344).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},21061:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},6863:function(e,t,n){"use strict";var o=n(28919),r=n(12104),a=n(85152),c=n(28954),i=a("IE_PROTO"),l=Object.prototype;e.exports=c?Object.getPrototypeOf:function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},3613:function(e,t,n){"use strict";var o=n(28919),r=n(26553),a=n(25945).indexOf,c=n(90311);e.exports=function(e,t){var n,i=r(e),l=0,d=[];for(n in i)!o(c,n)&&o(i,n)&&d.push(n);for(;t.length>l;)o(i,n=t[l++])&&(~a(d,n)||d.push(n));return d}},84547:function(e,t,n){"use strict";var o=n(3613),r=n(23344);e.exports=Object.keys||function(e){return o(e,r)}},77659:function(e,t){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},47339:function(e,t,n){"use strict";var o=n(1986),r=n(84253),a=n(69691),c=n(12200);e.exports=o||!a((function(){if(!(c&&c<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}}))},18444:function(e,t,n){"use strict";var o=n(63518),r=n(1372);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return o(n),r(a),t?e.call(n,a):n.__proto__=a,n}}():undefined)},3e4:function(e,t,n){"use strict";var o=n(75592),r=n(84547),a=n(26553),c=n(77659).f,i=function(e){return function(t){for(var n,i=a(t),l=r(i),d=l.length,s=0,u=[];d>s;)n=l[s++],o&&!c.call(i,n)||u.push(e?[n,i[n]]:i[n]);return u}};e.exports={entries:i(!0),values:i(!1)}},13966:function(e,t,n){"use strict";var o=n(64910),r=n(47953);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},28734:function(e,t,n){"use strict";var o=n(35611);e.exports=function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},28482:function(e,t,n){"use strict";var o=n(69808),r=n(78870),a=n(21061),c=n(63518);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(c(e)),n=a.f;return n?t.concat(n(e)):t}},65781:function(e,t,n){"use strict";var o=n(84253);e.exports=o},47673:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},48141:function(e,t,n){"use strict";var o=n(63518),r=n(35611),a=n(82101);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},3993:function(e,t,n){"use strict";var o=n(11807);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},11807:function(e,t,n){"use strict";var o=n(84253),r=n(52188),a=n(28919),c=n(30889),i=n(89853),l=n(79947),d=l.get,s=l.enforce,u=String(String).split("String");(e.exports=function(e,t,n,i){var l,d=!!i&&!!i.unsafe,m=!!i&&!!i.enumerable,p=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||r(n,"name",t),(l=s(n)).source||(l.source=u.join("string"==typeof t?t:""))),e!==o?(d?!p&&e[t]&&(m=!0):delete e[t],m?e[t]=n:r(e,t,n)):m?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&d(this).source||i(this)}))},5641:function(e,t,n){"use strict";var o=n(77e3),r=n(71841);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},71841:function(e,t,n){"use strict";var o,r,a=n(92082),c=n(5105),i=n(1864),l=n(27364),d=n(83681),s=n(79947).get,u=n(8368),m=n(2229),p=RegExp.prototype.exec,h=l("native-string-replace",String.prototype.replace),C=p,f=(o=/a/,r=/b*/g,p.call(o,"a"),p.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),N=i.UNSUPPORTED_Y||i.BROKEN_CARET,g=/()??/.exec("")[1]!==undefined;(f||g||N||u||m)&&(C=function(e){var t,n,o,r,i,l,u,m=this,V=s(m),b=a(e),v=V.raw;if(v)return v.lastIndex=m.lastIndex,t=C.call(v,b),m.lastIndex=v.lastIndex,t;var k=V.groups,_=N&&m.sticky,y=c.call(m),w=m.source,x=0,S=b;if(_&&(-1===(y=y.replace("y","")).indexOf("g")&&(y+="g"),S=b.slice(m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==b.charAt(m.lastIndex-1))&&(w="(?: "+w+")",S=" "+S,x++),n=new RegExp("^(?:"+w+")",y)),g&&(n=new RegExp("^"+w+"$(?!\\s)",y)),f&&(o=m.lastIndex),r=p.call(_?n:m,S),_?r?(r.input=r.input.slice(x),r[0]=r[0].slice(x),r.index=m.lastIndex,m.lastIndex+=r[0].length):m.lastIndex=0:f&&r&&(m.lastIndex=m.global?r.index+r[0].length:o),g&&r&&r.length>1&&h.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===undefined&&(r[i]=undefined)})),r&&k)for(r.groups=l=d(null),i=0;i<k.length;i++)l[(u=k[i])[0]]=r[u[1]];return r}),e.exports=C},5105:function(e,t,n){"use strict";var o=n(63518);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},1864:function(e,t,n){"use strict";var o=n(69691),r=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},8368:function(e,t,n){"use strict";var o=n(69691);e.exports=o((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2229:function(e,t,n){"use strict";var o=n(69691);e.exports=o((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},44184:function(e){"use strict";e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},61398:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},30889:function(e,t,n){"use strict";var o=n(84253);e.exports=function(e,t){try{Object.defineProperty(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},64157:function(e,t,n){"use strict";var o=n(69808),r=n(74217),a=n(17657),c=n(75592),i=a("species");e.exports=function(e){var t=o(e),n=r.f;c&&t&&!t[i]&&n(t,i,{configurable:!0,get:function(){return this}})}},29108:function(e,t,n){"use strict";var o=n(74217).f,r=n(28919),a=n(17657)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&o(e,a,{configurable:!0,value:t})}},85152:function(e,t,n){"use strict";var o=n(27364),r=n(41080),a=o("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},55935:function(e,t,n){"use strict";var o=n(84253),r=n(30889),a="__core-js_shared__",c=o[a]||r(a,{});e.exports=c},27364:function(e,t,n){"use strict";var o=n(1986),r=n(55935);(e.exports=function(e,t){return r[e]||(r[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.16.1",mode:o?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},24345:function(e,t,n){"use strict";var o=n(63518),r=n(83923),a=n(17657)("species");e.exports=function(e,t){var n,c=o(e).constructor;return c===undefined||(n=o(c)[a])==undefined?t:r(n)}},26096:function(e,t,n){"use strict";var o=n(69691);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},37015:function(e,t,n){"use strict";var o=n(3997),r=n(92082),a=n(44184),c=function(e){return function(t,n){var c,i,l=r(a(t)),d=o(n),s=l.length;return d<0||d>=s?e?"":undefined:(c=l.charCodeAt(d))<55296||c>56319||d+1===s||(i=l.charCodeAt(d+1))<56320||i>57343?e?l.charAt(d):c:e?l.slice(d,d+2):i-56320+(c-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},43331:function(e,t,n){"use strict";var o=n(72319);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(o)},47497:function(e,t,n){"use strict";var o=n(39570),r=n(92082),a=n(9811),c=n(44184),i=Math.ceil,l=function(e){return function(t,n,l){var d,s,u=r(c(t)),m=u.length,p=l===undefined?" ":r(l),h=o(n);return h<=m||""==p?u:(d=h-m,(s=a.call(p,i(d/p.length))).length>d&&(s=s.slice(0,d)),e?u+s:s+u)}};e.exports={start:l(!1),end:l(!0)}},9811:function(e,t,n){"use strict";var o=n(3997),r=n(92082),a=n(44184);e.exports=function(e){var t=r(a(this)),n="",c=o(e);if(c<0||c==Infinity)throw RangeError("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(t+=t))1&c&&(n+=t);return n}},3035:function(e,t,n){"use strict";var o=n(69691),r=n(65181);e.exports=function(e){return o((function(){return!!r[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||r[e].name!==e}))}},84703:function(e,t,n){"use strict";var o=n(44184),r=n(92082),a="["+n(65181)+"]",c=RegExp("^"+a+a+"*"),i=RegExp(a+a+"*$"),l=function(e){return function(t){var n=r(o(t));return 1&e&&(n=n.replace(c,"")),2&e&&(n=n.replace(i,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},33453:function(e,t,n){"use strict";var o,r,a,c,i=n(84253),l=n(69691),d=n(74271),s=n(2369),u=n(21477),m=n(24542),p=n(41488),h=i.setImmediate,C=i.clearImmediate,f=i.process,N=i.MessageChannel,g=i.Dispatch,V=0,b={},v="onreadystatechange";try{o=i.location}catch(x){}var k=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},_=function(e){return function(){k(e)}},y=function(e){k(e.data)},w=function(e){i.postMessage(String(e),o.protocol+"//"+o.host)};h&&C||(h=function(e){for(var t=[],n=arguments.length,o=1;n>o;)t.push(arguments[o++]);return b[++V]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},r(V),V},C=function(e){delete b[e]},p?r=function(e){f.nextTick(_(e))}:g&&g.now?r=function(e){g.now(_(e))}:N&&!m?(c=(a=new N).port2,a.port1.onmessage=y,r=d(c.postMessage,c,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&o&&"file:"!==o.protocol&&!l(w)?(r=w,i.addEventListener("message",y,!1)):r=v in u("script")?function(e){s.appendChild(u("script")).onreadystatechange=function(){s.removeChild(this),k(e)}}:function(e){setTimeout(_(e),0)}),e.exports={set:h,clear:C}},81687:function(e,t,n){"use strict";var o=n(77e3);e.exports=function(e){if("number"!=typeof e&&"Number"!=o(e))throw TypeError("Incorrect invocation");return+e}},55205:function(e,t,n){"use strict";var o=n(3997),r=Math.max,a=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):a(n,t)}},77559:function(e,t,n){"use strict";var o=n(3997),r=n(39570);e.exports=function(e){if(e===undefined)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},26553:function(e,t,n){"use strict";var o=n(50990),r=n(44184);e.exports=function(e){return o(r(e))}},3997:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},39570:function(e,t,n){"use strict";var o=n(3997),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},12104:function(e,t,n){"use strict";var o=n(44184);e.exports=function(e){return Object(o(e))}},95740:function(e,t,n){"use strict";var o=n(80425);e.exports=function(e,t){var n=o(e);if(n%t)throw RangeError("Wrong offset");return n}},80425:function(e,t,n){"use strict";var o=n(3997);e.exports=function(e){var t=o(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},94673:function(e,t,n){"use strict";var o=n(35611),r=n(78253),a=n(28734),c=n(17657)("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,i=e[c];if(i!==undefined){if(t===undefined&&(t="default"),n=i.call(e,t),!o(n)||r(n))return n;throw TypeError("Can't convert object to primitive value")}return t===undefined&&(t="number"),a(e,t)}},14613:function(e,t,n){"use strict";var o=n(94673),r=n(78253);e.exports=function(e){var t=o(e,"string");return r(t)?t:String(t)}},64910:function(e,t,n){"use strict";var o={};o[n(17657)("toStringTag")]="z",e.exports="[object z]"===String(o)},92082:function(e,t,n){"use strict";var o=n(78253);e.exports=function(e){if(o(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},17576:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(75592),c=n(29023),i=n(19216),l=n(80246),d=n(50997),s=n(39160),u=n(52188),m=n(93624),p=n(39570),h=n(77559),C=n(95740),f=n(14613),N=n(28919),g=n(47953),V=n(35611),b=n(78253),v=n(83681),k=n(18444),_=n(78870).f,y=n(76182),w=n(69033).forEach,x=n(64157),S=n(74217),B=n(22245),I=n(79947),L=n(22285),T=I.get,A=I.set,D=S.f,M=B.f,E=Math.round,P=r.RangeError,F=l.ArrayBuffer,O=l.DataView,R=i.NATIVE_ARRAY_BUFFER_VIEWS,j=i.TYPED_ARRAY_CONSTRUCTOR,W=i.TYPED_ARRAY_TAG,z=i.TypedArray,H=i.TypedArrayPrototype,U=i.aTypedArrayConstructor,G=i.isTypedArray,q="BYTES_PER_ELEMENT",Y="Wrong length",K=function(e,t){for(var n=0,o=t.length,r=new(U(e))(o);o>n;)r[n]=t[n++];return r},$=function(e,t){D(e,t,{get:function(){return T(this)[t]}})},Q=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},X=function(e,t){return G(e)&&!b(t)&&t in e&&m(+t)&&t>=0},J=function(e,t){return t=f(t),X(e,t)?s(2,e[t]):M(e,t)},Z=function(e,t,n){return t=f(t),!(X(e,t)&&V(n)&&N(n,"value"))||N(n,"get")||N(n,"set")||n.configurable||N(n,"writable")&&!n.writable||N(n,"enumerable")&&!n.enumerable?D(e,t,n):(e[t]=n.value,e)};a?(R||(B.f=J,S.f=Z,$(H,"buffer"),$(H,"byteOffset"),$(H,"byteLength"),$(H,"length")),o({target:"Object",stat:!0,forced:!R},{getOwnPropertyDescriptor:J,defineProperty:Z}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,i=e+(n?"Clamped":"")+"Array",l="get"+e,s="set"+e,m=r[i],f=m,N=f&&f.prototype,g={},b=function(e,t){D(e,t,{get:function(){return function(e,t){var n=T(e);return n.view[l](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var r=T(e);n&&(o=(o=E(o))<0?0:o>255?255:255&o),r.view[s](t*a+r.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};R?c&&(f=t((function(e,t,n,o){return d(e,f,i),L(V(t)?Q(t)?o!==undefined?new m(t,C(n,a),o):n!==undefined?new m(t,C(n,a)):new m(t):G(t)?K(f,t):y.call(f,t):new m(h(t)),e,f)})),k&&k(f,z),w(_(m),(function(e){e in f||u(f,e,m[e])})),f.prototype=N):(f=t((function(e,t,n,o){d(e,f,i);var r,c,l,s=0,u=0;if(V(t)){if(!Q(t))return G(t)?K(f,t):y.call(f,t);r=t,u=C(n,a);var m=t.byteLength;if(o===undefined){if(m%a)throw P(Y);if((c=m-u)<0)throw P(Y)}else if((c=p(o)*a)+u>m)throw P(Y);l=c/a}else l=h(t),r=new F(c=l*a);for(A(e,{buffer:r,byteOffset:u,byteLength:c,length:l,view:new O(r)});s<l;)b(e,s++)})),k&&k(f,z),N=f.prototype=v(H)),N.constructor!==f&&u(N,"constructor",f),u(N,j,f),W&&u(N,W,i),g[i]=f,o({global:!0,forced:f!=m,sham:!R},g),q in f||u(f,q,a),q in N||u(N,q,a),x(i)}):e.exports=function(){}},29023:function(e,t,n){"use strict";var o=n(84253),r=n(69691),a=n(68762),c=n(19216).NATIVE_ARRAY_BUFFER_VIEWS,i=o.ArrayBuffer,l=o.Int8Array;e.exports=!c||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new i(2),1,undefined).length}))},16688:function(e,t,n){"use strict";var o=n(11955),r=n(25198);e.exports=function(e,t){return o(r(e),t)}},76182:function(e,t,n){"use strict";var o=n(12104),r=n(39570),a=n(3170),c=n(14195),i=n(74271),l=n(19216).aTypedArrayConstructor;e.exports=function(e){var t,n,d,s,u,m,p=o(e),h=arguments.length,C=h>1?arguments[1]:undefined,f=C!==undefined,N=a(p);if(N!=undefined&&!c(N))for(m=(u=N.call(p)).next,p=[];!(s=m.call(u)).done;)p.push(s.value);for(f&&h>2&&(C=i(C,arguments[2],2)),n=r(p.length),d=new(l(this))(n),t=0;n>t;t++)d[t]=f?C(p[t],t):p[t];return d}},25198:function(e,t,n){"use strict";var o=n(19216),r=n(24345),a=o.TYPED_ARRAY_CONSTRUCTOR,c=o.aTypedArrayConstructor;e.exports=function(e){return c(r(e,e[a]))}},41080:function(e){"use strict";var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++t+n).toString(36)}},40647:function(e,t,n){"use strict";var o=n(54772);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3444:function(e,t,n){"use strict";var o=n(17657);t.f=o},17657:function(e,t,n){"use strict";var o=n(84253),r=n(27364),a=n(28919),c=n(41080),i=n(54772),l=n(40647),d=r("wks"),s=o.Symbol,u=l?s:s&&s.withoutSetter||c;e.exports=function(e){return a(d,e)&&(i||"string"==typeof d[e])||(i&&a(s,e)?d[e]=s[e]:d[e]=u("Symbol."+e)),d[e]}},65181:function(e){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},15196:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(80246),c=n(64157),i="ArrayBuffer",l=a.ArrayBuffer;o({global:!0,forced:r.ArrayBuffer!==l},{ArrayBuffer:l}),c(i)},95993:function(e,t,n){"use strict";var o=n(56174),r=n(19216);o({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},25079:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(80246),c=n(63518),i=n(55205),l=n(39570),d=n(24345),s=a.ArrayBuffer,u=a.DataView,m=s.prototype.slice;o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:r((function(){return!new s(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(m!==undefined&&t===undefined)return m.call(c(this),e);for(var n=c(this).byteLength,o=i(e,n),r=i(t===undefined?n:t,n),a=new(d(this,s))(l(r-o)),p=new u(this),h=new u(a),C=0;o<r;)h.setUint8(C++,p.getUint8(o++));return a}})},24835:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(89999),c=n(35611),i=n(12104),l=n(39570),d=n(39241),s=n(77454),u=n(93537),m=n(17657),p=n(12338),h=m("isConcatSpreadable"),C=9007199254740991,f="Maximum allowed index exceeded",N=p>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=u("concat"),V=function(e){if(!c(e))return!1;var t=e[h];return t!==undefined?!!t:a(e)};o({target:"Array",proto:!0,forced:!N||!g},{concat:function(e){var t,n,o,r,a,c=i(this),u=s(c,0),m=0;for(t=-1,o=arguments.length;t<o;t++)if(V(a=-1===t?c:arguments[t])){if(m+(r=l(a.length))>C)throw TypeError(f);for(n=0;n<r;n++,m++)n in a&&d(u,m,a[n])}else{if(m>=C)throw TypeError(f);d(u,m++,a)}return u.length=m,u}})},14653:function(e,t,n){"use strict";var o=n(56174),r=n(59571),a=n(36910);o({target:"Array",proto:!0},{copyWithin:r}),a("copyWithin")},58139:function(e,t,n){"use strict";var o=n(56174),r=n(69033).every;o({target:"Array",proto:!0,forced:!n(37902)("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},34049:function(e,t,n){"use strict";var o=n(56174),r=n(22051),a=n(36910);o({target:"Array",proto:!0},{fill:r}),a("fill")},38356:function(e,t,n){"use strict";var o=n(56174),r=n(69033).filter;o({target:"Array",proto:!0,forced:!n(93537)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},31699:function(e,t,n){"use strict";var o=n(56174),r=n(69033).findIndex,a=n(36910),c="findIndex",i=!0;c in[]&&Array(1).findIndex((function(){i=!1})),o({target:"Array",proto:!0,forced:i},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),a(c)},72494:function(e,t,n){"use strict";var o=n(56174),r=n(69033).find,a=n(36910),c="find",i=!0;c in[]&&Array(1).find((function(){i=!1})),o({target:"Array",proto:!0,forced:i},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),a(c)},81520:function(e,t,n){"use strict";var o=n(56174),r=n(904),a=n(12104),c=n(39570),i=n(83923),l=n(77454);o({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),o=c(n.length);return i(e),(t=l(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},3263:function(e,t,n){"use strict";var o=n(56174),r=n(904),a=n(12104),c=n(39570),i=n(3997),l=n(77454);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=a(this),n=c(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,e===undefined?1:i(e)),o}})},80036:function(e,t,n){"use strict";var o=n(56174),r=n(90369);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},60515:function(e,t,n){"use strict";var o=n(56174),r=n(28213);o({target:"Array",stat:!0,forced:!n(68762)((function(e){Array.from(e)}))},{from:r})},94330:function(e,t,n){"use strict";var o=n(56174),r=n(25945).includes,a=n(36910);o({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}}),a("includes")},96553:function(e,t,n){"use strict";var o=n(56174),r=n(25945).indexOf,a=n(37902),c=[].indexOf,i=!!c&&1/[1].indexOf(1,-0)<0,l=a("indexOf");o({target:"Array",proto:!0,forced:i||!l},{indexOf:function(e){return i?c.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:undefined)}})},99139:function(e,t,n){"use strict";n(56174)({target:"Array",stat:!0},{isArray:n(89999)})},98215:function(e,t,n){"use strict";var o=n(26553),r=n(36910),a=n(82723),c=n(79947),i=n(71179),l="Array Iterator",d=c.set,s=c.getterFor(l);e.exports=i(Array,"Array",(function(e,t){d(this,{type:l,target:o(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},32617:function(e,t,n){"use strict";var o=n(56174),r=n(50990),a=n(26553),c=n(37902),i=[].join,l=r!=Object,d=c("join",",");o({target:"Array",proto:!0,forced:l||!d},{join:function(e){return i.call(a(this),e===undefined?",":e)}})},80186:function(e,t,n){"use strict";var o=n(56174),r=n(41183);o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},31149:function(e,t,n){"use strict";var o=n(56174),r=n(69033).map;o({target:"Array",proto:!0,forced:!n(93537)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},71827:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(39241);o({target:"Array",stat:!0,forced:r((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},32099:function(e,t,n){"use strict";var o=n(56174),r=n(28249).right,a=n(37902),c=n(12338),i=n(41488);o({target:"Array",proto:!0,forced:!a("reduceRight")||!i&&c>79&&c<83},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},79770:function(e,t,n){"use strict";var o=n(56174),r=n(28249).left,a=n(37902),c=n(12338),i=n(41488);o({target:"Array",proto:!0,forced:!a("reduce")||!i&&c>79&&c<83},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},72667:function(e,t,n){"use strict";var o=n(56174),r=n(89999),a=[].reverse,c=[1,2];o({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),a.call(this)}})},94920:function(e,t,n){"use strict";var o=n(56174),r=n(35611),a=n(89999),c=n(55205),i=n(39570),l=n(26553),d=n(39241),s=n(17657),u=n(93537)("slice"),m=s("species"),p=[].slice,h=Math.max;o({target:"Array",proto:!0,forced:!u},{slice:function(e,t){var n,o,s,u=l(this),C=i(u.length),f=c(e,C),N=c(t===undefined?C:t,C);if(a(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!a(n.prototype)?r(n)&&null===(n=n[m])&&(n=undefined):n=undefined,n===Array||n===undefined))return p.call(u,f,N);for(o=new(n===undefined?Array:n)(h(N-f,0)),s=0;f<N;f++,s++)f in u&&d(o,s,u[f]);return o.length=s,o}})},64683:function(e,t,n){"use strict";var o=n(56174),r=n(69033).some;o({target:"Array",proto:!0,forced:!n(37902)("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},26189:function(e,t,n){"use strict";var o=n(56174),r=n(83923),a=n(12104),c=n(39570),i=n(92082),l=n(69691),d=n(58737),s=n(37902),u=n(20967),m=n(85749),p=n(12338),h=n(12200),C=[],f=C.sort,N=l((function(){C.sort(undefined)})),g=l((function(){C.sort(null)})),V=s("sort"),b=!l((function(){if(p)return p<70;if(!(u&&u>3)){if(m)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)C.push({k:t+o,v:n})}for(C.sort((function(e,t){return t.v-e.v})),o=0;o<C.length;o++)t=C[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:N||!g||!V||!b},{sort:function(e){e!==undefined&&r(e);var t=a(this);if(b)return e===undefined?f.call(t):f.call(t,e);var n,o,l=[],s=c(t.length);for(o=0;o<s;o++)o in t&&l.push(t[o]);for(n=(l=d(l,function(e){return function(t,n){return n===undefined?-1:t===undefined?1:e!==undefined?+e(t,n)||0:i(t)>i(n)?1:-1}}(e))).length,o=0;o<n;)t[o]=l[o++];for(;o<s;)delete t[o++];return t}})},41185:function(e,t,n){"use strict";n(64157)("Array")},51008:function(e,t,n){"use strict";var o=n(56174),r=n(55205),a=n(3997),c=n(39570),i=n(12104),l=n(77454),d=n(39241),s=n(93537)("splice"),u=Math.max,m=Math.min,p=9007199254740991,h="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!s},{splice:function(e,t){var n,o,s,C,f,N,g=i(this),V=c(g.length),b=r(e,V),v=arguments.length;if(0===v?n=o=0:1===v?(n=0,o=V-b):(n=v-2,o=m(u(a(t),0),V-b)),V+n-o>p)throw TypeError(h);for(s=l(g,o),C=0;C<o;C++)(f=b+C)in g&&d(s,C,g[f]);if(s.length=o,n<o){for(C=b;C<V-o;C++)N=C+n,(f=C+o)in g?g[N]=g[f]:delete g[N];for(C=V;C>V-o+n;C--)delete g[C-1]}else if(n>o)for(C=V-o;C>b;C--)N=C+n-1,(f=C+o-1)in g?g[N]=g[f]:delete g[N];for(C=0;C<n;C++)g[C+b]=arguments[C+2];return g.length=V-o+n,s}})},86e3:function(e,t,n){"use strict";n(36910)("flatMap")},47112:function(e,t,n){"use strict";n(36910)("flat")},87143:function(e,t,n){"use strict";var o=n(56174),r=n(80246);o({global:!0,forced:!n(32977)},{DataView:r.DataView})},72499:function(e,t,n){"use strict";n(56174)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},73676:function(e,t,n){"use strict";var o=n(56174),r=n(79873);o({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},76746:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(12104),c=n(94673);o({target:"Date",proto:!0,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=a(this),n=c(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},19:function(e,t,n){"use strict";var o=n(52188),r=n(57763),a=n(17657)("toPrimitive"),c=Date.prototype;a in c||o(c,a,r)},17038:function(e,t,n){"use strict";var o=n(11807),r=Date.prototype,a="Invalid Date",c="toString",i=r.toString,l=r.getTime;String(new Date(NaN))!=a&&o(r,c,(function(){var e=l.call(this);return e==e?i.call(this):a}))},46360:function(e,t,n){"use strict";n(56174)({target:"Function",proto:!0},{bind:n(68719)})},16835:function(e,t,n){"use strict";var o=n(35611),r=n(74217),a=n(6863),c=n(17657)("hasInstance"),i=Function.prototype;c in i||r.f(i,c,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=a(e);)if(this.prototype===e)return!0;return!1}})},96683:function(e,t,n){"use strict";var o=n(75592),r=n(74217).f,a=Function.prototype,c=a.toString,i=/^\s*function ([^ (]*)/,l="name";o&&!(l in a)&&r(a,l,{configurable:!0,get:function(){try{return c.call(this).match(i)[1]}catch(e){return""}}})},7756:function(e,t,n){"use strict";var o=n(84253);n(29108)(o.JSON,"JSON",!0)},21842:function(e,t,n){"use strict";var o=n(42006),r=n(74568);e.exports=o("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},1613:function(e,t,n){"use strict";var o=n(56174),r=n(83659),a=Math.acosh,c=Math.log,i=Math.sqrt,l=Math.LN2;o({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?c(e)+l:r(e-1+i(e-1)*i(e+1))}})},65115:function(e,t,n){"use strict";var o=n(56174),r=Math.asinh,a=Math.log,c=Math.sqrt;o({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function i(e){return isFinite(e=+e)&&0!=e?e<0?-i(-e):a(e+c(e*e+1)):e}})},27115:function(e,t,n){"use strict";var o=n(56174),r=Math.atanh,a=Math.log;o({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:a((1+e)/(1-e))/2}})},13280:function(e,t,n){"use strict";var o=n(56174),r=n(24305),a=Math.abs,c=Math.pow;o({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*c(a(e),1/3)}})},21019:function(e,t,n){"use strict";var o=n(56174),r=Math.floor,a=Math.log,c=Math.LOG2E;o({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(a(e+.5)*c):32}})},66619:function(e,t,n){"use strict";var o=n(56174),r=n(19997),a=Math.cosh,c=Math.abs,i=Math.E;o({target:"Math",stat:!0,forced:!a||a(710)===Infinity},{cosh:function(e){var t=r(c(e)-1)+1;return(t+1/(t*i*i))*(i/2)}})},75469:function(e,t,n){"use strict";var o=n(56174),r=n(19997);o({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},90967:function(e,t,n){"use strict";n(56174)({target:"Math",stat:!0},{fround:n(43334)})},35022:function(e,t,n){"use strict";var o=n(56174),r=Math.hypot,a=Math.abs,c=Math.sqrt;o({target:"Math",stat:!0,forced:!!r&&r(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,o,r=0,i=0,l=arguments.length,d=0;i<l;)d<(n=a(arguments[i++]))?(r=r*(o=d/n)*o+1,d=n):r+=n>0?(o=n/d)*o:n;return d===Infinity?Infinity:d*c(r)}})},22604:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=Math.imul;o({target:"Math",stat:!0,forced:r((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(e,t){var n=65535,o=+e,r=+t,a=n&o,c=n&r;return 0|a*c+((n&o>>>16)*c+a*(n&r>>>16)<<16>>>0)}})},41843:function(e,t,n){"use strict";var o=n(56174),r=Math.log,a=Math.LOG10E;o({target:"Math",stat:!0},{log10:function(e){return r(e)*a}})},86810:function(e,t,n){"use strict";n(56174)({target:"Math",stat:!0},{log1p:n(83659)})},54670:function(e,t,n){"use strict";var o=n(56174),r=Math.log,a=Math.LN2;o({target:"Math",stat:!0},{log2:function(e){return r(e)/a}})},16580:function(e,t,n){"use strict";n(56174)({target:"Math",stat:!0},{sign:n(24305)})},31304:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(19997),c=Math.abs,i=Math.exp,l=Math.E;o({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return c(e=+e)<1?(a(e)-a(-e))/2:(i(e-1)-i(-e-1))*(l/2)}})},13078:function(e,t,n){"use strict";var o=n(56174),r=n(19997),a=Math.exp;o({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(a(e)+a(-e))}})},45128:function(e,t,n){"use strict";n(29108)(Math,"Math",!0)},31938:function(e,t,n){"use strict";var o=n(56174),r=Math.ceil,a=Math.floor;o({target:"Math",stat:!0},{trunc:function(e){return(e>0?a:r)(e)}})},90958:function(e,t,n){"use strict";var o=n(75592),r=n(84253),a=n(41441),c=n(11807),i=n(28919),l=n(77e3),d=n(22285),s=n(78253),u=n(94673),m=n(69691),p=n(83681),h=n(78870).f,C=n(22245).f,f=n(74217).f,N=n(84703).trim,g="Number",V=r.Number,b=V.prototype,v=l(p(b))==g,k=function(e){if(s(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,o,r,a,c,i,l,d=u(e,"number");if("string"==typeof d&&d.length>2)if(43===(t=(d=N(d)).charCodeAt(0))||45===t){if(88===(n=d.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+d}for(c=(a=d.slice(2)).length,i=0;i<c;i++)if((l=a.charCodeAt(i))<48||l>r)return NaN;return parseInt(a,o)}return+d};if(a(g,!V(" 0o1")||!V("0b1")||V("+0x1"))){for(var _,y=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof y&&(v?m((function(){b.valueOf.call(n)})):l(n)!=g)?d(new V(k(t)),n,y):k(t)},w=o?h(V):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),x=0;w.length>x;x++)i(V,_=w[x])&&!i(y,_)&&f(y,_,C(V,_));y.prototype=b,b.constructor=y,c(r,g,y)}},88885:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},45017:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{isFinite:n(64630)})},59743:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{isInteger:n(93624)})},47560:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},31569:function(e,t,n){"use strict";var o=n(56174),r=n(93624),a=Math.abs;o({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},6134:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},12622:function(e,t,n){"use strict";n(56174)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},60852:function(e,t,n){"use strict";var o=n(56174),r=n(78025);o({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},99085:function(e,t,n){"use strict";var o=n(56174),r=n(55092);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},75180:function(e,t,n){"use strict";var o=n(56174),r=n(3997),a=n(81687),c=n(9811),i=n(69691),l=1..toFixed,d=Math.floor,s=function h(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)},u=function(e,t,n){for(var o=-1,r=n;++o<6;)r+=t*e[o],e[o]=r%1e7,r=d(r/1e7)},m=function(e,t){for(var n=6,o=0;--n>=0;)o+=e[n],e[n]=d(o/t),o=o%t*1e7},p=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var o=String(e[t]);n=""===n?o:n+c.call("0",7-o.length)+o}return n};o({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){l.call({})}))},{toFixed:function(e){var t,n,o,i,l=a(this),d=r(e),h=[0,0,0,0,0,0],C="",f="0";if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(C="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*s(2,69,1))-69)<0?l*s(2,-t,1):l/s(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(h,0,n),o=d;o>=7;)u(h,1e7,0),o-=7;for(u(h,s(10,o,1),0),o=t-1;o>=23;)m(h,1<<23),o-=23;m(h,1<<o),u(h,1,1),m(h,2),f=p(h)}else u(h,0,n),u(h,1<<-t,0),f=p(h)+c.call("0",d);return f=d>0?C+((i=f.length)<=d?"0."+c.call("0",d-i)+f:f.slice(0,i-d)+"."+f.slice(i-d)):C+f}})},79437:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(81687),c=1..toPrecision;o({target:"Number",proto:!0,forced:r((function(){return"1"!==c.call(1,undefined)}))||!r((function(){c.call({})}))},{toPrecision:function(e){return e===undefined?c.call(a(this)):c.call(a(this),e)}})},75370:function(e,t,n){"use strict";var o=n(56174),r=n(64905);o({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},61022:function(e,t,n){"use strict";n(56174)({target:"Object",stat:!0,sham:!n(75592)},{create:n(83681)})},50580:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(47339),c=n(12104),i=n(83923),l=n(74217);r&&o({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(c(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},5301:function(e,t,n){"use strict";var o=n(56174),r=n(75592);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(91543)})},76438:function(e,t,n){"use strict";var o=n(56174),r=n(75592);o({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(74217).f})},97307:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(47339),c=n(12104),i=n(83923),l=n(74217);r&&o({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(c(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},34016:function(e,t,n){"use strict";var o=n(56174),r=n(3e4).entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},86944:function(e,t,n){"use strict";var o=n(56174),r=n(7056),a=n(69691),c=n(35611),i=n(40421).onFreeze,l=Object.freeze;o({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!r},{freeze:function(e){return l&&c(e)?l(i(e)):e}})},60687:function(e,t,n){"use strict";var o=n(56174),r=n(56342),a=n(39241);o({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0}),t}})},86957:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(26553),c=n(22245).f,i=n(75592),l=r((function(){c(1)}));o({target:"Object",stat:!0,forced:!i||l,sham:!i},{getOwnPropertyDescriptor:function(e,t){return c(a(e),t)}})},59163:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(28482),c=n(26553),i=n(22245),l=n(39241);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=c(e),r=i.f,d=a(o),s={},u=0;d.length>u;)(n=r(o,t=d[u++]))!==undefined&&l(s,t,n);return s}})},34128:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(59995).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},24267:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(12104),c=n(6863),i=n(28954);o({target:"Object",stat:!0,forced:r((function(){c(1)})),sham:!i},{getPrototypeOf:function(e){return c(a(e))}})},4239:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(35611),c=Object.isExtensible;o({target:"Object",stat:!0,forced:r((function(){c(1)}))},{isExtensible:function(e){return!!a(e)&&(!c||c(e))}})},8381:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(35611),c=Object.isFrozen;o({target:"Object",stat:!0,forced:r((function(){c(1)}))},{isFrozen:function(e){return!a(e)||!!c&&c(e)}})},63669:function(e,t,n){"use strict";var o=n(56174),r=n(69691),a=n(35611),c=Object.isSealed;o({target:"Object",stat:!0,forced:r((function(){c(1)}))},{isSealed:function(e){return!a(e)||!!c&&c(e)}})},39816:function(e,t,n){"use strict";n(56174)({target:"Object",stat:!0},{is:n(61398)})},25779:function(e,t,n){"use strict";var o=n(56174),r=n(12104),a=n(84547);o({target:"Object",stat:!0,forced:n(69691)((function(){a(1)}))},{keys:function(e){return a(r(e))}})},84580:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(47339),c=n(12104),i=n(14613),l=n(6863),d=n(22245).f;r&&o({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=c(this),o=i(e);do{if(t=d(n,o))return t.get}while(n=l(n))}})},33198:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(47339),c=n(12104),i=n(14613),l=n(6863),d=n(22245).f;r&&o({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=c(this),o=i(e);do{if(t=d(n,o))return t.set}while(n=l(n))}})},71895:function(e,t,n){"use strict";var o=n(56174),r=n(35611),a=n(40421).onFreeze,c=n(7056),i=n(69691),l=Object.preventExtensions;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!c},{preventExtensions:function(e){return l&&r(e)?l(a(e)):e}})},44910:function(e,t,n){"use strict";var o=n(56174),r=n(35611),a=n(40421).onFreeze,c=n(7056),i=n(69691),l=Object.seal;o({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!c},{seal:function(e){return l&&r(e)?l(a(e)):e}})},95962:function(e,t,n){"use strict";n(56174)({target:"Object",stat:!0},{setPrototypeOf:n(18444)})},73769:function(e,t,n){"use strict";var o=n(64910),r=n(11807),a=n(13966);o||r(Object.prototype,"toString",a,{unsafe:!0})},14962:function(e,t,n){"use strict";var o=n(56174),r=n(3e4).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},80345:function(e,t,n){"use strict";var o=n(56174),r=n(78025);o({global:!0,forced:parseFloat!=r},{parseFloat:r})},18438:function(e,t,n){"use strict";var o=n(56174),r=n(55092);o({global:!0,forced:parseInt!=r},{parseInt:r})},46356:function(e,t,n){"use strict";var o=n(56174),r=n(1986),a=n(4302),c=n(69691),i=n(69808),l=n(24345),d=n(48141),s=n(11807);if(o({target:"Promise",proto:!0,real:!0,forced:!!a&&c((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=l(this,i("Promise")),n="function"==typeof e;return this.then(n?function(n){return d(t,e()).then((function(){return n}))}:e,n?function(n){return d(t,e()).then((function(){throw n}))}:e)}}),!r&&"function"==typeof a){var u=i("Promise").prototype["finally"];a.prototype["finally"]!==u&&s(a.prototype,"finally",u,{unsafe:!0})}},70552:function(e,t,n){"use strict";var o,r,a,c,i=n(56174),l=n(1986),d=n(84253),s=n(69808),u=n(4302),m=n(11807),p=n(3993),h=n(18444),C=n(29108),f=n(64157),N=n(35611),g=n(83923),V=n(50997),b=n(89853),v=n(56342),k=n(68762),_=n(24345),y=n(33453).set,w=n(80909),x=n(48141),S=n(21419),B=n(82101),I=n(47673),L=n(79947),T=n(41441),A=n(17657),D=n(46392),M=n(41488),E=n(12338),P=A("species"),F="Promise",O=L.get,R=L.set,j=L.getterFor(F),W=u&&u.prototype,z=u,H=W,U=d.TypeError,G=d.document,q=d.process,Y=B.f,K=Y,$=!!(G&&G.createEvent&&d.dispatchEvent),Q="function"==typeof PromiseRejectionEvent,X="unhandledrejection",J=!1,Z=T(F,(function(){var e=b(z),t=e!==String(z);if(!t&&66===E)return!0;if(l&&!H["finally"])return!0;if(E>=51&&/native code/.test(e))return!1;var n=new z((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};return(n.constructor={})[P]=o,!(J=n.then((function(){}))instanceof o)||!t&&D&&!Q})),ee=Z||!k((function(e){z.all(e)["catch"]((function(){}))})),te=function(e){var t;return!(!N(e)||"function"!=typeof(t=e.then))&&t},ne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;w((function(){for(var o=e.value,r=1==e.state,a=0;n.length>a;){var c,i,l,d=n[a++],s=r?d.ok:d.fail,u=d.resolve,m=d.reject,p=d.domain;try{s?(r||(2===e.rejection&&ce(e),e.rejection=1),!0===s?c=o:(p&&p.enter(),c=s(o),p&&(p.exit(),l=!0)),c===d.promise?m(U("Promise-chain cycle")):(i=te(c))?i.call(c,u,m):u(c)):m(o)}catch(h){p&&!l&&p.exit(),m(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)}))}},oe=function(e,t,n){var o,r;$?((o=G.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),d.dispatchEvent(o)):o={promise:t,reason:n},!Q&&(r=d["on"+e])?r(o):e===X&&S("Unhandled promise rejection",n)},re=function(e){y.call(d,(function(){var t,n=e.facade,o=e.value;if(ae(e)&&(t=I((function(){M?q.emit("unhandledRejection",o,n):oe(X,n,o)})),e.rejection=M||ae(e)?2:1,t.error))throw t.value}))},ae=function(e){return 1!==e.rejection&&!e.parent},ce=function(e){y.call(d,(function(){var t=e.facade;M?q.emit("rejectionHandled",t):oe("rejectionhandled",t,e.value)}))},ie=function(e,t,n){return function(o){e(t,o,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ne(e,!0))},de=function ue(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U("Promise can't be resolved itself");var o=te(t);o?w((function(){var n={done:!1};try{o.call(t,ie(ue,n,e),ie(le,n,e))}catch(r){le(n,r,e)}})):(e.value=t,e.state=1,ne(e,!1))}catch(r){le({done:!1},r,e)}}};if(Z&&(H=(z=function(e){V(this,z,F),g(e),o.call(this);var t=O(this);try{e(ie(de,t),ie(le,t))}catch(n){le(t,n)}}).prototype,(o=function(e){R(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=p(H,{then:function(e,t){var n=j(this),o=Y(_(this,z));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=M?q.domain:undefined,n.parent=!0,n.reactions.push(o),0!=n.state&&ne(n,!1),o.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new o,t=O(e);this.promise=e,this.resolve=ie(de,t),this.reject=ie(le,t)},B.f=Y=function(e){return e===z||e===a?new r(e):K(e)},!l&&"function"==typeof u&&W!==Object.prototype)){c=W.then,J||(m(W,"then",(function(e,t){var n=this;return new z((function(e,t){c.call(n,e,t)})).then(e,t)}),{unsafe:!0}),m(W,"catch",H["catch"],{unsafe:!0}));try{delete W.constructor}catch(se){}h&&h(W,H)}i({global:!0,wrap:!0,forced:Z},{Promise:z}),C(z,F,!1,!0),f(F),a=s(F),i({target:F,stat:!0,forced:Z},{reject:function(e){var t=Y(this);return t.reject.call(undefined,e),t.promise}}),i({target:F,stat:!0,forced:l||Z},{resolve:function(e){return x(l&&this===a?z:this,e)}}),i({target:F,stat:!0,forced:ee},{all:function(e){var t=this,n=Y(t),o=n.resolve,r=n.reject,a=I((function(){var n=g(t.resolve),a=[],c=0,i=1;v(e,(function(e){var l=c++,d=!1;a.push(undefined),i++,n.call(t,e).then((function(e){d||(d=!0,a[l]=e,--i||o(a))}),r)})),--i||o(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=Y(t),o=n.reject,r=I((function(){var r=g(t.resolve);v(e,(function(e){r.call(t,e).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},57128:function(e,t,n){"use strict";var o=n(56174),r=n(69808),a=n(83923),c=n(63518),i=n(69691),l=r("Reflect","apply"),d=Function.apply;o({target:"Reflect",stat:!0,forced:!i((function(){l((function(){}))}))},{apply:function(e,t,n){return a(e),c(n),l?l(e,t,n):d.call(e,t,n)}})},83588:function(e,t,n){"use strict";var o=n(56174),r=n(69808),a=n(83923),c=n(63518),i=n(35611),l=n(83681),d=n(68719),s=n(69691),u=r("Reflect","construct"),m=s((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),p=!s((function(){u((function(){}))})),h=m||p;o({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){a(e),c(t);var n=arguments.length<3?e:a(arguments[2]);if(p&&!m)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(d.apply(e,o))}var r=n.prototype,s=l(i(r)?r:Object.prototype),h=Function.apply.call(e,s,t);return i(h)?h:s}})},47057:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(63518),c=n(14613),i=n(74217);o({target:"Reflect",stat:!0,forced:n(69691)((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){a(e);var o=c(t);a(n);try{return i.f(e,o,n),!0}catch(r){return!1}}})},67092:function(e,t,n){"use strict";var o=n(56174),r=n(63518),a=n(22245).f;o({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=a(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},69203:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(63518),c=n(22245);o({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return c.f(a(e),t)}})},27879:function(e,t,n){"use strict";var o=n(56174),r=n(63518),a=n(6863);o({target:"Reflect",stat:!0,sham:!n(28954)},{getPrototypeOf:function(e){return a(r(e))}})},59478:function(e,t,n){"use strict";var o=n(56174),r=n(35611),a=n(63518),c=n(28919),i=n(22245),l=n(6863);o({target:"Reflect",stat:!0},{get:function d(e,t){var n,o,s=arguments.length<3?e:arguments[2];return a(e)===s?e[t]:(n=i.f(e,t))?c(n,"value")?n.value:n.get===undefined?undefined:n.get.call(s):r(o=l(e))?d(o,t,s):void 0}})},71507:function(e,t,n){"use strict";n(56174)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},39021:function(e,t,n){"use strict";var o=n(56174),r=n(63518),a=Object.isExtensible;o({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!a||a(e)}})},8641:function(e,t,n){"use strict";n(56174)({target:"Reflect",stat:!0},{ownKeys:n(28482)})},83064:function(e,t,n){"use strict";var o=n(56174),r=n(69808),a=n(63518);o({target:"Reflect",stat:!0,sham:!n(7056)},{preventExtensions:function(e){a(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},33362:function(e,t,n){"use strict";var o=n(56174),r=n(63518),a=n(1372),c=n(18444);c&&o({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),a(t);try{return c(e,t),!0}catch(n){return!1}}})},93115:function(e,t,n){"use strict";var o=n(56174),r=n(63518),a=n(35611),c=n(28919),i=n(69691),l=n(74217),d=n(22245),s=n(6863),u=n(39160);o({target:"Reflect",stat:!0,forced:i((function(){var e=function(){},t=l.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function m(e,t,n){var o,i,p=arguments.length<4?e:arguments[3],h=d.f(r(e),t);if(!h){if(a(i=s(e)))return m(i,t,n,p);h=u(0)}if(c(h,"value")){if(!1===h.writable||!a(p))return!1;if(o=d.f(p,t)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,l.f(p,t,o)}else l.f(p,t,u(0,n));return!0}return h.set!==undefined&&(h.set.call(p,n),!0)}})},45090:function(e,t,n){"use strict";var o=n(75592),r=n(84253),a=n(41441),c=n(22285),i=n(52188),l=n(74217).f,d=n(78870).f,s=n(86133),u=n(92082),m=n(5105),p=n(1864),h=n(11807),C=n(69691),f=n(28919),N=n(79947).enforce,g=n(64157),V=n(17657),b=n(8368),v=n(2229),k=V("match"),_=r.RegExp,y=_.prototype,w=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,S=/a/g,B=new _(x)!==x,I=p.UNSUPPORTED_Y,L=o&&(!B||I||b||v||C((function(){return S[k]=!1,_(x)!=x||_(S)==S||"/a/i"!=_(x,"i")})));if(a("RegExp",L)){for(var T=function(e,t){var n,o,r,a,l,d,p=this instanceof T,h=s(e),C=t===undefined,g=[],V=e;if(!p&&h&&C&&e.constructor===T)return e;if((h||e instanceof T)&&(e=e.source,C&&(t="flags"in V?V.flags:m.call(V))),e=e===undefined?"":u(e),t=t===undefined?"":u(t),V=e,b&&"dotAll"in x&&(o=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,I&&"sticky"in x&&(r=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),v&&(e=(a=function(e){for(var t,n=e.length,o=0,r="",a=[],c={},i=!1,l=!1,d=0,s="";o<=n;o++){if("\\"===(t=e.charAt(o)))t+=e.charAt(++o);else if("]"===t)i=!1;else if(!i)switch(!0){case"["===t:i=!0;break;case"("===t:w.test(e.slice(o+1))&&(o+=2,l=!0),r+=t,d++;continue;case">"===t&&l:if(""===s||f(c,s))throw new SyntaxError("Invalid capture group name");c[s]=!0,a.push([s,d]),l=!1,s="";continue}l?s+=t:r+=t}return[r,a]}(e))[0],g=a[1]),l=c(_(e,t),p?this:y,T),(o||r||g.length)&&(d=N(l),o&&(d.dotAll=!0,d.raw=T(function(e){for(var t,n=e.length,o=0,r="",a=!1;o<=n;o++)"\\"!==(t=e.charAt(o))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),r+=t):r+="[\\s\\S]":r+=t+e.charAt(++o);return r}(e),n)),r&&(d.sticky=!0),g.length&&(d.groups=g)),e!==V)try{i(l,"source",""===V?"(?:)":V)}catch(k){}return l},A=function(e){e in T||l(T,e,{configurable:!0,get:function(){return _[e]},set:function(t){_[e]=t}})},D=d(_),M=0;D.length>M;)A(D[M++]);y.constructor=T,T.prototype=y,h(r,"RegExp",T)}g("RegExp")},12654:function(e,t,n){"use strict";var o=n(56174),r=n(71841);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},58870:function(e,t,n){"use strict";var o=n(75592),r=n(74217),a=n(5105),c=n(69691);o&&c((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&r.f(RegExp.prototype,"flags",{configurable:!0,get:a})},76581:function(e,t,n){"use strict";var o=n(11807),r=n(63518),a=n(92082),c=n(69691),i=n(5105),l="toString",d=RegExp.prototype,s=d.toString,u=c((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),m=s.name!=l;(u||m)&&o(RegExp.prototype,l,(function(){var e=r(this),t=a(e.source),n=e.flags;return"/"+t+"/"+a(n===undefined&&e instanceof RegExp&&!("flags"in d)?i.call(e):n)}),{unsafe:!0})},4567:function(e,t,n){"use strict";var o=n(42006),r=n(74568);e.exports=o("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),r)},67586:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},7743:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("big")},{big:function(){return r(this,"big","","")}})},15890:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("blink")},{blink:function(){return r(this,"blink","","")}})},34651:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("bold")},{bold:function(){return r(this,"b","","")}})},28638:function(e,t,n){"use strict";var o=n(56174),r=n(37015).codeAt;o({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},60314:function(e,t,n){"use strict";var o,r=n(56174),a=n(22245).f,c=n(39570),i=n(92082),l=n(18774),d=n(44184),s=n(93937),u=n(1986),m="".endsWith,p=Math.min,h=s("endsWith");r({target:"String",proto:!0,forced:!!(u||h||(o=a(String.prototype,"endsWith"),!o||o.writable))&&!h},{endsWith:function(e){var t=i(d(this));l(e);var n=arguments.length>1?arguments[1]:undefined,o=c(t.length),r=n===undefined?o:p(c(n),o),a=i(e);return m?m.call(t,a,r):t.slice(r-a.length,r)===a}})},18037:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("fixed")},{fixed:function(){return r(this,"tt","","")}})},48415:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},54950:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},71595:function(e,t,n){"use strict";var o=n(56174),r=n(55205),a=String.fromCharCode,c=String.fromCodePoint;o({target:"String",stat:!0,forced:!!c&&1!=c.length},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,c=0;o>c;){if(t=+arguments[c++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},98954:function(e,t,n){"use strict";var o=n(56174),r=n(18774),a=n(44184),c=n(92082);o({target:"String",proto:!0,forced:!n(93937)("includes")},{includes:function(e){return!!~c(a(this)).indexOf(c(r(e)),arguments.length>1?arguments[1]:undefined)}})},76102:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("italics")},{italics:function(){return r(this,"i","","")}})},91332:function(e,t,n){"use strict";var o=n(37015).charAt,r=n(92082),a=n(79947),c=n(71179),i="String Iterator",l=a.set,d=a.getterFor(i);c(String,"String",(function(e){l(this,{type:i,string:r(e),index:0})}),(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},47816:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("link")},{link:function(e){return r(this,"a","href",e)}})},79445:function(e,t,n){"use strict";var o=n(68880),r=n(63518),a=n(39570),c=n(92082),i=n(44184),l=n(69953),d=n(5641);o("match",(function(e,t,n){return[function(t){var n=i(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](c(n))},function(e){var o=r(this),i=c(e),s=n(t,o,i);if(s.done)return s.value;if(!o.global)return d(o,i);var u=o.unicode;o.lastIndex=0;for(var m,p=[],h=0;null!==(m=d(o,i));){var C=c(m[0]);p[h]=C,""===C&&(o.lastIndex=l(i,a(o.lastIndex),u)),h++}return 0===h?null:p}]}))},36493:function(e,t,n){"use strict";var o=n(56174),r=n(47497).end;o({target:"String",proto:!0,forced:n(43331)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},24476:function(e,t,n){"use strict";var o=n(56174),r=n(47497).start;o({target:"String",proto:!0,forced:n(43331)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}})},78192:function(e,t,n){"use strict";var o=n(56174),r=n(26553),a=n(39570),c=n(92082);o({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=a(t.length),o=arguments.length,i=[],l=0;n>l;)i.push(c(t[l++])),l<o&&i.push(c(arguments[l]));return i.join("")}})},58660:function(e,t,n){"use strict";n(56174)({target:"String",proto:!0},{repeat:n(9811)})},56592:function(e,t,n){"use strict";var o=n(68880),r=n(69691),a=n(63518),c=n(3997),i=n(39570),l=n(92082),d=n(44184),s=n(69953),u=n(55444),m=n(5641),p=n(17657)("replace"),h=Math.max,C=Math.min,f="$0"==="a".replace(/./,"$0"),N=!!/./[p]&&""===/./[p]("a","$0");o("replace",(function(e,t,n){var o=N?"$":"$0";return[function(e,n){var o=d(this),r=e==undefined?undefined:e[p];return r!==undefined?r.call(e,o,n):t.call(l(o),e,n)},function(e,r){var d=a(this),p=l(e);if("string"==typeof r&&-1===r.indexOf(o)&&-1===r.indexOf("$<")){var f=n(t,d,p,r);if(f.done)return f.value}var N="function"==typeof r;N||(r=l(r));var g=d.global;if(g){var V=d.unicode;d.lastIndex=0}for(var b=[];;){var v=m(d,p);if(null===v)break;if(b.push(v),!g)break;""===l(v[0])&&(d.lastIndex=s(p,i(d.lastIndex),V))}for(var k,_="",y=0,w=0;w<b.length;w++){v=b[w];for(var x=l(v[0]),S=h(C(c(v.index),p.length),0),B=[],I=1;I<v.length;I++)B.push((k=v[I])===undefined?k:String(k));var L=v.groups;if(N){var T=[x].concat(B,S,p);L!==undefined&&T.push(L);var A=l(r.apply(undefined,T))}else A=u(x,p,S,B,L,r);S>=y&&(_+=p.slice(y,S)+A,y=S+x.length)}return _+p.slice(y)}]}),!!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!f||N)},69957:function(e,t,n){"use strict";var o=n(68880),r=n(63518),a=n(44184),c=n(61398),i=n(92082),l=n(5641);o("search",(function(e,t,n){return[function(t){var n=a(this),o=t==undefined?undefined:t[e];return o!==undefined?o.call(t,n):new RegExp(t)[e](i(n))},function(e){var o=r(this),a=i(e),d=n(t,o,a);if(d.done)return d.value;var s=o.lastIndex;c(s,0)||(o.lastIndex=0);var u=l(o,a);return c(o.lastIndex,s)||(o.lastIndex=s),null===u?-1:u.index}]}))},30037:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("small")},{small:function(){return r(this,"small","","")}})},9747:function(e,t,n){"use strict";var o=n(68880),r=n(86133),a=n(63518),c=n(44184),i=n(24345),l=n(69953),d=n(39570),s=n(92082),u=n(5641),m=n(71841),p=n(1864),h=n(69691),C=p.UNSUPPORTED_Y,f=[].push,N=Math.min,g=4294967295;o("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=s(c(this)),a=n===undefined?g:n>>>0;if(0===a)return[];if(e===undefined)return[o];if(!r(e))return t.call(o,e,a);for(var i,l,d,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,C=new RegExp(e.source,p+"g");(i=m.call(C,o))&&!((l=C.lastIndex)>h&&(u.push(o.slice(h,i.index)),i.length>1&&i.index<o.length&&f.apply(u,i.slice(1)),d=i[0].length,h=l,u.length>=a));)C.lastIndex===i.index&&C.lastIndex++;return h===o.length?!d&&C.test("")||u.push(""):u.push(o.slice(h)),u.length>a?u.slice(0,a):u}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=c(this),a=t==undefined?undefined:t[e];return a!==undefined?a.call(t,r,n):o.call(s(r),t,n)},function(e,r){var c=a(this),m=s(e),p=n(o,c,m,r,o!==t);if(p.done)return p.value;var h=i(c,RegExp),f=c.unicode,V=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(C?"g":"y"),b=new h(C?"^(?:"+c.source+")":c,V),v=r===undefined?g:r>>>0;if(0===v)return[];if(0===m.length)return null===u(b,m)?[m]:[];for(var k=0,_=0,y=[];_<m.length;){b.lastIndex=C?0:_;var w,x=u(b,C?m.slice(_):m);if(null===x||(w=N(d(b.lastIndex+(C?_:0)),m.length))===k)_=l(m,_,f);else{if(y.push(m.slice(k,_)),y.length===v)return y;for(var S=1;S<=x.length-1;S++)if(y.push(x[S]),y.length===v)return y;_=k=w}}return y.push(m.slice(k)),y}]}),!!h((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),C)},13578:function(e,t,n){"use strict";var o,r=n(56174),a=n(22245).f,c=n(39570),i=n(92082),l=n(18774),d=n(44184),s=n(93937),u=n(1986),m="".startsWith,p=Math.min,h=s("startsWith");r({target:"String",proto:!0,forced:!!(u||h||(o=a(String.prototype,"startsWith"),!o||o.writable))&&!h},{startsWith:function(e){var t=i(d(this));l(e);var n=c(p(arguments.length>1?arguments[1]:undefined,t.length)),o=i(e);return m?m.call(t,o,n):t.slice(n,n+o.length)===o}})},54705:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("strike")},{strike:function(){return r(this,"strike","","")}})},75831:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("sub")},{sub:function(){return r(this,"sub","","")}})},96958:function(e,t,n){"use strict";var o=n(56174),r=n(34141);o({target:"String",proto:!0,forced:n(26096)("sup")},{sup:function(){return r(this,"sup","","")}})},19209:function(e,t,n){"use strict";var o=n(56174),r=n(84703).end,a=n(3035)("trimEnd"),c=a?function(){return r(this)}:"".trimEnd;o({target:"String",proto:!0,forced:a},{trimEnd:c,trimRight:c})},56737:function(e,t,n){"use strict";var o=n(56174),r=n(84703).start,a=n(3035)("trimStart"),c=a?function(){return r(this)}:"".trimStart;o({target:"String",proto:!0,forced:a},{trimStart:c,trimLeft:c})},3684:function(e,t,n){"use strict";var o=n(56174),r=n(84703).trim;o({target:"String",proto:!0,forced:n(3035)("trim")},{trim:function(){return r(this)}})},69656:function(e,t,n){"use strict";n(55282)("asyncIterator")},43674:function(e,t,n){"use strict";var o=n(56174),r=n(75592),a=n(84253),c=n(28919),i=n(35611),l=n(74217).f,d=n(49957),s=a.Symbol;if(r&&"function"==typeof s&&(!("description"in s.prototype)||s().description!==undefined)){var u={},m=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof m?new s(e):e===undefined?s():s(e);return""===e&&(u[t]=!0),t};d(m,s);var p=m.prototype=s.prototype;p.constructor=m;var h=p.toString,C="Symbol(test)"==String(s("test")),f=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=i(this)?this.valueOf():this,t=h.call(e);if(c(u,e))return"";var n=C?t.slice(7,-1):t.replace(f,"$1");return""===n?undefined:n}}),o({global:!0,forced:!0},{Symbol:m})}},72411:function(e,t,n){"use strict";n(55282)("hasInstance")},24467:function(e,t,n){"use strict";n(55282)("isConcatSpreadable")},37493:function(e,t,n){"use strict";n(55282)("iterator")},65379:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(69808),c=n(1986),i=n(75592),l=n(54772),d=n(69691),s=n(28919),u=n(89999),m=n(35611),p=n(78253),h=n(63518),C=n(12104),f=n(26553),N=n(14613),g=n(92082),V=n(39160),b=n(83681),v=n(84547),k=n(78870),_=n(59995),y=n(21061),w=n(22245),x=n(74217),S=n(77659),B=n(52188),I=n(11807),L=n(27364),T=n(85152),A=n(90311),D=n(41080),M=n(17657),E=n(3444),P=n(55282),F=n(29108),O=n(79947),R=n(69033).forEach,j=T("hidden"),W="Symbol",z=M("toPrimitive"),H=O.set,U=O.getterFor(W),G=Object.prototype,q=r.Symbol,Y=a("JSON","stringify"),K=w.f,$=x.f,Q=_.f,X=S.f,J=L("symbols"),Z=L("op-symbols"),ee=L("string-to-symbol-registry"),te=L("symbol-to-string-registry"),ne=L("wks"),oe=r.QObject,re=!oe||!oe.prototype||!oe.prototype.findChild,ae=i&&d((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=K(G,t);o&&delete G[t],$(e,t,n),o&&e!==G&&$(G,t,o)}:$,ce=function(e,t){var n=J[e]=b(q.prototype);return H(n,{type:W,tag:e,description:t}),i||(n.description=t),n},ie=function(e,t,n){e===G&&ie(Z,t,n),h(e);var o=N(t);return h(n),s(J,o)?(n.enumerable?(s(e,j)&&e[j][o]&&(e[j][o]=!1),n=b(n,{enumerable:V(0,!1)})):(s(e,j)||$(e,j,V(1,{})),e[j][o]=!0),ae(e,o,n)):$(e,o,n)},le=function(e,t){h(e);var n=f(t),o=v(n).concat(pe(n));return R(o,(function(t){i&&!se.call(n,t)||ie(e,t,n[t])})),e},de=function(e,t){return t===undefined?b(e):le(b(e),t)},se=function(e){var t=N(e),n=X.call(this,t);return!(this===G&&s(J,t)&&!s(Z,t))&&(!(n||!s(this,t)||!s(J,t)||s(this,j)&&this[j][t])||n)},ue=function(e,t){var n=f(e),o=N(t);if(n!==G||!s(J,o)||s(Z,o)){var r=K(n,o);return!r||!s(J,o)||s(n,j)&&n[j][o]||(r.enumerable=!0),r}},me=function(e){var t=Q(f(e)),n=[];return R(t,(function(e){s(J,e)||s(A,e)||n.push(e)})),n},pe=function(e){var t=e===G,n=Q(t?Z:f(e)),o=[];return R(n,(function(e){!s(J,e)||t&&!s(G,e)||o.push(J[e])})),o};(l||(I((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?g(arguments[0]):undefined,t=D(e),n=function o(e){this===G&&o.call(Z,e),s(this,j)&&s(this[j],t)&&(this[j][t]=!1),ae(this,t,V(1,e))};return i&&re&&ae(G,t,{configurable:!0,set:n}),ce(t,e)}).prototype,"toString",(function(){return U(this).tag})),I(q,"withoutSetter",(function(e){return ce(D(e),e)})),S.f=se,x.f=ie,w.f=ue,k.f=_.f=me,y.f=pe,E.f=function(e){return ce(M(e),e)},i&&($(q.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),c||I(G,"propertyIsEnumerable",se,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),R(v(ne),(function(e){P(e)})),o({target:W,stat:!0,forced:!l},{"for":function(e){var t=g(e);if(s(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!p(e))throw TypeError(e+" is not a symbol");if(s(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!i},{create:de,defineProperty:ie,defineProperties:le,getOwnPropertyDescriptor:ue}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:me,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){y.f(1)}))},{getOwnPropertySymbols:function(e){return y.f(C(e))}}),Y)&&o({target:"JSON",stat:!0,forced:!l||d((function(){var e=q();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(o=t,(m(t)||e!==undefined)&&!p(e))return u(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!p(t))return t}),r[1]=t,Y.apply(null,r)}});q.prototype[z]||B(q.prototype,z,q.prototype.valueOf),F(q,W),A[j]=!0},87420:function(e,t,n){"use strict";n(55282)("match")},9480:function(e,t,n){"use strict";n(55282)("replace")},66171:function(e,t,n){"use strict";n(55282)("search")},53276:function(e,t,n){"use strict";n(55282)("species")},71852:function(e,t,n){"use strict";n(55282)("split")},59045:function(e,t,n){"use strict";n(55282)("toPrimitive")},70887:function(e,t,n){"use strict";n(55282)("toStringTag")},72906:function(e,t,n){"use strict";n(55282)("unscopables")},64346:function(e,t,n){"use strict";var o=n(19216),r=n(59571),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return r.call(a(this),e,t,arguments.length>2?arguments[2]:undefined)}))},27553:function(e,t,n){"use strict";var o=n(19216),r=n(69033).every,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},49007:function(e,t,n){"use strict";var o=n(19216),r=n(22051),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){return r.apply(a(this),arguments)}))},17621:function(e,t,n){"use strict";var o=n(19216),r=n(69033).filter,a=n(16688),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("filter",(function(e){var t=r(c(this),e,arguments.length>1?arguments[1]:undefined);return a(this,t)}))},20500:function(e,t,n){"use strict";var o=n(19216),r=n(69033).findIndex,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},71078:function(e,t,n){"use strict";var o=n(19216),r=n(69033).find,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},75344:function(e,t,n){"use strict";n(17576)("Float32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},87853:function(e,t,n){"use strict";n(17576)("Float64",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},85923:function(e,t,n){"use strict";var o=n(19216),r=n(69033).forEach,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},38956:function(e,t,n){"use strict";var o=n(29023);(0,n(19216).exportTypedArrayStaticMethod)("from",n(76182),o)},49264:function(e,t,n){"use strict";var o=n(19216),r=n(25945).includes,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},70448:function(e,t,n){"use strict";var o=n(19216),r=n(25945).indexOf,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},1150:function(e,t,n){"use strict";n(17576)("Int16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},50444:function(e,t,n){"use strict";n(17576)("Int32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},25865:function(e,t,n){"use strict";n(17576)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},5775:function(e,t,n){"use strict";var o=n(84253),r=n(19216),a=n(98215),c=n(17657)("iterator"),i=o.Uint8Array,l=a.values,d=a.keys,s=a.entries,u=r.aTypedArray,m=r.exportTypedArrayMethod,p=i&&i.prototype[c],h=!!p&&("values"==p.name||p.name==undefined),C=function(){return l.call(u(this))};m("entries",(function(){return s.call(u(this))})),m("keys",(function(){return d.call(u(this))})),m("values",C,!h),m(c,C,!h)},45164:function(e,t,n){"use strict";var o=n(19216),r=o.aTypedArray,a=o.exportTypedArrayMethod,c=[].join;a("join",(function(e){return c.apply(r(this),arguments)}))},83762:function(e,t,n){"use strict";var o=n(19216),r=n(41183),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){return r.apply(a(this),arguments)}))},67265:function(e,t,n){"use strict";var o=n(19216),r=n(69033).map,a=n(25198),c=o.aTypedArray;(0,o.exportTypedArrayMethod)("map",(function(e){return r(c(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(a(e))(t)}))}))},56058:function(e,t,n){"use strict";var o=n(19216),r=n(29023),a=o.aTypedArrayConstructor;(0,o.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},23535:function(e,t,n){"use strict";var o=n(19216),r=n(28249).right,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},87001:function(e,t,n){"use strict";var o=n(19216),r=n(28249).left,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},18617:function(e,t,n){"use strict";var o=n(19216),r=o.aTypedArray,a=o.exportTypedArrayMethod,c=Math.floor;a("reverse",(function(){for(var e,t=this,n=r(t).length,o=c(n/2),a=0;a<o;)e=t[a],t[a++]=t[--n],t[n]=e;return t}))},70595:function(e,t,n){"use strict";var o=n(19216),r=n(39570),a=n(95740),c=n(12104),i=n(69691),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("set",(function(e){l(this);var t=a(arguments.length>1?arguments[1]:undefined,1),n=this.length,o=c(e),i=r(o.length),d=0;if(i+t>n)throw RangeError("Wrong length");for(;d<i;)this[t+d]=o[d++]}),i((function(){new Int8Array(1).set({})})))},76820:function(e,t,n){"use strict";var o=n(19216),r=n(25198),a=n(69691),c=o.aTypedArray,i=o.exportTypedArrayMethod,l=[].slice;i("slice",(function(e,t){for(var n=l.call(c(this),e,t),o=r(this),a=0,i=n.length,d=new o(i);i>a;)d[a]=n[a++];return d}),a((function(){new Int8Array(1).slice()})))},33357:function(e,t,n){"use strict";var o=n(19216),r=n(69033).some,a=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:undefined)}))},38215:function(e,t,n){"use strict";var o=n(19216),r=n(84253),a=n(69691),c=n(83923),i=n(39570),l=n(58737),d=n(20967),s=n(85749),u=n(12338),m=n(12200),p=o.aTypedArray,h=o.exportTypedArrayMethod,C=r.Uint16Array,f=C&&C.prototype.sort,N=!!f&&!a((function(){var e=new C(2);e.sort(null),e.sort({})})),g=!!f&&!a((function(){if(u)return u<74;if(d)return d<67;if(s)return!0;if(m)return m<602;var e,t,n=new C(516),o=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,o[e]=e-2*t+3;for(n.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==o[e])return!0}));h("sort",(function(e){var t=this;if(e!==undefined&&c(e),g)return f.call(t,e);p(t);var n,o=i(t.length),r=Array(o);for(n=0;n<o;n++)r[n]=t[n];for(r=l(t,function(e){return function(t,n){return e!==undefined?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e)),n=0;n<o;n++)t[n]=r[n];return t}),!g||N)},37281:function(e,t,n){"use strict";var o=n(19216),r=n(39570),a=n(55205),c=n(25198),i=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=i(this),o=n.length,l=a(e,o);return new(c(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((t===undefined?o:a(t,o))-l))}))},99584:function(e,t,n){"use strict";var o=n(84253),r=n(19216),a=n(69691),c=o.Int8Array,i=r.aTypedArray,l=r.exportTypedArrayMethod,d=[].toLocaleString,s=[].slice,u=!!c&&a((function(){d.call(new c(1))}));l("toLocaleString",(function(){return d.apply(u?s.call(i(this)):i(this),arguments)}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},43582:function(e,t,n){"use strict";var o=n(19216).exportTypedArrayMethod,r=n(69691),a=n(84253).Uint8Array,c=a&&a.prototype||{},i=[].toString,l=[].join;r((function(){i.call({})}))&&(i=function(){return l.call(this)});var d=c.toString!=i;o("toString",i,d)},37650:function(e,t,n){"use strict";n(17576)("Uint16",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},12424:function(e,t,n){"use strict";n(17576)("Uint32",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},11220:function(e,t,n){"use strict";n(17576)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},6636:function(e,t,n){"use strict";n(17576)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},15378:function(e,t,n){"use strict";var o,r=n(84253),a=n(3993),c=n(40421),i=n(42006),l=n(57396),d=n(35611),s=n(79947).enforce,u=n(82911),m=!r.ActiveXObject&&"ActiveXObject"in r,p=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},C=e.exports=i("WeakMap",h,l);if(u&&m){o=l.getConstructor(h,"WeakMap",!0),c.enable();var f=C.prototype,N=f["delete"],g=f.has,V=f.get,b=f.set;a(f,{"delete":function(e){if(d(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new o),N.call(this,e)||t.frozen["delete"](e)}return N.call(this,e)},has:function(e){if(d(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new o),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(d(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new o),g.call(this,e)?V.call(this,e):t.frozen.get(e)}return V.call(this,e)},set:function(e,t){if(d(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new o),g.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},31213:function(e,t,n){"use strict";n(42006)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(57396))},19275:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(33453);o({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},59:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(80909),c=n(41488),i=r.process;o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&i.domain;a(t?t.bind(e):e)}})},43849:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(72319),c=[].slice,i=function(e){return function(t,n){var o=arguments.length>2,r=o?c.call(arguments,2):undefined;return e(o?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};o({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:i(r.setTimeout),setInterval:i(r.setInterval)})},44198:function(e,t,n){"use strict";var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){var c,i,l,d=arguments,s=(c=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,n,o){if(1!==d.length||"string"!==C(e)||/\d/.test(e)||(t=e,e=undefined),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var r=(t=String(s.masks[t]||t||s.masks["default"])).slice(0,4);"UTC:"!==r&&"GMT:"!==r||(t=t.slice(4),n=!0,"GMT:"===r&&(o=!0));var a=function(){return n?"getUTC":"get"},f=function(){return e[a()+"Date"]()},N=function(){return e[a()+"Day"]()},g=function(){return e[a()+"Month"]()},V=function(){return e[a()+"FullYear"]()},b=function(){return e[a()+"Hours"]()},v=function(){return e[a()+"Minutes"]()},k=function(){return e[a()+"Seconds"]()},_=function(){return e[a()+"Milliseconds"]()},y=function(){return n?0:e.getTimezoneOffset()},w=function(){return p(e)},x=function(){return h(e)},S={d:function(){return f()},dd:function(){return u(f())},ddd:function(){return s.i18n.dayNames[N()]},DDD:function(){return m({y:V(),m:g(),d:f(),_:a(),dayName:s.i18n.dayNames[N()],short:!0})},dddd:function(){return s.i18n.dayNames[N()+7]},DDDD:function(){return m({y:V(),m:g(),d:f(),_:a(),dayName:s.i18n.dayNames[N()+7]})},m:function(){return g()+1},mm:function(){return u(g()+1)},mmm:function(){return s.i18n.monthNames[g()]},mmmm:function(){return s.i18n.monthNames[g()+12]},yy:function(){return String(V()).slice(2)},yyyy:function(){return u(V(),4)},h:function(){return b()%12||12},hh:function(){return u(b()%12||12)},H:function(){return b()},HH:function(){return u(b())},M:function(){return v()},MM:function(){return u(v())},s:function(){return k()},ss:function(){return u(k())},l:function(){return u(_(),3)},L:function(){return u(Math.floor(_()/10))},t:function(){return b()<12?s.i18n.timeNames[0]:s.i18n.timeNames[1]},tt:function(){return b()<12?s.i18n.timeNames[2]:s.i18n.timeNames[3]},T:function(){return b()<12?s.i18n.timeNames[4]:s.i18n.timeNames[5]},TT:function(){return b()<12?s.i18n.timeNames[6]:s.i18n.timeNames[7]},Z:function(){return o?"GMT":n?"UTC":(String(e).match(i)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(y()>0?"-":"+")+u(100*Math.floor(Math.abs(y())/60)+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+u(Math.floor(Math.abs(y())/60),2)+":"+u(Math.floor(Math.abs(y())%60),2)},S:function(){return["th","st","nd","rd"][f()%10>3?0:(f()%100-f()%10!=10)*f()%10]},W:function(){return w()},WW:function(){return u(w())},N:function(){return x()}};return t.replace(c,(function(e){return e in S?S[e]():e.slice(1,e.length-1)}))});s.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"},s.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 u=function(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e},m=function(e){var t=e.y,n=e.m,o=e.d,r=e._,a=e.dayName,c=e.short,i=void 0!==c&&c,l=new Date,d=new Date;d.setDate(d[r+"Date"]()-1);var s=new Date;s.setDate(s[r+"Date"]()+1);var u=function(){return l[r+"Date"]()},m=function(){return l[r+"Month"]()},p=function(){return d[r+"Date"]()},h=function(){return d[r+"Month"]()},C=function(){return d[r+"FullYear"]()},f=function(){return s[r+"Date"]()},N=function(){return s[r+"Month"]()},g=function(){return s[r+"FullYear"]()};return l[r+"FullYear"]()===t&&m()===n&&u()===o?i?"Tdy":"Today":C()===t&&h()===n&&p()===o?i?"Ysd":"Yesterday":g()===t&&N()===n&&f()===o?i?"Tmw":"Tomorrow":a},p=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var o=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-o);var r=(t-n)/6048e5;return 1+Math.floor(r)},h=function(e){var t=e.getDay();return 0===t&&(t=7),t},C=function(e){return null===e?"null":e===undefined?"undefined":"object"!==r(e)?r(e):Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()};(o=function(){return s}.call(t,n,t,e))===undefined||(e.exports=o)}(void 0)},42950:function(e){"use strict";e.exports=function(){function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,o=Object.isFrozen,r=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,c=Object.freeze,i=Object.seal,l=Object.create,d="undefined"!=typeof Reflect&&Reflect,s=d.apply,u=d.construct;s||(s=function(){function e(e,t,n){return e.apply(t,n)}return e}()),c||(c=function(){function e(e){return e}return e}()),i||(i=function(){function e(e){return e}return e}()),u||(u=function(){function t(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))}return t}());var m=k(Array.prototype.forEach),p=k(Array.prototype.pop),h=k(Array.prototype.push),C=k(String.prototype.toLowerCase),f=k(String.prototype.match),N=k(String.prototype.replace),g=k(String.prototype.indexOf),V=k(String.prototype.trim),b=k(RegExp.prototype.test),v=y(TypeError);function k(e){return function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s(e,t,o)}}function y(e){return function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return u(e,n)}}function w(e,t){n&&n(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var c=C(a);c!==a&&(o(t)||(t[r]=c),a=c)}e[a]=!0}return e}function x(e){var n=l(null),o=void 0;for(o in e)s(t,e,[o])&&(n[o]=e[o]);return n}function S(e,t){for(;null!==e;){var n=a(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=r(e)}function o(e){return null}return o}var B=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=c(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=c(["#text"]),E=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),P=c(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),O=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),j=i(/<%[\s\S]*|[\s\S]*%>/gm),W=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),H=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),G=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function(){function e(){return"undefined"==typeof window?null:window}return e}(),$=function(){function e(e,t){if("object"!==(void 0===e?"undefined":q(e))||"function"!=typeof e.createPolicy)return null;var n=null,o="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(o)&&(n=t.currentScript.getAttribute(o));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(){function e(e){return e}return e}()})}catch(_){return null}}return e}();function Q(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:K(),t=function(){function e(e){return Q(e)}return e}();if(t.version="2.3.1",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,o=e.document,r=e.DocumentFragment,a=e.HTMLTemplateElement,i=e.Node,l=e.Element,d=e.NodeFilter,s=e.NamedNodeMap,u=s===undefined?e.NamedNodeMap||e.MozNamedAttrMap:s,k=e.Text,y=e.Comment,X=e.DOMParser,J=e.trustedTypes,Z=l.prototype,ee=S(Z,"cloneNode"),te=S(Z,"nextSibling"),ne=S(Z,"childNodes"),oe=S(Z,"parentNode");if("function"==typeof a){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ae=$(J,n),ce=ae&&Oe?ae.createHTML(""):"",ie=o,le=ie.implementation,de=ie.createNodeIterator,se=ie.createDocumentFragment,ue=ie.getElementsByTagName,me=n.importNode,pe={};try{pe=x(o).documentMode?o.documentMode:{}}catch(_){}var he={};t.isSupported="function"==typeof oe&&le&&"undefined"!=typeof le.createHTMLDocument&&9!==pe;var Ce=R,fe=j,Ne=W,ge=z,Ve=U,be=G,ve=H,ke=null,_e=w({},[].concat(Y(B),Y(I),Y(L),Y(A),Y(M))),ye=null,we=w({},[].concat(Y(E),Y(P),Y(F),Y(O))),xe=null,Se=null,Be=!0,Ie=!0,Le=!1,Te=!1,Ae=!1,De=!1,Me=!1,Ee=!1,Pe=!1,Fe=!0,Oe=!1,Re=!0,je=!0,We=!1,ze={},He=null,Ue=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,qe=w({},["audio","video","img","source","image","track"]),Ye=null,Ke=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",Je=Xe,Ze=!1,et=null,tt=o.createElement("form"),nt=function(){function e(e){et&&et===e||(e&&"object"===(void 0===e?"undefined":q(e))||(e={}),e=x(e),ke="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):_e,ye="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):we,Ye="ADD_URI_SAFE_ATTR"in e?w(x(Ke),e.ADD_URI_SAFE_ATTR):Ke,Ge="ADD_DATA_URI_TAGS"in e?w(x(qe),e.ADD_DATA_URI_TAGS):qe,He="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS):Ue,xe="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},Se="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,Be=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.SAFE_FOR_TEMPLATES||!1,Ae=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Fe=!1!==e.RETURN_DOM_IMPORT,Oe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,je=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,Je=e.NAMESPACE||Xe,Te&&(Ie=!1),Pe&&(Ee=!0),ze&&(ke=w({},[].concat(Y(M))),ye=[],!0===ze.html&&(w(ke,B),w(ye,E)),!0===ze.svg&&(w(ke,I),w(ye,P),w(ye,O)),!0===ze.svgFilters&&(w(ke,L),w(ye,P),w(ye,O)),!0===ze.mathMl&&(w(ke,A),w(ye,F),w(ye,O))),e.ADD_TAGS&&(ke===_e&&(ke=x(ke)),w(ke,e.ADD_TAGS)),e.ADD_ATTR&&(ye===we&&(ye=x(ye)),w(ye,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(Ye,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===Ue&&(He=x(He)),w(He,e.FORBID_CONTENTS)),je&&(ke["#text"]=!0),Ae&&w(ke,["html","head","body"]),ke.table&&(w(ke,["tbody"]),delete xe.tbody),c&&c(e),et=e)}return e}(),ot=w({},["mi","mo","mn","ms","mtext"]),rt=w({},["foreignobject","desc","title","annotation-xml"]),at=w({},I);w(at,L),w(at,T);var ct=w({},A);w(ct,D);var it=function(){function e(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=C(e.tagName),o=C(t.tagName);if(e.namespaceURI===Qe)return t.namespaceURI===Xe?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(at[n]);if(e.namespaceURI===$e)return t.namespaceURI===Xe?"math"===n:t.namespaceURI===Qe?"math"===n&&rt[o]:Boolean(ct[n]);if(e.namespaceURI===Xe){if(t.namespaceURI===Qe&&!rt[o])return!1;if(t.namespaceURI===$e&&!ot[o])return!1;var r=w({},["title","style","font","a","script"]);return!ct[n]&&(r[n]||!at[n])}return!1}return e}(),lt=function(){function e(e){h(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(_){try{e.outerHTML=ce}catch(_){e.remove()}}}return e}(),dt=function(){function e(e,n){try{h(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(_){h(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!ye[e])if(Ee||Pe)try{lt(n)}catch(_){}else try{n.setAttribute(e,"")}catch(_){}}return e}(),st=function(){function e(e){var t=void 0,n=void 0;if(Me)e="<remove></remove>"+e;else{var r=f(e,/^[\r\n\t ]+/);n=r&&r[0]}var a=ae?ae.createHTML(e):e;if(Je===Xe)try{t=(new X).parseFromString(a,"text/html")}catch(_){}if(!t||!t.documentElement){t=le.createDocument(Je,"template",null);try{t.documentElement.innerHTML=Ze?"":a}catch(_){}}var c=t.body||t.documentElement;return e&&n&&c.insertBefore(o.createTextNode(n),c.childNodes[0]||null),Je===Xe?ue.call(t,Ae?"html":"body")[0]:Ae?t.documentElement:c}return e}(),ut=function(){function e(e){return de.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)}return e}(),mt=function(){function e(e){return!(e instanceof k||e instanceof y||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof u&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)}return e}(),pt=function(){function e(e){return"object"===(void 0===i?"undefined":q(i))?e instanceof i:e&&"object"===(void 0===e?"undefined":q(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}return e}(),ht=function(){function e(e,n,o){he[e]&&m(he[e],(function(e){e.call(t,n,o,et)}))}return e}(),Ct=function(){function e(e){var n=void 0;if(ht("beforeSanitizeElements",e,null),mt(e))return lt(e),!0;if(f(e.nodeName,/[\u0080-\uFFFF]/))return lt(e),!0;var o=C(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:o,allowedTags:ke}),!pt(e.firstElementChild)&&(!pt(e.content)||!pt(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return lt(e),!0;if("select"===o&&b(/<template/i,e.innerHTML))return lt(e),!0;if(!ke[o]||xe[o]){if(je&&!He[o]){var r=oe(e)||e.parentNode,a=ne(e)||e.childNodes;if(a&&r)for(var c=a.length-1;c>=0;--c)r.insertBefore(ee(a[c],!0),te(e))}return lt(e),!0}return e instanceof l&&!it(e)?(lt(e),!0):"noscript"!==o&&"noembed"!==o||!b(/<\/no(script|embed)/i,e.innerHTML)?(Te&&3===e.nodeType&&(n=e.textContent,n=N(n,Ce," "),n=N(n,fe," "),e.textContent!==n&&(h(t.removed,{element:e.cloneNode()}),e.textContent=n)),ht("afterSanitizeElements",e,null),!1):(lt(e),!0)}return e}(),ft=function(){function e(e,t,n){if(Re&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;if(Ie&&!Se[t]&&b(Ne,t));else if(Be&&b(ge,t));else{if(!ye[t]||Se[t])return!1;if(Ye[t]);else if(b(ve,N(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!Ge[e])if(Le&&!b(Ve,N(n,be,"")));else if(n)return!1}return!0}return e}(),Nt=function(){function e(e){var n=void 0,o=void 0,r=void 0,a=void 0;ht("beforeSanitizeAttributes",e,null);var c=e.attributes;if(c){var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye};for(a=c.length;a--;){var l=n=c[a],d=l.name,s=l.namespaceURI;if(o=V(n.value),r=C(d),i.attrName=r,i.attrValue=o,i.keepAttr=!0,i.forceKeepAttr=undefined,ht("uponSanitizeAttribute",e,i),o=i.attrValue,!i.forceKeepAttr&&(dt(d,e),i.keepAttr))if(b(/\/>/i,o))dt(d,e);else{Te&&(o=N(o,Ce," "),o=N(o,fe," "));var u=e.nodeName.toLowerCase();if(ft(u,r,o))try{s?e.setAttributeNS(s,d,o):e.setAttribute(d,o),p(t.removed)}catch(_){}}}ht("afterSanitizeAttributes",e,null)}}return e}(),gt=function(){function e(t){var n=void 0,o=ut(t);for(ht("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)ht("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof r&&e(n.content),Nt(n));ht("afterSanitizeShadowDOM",t,null)}return e}();return t.sanitize=function(o,a){var c=void 0,l=void 0,d=void 0,s=void 0,u=void 0;if((Ze=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!pt(o)){if("function"!=typeof o.toString)throw v("toString is not a function");if("string"!=typeof(o=o.toString()))throw v("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof o)return e.toStaticHTML(o);if(pt(o))return e.toStaticHTML(o.outerHTML)}return o}if(De||nt(a),t.removed=[],"string"==typeof o&&(We=!1),We);else if(o instanceof i)1===(l=(c=st("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?c=l:c.appendChild(l);else{if(!Ee&&!Te&&!Ae&&-1===o.indexOf("<"))return ae&&Oe?ae.createHTML(o):o;if(!(c=st(o)))return Ee?null:ce}c&&Me&<(c.firstChild);for(var m=ut(We?o:c);d=m.nextNode();)3===d.nodeType&&d===s||Ct(d)||(d.content instanceof r&>(d.content),Nt(d),s=d);if(s=null,We)return o;if(Ee){if(Pe)for(u=se.call(c.ownerDocument);c.firstChild;)u.appendChild(c.firstChild);else u=c;return Fe&&(u=me.call(n,u,!0)),u}var p=Ae?c.outerHTML:c.innerHTML;return Te&&(p=N(p,Ce," "),p=N(p,fe," ")),ae&&Oe?ae.createHTML(p):p},t.setConfig=function(e){nt(e),De=!0},t.clearConfig=function(){et=null,De=!1},t.isValidAttribute=function(e,t,n){et||nt({});var o=C(e),r=C(t);return ft(o,r,n)},t.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],h(he[e],t))},t.removeHook=function(e){he[e]&&p(he[e])},t.removeHooks=function(e){he[e]&&(he[e]=[])},t.removeAllHooks=function(){he={}},t}return Q()}()},92376:function(e,t){"use strict";t.__esModule=!0,t._CI=Be,t._HI=F,t._M=Le,t._MCCC=Me,t._ME=Ae,t._MFCC=Ee,t._MP=xe,t._MR=ge,t._RFC=Ie,t.__render=je,t.createComponentVNode=function(e,t,n,o,a){var c=new I(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),o,function(e,t,n){var o=(32768&e?t.render:t).defaultProps;if(r(o))return n;if(r(n))return d(o,null);return x(n,o)}(e,t,n),function(e,t,n){if(4&e)return n;var o=(32768&e?t.render:t).defaultHooks;if(r(o))return n;if(r(n))return o;return x(n,o)}(e,t,a),t);_.createVNode&&_.createVNode(c);return c},t.createFragment=A,t.createPortal=function(e,t){var n=F(e);return L(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,o,r){e||(e=t),We(n,e,o,r)}},t.createTextVNode=T,t.createVNode=L,t.directClone=D,t.findDOMfromVNode=g,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&r(e.children)&&P(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=We,t.rerender=Ye,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var n=Array.isArray;function o(e){var t=typeof e;return"string"===t||"number"===t}function r(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function i(e){return"string"==typeof e}function l(e){return null===e}function d(e,t){var n={};if(e)for(var o in e)n[o]=e[o];if(t)for(var r in t)n[r]=t[r];return n}function s(e){return!l(e)&&"object"==typeof e}var u={};t.EMPTY_OBJ=u;function m(e){return e.substr(2).toLowerCase()}function p(e,t){e.appendChild(t)}function h(e,t,n){l(n)?p(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function f(e){for(var t=0;t<e.length;t++)e[t]()}function N(e,t,n){var o=e.children;return 4&n?o.$LI:8192&n?2===e.childFlags?o:o[t?0:o.length-1]:o}function g(e,t){for(var n;e;){if(2033&(n=e.flags))return e.dom;e=N(e,t,n)}return null}function V(e,t){do{var n=e.flags;if(2033&n)return void C(t,e.dom);var o=e.children;if(4&n&&(e=o.$LI),8&n&&(e=o),8192&n){if(2!==e.childFlags){for(var r=0,a=o.length;r<a;++r)V(o[r],t);return}e=o}}while(e)}function b(e,t,n){do{var o=e.flags;if(2033&o)return void h(t,e.dom,n);var r=e.children;if(4&o&&(e=r.$LI),8&o&&(e=r),8192&o){if(2!==e.childFlags){for(var a=0,c=r.length;a<c;++a)b(r[a],t,n);return}e=r}}while(e)}function v(e,t,n){return e.constructor.getDerivedStateFromProps?d(n,e.constructor.getDerivedStateFromProps(t,n)):n}t.Fragment="$F";var k={v:!1},_={componentComparator:null,createVNode:null,renderComplete:null};function y(e,t){e.textContent=t}function w(e,t){return s(e)&&e.event===t.event&&e.data===t.data}function x(e,t){for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}function S(e,t){return!!c(e)&&(e(t),!0)}t.options=_;var B="$";function I(e,t,n,o,r,a,c,i){this.childFlags=e,this.children=t,this.className=n,this.dom=null,this.flags=o,this.key=void 0===r?null:r,this.props=void 0===a?null:a,this.ref=void 0===c?null:c,this.type=i}function L(e,t,n,o,r,a,c,i){var l=void 0===r?1:r,d=new I(l,o,n,e,c,a,i,t);return _.createVNode&&_.createVNode(d),0===l&&P(d,d.children),d}function T(e,t){return new I(1,r(e)||!0===e||!1===e?"":e,null,16,t,null,null,null)}function A(e,t,n){var o=L(8192,8192,null,e,t,null,n,null);switch(o.childFlags){case 1:o.children=M(),o.childFlags=2;break;case 16:o.children=[T(e)],o.childFlags=4}return o}function D(e){var t=-16385&e.flags,n=e.props;if(14&t&&!l(n)){var o=n;for(var r in n={},o)n[r]=o[r]}return 0==(8192&t)?new I(e.childFlags,e.children,e.className,t,e.key,n,e.ref,e.type):function(e){var t=e.children,n=e.childFlags;return A(2===n?D(t):t.map(D),n,e.key)}(e)}function M(){return T("",null)}function E(e,t,r,c){for(var d=e.length;r<d;r++){var s=e[r];if(!a(s)){var u=c+B+r;if(n(s))E(s,t,0,u);else{if(o(s))s=T(s,u);else{var m=s.key,p=i(m)&&m[0]===B;(81920&s.flags||p)&&(s=D(s)),s.flags|=65536,p?m.substring(0,c.length)!==c&&(s.key=c+m):l(m)?s.key=u:s.key=c+m}t.push(s)}}}}function P(e,t){var r,c=1;if(a(t))r=t;else if(o(t))c=16,r=t;else if(n(t)){for(var d=t.length,s=0;s<d;++s){var u=t[s];if(a(u)||n(u)){r=r||t.slice(0,s),E(t,r,s,"");break}if(o(u))(r=r||t.slice(0,s)).push(T(u,B+s));else{var m=u.key,p=(81920&u.flags)>0,h=l(m),C=i(m)&&m[0]===B;p||h||C?(r=r||t.slice(0,s),(p||C)&&(u=D(u)),(h||C)&&(u.key=B+s),r.push(u)):r&&r.push(u),u.flags|=65536}}c=0===(r=r||t).length?1:8}else(r=t).flags|=65536,81920&t.flags&&(r=D(t)),c=2;return e.children=r,e.childFlags=c,e}function F(e){return a(e)||o(e)?T(e,null):n(e)?A(e,0,null):16384&e.flags?D(e):e}var O="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",j={"xlink:actuate":O,"xlink:arcrole":O,"xlink:href":O,"xlink:role":O,"xlink:show":O,"xlink:title":O,"xlink:type":O,"xml:base":R,"xml:lang":R,"xml:space":R};function W(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var z=W(0),H=W(null),U=W(!0);function G(e,t){var n=t.$EV;return n||(n=t.$EV=W(null)),n[e]||1==++z[e]&&(H[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?Y(t,!0,e,X(t)):t.stopPropagation()}}(e):function(e){return function(t){Y(t,!1,e,X(t))}}(e);return document.addEventListener(m(e),t),t}(e)),n}function q(e,t){var n=t.$EV;n&&n[e]&&(0==--z[e]&&(document.removeEventListener(m(e),H[e]),H[e]=null),n[e]=null)}function Y(e,t,n,o){var r=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&r.disabled)return;var a=r.$EV;if(a){var i=a[n];if(i&&(o.dom=r,i.event?i.event(i.data,e):i(e),e.cancelBubble))return}r=r.parentNode}while(!l(r))}function K(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function $(){return this.defaultPrevented}function Q(){return this.cancelBubble}function X(e){var t={dom:document};return e.isDefaultPrevented=$,e.isPropagationStopped=Q,e.stopPropagation=K,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function J(e,t,n){if(e[t]){var o=e[t];o.event?o.event(o.data,n):o(n)}else{var r=t.toLowerCase();e[r]&&e[r](n)}}function Z(e,t){var n=function(n){var o=this.$V;if(o){var r=o.props||u,a=o.dom;if(i(e))J(r,e,n);else for(var l=0;l<e.length;++l)J(r,e[l],n);if(c(t)){var d=this.$V,s=d.props||u;t(s,a,!1,d)}}};return Object.defineProperty(n,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),n}function ee(e,t,n){var o="$"+t,r=e[o];if(r){if(r[1].wrapped)return;e.removeEventListener(r[0],r[1]),e[o]=null}c(n)&&(e.addEventListener(t,n),e[o]=[t,n])}function te(e){return"checkbox"===e||"radio"===e}var ne=Z("onInput",ae),oe=Z(["onClick","onChange"],ae);function re(e){e.stopPropagation()}function ae(e,t){var n=e.type,o=e.value,a=e.checked,c=e.multiple,i=e.defaultValue,l=!r(o);n&&n!==t.type&&t.setAttribute("type",n),r(c)||c===t.multiple||(t.multiple=c),r(i)||l||(t.defaultValue=i+""),te(n)?(l&&(t.value=o),r(a)||(t.checked=a)):l&&t.value!==o?(t.defaultValue=o,t.value=o):r(a)||(t.checked=a)}function ce(e,t){if("option"===e.type)!function(e,t){var o=e.props||u,a=e.dom;a.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?a.selected=!0:r(t)&&r(o.selected)||(a.selected=o.selected||!1)}(e,t);else{var o=e.children,a=e.flags;if(4&a)ce(o.$LI,t);else if(8&a)ce(o,t);else if(2===e.childFlags)ce(o,t);else if(12&e.childFlags)for(var c=0,i=o.length;c<i;++c)ce(o[c],t)}}re.wrapped=!0;var ie=Z("onChange",le);function le(e,t,n,o){var a=Boolean(e.multiple);r(e.multiple)||a===t.multiple||(t.multiple=a);var c=e.selectedIndex;if(-1===c&&(t.selectedIndex=-1),1!==o.childFlags){var i=e.value;"number"==typeof c&&c>-1&&t.options[c]&&(i=t.options[c].value),n&&r(i)&&(i=e.defaultValue),ce(o,i)}}var de,se,ue=Z("onInput",pe),me=Z("onChange");function pe(e,t,n){var o=e.value,a=t.value;if(r(o)){if(n){var c=e.defaultValue;r(c)||c===a||(t.defaultValue=c,t.value=c)}}else a!==o&&(t.defaultValue=o,t.value=o)}function he(e,t,n,o,r,a){64&e?ae(o,n):256&e?le(o,n,r,t):128&e&&pe(o,n,r),a&&(n.$V=t)}function Ce(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",oe),ee(e,"click",re)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ie)}(t):128&e&&function(e,t){ee(e,"input",ue),t.onChange&&ee(e,"change",me)}(t,n)}function fe(e){return e.type&&te(e.type)?!r(e.checked):!r(e.value)}function Ne(e){e&&!S(e,null)&&e.current&&(e.current=null)}function ge(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){S(e,t)||void 0===e.current||(e.current=t)}))}function Ve(e,t){be(e),V(e,t)}function be(e){var t,n=e.flags,o=e.children;if(481&n){t=e.ref;var a=e.props;Ne(t);var i=e.childFlags;if(!l(a))for(var d=Object.keys(a),s=0,m=d.length;s<m;s++){var p=d[s];U[p]&&q(p,e.dom)}12&i?ve(o):2===i&&be(o)}else o&&(4&n?(c(o.componentWillUnmount)&&o.componentWillUnmount(),Ne(e.ref),o.$UN=!0,be(o.$LI)):8&n?(!r(t=e.ref)&&c(t.onComponentWillUnmount)&&t.onComponentWillUnmount(g(e,!0),e.props||u),be(o)):1024&n?Ve(o,e.ref):8192&n&&12&e.childFlags&&ve(o))}function ve(e){for(var t=0,n=e.length;t<n;++t)be(e[t])}function ke(e){e.textContent=""}function _e(e,t,n){ve(n),8192&t.flags?V(t,e):ke(e)}function ye(e,t,n,o){var a=e&&e.__html||"",c=t&&t.__html||"";a!==c&&(r(c)||function(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}(o,c)||(l(n)||(12&n.childFlags?ve(n.children):2===n.childFlags&&be(n.children),n.children=null,n.childFlags=1),o.innerHTML=c))}function we(e,t,n,o,a,l,d){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var u=r(n)?"":n;o[e]!==u&&(o[e]=u);break;case"style":!function(e,t,n){if(r(t))n.removeAttribute("style");else{var o,a,c=n.style;if(i(t))c.cssText=t;else if(r(e)||i(e))for(o in t)a=t[o],c.setProperty(o,a);else{for(o in t)(a=t[o])!==e[o]&&c.setProperty(o,a);for(o in e)r(t[o])&&c.removeProperty(o)}}}(t,n,o);break;case"dangerouslySetInnerHTML":ye(t,n,d,o);break;default:U[e]?function(e,t,n,o){if(c(n))G(e,o)[e]=n;else if(s(n)){if(w(t,n))return;G(e,o)[e]=n}else q(e,o)}(e,t,n,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?function(e,t,n,o){if(s(n)){if(w(t,n))return;n=function(e){var t=e.event;return function(n){t(e.data,n)}}(n)}ee(o,m(e),n)}(e,t,n,o):r(n)?o.removeAttribute(e):a&&j[e]?o.setAttributeNS(j[e],e,n):o.setAttribute(e,n)}}function xe(e,t,n,o,r){var a=!1,c=(448&t)>0;for(var i in c&&(a=fe(n))&&Ce(t,o,n),n)we(i,null,n[i],o,r,a,null);c&&he(t,e,o,n,!0,a)}function Se(e,t,n){var o=F(e.render(t,e.state,n)),r=n;return c(e.getChildContext)&&(r=d(n,e.getChildContext())),e.$CX=r,o}function Be(e,t,n,o,r,a){var i=new t(n,o),d=i.$N=Boolean(t.getDerivedStateFromProps||i.getSnapshotBeforeUpdate);if(i.$SVG=r,i.$L=a,e.children=i,i.$BS=!1,i.context=o,i.props===u&&(i.props=n),d)i.state=v(i,n,i.state);else if(c(i.componentWillMount)){i.$BR=!0,i.componentWillMount();var s=i.$PS;if(!l(s)){var m=i.state;if(l(m))i.state=s;else for(var p in s)m[p]=s[p];i.$PS=null}i.$BR=!1}return i.$LI=Se(i,n,o),i}function Ie(e,t){var n=e.props||u;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function Le(e,t,n,o,r,a){var c=e.flags|=16384;481&c?Ae(e,t,n,o,r,a):4&c?function(e,t,n,o,r,a){var c=Be(e,e.type,e.props||u,n,o,a);Le(c.$LI,t,c.$CX,o,r,a),Me(e.ref,c,a)}(e,t,n,o,r,a):8&c?(!function(e,t,n,o,r,a){Le(e.children=F(Ie(e,n)),t,n,o,r,a)}(e,t,n,o,r,a),Ee(e,a)):512&c||16&c?Te(e,t,r):8192&c?function(e,t,n,o,r,a){var c=e.children,i=e.childFlags;12&i&&0===c.length&&(i=e.childFlags=2,c=e.children=M());2===i?Le(c,n,r,o,r,a):De(c,n,t,o,r,a)}(e,n,t,o,r,a):1024&c&&function(e,t,n,o,r){Le(e.children,e.ref,t,!1,null,r);var a=M();Te(a,n,o),e.dom=a.dom}(e,n,t,r,a)}function Te(e,t,n){var o=e.dom=document.createTextNode(e.children);l(t)||h(t,o,n)}function Ae(e,t,n,o,a,c){var i=e.flags,d=e.props,s=e.className,u=e.childFlags,m=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&i)>0),p=e.children;if(r(s)||""===s||(o?m.setAttribute("class",s):m.className=s),16===u)y(m,p);else if(1!==u){var C=o&&"foreignObject"!==e.type;2===u?(16384&p.flags&&(e.children=p=D(p)),Le(p,m,n,C,null,c)):8!==u&&4!==u||De(p,m,n,C,null,c)}l(t)||h(t,m,a),l(d)||xe(e,i,d,m,o),ge(e.ref,m,c)}function De(e,t,n,o,r,a){for(var c=0;c<e.length;++c){var i=e[c];16384&i.flags&&(e[c]=i=D(i)),Le(i,t,n,o,r,a)}}function Me(e,t,n){ge(e,t,n),c(t.componentDidMount)&&n.push(function(e){return function(){e.componentDidMount()}}(t))}function Ee(e,t){var n=e.ref;r(n)||(S(n.onComponentWillMount,e.props||u),c(n.onComponentDidMount)&&t.push(function(e,t){return function(){e.onComponentDidMount(g(t,!0),t.props||u)}}(n,e)))}function Pe(e,t,n,o,i,s,m){var h=t.flags|=16384;e.flags!==h||e.type!==t.type||e.key!==t.key||2048&h?16384&e.flags?function(e,t,n,o,r,a){be(e),0!=(t.flags&e.flags&2033)?(Le(t,null,o,r,null,a),function(e,t,n){e.replaceChild(t,n)}(n,t.dom,e.dom)):(Le(t,n,o,r,g(e,!0),a),V(e,n))}(e,t,n,o,i,m):Le(t,n,o,i,s,m):481&h?function(e,t,n,o,a,c){var i,l=t.dom=e.dom,d=e.props,s=t.props,m=!1,p=!1;if(o=o||(32&a)>0,d!==s){var h=d||u;if((i=s||u)!==u)for(var C in(m=(448&a)>0)&&(p=fe(i)),i){var f=h[C],N=i[C];f!==N&&we(C,f,N,l,o,p,e)}if(h!==u)for(var g in h)r(i[g])&&!r(h[g])&&we(g,h[g],null,l,o,p,e)}var V=t.children,b=t.className;e.className!==b&&(r(b)?l.removeAttribute("class"):o?l.setAttribute("class",b):l.className=b);4096&a?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,V):Fe(e.childFlags,t.childFlags,e.children,V,l,n,o&&"foreignObject"!==t.type,null,e,c);m&&he(a,t,l,i,!1,p);var v=t.ref,k=e.ref;k!==v&&(Ne(k),ge(v,l,c))}(e,t,o,i,h,m):4&h?function(e,t,n,o,r,a,i){var s=t.children=e.children;if(l(s))return;s.$L=i;var m=t.props||u,p=t.ref,h=e.ref,C=s.state;if(!s.$N){if(c(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(m,o),s.$UN)return;s.$BR=!1}l(s.$PS)||(C=d(C,s.$PS),s.$PS=null)}Oe(s,C,m,n,o,r,!1,a,i),h!==p&&(Ne(h),ge(p,s,i))}(e,t,n,o,i,s,m):8&h?function(e,t,n,o,a,i,l){var d=!0,s=t.props||u,m=t.ref,p=e.props,h=!r(m),C=e.children;h&&c(m.onComponentShouldUpdate)&&(d=m.onComponentShouldUpdate(p,s));if(!1!==d){h&&c(m.onComponentWillUpdate)&&m.onComponentWillUpdate(p,s);var f=F(Ie(t,o));Pe(C,f,n,o,a,i,l),t.children=f,h&&c(m.onComponentDidUpdate)&&m.onComponentDidUpdate(p,s)}else t.children=C}(e,t,n,o,i,s,m):16&h?function(e,t){var n=t.children,o=t.dom=e.dom;n!==e.children&&(o.nodeValue=n)}(e,t):512&h?t.dom=e.dom:8192&h?function(e,t,n,o,r,a){var c=e.children,i=t.children,l=e.childFlags,d=t.childFlags,s=null;12&d&&0===i.length&&(d=t.childFlags=2,i=t.children=M());var u=0!=(2&d);if(12&l){var m=c.length;(8&l&&8&d||u||!u&&i.length>m)&&(s=g(c[m-1],!1).nextSibling)}Fe(l,d,c,i,n,o,r,s,e,a)}(e,t,n,o,i,m):function(e,t,n,o){var r=e.ref,c=t.ref,i=t.children;if(Fe(e.childFlags,t.childFlags,e.children,i,r,n,!1,null,e,o),t.dom=e.dom,r!==c&&!a(i)){var l=i.dom;C(r,l),p(c,l)}}(e,t,o,m)}function Fe(e,t,n,o,r,a,c,i,l,d){switch(e){case 2:switch(t){case 2:Pe(n,o,r,a,c,i,d);break;case 1:Ve(n,r);break;case 16:be(n),y(r,o);break;default:!function(e,t,n,o,r,a){be(e),De(t,n,o,r,g(e,!0),a),V(e,n)}(n,o,r,a,c,d)}break;case 1:switch(t){case 2:Le(o,r,a,c,i,d);break;case 1:break;case 16:y(r,o);break;default:De(o,r,a,c,i,d)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:y(n,t))}(n,o,r);break;case 2:ke(r),Le(o,r,a,c,i,d);break;case 1:ke(r);break;default:ke(r),De(o,r,a,c,i,d)}break;default:switch(t){case 16:ve(n),y(r,o);break;case 2:_e(r,l,n),Le(o,r,a,c,i,d);break;case 1:_e(r,l,n);break;default:var s=0|n.length,u=0|o.length;0===s?u>0&&De(o,r,a,c,i,d):0===u?_e(r,l,n):8===t&&8===e?function(e,t,n,o,r,a,c,i,l,d){var s,u,m=a-1,p=c-1,h=0,C=e[h],f=t[h];e:{for(;C.key===f.key;){if(16384&f.flags&&(t[h]=f=D(f)),Pe(C,f,n,o,r,i,d),e[h]=f,++h>m||h>p)break e;C=e[h],f=t[h]}for(C=e[m],f=t[p];C.key===f.key;){if(16384&f.flags&&(t[p]=f=D(f)),Pe(C,f,n,o,r,i,d),e[m]=f,p--,h>--m||h>p)break e;C=e[m],f=t[p]}}if(h>m){if(h<=p)for(u=(s=p+1)<c?g(t[s],!0):i;h<=p;)16384&(f=t[h]).flags&&(t[h]=f=D(f)),++h,Le(f,n,o,r,u,d)}else if(h>p)for(;h<=m;)Ve(e[h++],n);else!function(e,t,n,o,r,a,c,i,l,d,s,u,m){var p,h,C,f=0,N=i,V=i,v=a-i+1,k=c-i+1,_=new Int32Array(k+1),y=v===o,w=!1,x=0,S=0;if(r<4||(v|k)<32)for(f=N;f<=a;++f)if(p=e[f],S<k){for(i=V;i<=c;i++)if(h=t[i],p.key===h.key){if(_[i-V]=f+1,y)for(y=!1;N<f;)Ve(e[N++],l);x>i?w=!0:x=i,16384&h.flags&&(t[i]=h=D(h)),Pe(p,h,l,n,d,s,m),++S;break}!y&&i>c&&Ve(p,l)}else y||Ve(p,l);else{var B={};for(f=V;f<=c;++f)B[t[f].key]=f;for(f=N;f<=a;++f)if(p=e[f],S<k)if(void 0!==(i=B[p.key])){if(y)for(y=!1;f>N;)Ve(e[N++],l);_[i-V]=f+1,x>i?w=!0:x=i,16384&(h=t[i]).flags&&(t[i]=h=D(h)),Pe(p,h,l,n,d,s,m),++S}else y||Ve(p,l);else y||Ve(p,l)}if(y)_e(l,u,e),De(t,l,n,d,s,m);else if(w){var I=function(e){var t=0,n=0,o=0,r=0,a=0,c=0,i=0,l=e.length;l>Re&&(Re=l,de=new Int32Array(l),se=new Int32Array(l));for(;n<l;++n)if(0!==(t=e[n])){if(e[o=de[r]]<t){se[n]=o,de[++r]=n;continue}for(a=0,c=r;a<c;)e[de[i=a+c>>1]]<t?a=i+1:c=i;t<e[de[a]]&&(a>0&&(se[n]=de[a-1]),de[a]=n)}a=r+1;var d=new Int32Array(a);c=de[a-1];for(;a-- >0;)d[a]=c,c=se[c],de[a]=0;return d}(_);for(i=I.length-1,f=k-1;f>=0;f--)0===_[f]?(16384&(h=t[x=f+V]).flags&&(t[x]=h=D(h)),Le(h,l,n,d,(C=x+1)<r?g(t[C],!0):s,m)):i<0||f!==I[i]?b(h=t[x=f+V],l,(C=x+1)<r?g(t[C],!0):s):i--}else if(S!==k)for(f=k-1;f>=0;f--)0===_[f]&&(16384&(h=t[x=f+V]).flags&&(t[x]=h=D(h)),Le(h,l,n,d,(C=x+1)<r?g(t[C],!0):s,m))}(e,t,o,a,c,m,p,h,n,r,i,l,d)}(n,o,r,a,c,s,u,i,l,d):function(e,t,n,o,r,a,c,i,l){for(var d,s,u=a>c?c:a,m=0;m<u;++m)d=t[m],s=e[m],16384&d.flags&&(d=t[m]=D(d)),Pe(s,d,n,o,r,i,l),e[m]=d;if(a<c)for(m=u;m<c;++m)16384&(d=t[m]).flags&&(d=t[m]=D(d)),Le(d,n,o,r,i,l);else if(a>c)for(m=u;m<a;++m)Ve(e[m],n)}(n,o,r,a,c,s,u,i,d)}}}function Oe(e,t,n,o,r,a,i,l,s){var u=e.state,m=e.props,p=Boolean(e.$N),h=c(e.shouldComponentUpdate);if(p&&(t=v(e,n,t!==u?d(u,t):t)),i||!h||h&&e.shouldComponentUpdate(n,t,r)){!p&&c(e.componentWillUpdate)&&e.componentWillUpdate(n,t,r),e.props=n,e.state=t,e.context=r;var C=null,f=Se(e,n,r);p&&c(e.getSnapshotBeforeUpdate)&&(C=e.getSnapshotBeforeUpdate(m,u)),Pe(e.$LI,f,o,e.$CX,a,l,s),e.$LI=f,c(e.componentDidUpdate)&&function(e,t,n,o,r){r.push((function(){e.componentDidUpdate(t,n,o)}))}(e,m,u,C,s)}else e.props=n,e.state=t,e.context=r}var Re=0;function je(e,t,n,o){var a=[],i=t.$V;k.v=!0,r(i)?r(e)||(16384&e.flags&&(e=D(e)),Le(e,t,o,!1,null,a),t.$V=e,i=e):r(e)?(Ve(i,t),t.$V=null):(16384&e.flags&&(e=D(e)),Pe(i,e,t,o,!1,null,a),i=t.$V=e),f(a),k.v=!1,c(n)&&n(),c(_.renderComplete)&&_.renderComplete(i,t)}function We(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=u),je(e,t,n,o)}"undefined"!=typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var ze=[],He="undefined"!=typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ue=!1;function Ge(e,t,n,o){var a=e.$PS;if(c(t)&&(t=t(a?d(e.state,a):e.state,e.props,e.context)),r(a))e.$PS=t;else for(var i in t)a[i]=t[i];if(e.$BR)c(n)&&e.$L.push(n.bind(e));else{if(!k.v&&0===ze.length)return Ke(e,o),void(c(n)&&n.call(e));if(-1===ze.indexOf(e)&&ze.push(e),o&&(e.$F=!0),Ue||(Ue=!0,He(Ye)),c(n)){var l=e.$QU;l||(l=e.$QU=[]),l.push(n)}}}function qe(e){for(var t=e.$QU,n=0;n<t.length;++n)t[n].call(e);e.$QU=null}function Ye(){var e;for(Ue=!1;e=ze.shift();)if(!e.$UN){var t=e.$F;e.$F=!1,Ke(e,t),e.$QU&&qe(e)}}function Ke(e,t){if(t||!e.$BR){var n=e.$PS;e.$PS=null;var o=[];k.v=!0,Oe(e,d(e.state,n),e.props,g(e.$LI,!0).parentNode,e.context,e.$SVG,t,null,o),f(o),k.v=!1}else e.state=e.$PS,e.$PS=null}var $e=function(e,t){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||u,this.context=t||u};t.Component=$e,$e.prototype.forceUpdate=function(e){this.$UN||Ge(this,{},e,!0)},$e.prototype.setState=function(e,t){this.$UN||this.$BS||Ge(this,e,t,!1)},$e.prototype.render=function(e,t,n){return null};t.version="7.4.8"},96323:function(e,t,n){"use strict";t.__esModule=!0;var o=n(92376);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},10648:function(e,t){"use strict";var n,o;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=n,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(n||(t.VNodeFlags=n={})),t.ChildFlags=o,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(o||(t.ChildFlags=o={}))},84883:function(e,t,n){"use strict";var o=n(28998),r=n(91892);function a(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(1067),e.exports.Schema=n(56043),e.exports.FAILSAFE_SCHEMA=n(80711),e.exports.JSON_SCHEMA=n(49036),e.exports.CORE_SCHEMA=n(64563),e.exports.DEFAULT_SCHEMA=n(67832),e.exports.load=o.load,e.exports.loadAll=o.loadAll,e.exports.dump=r.dump,e.exports.YAMLException=n(24244),e.exports.types={binary:n(45012),float:n(92650),map:n(97548),"null":n(84985),pairs:n(90448),set:n(66109),timestamp:n(47813),bool:n(37064),int:n(8542),merge:n(38033),omap:n(43760),seq:n(76007),str:n(51994)},e.exports.safeLoad=a("safeLoad","load"),e.exports.safeLoadAll=a("safeLoadAll","loadAll"),e.exports.safeDump=a("safeDump","dump")},86547:function(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var n,o="";for(n=0;n<t;n+=1)o+=e;return o},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,o,r,a;if(t)for(n=0,o=(a=Object.keys(t)).length;n<o;n+=1)e[r=a[n]]=t[r];return e}},91892:function(e,t,n){"use strict";var o=n(86547),r=n(24244),a=n(67832),c=Object.prototype.toString,i=Object.prototype.hasOwnProperty,l=65279,d={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},s=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],u=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function m(e){var t,n,a;if(t=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else{if(!(e<=4294967295))throw new r("code point within a string may not be greater than 0xFFFFFFFF");n="U",a=8}return"\\"+n+o.repeat("0",a-t.length)+t}function p(e){this.schema=e.schema||a,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=o.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,o,r,a,c,l,d;if(null===t)return{};for(n={},r=0,a=(o=Object.keys(t)).length;r<a;r+=1)c=o[r],l=String(t[c]),"!!"===c.slice(0,2)&&(c="tag:yaml.org,2002:"+c.slice(2)),(d=e.compiledTypeMap.fallback[c])&&i.call(d.styleAliases,l)&&(l=d.styleAliases[l]),n[c]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,t){for(var n,r=o.repeat(" ",t),a=0,c=-1,i="",l=e.length;a<l;)-1===(c=e.indexOf("\n",a))?(n=e.slice(a),a=l):(n=e.slice(a,c+1),a=c+1),n.length&&"\n"!==n&&(i+=r),i+=n;return i}function C(e,t){return"\n"+o.repeat(" ",e.indent*t)}function f(e){return 32===e||9===e}function N(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function g(e){return N(e)&&e!==l&&13!==e&&10!==e}function V(e,t,n){var o=g(e),r=o&&!f(e);return(n?o:o&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||g(t)&&!f(t)&&35===e||58===t&&r}function b(e,t){var n,o=e.charCodeAt(t);return o>=55296&&o<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(o-55296)+n-56320+65536:o}function v(e){return/^\n* /.test(e)}function k(e,t,n,o,r,a,c,i){var d,s,u=0,m=null,p=!1,h=!1,C=-1!==o,g=-1,k=N(s=b(e,0))&&s!==l&&!f(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!f(e)&&58!==e}(b(e,e.length-1));if(t||c)for(d=0;d<e.length;u>=65536?d+=2:d++){if(!N(u=b(e,d)))return 5;k=k&&V(u,m,i),m=u}else{for(d=0;d<e.length;u>=65536?d+=2:d++){if(10===(u=b(e,d)))p=!0,C&&(h=h||d-g-1>o&&" "!==e[g+1],g=d);else if(!N(u))return 5;k=k&&V(u,m,i),m=u}h=h||C&&d-g-1>o&&" "!==e[g+1]}return p||h?n>9&&v(e)?5:c?2===a?5:2:h?4:3:!k||c||r(e)?2===a?5:2:1}function _(e,t,n,o,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==s.indexOf(t)||u.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var c=e.indent*Math.max(1,n),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),l=o||e.flowLevel>-1&&n>=e.flowLevel;switch(k(t,l,e.indent,i,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n<o;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!o,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+y(t,e.indent)+w(h(t,c));case 4:return">"+y(t,e.indent)+w(h(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,a=(i=e.indexOf("\n"),i=-1!==i?i:e.length,r.lastIndex=i,x(e.slice(0,i),t)),c="\n"===e[0]||" "===e[0];var i;for(;o=r.exec(e);){var l=o[1],d=o[2];n=" "===d[0],a+=l+(c||n||""===d?"":"\n")+x(d,t),c=n}return a}(t,i),c));case 5:return'"'+function(e){for(var t,n="",o=0,r=0;r<e.length;o>=65536?r+=2:r++)o=b(e,r),!(t=d[o])&&N(o)?(n+=e[r],o>=65536&&(n+=e[r+1])):n+=t||m(o);return n}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function y(e,t){var n=v(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function w(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function x(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,a=0,c=0,i=0,l="";n=r.exec(e);)(i=n.index)-a>t&&(o=c>a?c:i,l+="\n"+e.slice(a,o),a=o+1),c=i;return l+="\n",e.length-a>t&&c>a?l+=e.slice(a,c)+"\n"+e.slice(c+1):l+=e.slice(a),l.slice(1)}function S(e,t,n,o){var r,a,c,i="",l=e.tag;for(r=0,a=n.length;r<a;r+=1)c=n[r],e.replacer&&(c=e.replacer.call(n,String(r),c)),(I(e,t+1,c,!0,!0,!1,!0)||void 0===c&&I(e,t+1,null,!0,!0,!1,!0))&&(o&&""===i||(i+=C(e,t)),e.dump&&10===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function B(e,t,n){var o,a,l,d,s,u;for(l=0,d=(a=n?e.explicitTypes:e.implicitTypes).length;l<d;l+=1)if(((s=a[l]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===c.call(s.represent))o=s.represent(t,u);else{if(!i.call(s.represent,u))throw new r("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');o=s.represent[u](t,u)}e.dump=o}return!0}return!1}function I(e,t,n,o,a,i,l){e.tag=null,e.dump=n,B(e,n,!1)||B(e,n,!0);var d,s=c.call(e.dump),u=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var m,p,h="[object Object]"===s||"[object Array]"===s;if(h&&(p=-1!==(m=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(a=!1),p&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(h&&p&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),"[object Object]"===s)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var a,c,i,l,d,s,u="",m=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(a=0,c=p.length;a<c;a+=1)s="",o&&""===u||(s+=C(e,t)),l=n[i=p[a]],e.replacer&&(l=e.replacer.call(n,i,l)),I(e,t+1,i,!0,!0,!0)&&((d=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?s+="?":s+="? "),s+=e.dump,d&&(s+=C(e,t)),I(e,t+1,l,!0,d)&&(e.dump&&10===e.dump.charCodeAt(0)?s+=":":s+=": ",u+=s+=e.dump));e.tag=m,e.dump=u||"{}"}(e,t,e.dump,a),p&&(e.dump="&ref_"+m+e.dump)):(!function(e,t,n){var o,r,a,c,i,l="",d=e.tag,s=Object.keys(n);for(o=0,r=s.length;o<r;o+=1)i="",""!==l&&(i+=", "),e.condenseFlow&&(i+='"'),c=n[a=s[o]],e.replacer&&(c=e.replacer.call(n,a,c)),I(e,t,a,!1,!1)&&(e.dump.length>1024&&(i+="? "),i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),I(e,t,c,!1,!1)&&(l+=i+=e.dump));e.tag=d,e.dump="{"+l+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+m+" "+e.dump));else if("[object Array]"===s)o&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?S(e,t-1,e.dump,a):S(e,t,e.dump,a),p&&(e.dump="&ref_"+m+e.dump)):(!function(e,t,n){var o,r,a,c="",i=e.tag;for(o=0,r=n.length;o<r;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(I(e,t,a,!1,!1)||void 0===a&&I(e,t,null,!1,!1))&&(""!==c&&(c+=","+(e.condenseFlow?"":" ")),c+=e.dump);e.tag=i,e.dump="["+c+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+m+" "+e.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(e.skipInvalid)return!1;throw new r("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&_(e,e.dump,t,i,u)}null!==e.tag&&"?"!==e.tag&&(d=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),d="!"===e.tag[0]?"!"+d:"tag:yaml.org,2002:"===d.slice(0,18)?"!!"+d.slice(18):"!<"+d+">",e.dump=d+" "+e.dump)}return!0}function L(e,t){var n,o,r=[],a=[];for(T(e,r,a),n=0,o=a.length;n<o;n+=1)t.duplicates.push(r[a[n]]);t.usedDuplicates=new Array(o)}function T(e,t,n){var o,r,a;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,a=e.length;r<a;r+=1)T(e[r],t,n);else for(r=0,a=(o=Object.keys(e)).length;r<a;r+=1)T(e[o[r]],t,n)}e.exports.dump=function(e,t){var n=new p(t=t||{});n.noRefs||L(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),I(n,0,o,!0,!0)?n.dump+"\n":""}},24244:function(e){"use strict";function t(e,t){var n="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),o+" "+n):o}function n(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=n},28998:function(e,t,n){"use strict";var o=n(86547),r=n(24244),a=n(40501),c=n(67832),i=Object.prototype.hasOwnProperty,l=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=/[\x85\u2028\u2029]/,s=/[,\[\]\{\}]/,u=/^(?:!|!!|![a-z\-]+!)$/i,m=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function p(e){return Object.prototype.toString.call(e)}function h(e){return 10===e||13===e}function C(e){return 9===e||32===e}function f(e){return 9===e||32===e||10===e||13===e}function N(e){return 44===e||91===e||93===e||123===e||125===e}function g(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function V(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var v=new Array(256),k=new Array(256),_=0;_<256;_++)v[_]=V(_)?1:0,k[_]=V(_);function y(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 w(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=a(n),new r(t,n)}function x(e,t){throw w(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}var B={YAML:function(e,t,n){var o,r,a;null!==e.version&&x(e,"duplication of %YAML directive"),1!==n.length&&x(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&x(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),a=parseInt(o[2],10),1!==r&&x(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&x(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],u.test(o)||x(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,o)&&x(e,'there is a previously declared suffix for "'+o+'" tag handle'),m.test(r)||x(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(a){x(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r}};function I(e,t,n,o){var r,a,c,i;if(t<n){if(i=e.input.slice(t,n),o)for(r=0,a=i.length;r<a;r+=1)9===(c=i.charCodeAt(r))||32<=c&&c<=1114111||x(e,"expected valid JSON character");else l.test(i)&&x(e,"the stream contains non-printable characters");e.result+=i}}function L(e,t,n,r){var a,c,l,d;for(o.isObject(n)||x(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,d=(a=Object.keys(n)).length;l<d;l+=1)c=a[l],i.call(t,c)||(t[c]=n[c],r[c]=!0)}function T(e,t,n,o,r,a,c,l,d){var s,u;if(Array.isArray(r))for(s=0,u=(r=Array.prototype.slice.call(r)).length;s<u;s+=1)Array.isArray(r[s])&&x(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===p(r[s])&&(r[s]="[object Object]");if("object"==typeof r&&"[object Object]"===p(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===o)if(Array.isArray(a))for(s=0,u=a.length;s<u;s+=1)L(e,t,a[s],n);else L(e,t,a,n);else e.json||i.call(n,r)||!i.call(t,r)||(e.line=c||e.line,e.lineStart=l||e.lineStart,e.position=d||e.position,x(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[r]=a,delete n[r];return t}function A(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function D(e,t,n){for(var o=0,r=e.input.charCodeAt(e.position);0!==r;){for(;C(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!h(r))break;for(A(e),r=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==o&&e.lineIndent<n&&S(e,"deficient indentation"),o}function M(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!f(t)))}function E(e,t){1===t?e.result+=" ":t>1&&(e.result+=o.repeat("\n",t-1))}function P(e,t){var n,o,r=e.tag,a=e.anchor,c=[],i=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,x(e,"tab characters must not be used in indentation")),45===o)&&f(e.input.charCodeAt(e.position+1));)if(i=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=t)c.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,R(e,t,3,!1,!0),c.push(e.result),D(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!i&&(e.tag=r,e.anchor=a,e.kind="sequence",e.result=c,!0)}function F(e){var t,n,o,r,a=!1,c=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&x(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(a=!0,r=e.input.charCodeAt(++e.position)):33===r?(c=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(o=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!f(r);)33===r&&(c?x(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),u.test(n)||x(e,"named tag handle cannot contain such characters"),c=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),s.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}o&&!m.test(o)&&x(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(l){x(e,"tag name is malformed: "+o)}return a?e.tag=o:i.call(e.tagMap,n)?e.tag=e.tagMap[n]+o:"!"===n?e.tag="!"+o:"!!"===n?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+n+'"'),!0}function O(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&x(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!f(n)&&!N(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function R(e,t,n,r,a){var c,l,d,s,u,m,p,V,_,y=1,w=!1,S=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=l=d=4===n||3===n,r&&D(e,!0,-1)&&(w=!0,e.lineIndent>t?y=1:e.lineIndent===t?y=0:e.lineIndent<t&&(y=-1)),1===y)for(;F(e)||O(e);)D(e,!0,-1)?(w=!0,d=c,e.lineIndent>t?y=1:e.lineIndent===t?y=0:e.lineIndent<t&&(y=-1)):d=!1;if(d&&(d=w||a),1!==y&&4!==n||(V=1===n||2===n?t:t+1,_=e.position-e.lineStart,1===y?d&&(P(e,_)||function(e,t,n){var o,r,a,c,i,l,d,s=e.tag,u=e.anchor,m={},p=Object.create(null),h=null,N=null,g=null,V=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=m),d=e.input.charCodeAt(e.position);0!==d;){if(V||-1===e.firstTabInLine||(e.position=e.firstTabInLine,x(e,"tab characters must not be used in indentation")),o=e.input.charCodeAt(e.position+1),a=e.line,63!==d&&58!==d||!f(o)){if(c=e.line,i=e.lineStart,l=e.position,!R(e,n,2,!1,!0))break;if(e.line===a){for(d=e.input.charCodeAt(e.position);C(d);)d=e.input.charCodeAt(++e.position);if(58===d)f(d=e.input.charCodeAt(++e.position))||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),V&&(T(e,m,p,h,N,null,c,i,l),h=N=g=null),b=!0,V=!1,r=!1,h=e.tag,N=e.result;else{if(!b)return e.tag=s,e.anchor=u,!0;x(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=s,e.anchor=u,!0;x(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===d?(V&&(T(e,m,p,h,N,null,c,i,l),h=N=g=null),b=!0,V=!0,r=!0):V?(V=!1,r=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,d=o;if((e.line===a||e.lineIndent>t)&&(V&&(c=e.line,i=e.lineStart,l=e.position),R(e,t,4,!0,r)&&(V?N=e.result:g=e.result),V||(T(e,m,p,h,N,g,c,i,l),h=N=g=null),D(e,!0,-1),d=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==d)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return V&&T(e,m,p,h,N,null,c,i,l),b&&(e.tag=s,e.anchor=u,e.kind="mapping",e.result=m),b}(e,_,V))||function(e,t){var n,o,r,a,c,i,l,d,s,u,m,p,h=!0,C=e.tag,N=e.anchor,g=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))c=93,d=!1,a=[];else{if(123!==p)return!1;c=125,d=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),p=e.input.charCodeAt(++e.position);0!==p;){if(D(e,!0,t),(p=e.input.charCodeAt(e.position))===c)return e.position++,e.tag=C,e.anchor=N,e.kind=d?"mapping":"sequence",e.result=a,!0;h?44===p&&x(e,"expected the node content, but found ','"):x(e,"missed comma between flow collection entries"),m=null,i=l=!1,63===p&&f(e.input.charCodeAt(e.position+1))&&(i=l=!0,e.position++,D(e,!0,t)),n=e.line,o=e.lineStart,r=e.position,R(e,t,1,!1,!0),u=e.tag,s=e.result,D(e,!0,t),p=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==p||(i=!0,p=e.input.charCodeAt(++e.position),D(e,!0,t),R(e,t,1,!1,!0),m=e.result),d?T(e,a,g,u,s,m,n,o,r):i?a.push(T(e,null,g,u,s,m,n,o,r)):a.push(s),D(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(h=!0,p=e.input.charCodeAt(++e.position)):h=!1}x(e,"unexpected end of the stream within a flow collection")}(e,V)?S=!0:(l&&function(e,t){var n,r,a,c,i,l=1,d=!1,s=!1,u=t,m=0,p=!1;if(124===(c=e.input.charCodeAt(e.position)))r=!1;else{if(62!==c)return!1;r=!0}for(e.kind="scalar",e.result="";0!==c;)if(43===(c=e.input.charCodeAt(++e.position))||45===c)1===l?l=43===c?3:2:x(e,"repeat of a chomping mode identifier");else{if(!((a=48<=(i=c)&&i<=57?i-48:-1)>=0))break;0===a?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?x(e,"repeat of an indentation width identifier"):(u=t+a-1,s=!0)}if(C(c)){do{c=e.input.charCodeAt(++e.position)}while(C(c));if(35===c)do{c=e.input.charCodeAt(++e.position)}while(!h(c)&&0!==c)}for(;0!==c;){for(A(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!s||e.lineIndent<u)&&32===c;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>u&&(u=e.lineIndent),h(c))m++;else{if(e.lineIndent<u){3===l?e.result+=o.repeat("\n",d?1+m:m):1===l&&d&&(e.result+="\n");break}for(r?C(c)?(p=!0,e.result+=o.repeat("\n",d?1+m:m)):p?(p=!1,e.result+=o.repeat("\n",m+1)):0===m?d&&(e.result+=" "):e.result+=o.repeat("\n",m):e.result+=o.repeat("\n",d?1+m:m),d=!0,s=!0,m=0,n=e.position;!h(c)&&0!==c;)c=e.input.charCodeAt(++e.position);I(e,n,e.position,!1)}}return!0}(e,V)||function(e,t){var n,o,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,o=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(I(e,o,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;o=e.position,e.position++,r=e.position}else h(n)?(I(e,o,r,!0),E(e,D(e,!1,t)),o=r=e.position):e.position===e.lineStart&&M(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}(e,V)||function(e,t){var n,o,r,a,c,i,l;if(34!==(i=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(i=e.input.charCodeAt(e.position));){if(34===i)return I(e,n,e.position,!0),e.position++,!0;if(92===i){if(I(e,n,e.position,!0),h(i=e.input.charCodeAt(++e.position)))D(e,!1,t);else if(i<256&&v[i])e.result+=k[i],e.position++;else if((c=120===(l=i)?2:117===l?4:85===l?8:0)>0){for(r=c,a=0;r>0;r--)(c=g(i=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+c:x(e,"expected hexadecimal character");e.result+=b(a),e.position++}else x(e,"unknown escape sequence");n=o=e.position}else h(i)?(I(e,n,o,!0),E(e,D(e,!1,t)),n=o=e.position):e.position===e.lineStart&&M(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}(e,V)?S=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!f(o)&&!N(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),i.call(e.anchorMap,n)||x(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],D(e,!0,-1),!0}(e)?function(e,t,n){var o,r,a,c,i,l,d,s,u=e.kind,m=e.result;if(f(s=e.input.charCodeAt(e.position))||N(s)||35===s||38===s||42===s||33===s||124===s||62===s||39===s||34===s||37===s||64===s||96===s)return!1;if((63===s||45===s)&&(f(o=e.input.charCodeAt(e.position+1))||n&&N(o)))return!1;for(e.kind="scalar",e.result="",r=a=e.position,c=!1;0!==s;){if(58===s){if(f(o=e.input.charCodeAt(e.position+1))||n&&N(o))break}else if(35===s){if(f(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&M(e)||n&&N(s))break;if(h(s)){if(i=e.line,l=e.lineStart,d=e.lineIndent,D(e,!1,-1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=a,e.line=i,e.lineStart=l,e.lineIndent=d;break}}c&&(I(e,r,a,!1),E(e,e.line-i),r=a=e.position,c=!1),C(s)||(a=e.position+1),s=e.input.charCodeAt(++e.position)}return I(e,r,a,!1),!!e.result||(e.kind=u,e.result=m,!1)}(e,V,1===n)&&(S=!0,null===e.tag&&(e.tag="?")):(S=!0,null===e.tag&&null===e.anchor||x(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===y&&(S=d&&P(e,_))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s<u;s+=1)if((p=e.implicitTypes[s]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(i.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,s=0,u=(m=e.typeMap.multi[e.kind||"fallback"]).length;s<u;s+=1)if(e.tag.slice(0,m[s].tag.length)===m[s].tag){p=m[s];break}p||x(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||S}function j(e){var t,n,o,r,a=e.position,c=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(D(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(c=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!f(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&x(e,"directive name must not be less than one character in length");0!==r;){for(;C(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!h(r));break}if(h(r))break;for(t=e.position;0!==r&&!f(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&A(e),i.call(B,n)?B[n](e,n,o):S(e,'unknown document directive "'+n+'"')}D(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,D(e,!0,-1)):c&&x(e,"directives end mark is expected"),R(e,e.lineIndent-1,4,!1,!0),D(e,!0,-1),e.checkLineBreaks&&d.test(e.input.slice(a,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&M(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,D(e,!0,-1)):e.position<e.length-1&&x(e,"end of the stream or a document separator is expected")}function W(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new y(e,t),o=e.indexOf("\0");for(-1!==o&&(n.position=o,x(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)j(n);return n.documents}e.exports.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var o=W(e,n);if("function"!=typeof t)return o;for(var r=0,a=o.length;r<a;r+=1)t(o[r])},e.exports.load=function(e,t){var n=W(e,t);if(0===n.length)return undefined;if(1===n.length)return n[0];throw new r("expected a single document in the stream, but found more")}},56043:function(e,t,n){"use strict";var o=n(24244),r=n(1067);function a(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=o)})),n[t]=e})),n}function c(e){return this.extend(e)}c.prototype.extend=function(e){var t=[],n=[];if(e instanceof r)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof r))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof r))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(c.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=a(i,"implicit"),i.compiledExplicit=a(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(o);return n}(i.compiledImplicit,i.compiledExplicit),i},e.exports=c},64563:function(e,t,n){"use strict";e.exports=n(49036)},67832:function(e,t,n){"use strict";e.exports=n(64563).extend({implicit:[n(47813),n(38033)],explicit:[n(45012),n(43760),n(90448),n(66109)]})},80711:function(e,t,n){"use strict";var o=n(56043);e.exports=new o({explicit:[n(51994),n(76007),n(97548)]})},49036:function(e,t,n){"use strict";e.exports=n(80711).extend({implicit:[n(84985),n(37064),n(8542),n(92650)]})},40501:function(e,t,n){"use strict";var o=n(86547);function r(e,t,n,o,r){var a="",c="",i=Math.floor(r/2)-1;return o-t>i&&(t=o-i+(a=" ... ").length),n-o>i&&(n=o+i-(c=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"\u2192")+c,pos:o-t+a.length}}function a(e,t){return o.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,c=/\r?\n|\r|\0/g,i=[0],l=[],d=-1;n=c.exec(e.buffer);)l.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&d<0&&(d=i.length-2);d<0&&(d=i.length-1);var s,u,m="",p=Math.min(e.line+t.linesAfter,l.length).toString().length,h=t.maxLength-(t.indent+p+3);for(s=1;s<=t.linesBefore&&!(d-s<0);s++)u=r(e.buffer,i[d-s],l[d-s],e.position-(i[d]-i[d-s]),h),m=o.repeat(" ",t.indent)+a((e.line-s+1).toString(),p)+" | "+u.str+"\n"+m;for(u=r(e.buffer,i[d],l[d],e.position,h),m+=o.repeat(" ",t.indent)+a((e.line+1).toString(),p)+" | "+u.str+"\n",m+=o.repeat("-",t.indent+p+3+u.pos)+"^\n",s=1;s<=t.linesAfter&&!(d+s>=l.length);s++)u=r(e.buffer,i[d+s],l[d+s],e.position-(i[d]-i[d+s]),h),m+=o.repeat(" ",t.indent)+a((e.line+s+1).toString(),p)+" | "+u.str+"\n";return m.replace(/\n$/,"")}},1067:function(e,t,n){"use strict";var o=n(24244),r=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var n,c;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===r.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,c={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){c[String(t)]=e}))})),c),-1===a.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},45012:function(e,t,n){"use strict";var o=n(1067),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,a=e.length,c=r;for(n=0;n<a;n++)if(!((t=c.indexOf(e.charAt(n)))>64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),a=o.length,c=r,i=0,l=[];for(t=0;t<a;t++)t%4==0&&t&&(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)),i=i<<6|c.indexOf(o.charAt(t));return 0===(n=a%4*6)?(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)):18===n?(l.push(i>>10&255),l.push(i>>2&255)):12===n&&l.push(i>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,o="",a=0,c=e.length,i=r;for(t=0;t<c;t++)t%3==0&&t&&(o+=i[a>>18&63],o+=i[a>>12&63],o+=i[a>>6&63],o+=i[63&a]),a=(a<<8)+e[t];return 0===(n=c%3)?(o+=i[a>>18&63],o+=i[a>>12&63],o+=i[a>>6&63],o+=i[63&a]):2===n?(o+=i[a>>10&63],o+=i[a>>4&63],o+=i[a<<2&63],o+=i[64]):1===n&&(o+=i[a>>2&63],o+=i[a<<4&63],o+=i[64],o+=i[64]),o}})},37064:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},92650:function(e,t,n){"use strict";var o=n(86547),r=n(1067),a=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var c=/^[-+]?[0-9]+e/;e.exports=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!a.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||o.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(o.isNegativeZero(e))return"-0.0";return n=e.toString(10),c.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},8542:function(e,t,n){"use strict";var o=n(86547),r=n(1067);function a(e){return 48<=e&&e<=55}function c(e){return 48<=e&&e<=57}e.exports=new r("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,i=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r<o;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!(48<=(n=e.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!a(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<o;r++)if("_"!==(t=e[r])){if(!c(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,n=e,o=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(o=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return o*parseInt(n.slice(2),2);if("x"===n[1])return o*parseInt(n.slice(2),16);if("o"===n[1])return o*parseInt(n.slice(2),8)}return o*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!o.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},97548:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},38033:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},84985:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},43760:function(e,t,n){"use strict";var o=n(1067),r=Object.prototype.hasOwnProperty,a=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,c,i,l=[],d=e;for(t=0,n=d.length;t<n;t+=1){if(o=d[t],i=!1,"[object Object]"!==a.call(o))return!1;for(c in o)if(r.call(o,c)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==l.indexOf(c))return!1;l.push(c)}return!0},construct:function(e){return null!==e?e:[]}})},90448:function(e,t,n){"use strict";var o=n(1067),r=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,a,c,i=e;for(c=new Array(i.length),t=0,n=i.length;t<n;t+=1){if(o=i[t],"[object Object]"!==r.call(o))return!1;if(1!==(a=Object.keys(o)).length)return!1;c[t]=[a[0],o[a[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,o,r,a,c=e;for(a=new Array(c.length),t=0,n=c.length;t<n;t+=1)o=c[t],r=Object.keys(o),a[t]=[r[0],o[r[0]]];return a}})},76007:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},66109:function(e,t,n){"use strict";var o=n(1067),r=Object.prototype.hasOwnProperty;e.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(r.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},51994:function(e,t,n){"use strict";var o=n(1067);e.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},47813:function(e,t,n){"use strict";var o=n(1067),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==r.exec(e)||null!==a.exec(e))},construct:function(e){var t,n,o,c,i,l,d,s,u=0,m=null;if(null===(t=r.exec(e))&&(t=a.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,c=+t[3],!t[4])return new Date(Date.UTC(n,o,c));if(i=+t[4],l=+t[5],d=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(m=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(m=-m)),s=new Date(Date.UTC(n,o,c,i,l,d,u)),m&&s.setTime(s.getTime()-m),s},instanceOf:Date,represent:function(e){return e.toISOString()}})},69838:function(e){"use strict";var t=function(e){var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var r=t&&t.prototype instanceof f?t:f,a=Object.create(r.prototype),c=new B(o||[]);return a._invoke=function(e,t,n){var o=u;return function(){function r(r,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw a;return L()}for(n.method=r,n.arg=a;;){var c=n.delegate;if(c){var i=w(c,n);if(i){if(i===C)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===u)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=s(e,t,n);if("normal"===l.type){if(o=n.done?h:m,l.arg===C)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=h,n.method="throw",n.arg=l.arg)}}return r}()}(e,n,c),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=d;var u="suspendedStart",m="suspendedYield",p="executing",h="completed",C={};function f(){}function N(){}function g(){}var V={};l(V,a,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(I([])));v&&v!==n&&o.call(v,a)&&(V=v);var k=g.prototype=f.prototype=Object.create(V);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(r,a,c,i){var l=s(e[r],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,i)}),(function(e){n("throw",e,c,i)})):t.resolve(u).then((function(e){d.value=e,c(d)}),(function(e){return n("throw",e,c,i)}))}i(l.arg)}var r;this._invoke=function(e,o){function a(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(a,a):a()}}function w(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return C;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var r=s(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,C;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,C):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,C)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function I(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,c=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return c.next=c}}return{next:L}}function L(){return{value:t,done:!0}}return N.prototype=g,l(k,"constructor",g),l(g,"constructor",N),N.displayName=l(g,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===N||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},_(y.prototype),l(y.prototype,c,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,o,r,a){void 0===a&&(a=Promise);var c=new y(d(t,n,o,r),a);return e.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},_(k),l(k,i,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var n=t.pop();if(n in e)return o.value=n,o.done=!1,o}return o.done=!0,o}},e.values=I,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return i.type="throw",i.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],i=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),d=o.call(c,"finallyLoc");if(l&&d){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),C}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:I(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),C}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},96250:function(){"use strict";self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,o){var r=new XMLHttpRequest,a=[],c=[],i={},l=function s(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:s,headers:{keys:function(){return a},entries:function(){return c},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var d in r.open(t.method||"get",e,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){a.push(t=t.toLowerCase()),c.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(l())},r.onerror=o,r.withCredentials="include"==t.credentials,t.headers)r.setRequestHeader(d,t.headers[d]);r.send(t.body||null)}))})},1397:function(e,t){"use strict";function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.__esModule=!0,t.binaryInsertWith=t.zipWith=t.zip=t.uniq=t.uniqBy=t.reduce=t.range=t.sortStrings=t.sort=t.sortBy=t.filterMap=t.map=t.filter=void 0;t.filter=function(e){return function(t){if(null===t||t===undefined)return t;if(Array.isArray(t)){for(var n=[],o=0;o<t.length;o++){var r=t[o];e(r,o,t)&&n.push(r)}return n}throw new Error("filter() can't iterate on type "+typeof t)}};var r=function(e){return function(t){if(null===t||t===undefined)return t;if(Array.isArray(t))return t.map(e);if("object"==typeof t)return Object.entries(t).map((function(n){var o=n[0],r=n[1];return e(r,o,t)}));throw new Error("map() can't iterate on type "+typeof t)}};t.map=r;t.filterMap=function(e,t){for(var o,r=[],a=n(e);!(o=a()).done;){var c=t(o.value);c!==undefined&&r.push(c)}return r};var a=function(e,t){for(var n=e.criteria,o=t.criteria,r=n.length,a=0;a<r;a++){var c=n[a],i=o[a];if(c<i)return-1;if(c>i)return 1}return 0},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(!Array.isArray(e))return e;for(var n=e.length,o=[],r=function(n){var r=e[n];o.push({criteria:t.map((function(e){return e(r)})),value:r})},c=0;c<n;c++)r(c);o.sort(a);for(var i=[];n--;)i[n]=o[n].value;return i}};t.sortBy=c;var i=c();t.sort=i;var l=c();t.sortStrings=l;t.range=function(e,t){return new Array(t-e).fill(null).map((function(t,n){return n+e}))};t.reduce=function(e,t){return function(n){var o,r,a=n.length;for(t===undefined?(o=1,r=n[0]):(o=0,r=t);o<a;o++)r=e(r,n[o],o,n);return r}};var d=function(e){return function(t){var n=t.length,o=[],r=e?[]:o,a=-1;e:for(;++a<n;){var c=t[a],i=e?e(c):c;if(i==i){for(var l=r.length;l--;)if(r[l]===i)continue e;e&&r.push(i),o.push(c)}else r.includes(i)||(r!==o&&r.push(i),o.push(c))}return o}};t.uniqBy=d;var s=d();t.uniq=s;var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return[];for(var o=t.length,r=t[0].length,a=[],c=0;c<r;c++){for(var i=[],l=0;l<o;l++)i.push(t[l][c]);a.push(i)}return a};t.zip=u;t.zipWith=function(e){return function(){return r((function(t){return e.apply(void 0,t)}))(u.apply(void 0,arguments))}};t.binaryInsertWith=function(e){return function(t,n){var o=[].concat(t);return o.splice(function(e,t,n){if(0===t.length)return 0;for(var o=e(n),r=[0,t.length],a=r[0],c=r[1],i=undefined,l=0;a<c;)if((i=e(t[l=a+c>>1]))<o)a=l+1;else{if(i===o)return l;c=l}return i>o?l:l+1}(e,t,n),0,n),o}}},89716:function(e,t){"use strict";t.__esModule=!0,t.Color=void 0;var n=1e-4,o=function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),this.r=e,this.g=t,this.b=n,this.a=o}return e.prototype.toString=function(){var e=parseFloat(this.a);return isNaN(e)&&(e=1),"rgba("+(0|this.r)+", "+(0|this.g)+", "+(0|this.b)+", "+e+")"},e}();t.Color=o,o.fromHex=function(e){return new o(parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16))},o.lerp=function(e,t,n){return new o((t.r-e.r)*n+e.r,(t.g-e.g)*n+e.g,(t.b-e.b)*n+e.b,(t.a-e.a)*n+e.a)},o.lookup=function(e,t){void 0===t&&(t=[]);var r=t.length;if(r<2)throw new Error("Needs at least two colors!");var a=e*(r-1);if(e<n)return t[0];if(e>=.9999)return t[r-1];var c=a%1,i=0|a;return o.lerp(t[i],t[i+1],c)}},52844:function(e,t){"use strict";t.__esModule=!0,t.EventEmitter=void 0;var n=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)},t.off=function(e,t){var n=this.listeners[e];if(!n)throw new Error('There is no listeners for "'+e+'"');this.listeners[e]=n.filter((function(e){return e!==t}))},t.emit=function(e){var t=this.listeners[e];if(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];for(var a=0,c=t.length;a<c;a+=1){var i=t[a];i.apply(void 0,o)}}},t.clear=function(){this.listeners={}},e}();t.EventEmitter=n},74593:function(e,t){"use strict";t.__esModule=!0,t.exhaustiveCheck=void 0;t.exhaustiveCheck=function(e){throw new Error("Unhandled case: "+e)}},32416:function(e,t){"use strict";function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.__esModule=!0,t.compose=t.flow=void 0;t.flow=function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e){for(var o=e,a=arguments.length,c=new Array(a>1?a-1:0),i=1;i<a;i++)c[i-1]=arguments[i];for(var l,d=n(t);!(l=d()).done;){var s=l.value;Array.isArray(s)?o=r.apply(void 0,s).apply(void 0,[o].concat(c)):s&&(o=s.apply(void 0,[o].concat(c)))}return o}};t.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return e.apply(void 0,[t.apply(void 0,[n].concat(r))].concat(r))}}))}},57890:function(e,t){"use strict";t.__esModule=!0,t.KEY_QUOTE=t.KEY_RIGHT_BRACKET=t.KEY_BACKSLASH=t.KEY_LEFT_BRACKET=t.KEY_SLASH=t.KEY_PERIOD=t.KEY_MINUS=t.KEY_COMMA=t.KEY_EQUAL=t.KEY_SEMICOLON=t.KEY_F12=t.KEY_F11=t.KEY_F10=t.KEY_F9=t.KEY_F8=t.KEY_F7=t.KEY_F6=t.KEY_F5=t.KEY_F4=t.KEY_F3=t.KEY_F2=t.KEY_F1=t.KEY_Z=t.KEY_Y=t.KEY_X=t.KEY_W=t.KEY_V=t.KEY_U=t.KEY_T=t.KEY_S=t.KEY_R=t.KEY_Q=t.KEY_P=t.KEY_O=t.KEY_N=t.KEY_M=t.KEY_L=t.KEY_K=t.KEY_J=t.KEY_I=t.KEY_H=t.KEY_G=t.KEY_F=t.KEY_E=t.KEY_D=t.KEY_C=t.KEY_B=t.KEY_A=t.KEY_9=t.KEY_8=t.KEY_7=t.KEY_6=t.KEY_5=t.KEY_4=t.KEY_3=t.KEY_2=t.KEY_1=t.KEY_0=t.KEY_DELETE=t.KEY_INSERT=t.KEY_DOWN=t.KEY_RIGHT=t.KEY_UP=t.KEY_LEFT=t.KEY_HOME=t.KEY_END=t.KEY_PAGEDOWN=t.KEY_PAGEUP=t.KEY_SPACE=t.KEY_ESCAPE=t.KEY_CAPSLOCK=t.KEY_PAUSE=t.KEY_ALT=t.KEY_CTRL=t.KEY_SHIFT=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=void 0;t.KEY_BACKSPACE=8;t.KEY_TAB=9;t.KEY_ENTER=13;t.KEY_SHIFT=16;t.KEY_CTRL=17;t.KEY_ALT=18;t.KEY_PAUSE=19;t.KEY_CAPSLOCK=20;t.KEY_ESCAPE=27;t.KEY_SPACE=32;t.KEY_PAGEUP=33;t.KEY_PAGEDOWN=34;t.KEY_END=35;t.KEY_HOME=36;t.KEY_LEFT=37;t.KEY_UP=38;t.KEY_RIGHT=39;t.KEY_DOWN=40;t.KEY_INSERT=45;t.KEY_DELETE=46;t.KEY_0=48;t.KEY_1=49;t.KEY_2=50;t.KEY_3=51;t.KEY_4=52;t.KEY_5=53;t.KEY_6=54;t.KEY_7=55;t.KEY_8=56;t.KEY_9=57;t.KEY_A=65;t.KEY_B=66;t.KEY_C=67;t.KEY_D=68;t.KEY_E=69;t.KEY_F=70;t.KEY_G=71;t.KEY_H=72;t.KEY_I=73;t.KEY_J=74;t.KEY_K=75;t.KEY_L=76;t.KEY_M=77;t.KEY_N=78;t.KEY_O=79;t.KEY_P=80;t.KEY_Q=81;t.KEY_R=82;t.KEY_S=83;t.KEY_T=84;t.KEY_U=85;t.KEY_V=86;t.KEY_W=87;t.KEY_X=88;t.KEY_Y=89;t.KEY_Z=90;t.KEY_F1=112;t.KEY_F2=113;t.KEY_F3=114;t.KEY_F4=115;t.KEY_F5=116;t.KEY_F6=117;t.KEY_F7=118;t.KEY_F8=119;t.KEY_F9=120;t.KEY_F10=121;t.KEY_F11=122;t.KEY_F12=123;t.KEY_SEMICOLON=186;t.KEY_EQUAL=187;t.KEY_COMMA=188;t.KEY_MINUS=189;t.KEY_PERIOD=190;t.KEY_SLASH=191;t.KEY_LEFT_BRACKET=219;t.KEY_BACKSLASH=220;t.KEY_RIGHT_BRACKET=221;t.KEY_QUOTE=222},97622:function(e,t){"use strict";t.__esModule=!0,t.numberOfDecimalDigits=t.keyOfMatchingRange=t.inRange=t.toFixed=t.round=t.scale=t.clamp01=t.clamp=void 0;t.clamp=function(e,t,n){return e<t?t:e>n?n:e};t.clamp01=function(e){return e<0?0:e>1?1:e};t.scale=function(e,t,n){return(e-t)/(n-t)};t.round=function(e,t){return!e||isNaN(e)?e:(t|=0,a=+((e*=n=Math.pow(10,t))>0)|-(e<0),r=Math.abs(e%1)>=.4999999999854481,o=Math.floor(e),r&&(e=o+(a>0)),(r?e:Math.round(e))/n);var n,o,r,a};t.toFixed=function(e,t){return void 0===t&&(t=0),Number(e).toFixed(Math.max(t,0))};var n=function(e,t){return t&&e>=t[0]&&e<=t[1]};t.inRange=n;t.keyOfMatchingRange=function(e,t){for(var o=0,r=Object.keys(t);o<r.length;o++){var a=r[o],c=t[a];if(n(e,c))return a}};t.numberOfDecimalDigits=function(e){return Math.floor(e)!==e&&e.toString().split(".")[1].length||0}},28440:function(e,t){"use strict";var n;t.__esModule=!0,t.perf=void 0;null==(n=window.performance)||n.now;var o={mark:function(e,t){0},measure:function(e,t){}};t.perf=o},1060:function(e,t){"use strict";t.__esModule=!0,t.canRender=t.pureComponentHooks=t.shallowDiffers=t.normalizeChildren=t.classes=void 0;t.classes=function(e){for(var t="",n=0;n<e.length;n++){var o=e[n];"string"==typeof o&&(t+=o+" ")}return t};t.normalizeChildren=function(e){return Array.isArray(e)?e.flat().filter((function(e){return e})):"object"==typeof e?[e]:[]};var n=function(e,t){var n;for(n in e)if(!(n in t))return!0;for(n in t)if(e[n]!==t[n])return!0;return!1};t.shallowDiffers=n;var o={onComponentShouldUpdate:function(e,t){return n(e,t)}};t.pureComponentHooks=o;t.canRender=function(e){return e!==undefined&&null!==e&&"boolean"!=typeof e}},465:function(e,t,n){"use strict";t.__esModule=!0,t.useSelector=t.useDispatch=t.createAction=t.combineReducers=t.applyMiddleware=t.createStore=void 0;var o=n(32416);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.createStore=function c(e,t){if(t)return t(c)(e);var n,o=[],r=function(t){n=e(n,t);for(var r=0;r<o.length;r++)o[r]()};return r({type:"@@INIT"}),{dispatch:r,subscribe:function(e){o.push(e)},getState:function(){return n}}};t.applyMiddleware=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];var i=e.apply(void 0,[n].concat(a)),l=function(){throw new Error("Dispatching while constructing your middleware is not allowed.")},d={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return l.apply(void 0,[e].concat(n))}},s=t.map((function(e){return e(d)}));return l=o.compose.apply(void 0,s)(i.dispatch),Object.assign({},i,{dispatch:l})}}};t.combineReducers=function(e){var t=Object.keys(e),n=!1;return function(o,a){void 0===o&&(o={});for(var c,i=Object.assign({},o),l=r(t);!(c=l()).done;){var d=c.value,s=e[d],u=o[d],m=s(u,a);u!==m&&(n=!0,i[d]=m)}return n?i:o}};t.createAction=function(e,t){void 0===t&&(t=null);var n=function(){if(!t)return{type:e,payload:arguments.length<=0?undefined:arguments[0]};var n=t.apply(void 0,arguments);if(!n)throw new Error("prepare function did not return an object");var o={type:e};return"payload"in n&&(o.payload=n.payload),"meta"in n&&(o.meta=n.meta),o};return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n};t.useDispatch=function(e){return e.store.dispatch};t.useSelector=function(e,t){return t(e.store.getState())}},7151:function(e,t){"use strict";function n(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function o(e){return function(){var t=this,o=arguments;return new Promise((function(r,a){var c=e.apply(t,o);function i(e){n(c,r,a,i,l,"next",e)}function l(e){n(c,r,a,i,l,"throw",e)}i(undefined)}))}}t.__esModule=!0,t.storage=t.IMPL_INDEXED_DB=t.IMPL_LOCAL_STORAGE=t.IMPL_MEMORY=void 0;t.IMPL_MEMORY=0;t.IMPL_LOCAL_STORAGE=1;t.IMPL_INDEXED_DB=2;var r="storage-v1",a="readwrite",c=function(e){return function(){try{return Boolean(e())}catch(t){return!1}}},i=c((function(){return window.localStorage&&window.localStorage.getItem})),l=c((function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)})),d=function(){function e(){this.impl=0,this.store={}}var t=e.prototype;return t.get=function(e){return this.store[e]},t.set=function(e,t){this.store[e]=t},t.remove=function(e){this.store[e]=undefined},t.clear=function(){this.store={}},e}(),s=function(){function e(){this.impl=1}var t=e.prototype;return t.get=function(e){var t=localStorage.getItem(e);if("string"==typeof t)return JSON.parse(t)},t.set=function(e,t){localStorage.setItem(e,JSON.stringify(t))},t.remove=function(e){localStorage.removeItem(e)},t.clear=function(){localStorage.clear()},e}(),u=function(){function e(){this.impl=2,this.dbPromise=new Promise((function(e,t){var n=(window.indexedDB||window.msIndexedDB).open("tgui-citadel-rp",1);n.onupgradeneeded=function(){try{n.result.createObjectStore(r)}catch(e){t(new Error("Failed to upgrade IDB: "+n.error))}},n.onsuccess=function(){return e(n.result)},n.onerror=function(){t(new Error("Failed to open IDB: "+n.error))}}))}var t=e.prototype;return t.getStore=function(e){return this.dbPromise.then((function(t){return t.transaction(r,e).objectStore(r)}))},t.get=function(){var e=o(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getStore("readonly");case 2:return n=t.sent,t.abrupt("return",new Promise((function(t,o){var r=n.get(e);r.onsuccess=function(){return t(r.result)},r.onerror=function(){return o(r.error)}})));case 4:case"end":return t.stop()}}),t,this)})));return function(t){return e.apply(this,arguments)}}(),t.set=function(){var e=o(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===n&&(n=undefined),t.next=3,this.getStore(a);case 3:t.sent.put(n,e);case 5:case"end":return t.stop()}}),t,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.remove=function(){var e=o(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getStore(a);case 2:t.sent["delete"](e);case 4:case"end":return t.stop()}}),t,this)})));return function(t){return e.apply(this,arguments)}}(),t.clear=function(){var e=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getStore(a);case 2:e.sent.clear();case 4:case"end":return e.stop()}}),t,this)})));return function(){return e.apply(this,arguments)}}(),e}(),m=new(function(){function e(){this.backendPromise=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l()){e.next=10;break}return e.prev=1,t=new u,e.next=5,t.dbPromise;case 5:return e.abrupt("return",t);case 8:e.prev=8,e.t0=e["catch"](1);case 10:if(!i()){e.next=12;break}return e.abrupt("return",new s);case 12:return e.abrupt("return",new d);case 13:case"end":return e.stop()}}),e,null,[[1,8]])})))()}var t=e.prototype;return t.get=function(){var e=o(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.backendPromise;case 2:return n=t.sent,t.abrupt("return",n.get(e));case 4:case"end":return t.stop()}}),t,this)})));return function(t){return e.apply(this,arguments)}}(),t.set=function(){var e=o(regeneratorRuntime.mark((function t(e,n){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.backendPromise;case 2:return o=t.sent,t.abrupt("return",o.set(e,n));case 4:case"end":return t.stop()}}),t,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.remove=function(){var e=o(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.backendPromise;case 2:return n=t.sent,t.abrupt("return",n.remove(e));case 4:case"end":return t.stop()}}),t,this)})));return function(t){return e.apply(this,arguments)}}(),t.clear=function(){var e=o(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.backendPromise;case 2:return e=t.sent,t.abrupt("return",e.clear());case 4:case"end":return t.stop()}}),t,this)})));return function(){return e.apply(this,arguments)}}(),e}());t.storage=m},21118:function(e,t){"use strict";function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.__esModule=!0,t.buildQueryString=t.decodeHtmlEntities=t.toTitleCase=t.capitalize=t.createSearch=t.createGlobPattern=t.multiline=void 0;t.multiline=function r(e){if(Array.isArray(e))return r(e.join(""));for(var t,o,a=e.split("\n"),c=n(a);!(o=c()).done;)for(var i=o.value,l=0;l<i.length;l++){if(" "!==i[l]){(t===undefined||l<t)&&(t=l);break}}return t||(t=0),a.map((function(e){return e.substr(t).trimRight()})).join("\n").trim()};t.createGlobPattern=function(e){var t=new RegExp("^"+e.split(/\*+/).map((function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")})).join(".*")+"$");return function(e){return t.test(e)}};t.createSearch=function(e,t){var n=e.toLowerCase().trim();return function(e){if(!n)return!0;var o=t?t(e):e;return!!o&&o.toLowerCase().includes(n)}};t.capitalize=function a(e){return Array.isArray(e)?e.map(a):e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()};t.toTitleCase=function c(e){if(Array.isArray(e))return e.map(c);if("string"!=typeof e)return e;for(var t=e.replace(/([^\W_]+[^\s-]*) */g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})),n=0,o=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];n<o.length;n++){var r=new RegExp("\\s"+o[n]+"\\s","g");t=t.replace(r,(function(e){return e.toLowerCase()}))}for(var a=0,i=["Id","Tv"];a<i.length;a++){var l=new RegExp("\\b"+i[a]+"\\b","g");t=t.replace(l,(function(e){return e.toLowerCase()}))}return t};t.decodeHtmlEntities=function(e){if(!e)return e;var t={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">",apos:"'"};return e.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},53538:function(e,t){"use strict";t.__esModule=!0,t.sleep=t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];var i=function(){o=null,n||e.apply(void 0,a)},l=n&&!o;clearTimeout(o),o=setTimeout(i,t),l&&e.apply(void 0,a)}};t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},54530:function(e,t){"use strict";t.__esModule=!0,t.createUuid=void 0;t.createUuid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}},67288:function(e,t,n){"use strict";t.__esModule=!0,t.vecNormalize=t.vecLength=t.vecInverse=t.vecScale=t.vecDivide=t.vecMultiply=t.vecSubtract=t.vecAdd=void 0;var o=n(1397),r=function(e,t){return e+t},a=function(e,t){return e-t},c=function(e,t){return e*t},i=function(e,t){return e/t};t.vecAdd=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.reduce)((function(e,t){return(0,o.zipWith)(r)(e,t)}))(t)};t.vecSubtract=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.reduce)((function(e,t){return(0,o.zipWith)(a)(e,t)}))(t)};t.vecMultiply=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.reduce)((function(e,t){return(0,o.zipWith)(c)(e,t)}))(t)};var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.reduce)((function(e,t){return(0,o.zipWith)(i)(e,t)}))(t)};t.vecDivide=l;t.vecScale=function(e,t){return(0,o.map)((function(e){return e*t}))(e)};t.vecInverse=function(e){return(0,o.map)((function(e){return-e}))(e)};var d=function(e){return Math.sqrt((0,o.reduce)(r)((0,o.zipWith)(c)(e,e)))};t.vecLength=d;t.vecNormalize=function(e){return l(e,d(e))}},39646:function(e,t){"use strict";t.__esModule=!0,t.assetMiddleware=t.resolveAsset=void 0;var n=[/v4shim/i],o={};t.resolveAsset=function(e){return o[e]||e};t.assetMiddleware=function(e){return function(e){return function(t){var r=t.type,a=t.payload;if("asset/stylesheet"!==r)if("asset/mappings"!==r)e(t);else for(var c=function(){var e=l[i];if(n.some((function(t){return t.test(e)})))return"continue";var t=a[e],r=e.split(".").pop();o[e]=t,"css"===r&&Byond.loadCss(t),"js"===r&&Byond.loadJs(t)},i=0,l=Object.keys(a);i<l.length;i++)c();else Byond.loadCss(a)}}}},31246:function(e,t,n){"use strict";t.__esModule=!0,t.useSharedState=t.useLocalState=t.useBackend=t.selectBackend=t.sendAct=t.backendMiddleware=t.backendReducer=t.backendSuspendSuccess=t.backendSuspendStart=t.backendSetSharedState=t.backendData=t.backendUpdate=void 0;var o=n(28440),r=n(465),a=n(41410),c=n(40509),i=n(79926),l=n(78238),d=(0,i.createLogger)("backend"),s=(0,r.createAction)("backend/update");t.backendUpdate=s;var u=(0,r.createAction)("backend/data");t.backendData=u;var m=(0,r.createAction)("backend/setSharedState");t.backendSetSharedState=m;var p=(0,r.createAction)("backend/suspendStart");t.backendSuspendStart=p;var h=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}};t.backendSuspendSuccess=h;var C={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1};t.backendReducer=function(e,t){void 0===e&&(e=C);var n=t.type,o=t.payload;if("backend/update"===n){var r=Object.assign({},e.config,o.config),a=Object.assign({},e.data,o.static_data,o.data),c=Object.assign({},e.shared);if(o.shared)for(var i=0,l=Object.keys(o.shared);i<l.length;i++){var d=l[i],s=o.shared[d];c[d]=""===s?undefined:JSON.parse(s)}return Object.assign({},e,{config:r,data:a,shared:c,suspended:!1})}if("backend/data"===n){var u=Object.assign({},e.data,o.data);return Object.assign({},e,{data:u})}if("backend/setSharedState"===n){var m,p=o.key,h=o.nextState;return Object.assign({},e,{shared:Object.assign({},e.shared,(m={},m[p]=h,m))})}if("backend/suspendStart"===n)return Object.assign({},e,{suspending:!0});if("backend/suspendSuccess"===n){var f=o.timestamp;return Object.assign({},e,{data:{},shared:{},config:Object.assign({},e.config,{title:"",status:1}),suspending:!1,suspended:f})}return e};t.backendMiddleware=function(e){var t,n;return function(r){return function(i){var m=N(e.getState()).suspended,p=i.type,C=i.payload;if("update"!==p)if("data"!==p)if("suspend"!==p){if("ping"!==p){if("backend/suspendStart"===p&&!n){d.log("suspending ("+Byond.windowId+")");var f=function(){return Byond.sendMessage("suspend")};f(),n=setInterval(f,2e3)}if("backend/suspendSuccess"===p&&((0,l.suspendRenderer)(),clearInterval(n),n=undefined,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate((function(){return(0,c.focusMap)()}))),"backend/update"===p){var g,V,b=null==(g=C.config)||null==(V=g.window)?void 0:V.fancy;t===undefined?t=b:t!==b&&(d.log("changing fancy mode to",b),t=b,Byond.winset(Byond.windowId,{titlebar:!b,"can-resize":!b}))}return"backend/update"===p&&m&&(d.log("backend/update",C),(0,l.resumeRenderer)(),(0,a.setupDrag)(),setImmediate((function(){o.perf.mark("resume/start"),N(e.getState()).suspended||(Byond.winset(Byond.windowId,{"is-visible":!0}),o.perf.mark("resume/finish"))}))),r(i)}Byond.sendMessage("ping/reply")}else e.dispatch(h());else e.dispatch(u(C));else e.dispatch(s(C))}}};var f=function(e,t){void 0===t&&(t={}),"object"!=typeof t||null===t||Array.isArray(t)?d.error("Payload for act() must be an object, got this:",t):Byond.sendMessage("act/"+e,t)};t.sendAct=f;var N=function(e){return e.backend||{}};t.selectBackend=N;t.useBackend=function(e){var t=e.store,n=N(t.getState());return Object.assign({},n,{act:f})};t.useLocalState=function(e,t,n){var o,r=e.store,a=null!=(o=N(r.getState()).shared)?o:{},c=t in a?a[t]:n;return[c,function(e){r.dispatch(m({key:t,nextState:"function"==typeof e?e(c):e}))}]};t.useSharedState=function(e,t,n){var o,r=e.store,a=null!=(o=N(r.getState()).shared)?o:{},c=t in a?a[t]:n;return[c,function(e){Byond.sendMessage({type:"setSharedState",key:t,value:JSON.stringify("function"==typeof e?e(c):e)||""})}]}},13251:function(e,t,n){"use strict";t.__esModule=!0,t.AnimatedNumber=void 0;var o=n(97622),r=n(96323);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){return"number"==typeof e&&Number.isFinite(e)&&!Number.isNaN(e)},i=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:0},c(t.initial)?n.state.value=t.initial:c(t.value)&&(n.state.value=Number(t.value)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var i=r.prototype;return i.tick=function(){var e=this.props,t=this.state,n=Number(t.value),o=Number(e.value);if(c(o)){var r=.5*n+.5*o;this.setState({value:r})}},i.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),50)},i.componentWillUnmount=function(){clearTimeout(this.timer)},i.render=function(){var e,t=this.props,n=this.state,r=t.format,a=t.children,i=n.value,l=t.value;if(!c(l))return l||null;if(r)e=r(i);else{var d=String(l).split(".")[1],s=d?d.length:0;e=(0,o.toFixed)(i,(0,o.clamp)(s,0,8))}return"function"==typeof a?a(e,i):e},r}(r.Component);t.AnimatedNumber=i},75434:function(e,t,n){"use strict";t.__esModule=!0,t.Autofocus=void 0;var o=n(96323);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).ref=(0,o.createRef)(),t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.componentDidMount=function(){var e=this;setTimeout((function(){var t;null==(t=e.ref.current)||t.focus()}),1)},c.render=function(){return(0,o.createVNode)(1,"div",null,this.props.children,0,{tabIndex:-1},null,this.ref)},a}(o.Component);t.Autofocus=a},90297:function(e,t,n){"use strict";t.__esModule=!0,t.Blink=void 0;var o=n(96323);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).state={hidden:!1},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.createTimer=function(){var e=this,t=this.props,n=t.interval,o=void 0===n?1e3:n,r=t.time,a=void 0===r?1e3:r;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval((function(){e.setState({hidden:!0}),e.timer=setTimeout((function(){e.setState({hidden:!1})}),a)}),o+a)},c.componentDidMount=function(){this.createTimer()},c.componentDidUpdate=function(e){e.interval===this.props.interval&&e.time===this.props.time||this.createTimer()},c.componentWillUnmount=function(){clearInterval(this.interval),clearTimeout(this.timer)},c.render=function(e){return(0,o.createVNode)(1,"span",null,e.children,0,{style:{visibility:this.state.hidden?"hidden":"visible"}})},a}(o.Component);t.Blink=a},7149:function(e,t,n){"use strict";t.__esModule=!0,t.BlockQuote=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["className"];t.BlockQuote=function(e){var t=e.className,n=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,c);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["BlockQuote",t])},n)))}},28379:function(e,t,n){"use strict";t.__esModule=!0,t.BodyZoneSelector=t.BodyZone=void 0;var o,r=n(96323),a=n(39646),c=n(54425);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.BodyZone=o,function(e){e.Head="head",e.Chest="chest",e.LeftArm="l_arm",e.RightArm="r_arm",e.LeftLeg="l_leg",e.RightLeg="r_leg",e.Eyes="eyes",e.Mouth="mouth",e.Groin="groin"}(o||(t.BodyZone=o={}));var l=function(e,t){if(t<1)return null;if(t<10){if(e>10&&e<15)return o.RightLeg;if(e>17&&e<22)return o.LeftLeg}else if(t<13){if(e>8&&e<11)return o.RightArm;if(e>12&&e<20)return o.Groin;if(e>21&&e<24)return o.LeftArm}else if(t<22){if(e>8&&e<11)return o.RightArm;if(e>12&&e<20)return o.Chest;if(e>21&&e<24)return o.LeftArm}else if(t<30&&e>12&&e<20)return t>23&&t<24&&e>15&&e<17?o.Mouth:t>25&&t<27&&e>14&&e<18?o.Eyes:o.Head;return null},d=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).ref=(0,r.createRef)(),t.state={hoverZone:null},t}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o.prototype.render=function(){var e=this,t=this.state.hoverZone,n=this.props,o=n.scale,i=void 0===o?3:o,d=n.selectedZone;return(0,r.createVNode)(1,"div",null,[(0,r.createComponentVNode)(2,c.Box,{as:"img",src:(0,a.resolveAsset)("body_zones.base.png"),onClick:function(){var t=e.props.onClick;t&&e.state.hoverZone&&t(e.state.hoverZone)},onMouseMove:function(t){var n;if(e.props.onClick){var o=null==(n=e.ref.current)?void 0:n.getBoundingClientRect();if(o){var r=t.clientX-o.left,a=32*i-(t.clientY-o.top);e.setState({hoverZone:l(r/i,a/i)})}}},style:{"-ms-interpolation-mode":"nearest-neighbor",position:"absolute",width:32*i+"px",height:32*i+"px"}}),d&&(0,r.createComponentVNode)(2,c.Box,{as:"img",src:(0,a.resolveAsset)("body_zones."+d+".png"),style:{"-ms-interpolation-mode":"nearest-neighbor","pointer-events":"none",position:"absolute",width:32*i+"px",height:32*i+"px"}}),t&&t!==d&&(0,r.createComponentVNode)(2,c.Box,{as:"img",src:(0,a.resolveAsset)("body_zones."+t+".png"),style:{"-ms-interpolation-mode":"nearest-neighbor",opacity:.5,"pointer-events":"none",position:"absolute",width:32*i+"px",height:32*i+"px"}})],0,{style:{width:32*i+"px",height:32*i+"px",position:"relative"}},null,this.ref)},o}(r.Component);t.BodyZoneSelector=d},54425:function(e,t,n){"use strict";t.__esModule=!0,t.Box=t.computeBoxClassName=t.computeBoxProps=t.halfUnit=t.unit=void 0;var o=n(1060),r=n(96323),a=n(10648),c=n(84200),i=["as","className","children"];var l=function(e){return"string"==typeof e?e.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(e)/12+"rem":e:"number"==typeof e?Byond.IS_LTE_IE8?12*e+"px":e+"rem":void 0};t.unit=l;var d=function(e){return"string"==typeof e?l(e):"number"==typeof e?l(.5*e):void 0};t.halfUnit=d;var s=function(e){return"string"==typeof e&&c.CSS_COLORS.includes(e)},u=function(e){return function(t,n){"number"!=typeof n&&"string"!=typeof n||(t[e]=n)}},m=function(e,t){return function(n,o){"number"!=typeof o&&"string"!=typeof o||(n[e]=t(o))}},p=function(e,t){return function(n,o){o&&(n[e]=t)}},h=function(e,t,n){return function(o,r){if("number"==typeof r||"string"==typeof r)for(var a=0;a<n.length;a++)o[e+"-"+n[a]]=t(r)}},C=function(e){return function(t,n){s(n)||(t[e]=n)}},f={position:u("position"),overflow:u("overflow"),overflowX:u("overflow-x"),overflowY:u("overflow-y"),top:m("top",l),bottom:m("bottom",l),left:m("left",l),right:m("right",l),width:m("width",l),minWidth:m("min-width",l),maxWidth:m("max-width",l),height:m("height",l),minHeight:m("min-height",l),maxHeight:m("max-height",l),fontSize:m("font-size",l),fontFamily:u("font-family"),lineHeight:function(e,t){"number"==typeof t?e["line-height"]=t:"string"==typeof t&&(e["line-height"]=l(t))},opacity:u("opacity"),textAlign:u("text-align"),verticalAlign:u("vertical-align"),inline:p("display","inline-block"),bold:p("font-weight","bold"),italic:p("font-style","italic"),nowrap:p("white-space","nowrap"),preserveWhitespace:p("white-space","pre-wrap"),m:h("margin",d,["top","bottom","left","right"]),mx:h("margin",d,["left","right"]),my:h("margin",d,["top","bottom"]),mt:m("margin-top",d),mb:m("margin-bottom",d),ml:m("margin-left",d),mr:m("margin-right",d),p:h("padding",d,["top","bottom","left","right"]),px:h("padding",d,["left","right"]),py:h("padding",d,["top","bottom"]),pt:m("padding-top",d),pb:m("padding-bottom",d),pl:m("padding-left",d),pr:m("padding-right",d),color:C("color"),textColor:C("color"),backgroundColor:C("background-color"),fillPositionedParent:function(e,t){t&&(e.position="absolute",e.top=0,e.bottom=0,e.left=0,e.right=0)}},N=function(e){for(var t={},n={},o=0,r=Object.keys(e);o<r.length;o++){var a=r[o];if("style"!==a)if(Byond.IS_LTE_IE8&&"onClick"===a)t.onclick=e[a];else{var c=e[a],i=f[a];i?i(n,c):t[a]=c}}for(var l="",d=0,s=Object.keys(n);d<s.length;d++){var u=s[d];l+=u+":"+n[u]+";"}if(e.style)for(var m=0,p=Object.keys(e.style);m<p.length;m++){var h=p[m];l+=h+":"+e.style[h]+";"}return l.length>0&&(t.style=l),t};t.computeBoxProps=N;var g=function(e){var t=e.textColor||e.color,n=e.backgroundColor;return(0,o.classes)([s(t)&&"color-"+t,s(n)&&"color-bg-"+n])};t.computeBoxClassName=g;var V=function(e){var t=e.as,n=void 0===t?"div":t,o=e.className,c=e.children,l=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);if("function"==typeof c)return c(N(e));var d="string"==typeof o?o+" "+g(l):g(l),s=N(l);return(0,r.createVNode)(a.VNodeFlags.HtmlElement,n,d,c,a.ChildFlags.UnknownChildren,s,undefined)};t.Box=V,V.defaultHooks=o.pureComponentHooks},25808:function(e,t,n){"use strict";t.__esModule=!0,t.ButtonInput=t.ButtonConfirm=t.ButtonCheckbox=t.Button=void 0;var o=n(96323),r=n(57890),a=n(1060),c=n(79926),i=n(54425),l=n(65743),d=n(59463),s=["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onclick","onClick","verticalAlignContent"],u=["checked"],m=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],p=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"];function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C(e,t)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var N=(0,c.createLogger)("Button"),g=function(e){var t=e.className,n=e.fluid,c=e.icon,u=e.iconRotation,m=e.iconSpin,p=e.iconColor,h=e.iconPosition,C=e.color,g=e.disabled,V=e.selected,b=e.tooltip,v=e.tooltipPosition,k=e.ellipsis,_=e.compact,y=e.circular,w=e.content,x=e.children,S=e.onclick,B=e.onClick,I=e.verticalAlignContent,L=f(e,s),T=!(!w&&!x);S&&N.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"),L.onClick=function(e){!g&&B&&B(e)},Byond.IS_LTE_IE8&&(L.unselectable=!0);var A=(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Button",n&&"Button--fluid",g&&"Button--disabled",V&&"Button--selected",T&&"Button--hasContent",k&&"Button--ellipsis",y&&"Button--circular",_&&"Button--compact",h&&"Button--iconPosition--"+h,I&&"Button--flex",I&&n&&"Button--flex--fluid",I&&"Button--verticalAlignContent--"+I,C&&"string"==typeof C?"Button--color--"+C:"Button--color--default",t,(0,i.computeBoxClassName)(L)]),(0,o.createVNode)(1,"div","Button__content",[c&&"right"!==h&&(0,o.createComponentVNode)(2,l.Icon,{name:c,color:p,rotation:u,spin:m}),w,x,c&&"right"===h&&(0,o.createComponentVNode)(2,l.Icon,{name:c,color:p,rotation:u,spin:m})],0),2,Object.assign({tabIndex:!g&&"0",onKeyDown:function(t){if(!1!==e.captureKeys){var n=window.event?t.which:t.keyCode;if(n===r.KEY_SPACE||n===r.KEY_ENTER)return t.preventDefault(),void(!g&&B&&B(t));n!==r.KEY_ESCAPE||t.preventDefault()}}},(0,i.computeBoxProps)(L))));return b&&(A=(0,o.createComponentVNode)(2,d.Tooltip,{content:b,position:v,children:A})),A};t.Button=g,g.defaultHooks=a.pureComponentHooks;var V=function(e){var t=e.checked,n=f(e,u);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,g,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=V,g.Checkbox=V;var b=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}h(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,r=void 0===n?"Confirm?":n,a=t.confirmColor,c=void 0===a?"bad":a,i=t.confirmIcon,l=t.icon,d=t.color,s=t.content,u=t.onClick,p=f(t,m);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,g,Object.assign({content:this.state.clickedOnce?r:s,icon:this.state.clickedOnce?i:l,color:this.state.clickedOnce?c:d,onClick:function(){return e.state.clickedOnce?u():e.setClickedOnce(!0)}},p)))},t}(o.Component);t.ButtonConfirm=b,g.Confirm=b;var v=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={inInput:!1},t}h(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,c=t.content,s=t.icon,u=t.iconRotation,m=t.iconSpin,h=t.tooltip,C=t.tooltipPosition,N=t.color,g=void 0===N?"default":N,V=(t.placeholder,t.maxLength,f(t,p)),b=(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Box,Object.assign({className:(0,a.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},V,{onClick:function(){return e.setInInput(!0)},children:[s&&(0,o.createComponentVNode)(2,l.Icon,{name:s,rotation:u,spin:m}),(0,o.createVNode)(1,"div",null,c,0),(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===r.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===r.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef)]})));return h&&(b=(0,o.createComponentVNode)(2,d.Tooltip,{content:h,position:C,children:b})),b},t}(o.Component);t.ButtonInput=v,g.Input=v},44051:function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=void 0;var o=n(96323),r=n(1060),a=n(53538),c=n(79926),i=n(54425),l=["params"],d=["params"],s=["params"];function u(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=(0,c.createLogger)("ByondUi"),h=[];window.addEventListener("beforeunload",(function(){for(var e=0;e<h.length;e++){var t=h[e];"string"==typeof t&&(p.log("unmounting '"+t+"' (beforeunload)"),h[e]=null,Byond.winset(t,{parent:""}))}}));var C=function(e){var t,n;function c(t){var n,r;return(r=e.call(this,t)||this).containerRef=(0,o.createRef)(),r.byondUiElement=function(e){var t=h.length;h.push(null);var n=e||"byondui_"+t;return p.log("allocated '"+n+"'"),{render:function(e){p.log("rendering '"+n+"'"),h[t]=n,Byond.winset(n,e)},unmount:function(){p.log("unmounting '"+n+"'"),h[t]=null,Byond.winset(n,{parent:""})}}}(null==(n=t.params)?void 0:n.id),r.handleResize=(0,a.debounce)((function(){r.forceUpdate()}),100),r}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,m(t,n);var C=c.prototype;return C.shouldComponentUpdate=function(e){var t=this.props,n=t.params,o=void 0===n?{}:n,a=u(t,l),c=e.params,i=void 0===c?{}:c,s=u(e,d);return(0,r.shallowDiffers)(o,i)||(0,r.shallowDiffers)(a,s)},C.componentDidMount=function(){Byond.IS_LTE_IE10||(window.addEventListener("resize",this.handleResize),this.componentDidUpdate(),this.handleResize())},C.componentDidUpdate=function(){if(!Byond.IS_LTE_IE10){var e,t,n,o,r=this.props.params,a=void 0===r?{}:r,c=(e=this.containerRef.current,n=null!=(t=window.devicePixelRatio)?t:1,{pos:[(o=e.getBoundingClientRect()).left*n,o.top*n],size:[(o.right-o.left)*n,(o.bottom-o.top)*n]});p.debug("bounding box",c),this.byondUiElement.render(Object.assign({parent:Byond.windowId},a,{pos:c.pos[0]+","+c.pos[1],size:c.size[0]+"x"+c.size[1]}))}},C.componentWillUnmount=function(){Byond.IS_LTE_IE10||(window.removeEventListener("resize",this.handleResize),this.byondUiElement.unmount())},C.render=function(){var e=this.props,t=(e.params,u(e,s));return(0,o.normalizeProps)((0,o.createVNode)(1,"div",null,(0,o.createVNode)(1,"div",null,null,1,{style:{"min-height":"22px"}}),0,Object.assign({},(0,i.computeBoxProps)(t)),null,this.containerRef))},c}(o.Component);t.ByondUi=C},64726:function(e,t,n){"use strict";t.__esModule=!0,t.Chart=void 0;var o=n(96323),r=n(1397),a=n(1060),c=n(54425),i=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"];function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).ref=(0,o.createRef)(),n.state={viewBox:[600,200]},n.handleResize=function(){var e=n.ref.current;n.setState({viewBox:[e.offsetWidth,e.offsetHeight]})},n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var d=a.prototype;return d.componentDidMount=function(){window.addEventListener("resize",this.handleResize),this.handleResize()},d.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},d.render=function(){var e=this,t=this.props,n=t.data,a=void 0===n?[]:n,l=t.rangeX,d=t.rangeY,s=t.fillColor,u=void 0===s?"none":s,m=t.strokeColor,p=void 0===m?"#ffffff":m,h=t.strokeWidth,C=void 0===h?2:h,f=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,i),N=this.state.viewBox,g=function(e,t,n,o){if(0===e.length)return[];var a=(0,r.zipWith)(Math.min).apply(void 0,e),c=(0,r.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(a[0]=n[0],c[0]=n[1]),o!==undefined&&(a[1]=o[0],c[1]=o[1]),(0,r.map)((function(e){return(0,r.zipWith)((function(e,t,n,o){return(e-t)/(n-t)*o}))(e,a,c,t)}))(e)}(a,N,l,d);if(g.length>0){var V=g[0],b=g[g.length-1];g.push([N[0]+C,b[1]]),g.push([N[0]+C,-C]),g.push([-C,-C]),g.push([-C,V[1]])}var v=function(e){for(var t="",n=0;n<e.length;n++){var o=e[n];t+=o[0]+","+o[1]+" "}return t}(g);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Box,Object.assign({position:"relative"},f,{children:function(t){return(0,o.normalizeProps)((0,o.createVNode)(1,"div",null,(0,o.createVNode)(32,"svg",null,(0,o.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+N[1]+")",fill:u,stroke:p,"stroke-width":C,points:v}),2,{viewBox:"0 0 "+N[0]+" "+N[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},t),null,e.ref))}})))},a}(o.Component);d.defaultHooks=a.pureComponentHooks;var s={Line:Byond.IS_LTE_IE8?function(e){return null}:d};t.Chart=s},49751:function(e,t,n){"use strict";t.__esModule=!0,t.Collapsible=void 0;var o=n(96323),r=n(54425),a=n(25808),c=["children","color","title","buttons"];function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function l(t){var n;n=e.call(this,t)||this;var o=t.open;return n.state={open:o||!1},n}return n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),l.prototype.render=function(){var e=this,t=this.props,n=this.state.open,i=t.children,l=t.color,d=void 0===l?"default":l,s=t.title,u=t.buttons,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,c);return(0,o.createComponentVNode)(2,r.Box,{mb:1,children:[(0,o.createVNode)(1,"div","Table",[(0,o.createVNode)(1,"div","Table__cell",(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({fluid:!0,color:d,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},m,{children:s}))),2),u&&(0,o.createVNode)(1,"div","Table__cell Table__cell--collapsing",u,0)],0),n&&(0,o.createComponentVNode)(2,r.Box,{mt:1,children:i})]})},l}(o.Component);t.Collapsible=l},47233:function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["content","children","className","color","backgroundColor"];var i=function(e){var t=e.content,n=(e.children,e.className),i=e.color,l=e.backgroundColor,d=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,c);return d.color=t?null:"transparent",d.backgroundColor=i||l,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["ColorBox",n,(0,a.computeBoxClassName)(d)]),t||".",0,Object.assign({},(0,a.computeBoxProps)(d))))};t.ColorBox=i,i.defaultHooks=r.pureComponentHooks},93913:function(e,t,n){"use strict";t.__esModule=!0,t.Dimmer=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["className","children"];t.Dimmer=function(e){var t=e.className,n=e.children,i=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,c);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Dimmer"].concat(t))},i,{children:(0,o.createVNode)(1,"div","Dimmer__inner",n,0)})))}},22755:function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var o=n(96323),r=n(1060);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,o.createVNode)(1,"div",(0,r.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},42833:function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(13251);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},d=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).inputRef=(0,o.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,o=t.value,r=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:l(e,r),value:o,internalValue:o}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,a=n.props.onDrag;o&&a&&a(e,r)}),n.props.updateRate||400),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,a=t.maxValue,c=t.step,i=t.stepPixelSize,d=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),s=l(e,d)-n.origin;if(t.dragging){var u=Number.isFinite(o)?o%c:0;n.internalValue=(0,r.clamp)(n.internalValue+s*c/i,o-c,a+c),n.value=(0,r.clamp)(n.internalValue-n.internalValue%c+u,o,a),n.origin=l(e,d)}else Math.abs(s)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,a=n.state,c=a.dragging,i=a.value,l=a.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!c,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),c)n.suppressFlicker(),o&&o(e,i),r&&r(e,i);else if(n.inputRef){var d=n.inputRef.current;d.value=l;try{d.focus(),d.select()}catch(s){}}},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),a.prototype.render=function(){var e=this,t=this.state,n=t.dragging,a=t.editing,i=t.value,l=t.suppressingFlicker,d=this.props,s=d.animated,u=d.value,m=d.unit,p=d.minValue,h=d.maxValue,C=d.unclamped,f=d.format,N=d.onChange,g=d.onDrag,V=d.children,b=d.height,v=d.lineHeight,k=d.fontSize,_=u;(n||l)&&(_=i);var y=function(e){return e+(m?" "+m:"")},w=s&&!n&&!l&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:_,format:f,children:y})||y(f?f(_):_),x=(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:a?undefined:"none",height:b,"line-height":v,"font-size":k},onBlur:function(t){var n;a&&(n=C?parseFloat(t.target.value):(0,r.clamp)(parseFloat(t.target.value),p,h),Number.isNaN(n)?e.setState({editing:!1}):(e.setState({editing:!1,value:n}),e.suppressFlicker(),N&&N(t,n),g&&g(t,n)))},onKeyDown:function(t){var n;if(13===t.keyCode)return n=C?parseFloat(t.target.value):(0,r.clamp)(parseFloat(t.target.value),p,h),Number.isNaN(n)?void e.setState({editing:!1}):(e.setState({editing:!1,value:n}),e.suppressFlicker(),N&&N(t,n),void(g&&g(t,n)));27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return V({dragging:n,editing:a,value:u,displayValue:_,displayElement:w,inputElement:x,handleDragStart:this.handleDragStart})},a}(o.Component);t.DraggableControl=d,d.defaultHooks=a.pureComponentHooks,d.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},12489:function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(65743),i=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","noscroll","nochevron","width","openWidth","onClick","onOpen","selected","disabled","displayText"],l=["className"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function u(t){var n;return(n=e.call(this,t)||this).state={selected:t.selected,open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var m=u.prototype;return m.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},m.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},m.setSelected=function(e){this.setState({selected:e}),this.setOpen(!1),this.props.onSelected(e)},m.buildMenu=function(){var e=this,t=this.props.options,n=(void 0===t?[]:t).map((function(t){var n,r;return"string"==typeof t?(n=t,r=t):(n=t.displayText,r=t.value),(0,o.createComponentVNode)(2,a.Box,{className:"Dropdown__menuentry",onClick:function(){e.setSelected(r)},children:n},r)}));return n.length?n:"No Options Found"},m.render=function(){var e=this,t=this.props,n=t.icon,s=t.iconRotation,u=t.iconSpin,m=t.clipSelectedText,p=void 0===m||m,h=t.color,C=void 0===h?"default":h,f=t.dropdownStyle,N=t.over,g=t.noscroll,V=t.nochevron,b=t.width,v=t.openWidth,k=void 0===v?b:v,_=(t.onClick,t.onOpen,t.selected,t.disabled),y=t.displayText,w=d(t,i),x=w.className,S=d(w,l),B=N?!this.state.open:this.state.open,I=this.state.open?(0,o.createVNode)(1,"div",(0,r.classes)([g?"Dropdown__menu-noscroll":"Dropdown__menu",N&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:k}},null,(function(t){e.menuRef=t})):null;return(0,o.createVNode)(1,"div","Dropdown",[(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({width:this.state.open?k:b,className:(0,r.classes)(["Dropdown__control","Button","Button--color--"+C,_&&"Button--disabled",x])},S,{onClick:function(n){_&&!e.state.open||(e.setOpen(!e.state.open),t.onOpen&&t.onOpen(n))},children:[n&&(0,o.createComponentVNode)(2,c.Icon,{name:n,rotation:s,spin:u,mr:1}),(0,o.createVNode)(1,"span","Dropdown__selected-text",y||this.state.selected,0,{style:{overflow:p?"hidden":"visible"}}),!!V||(0,o.createVNode)(1,"span","Dropdown__arrow-button",(0,o.createComponentVNode)(2,c.Icon,{name:B?"chevron-up":"chevron-down"}),2)]}))),I],0,{style:f})},u}(o.Component);t.Dropdown=u},93519:function(e,t,n){"use strict";t.__esModule=!0,t.FitText=void 0;var o=n(96323);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).ref=(0,o.createRef)(),t.state={fontSize:0},t.resize=t.resize.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),window.addEventListener("resize",t.resize),t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.componentDidUpdate=function(e){e.children!==this.props.children&&this.resize()},c.componentWillUnmount=function(){window.removeEventListener("resize",this.resize)},c.resize=function(){var e=this.ref.current;if(e){for(var t=this.props.maxWidth,n=0,o=this.props.maxFontSize,r=0;r<10;r++){var a,c=Math.round((n+o)/2);e.style.fontSize=c+"px";var i=e.offsetWidth-t;if(i>0)o=c;else{if(!(i<(null!=(a=this.props.acceptableDifference)?a:5)))break;n=c}}this.setState({fontSize:Math.round((n+o)/2)})}},c.componentDidMount=function(){this.resize()},c.render=function(){var e;return(0,o.createVNode)(1,"span",null,this.props.children,0,{style:Object.assign({"font-size":this.state.fontSize+"px"},"object"==typeof(null==(e=this.props.native)?void 0:e.style)&&this.props.native.style)},null,this.ref)},a}(o.Component);t.FitText=a},67486:function(e,t,n){"use strict";t.__esModule=!0,t.computeFlexItemProps=t.computeFlexItemClassName=t.Flex=t.computeFlexProps=t.computeFlexClassName=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["className","direction","wrap","align","justify","inline"],i=["className"],l=["className","style","grow","order","shrink","basis","align"],d=["className"];function s(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var u=function(e){return(0,r.classes)(["Flex",e.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&"column"===e.direction&&"Flex--iefix--column",(0,a.computeBoxClassName)(e)])};t.computeFlexClassName=u;var m=function(e){e.className;var t=e.direction,n=e.wrap,o=e.align,r=e.justify,i=(e.inline,s(e,c));return(0,a.computeBoxProps)(Object.assign({style:Object.assign({},i.style,{"flex-direction":t,"flex-wrap":!0===n?"wrap":n,"align-items":o,"justify-content":r})},i))};t.computeFlexProps=m;var p=function(e){var t=e.className,n=s(e,i);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)([t,u(n)]),null,1,Object.assign({},m(n))))};t.Flex=p,p.defaultHooks=r.pureComponentHooks;var h=function(e){return(0,r.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,a.computeBoxClassName)(e)])};t.computeFlexItemClassName=h;var C=function(e){e.className;var t,n=e.style,o=e.grow,r=e.order,c=e.shrink,i=e.basis,d=e.align,u=s(e,l),m=null!=(t=null!=i?i:e.width)?t:o!==undefined?0:undefined;return(0,a.computeBoxProps)(Object.assign({style:Object.assign({},n,{"flex-grow":o!==undefined&&Number(o),"flex-shrink":c!==undefined&&Number(c),"flex-basis":(0,a.unit)(m),order:r,"align-self":d})},u))};t.computeFlexItemProps=C;var f=function(e){var t=e.className,n=s(e,d);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)([t,h(e)]),null,1,Object.assign({},C(n))))};f.defaultHooks=r.pureComponentHooks,p.Item=f},28408:function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var o=n(96323),r=n(28581),a=n(1060),c=["children"],i=["size","style"];function l(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var d=function(e){var t=e.children,n=l(e,c);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table,Object.assign({},n,{children:(0,o.createComponentVNode)(2,r.Table.Row,{children:t})})))};t.Grid=d,d.defaultHooks=a.pureComponentHooks;var s=function(e){var t=e.size,n=void 0===t?1:t,a=e.style,c=l(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},a)},c)))};t.GridColumn=s,d.defaultHooks=a.pureComponentHooks,d.Column=s},65743:function(e,t,n){"use strict";t.__esModule=!0,t.IconStack=t.Icon=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["name","size","spin","className","rotation","inverse"],i=["className","children"];function l(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var d=/-o$/,s=function(e){var t=e.name,n=e.size,i=e.spin,s=e.className,u=e.rotation,m=(e.inverse,l(e,c));n&&(m.style||(m.style={}),m.style["font-size"]=100*n+"%"),"number"==typeof u&&(m.style||(m.style={}),m.style.transform="rotate("+u+"deg)");var p=(0,a.computeBoxProps)(m),h="";t.startsWith("tg-")?h=t:h=(d.test(t)?"far ":"fas ")+"fa-"+t.replace(d,"")+(i?" fa-spin":"");return(0,o.normalizeProps)((0,o.createVNode)(1,"i",(0,r.classes)(["Icon",h,s,(0,a.computeBoxClassName)(m)]),null,1,Object.assign({},p)))};t.Icon=s,s.defaultHooks=r.pureComponentHooks;var u=function(e){var t=e.className,n=e.children,c=l(e,i);return(0,o.normalizeProps)((0,o.createVNode)(1,"span",(0,r.classes)(["IconStack",t,(0,a.computeBoxClassName)(c)]),n,0,Object.assign({},(0,a.computeBoxProps)(c))))};t.IconStack=u,s.Stack=u},63268:function(e,t,n){"use strict";t.__esModule=!0,t.InfinitePlane=void 0;var o=n(96323),r=n(54425),a=n(4033),c=n(12194),i=n(25808),l=["children","backgroundImage","imageWidth","initialLeft","initialTop"];function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={mouseDown:!1,left:0,top:0,lastLeft:0,lastTop:0,zoom:1},t.handleMouseDown=t.handleMouseDown.bind(d(t)),t.handleMouseMove=t.handleMouseMove.bind(d(t)),t.handleZoomIncrease=t.handleZoomIncrease.bind(d(t)),t.handleZoomDecrease=t.handleZoomDecrease.bind(d(t)),t.onMouseUp=t.onMouseUp.bind(d(t)),t.doOffsetMouse=t.doOffsetMouse.bind(d(t)),t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var m=u.prototype;return m.componentDidMount=function(){window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousedown",this.doOffsetMouse),window.addEventListener("mousemove",this.doOffsetMouse),window.addEventListener("mouseup",this.doOffsetMouse)},m.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousedown",this.doOffsetMouse),window.removeEventListener("mousemove",this.doOffsetMouse),window.removeEventListener("mouseup",this.doOffsetMouse)},m.doOffsetMouse=function(e){var t=this.state.zoom;e.screenZoomX=e.screenX*Math.pow(t,-1),e.screenZoomY=e.screenY*Math.pow(t,-1)},m.handleMouseDown=function(e){this.setState((function(t){return{mouseDown:!0,lastLeft:e.clientX-t.left,lastTop:e.clientY-t.top}}))},m.onMouseUp=function(){this.setState({mouseDown:!1})},m.handleZoomIncrease=function(e){var t=this.props.onZoomChange,n=this.state.zoom,o=Math.min(n+.1,1.5);this.setState({zoom:o}),t&&t(o)},m.handleZoomDecrease=function(e){var t=this.props.onZoomChange,n=this.state.zoom,o=Math.max(n-.1,.5);this.setState({zoom:o}),t&&t(o)},m.handleMouseMove=function(e){var t,n,o=this.props,r=o.onBackgroundMoved,a=o.initialLeft,c=void 0===a?0:a,i=o.initialTop,l=void 0===i?0:i;this.state.mouseDown&&(this.setState((function(o){return t=e.clientX-o.lastLeft,n=e.clientY-o.lastTop,{left:t,top:n}})),r&&r(t+c,n+l))},m.render=function(){var e=this.props,t=e.children,n=e.backgroundImage,d=e.imageWidth,s=e.initialLeft,u=void 0===s?0:s,m=e.initialTop,p=void 0===m?0:m,h=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l),C=this.state,f=C.left,N=C.top,g=C.zoom,V=u+f,b=p+N;return(0,o.normalizeProps)((0,o.createVNode)(1,"div",null,[(0,o.createVNode)(1,"div",null,null,1,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",height:"100%",width:"100%","background-image":'url("'+n+'")',"background-position":V+"px "+b+"px","background-repeat":"repeat","background-size":g*d+"px"}}),(0,o.createVNode)(1,"div",null,t,0,{onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,style:{position:"fixed",transform:"translate("+V+"px, "+b+"px) scale("+g+")","transform-origin":"top left",height:"100%",width:"100%"}}),(0,o.createComponentVNode)(2,a.Stack,{position:"absolute",width:"100%",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"minus",onClick:this.handleZoomDecrease})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:.5,value:g,maxValue:1.5,children:[g,"x"]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"plus",onClick:this.handleZoomIncrease})})]})],4,Object.assign({},(0,r.computeBoxProps)(Object.assign({},h,{style:Object.assign({},h.style,{overflow:"hidden",position:"relative"})}))),null,this.ref))},u}(o.Component);t.InfinitePlane=u},77863:function(e,t,n){"use strict";t.__esModule=!0,t.Input=t.toInputValue=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(57890),i=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"],l=["className","fluid","monospace"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){return"number"!=typeof e&&"string"!=typeof e?"":String(e)};t.toInputValue=u;var m=function(e){var t,n;function m(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,o=t.props.onChange;n&&(t.setEditing(!1),o&&o(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,o=n.onInput,r=n.onChange,a=n.onEnter;return e.keyCode===c.KEY_ENTER?(t.setEditing(!1),r&&r(e,e.target.value),o&&o(e,e.target.value),a&&a(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):e.keyCode===c.KEY_ESCAPE?t.props.onEscape?void t.props.onEscape(e):(t.setEditing(!1),e.target.value=u(t.props.value),void e.target.blur()):void 0},t}n=e,(t=m).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var p=m.prototype;return p.componentDidMount=function(){var e=this,t=this.props.value,n=this.inputRef.current;n&&(n.value=u(t)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout((function(){n.focus(),e.props.autoSelect&&n.select()}),1)},p.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,a=this.inputRef.current;a&&!n&&o!==r&&(a.value=u(r))},p.setEditing=function(e){this.setState({editing:e})},p.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=d(e,i),s=c.className,u=c.fluid,m=c.monospace,p=d(c,l);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["Input",u&&"Input--fluid",m&&"Input--monospace",s])},p,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),(0,o.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t},null,this.inputRef)]})))},m}(o.Component);t.Input=m},61515:function(e,t,n){"use strict";t.__esModule=!0,t.KeyListener=void 0;var o=n(96323),r=n(6965);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function o(){var t;return(t=e.call(this)||this).dispose=void 0,t.dispose=(0,r.listenForKeyEvents)((function(e){t.props.onKey&&t.props.onKey(e),e.isDown()&&t.props.onKeyDown&&t.props.onKeyDown(e),e.isUp()&&t.props.onKeyUp&&t.props.onKeyUp(e)})),t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var c=o.prototype;return c.componentWillUnmount=function(){this.dispose()},c.render=function(){return null},o}(o.Component);t.KeyListener=c},14274:function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(54425),i=n(42833),l=n(97667),d=["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"];t.Knob=function(e){if(Byond.IS_LTE_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,s=e.maxValue,u=e.minValue,m=e.unclamped,p=e.onChange,h=e.onDrag,C=e.step,f=e.stepPixelSize,N=e.suppressFlicker,g=e.unit,V=e.value,b=e.className,v=e.style,k=e.fillValue,_=e.color,y=e.ranges,w=void 0===y?{}:y,x=e.size,S=void 0===x?1:x,B=e.bipolar,I=(e.children,function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,d));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:s,minValue:u,unclamped:m,onChange:p,onDrag:h,step:C,stepPixelSize:f,suppressFlicker:N,unit:g,value:V},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,m=e.handleDragStart,p=(0,r.scale)(null!=k?k:i,u,s),h=(0,r.scale)(i,u,s),C=_||(0,r.keyOfMatchingRange)(null!=k?k:n,w)||"default",f=Math.min(270*(h-.5),225);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Knob","Knob--color--"+C,B&&"Knob--bipolar",b,(0,c.computeBoxClassName)(I)]),[(0,o.createVNode)(1,"div","Knob__circle",(0,o.createVNode)(1,"div","Knob__cursorBox",(0,o.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+f+"deg)"}}),2),t&&(0,o.createVNode)(1,"div","Knob__popupValue",l,0),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,o.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,o.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,o.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((B?2.75:2)-1.5*p)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),d],0,Object.assign({},(0,c.computeBoxProps)(Object.assign({style:Object.assign({"font-size":S+"em"},v)},I)),{onMouseDown:m})))}})))}},95592:function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var o=n(96323),r=n(67486),a=["children","wrap"],c=["label","children","mx"];function i(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var l=function(e){var t=e.children,n=e.wrap,c=i(e,a);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({mx:-.5,wrap:n,align:"stretch",justify:"space-between"},c,{children:t})))};t.LabeledControls=l;l.Item=function(e){var t=e.label,n=e.children,a=e.mx,l=void 0===a?1:a,d=i(e,c);return(0,o.createComponentVNode)(2,r.Flex.Item,{mx:l,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Flex,Object.assign({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},d,{children:[(0,o.createComponentVNode)(2,r.Flex.Item),(0,o.createComponentVNode)(2,r.Flex.Item,{children:n}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:t})]})))})}},21173:function(e,t,n){"use strict";t.__esModule=!0,t.LabeledList=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(22755),i=function(e){var t=e.children;return(0,o.createVNode)(1,"table","LabeledList",t,0)};t.LabeledList=i,i.defaultHooks=r.pureComponentHooks;var l=function(e){var t=e.className,n=e.label,c=e.labelColor,i=void 0===c?"label":c,l=e.color,d=e.textAlign,s=e.buttons,u=e.content,m=e.children,p=e.verticalAlign,h=void 0===p?"baseline":p;return(0,o.createVNode)(1,"tr",(0,r.classes)(["LabeledList__row",t]),[(0,o.createComponentVNode)(2,a.Box,{as:"td",color:i,className:(0,r.classes)(["LabeledList__cell","LabeledList__label"]),verticalAlign:h,children:n?"string"==typeof n?n+":":n:null}),(0,o.createComponentVNode)(2,a.Box,{as:"td",color:l,textAlign:d,className:(0,r.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:s?undefined:2,verticalAlign:h,children:[u,m]}),s&&(0,o.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",s,0)],0)};l.defaultHooks=r.pureComponentHooks;var d=function(e){var t=e.size?(0,a.unit)(Math.max(0,e.size-1)):0;return(0,o.createVNode)(1,"tr","LabeledList__row",(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,c.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};d.defaultHooks=r.pureComponentHooks,i.Item=l,i.Divider=d},89416:function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(93913),i=["className","children"];t.Modal=function(e){var t=e.className,n=e.children,l=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);return(0,o.createComponentVNode)(2,c.Dimmer,{children:(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Modal",t,(0,a.computeBoxClassName)(l)]),n,0,Object.assign({},(0,a.computeBoxProps)(l))))})}},23257:function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["className","color","info","warning","success","danger"];var i=function(e){var t=e.className,n=e.color,i=e.info,l=(e.warning,e.success),d=e.danger,s=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,c);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,i&&"NoticeBox--type--info",l&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",t])},s)))};t.NoticeBox=i,i.defaultHooks=r.pureComponentHooks},97667:function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(13251),i=n(54425);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function d(t){var n;n=e.call(this,t)||this;var a=t.value;return n.inputRef=(0,o.createRef)(),n.state={value:a,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,o=t.dragging,r=t.value,a=n.props.onDrag;o&&a&&a(e,r)}),n.props.updateRate||400),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,o=t.minValue,a=t.maxValue,c=t.step,i=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),l=n.origin-e.screenY;if(t.dragging){var d=Number.isFinite(o)?o%c:0;n.internalValue=(0,r.clamp)(n.internalValue+l*c/i,o-c,a+c),n.value=(0,r.clamp)(n.internalValue-n.internalValue%c+d,o,a),n.origin=e.screenY}else Math.abs(l)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,o=t.onChange,r=t.onDrag,a=n.state,c=a.dragging,i=a.value,l=a.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!c,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),c)n.suppressFlicker(),o&&o(e,i),r&&r(e,i);else if(n.inputRef){var d=n.inputRef.current;d.value=l;try{d.focus(),d.select()}catch(s){}}},n}return n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),d.prototype.render=function(){var e=this,t=this.state,n=t.dragging,l=t.editing,d=t.value,s=t.suppressingFlicker,u=this.props,m=u.className,p=u.fluid,h=u.animated,C=u.value,f=u.unit,N=u.minValue,g=u.maxValue,V=u.height,b=u.width,v=u.lineHeight,k=u.fontSize,_=u.format,y=u.onChange,w=u.onDrag,x=C;(n||s)&&(x=d);var S=function(e){return(0,o.createVNode)(1,"div","NumberInput__content",e+(f?" "+f:""),0,{unselectable:Byond.IS_LTE_IE8})},B=h&&!n&&!s&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:x,format:_,children:S})||S(_?_(x):x);return(0,o.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["NumberInput",p&&"NumberInput--fluid",m]),minWidth:b,minHeight:V,lineHeight:v,fontSize:k,onMouseDown:this.handleDragStart,children:[(0,o.createVNode)(1,"div","NumberInput__barContainer",(0,o.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,r.clamp)((x-N)/(g-N)*100,0,100)+"%"}}),2),B,(0,o.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?undefined:"none",height:V,"line-height":v,"font-size":k},onBlur:function(t){if(l){var n=(0,r.clamp)(parseFloat(t.target.value),N,g);Number.isNaN(n)?e.setState({editing:!1}):(e.setState({editing:!1,value:n}),e.suppressFlicker(),y&&y(t,n),w&&w(t,n))}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,r.clamp)(parseFloat(t.target.value),N,g);return Number.isNaN(n)?void e.setState({editing:!1}):(e.setState({editing:!1,value:n}),e.suppressFlicker(),y&&y(t,n),void(w&&w(t,n)))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},d}(o.Component);t.NumberInput=d,d.defaultHooks=a.pureComponentHooks,d.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},16513:function(e,t,n){"use strict";t.__esModule=!0,t.Popper=void 0;var o=n(34739),r=n(96323);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function c(){var t;return(t=e.call(this)||this).renderedContent=void 0,t.popperInstance=void 0,c.id+=1,t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var i=c.prototype;return i.componentDidMount=function(){var e=this,t=this.props,n=t.additionalStyles,a=t.options;if(this.renderedContent=document.createElement("div"),n)for(var c=0,i=Object.entries(n);c<i.length;c++){var l=i[c],d=l[0],s=l[1];this.renderedContent.style[d]=s}this.renderPopperContent((function(){document.body.appendChild(e.renderedContent);var t=(0,r.findDOMfromVNode)(e.$LI,!0);t&&(e.popperInstance=(0,o.createPopper)(t,e.renderedContent,a))}))},i.componentDidUpdate=function(){var e=this;this.renderPopperContent((function(){var t;return null==(t=e.popperInstance)?void 0:t.update()}))},i.componentWillUnmount=function(){var e,t=this;null==(e=this.popperInstance)||e.destroy(),(0,r.render)(null,this.renderedContent,(function(){t.renderedContent.remove()}))},i.renderPopperContent=function(e){(0,r.render)(this.props.popperContent||null,this.renderedContent,e,this.context)},i.render=function(){return this.props.children},c}(r.Component);t.Popper=c,c.id=0},12194:function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBar=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(54425),i=n(84200),l=["className","value","minValue","maxValue","color","ranges","children"];var d=function(e){var t=e.className,n=e.value,d=e.minValue,s=void 0===d?0:d,u=e.maxValue,m=void 0===u?1:u,p=e.color,h=e.ranges,C=void 0===h?{}:h,f=e.children,N=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l),g=(0,r.scale)(n,s,m),V=f!==undefined,b=p||(0,r.keyOfMatchingRange)(n,C)||"default",v=(0,c.computeBoxProps)(N),k=["ProgressBar",t,(0,c.computeBoxClassName)(N)],_={width:100*(0,r.clamp01)(g)+"%"};return i.CSS_COLORS.includes(b)||"default"===b?k.push("ProgressBar--color--"+b):(v.style=(v.style||"")+"border-color: "+b+";",_["background-color"]=b),(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(k),[(0,o.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:_}),(0,o.createVNode)(1,"div","ProgressBar__content",V?f:(0,r.toFixed)(100*g)+"%",0)],4,Object.assign({},v)))};t.ProgressBar=d,d.defaultHooks=a.pureComponentHooks},9464:function(e,t,n){"use strict";t.__esModule=!0,t.RestrictedInput=void 0;var o=n(96323),r=n(1060),a=n(97622),c=n(54425),i=n(57890),l=["onChange","onEnter","onInput","value"],d=["className","fluid","monospace"];function s(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t,n){var o=t||0,r=n||0===n?n:1e4;if(!e||!e.length)return String(o);var c=parseInt(e.replace(/\D/g,""),10);return isNaN(c)?String(o):String((0,a.clamp)(c,o,r))},p=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).inputRef=(0,o.createRef)(),t.state={editing:!1},t.handleBlur=function(e){t.state.editing&&t.setEditing(!1)},t.handleChange=function(e){var n=t.props,o=n.maxValue,r=n.minValue,a=n.onChange;e.target.value=m(e.target.value,r,o),a&&a(e,+e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleInput=function(e){var n=t.state.editing,o=t.props.onInput;n||t.setEditing(!0),o&&o(e,+e.target.value)},t.handleKeyDown=function(e){var n=t.props,o=n.maxValue,r=n.minValue,a=n.onChange,c=n.onEnter;if(e.keyCode===i.KEY_ENTER){var l=m(e.target.value,r,o);return t.setEditing(!1),a&&a(e,+l),c&&c(e,+l),void e.target.blur()}if(e.keyCode===i.KEY_ESCAPE)return t.props.onEscape?void t.props.onEscape(e):(t.setEditing(!1),e.target.value=t.props.value,void e.target.blur())},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var p=a.prototype;return p.componentDidMount=function(){var e,t=this,n=this.props,o=n.maxValue,r=n.minValue,a=null==(e=this.props.value)?void 0:e.toString(),c=this.inputRef.current;c&&(c.value=m(a,r,o)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout((function(){c.focus(),t.props.autoSelect&&c.select()}),1)},p.componentDidUpdate=function(e,t){var n,o,r=this.props,a=r.maxValue,c=r.minValue,i=this.state.editing,l=null==(n=e.value)?void 0:n.toString(),d=null==(o=this.props.value)?void 0:o.toString(),s=this.inputRef.current;s&&!i&&d!==l&&d!==s.value&&(s.value=m(d,c,a))},p.setEditing=function(e){this.setState({editing:e})},p.render=function(){var e=this.props,t=(e.onChange,e.onEnter,e.onInput,e.value,s(e,l)),n=t.className,a=t.fluid,i=t.monospace,u=s(t,d);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Box,Object.assign({className:(0,r.classes)(["Input",a&&"Input--fluid",i&&"Input--monospace",n])},u,{children:[(0,o.createVNode)(1,"div","Input__baseline",".",16),(0,o.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)]})))},a}(o.Component);t.RestrictedInput=p},94709:function(e,t,n){"use strict";t.__esModule=!0,t.RoundGauge=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(13251),i=n(54425),l=["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"];t.RoundGauge=function(e){if(Byond.IS_LTE_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.AnimatedNumber,Object.assign({},e)));var t=e.value,n=e.minValue,d=void 0===n?1:n,s=e.maxValue,u=void 0===s?1:s,m=e.ranges,p=e.alertAfter,h=e.alertBefore,C=e.format,f=e.size,N=void 0===f?1:f,g=e.className,V=e.style,b=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l),v=(0,r.scale)(t,d,u),k=(0,r.clamp01)(v),_=m?{}:{primary:[0,1]};m&&Object.keys(m).forEach((function(e){var t=m[e];_[e]=[(0,r.scale)(t[0],d,u),(0,r.scale)(t[1],d,u)]}));var y=function(){if(p&&h&&p<h){if(p<t&&h>t)return!0}else if(p<t||h>t)return!0;return!1}()&&(0,r.keyOfMatchingRange)(k,_);return(0,o.createComponentVNode)(2,i.Box,{inline:!0,children:[(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["RoundGauge",g,(0,i.computeBoxClassName)(b)]),(0,o.createVNode)(32,"svg",null,[(p||h)&&(0,o.createVNode)(32,"g",(0,a.classes)(["RoundGauge__alert",y?"active RoundGauge__alert--"+y:""]),(0,o.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,o.createVNode)(32,"g",null,(0,o.createVNode)(32,"circle","RoundGauge__ringTrack",null,1,{cx:"50",cy:"50",r:"45"}),2),(0,o.createVNode)(32,"g",null,Object.keys(_).map((function(e,t){var n=_[e];return(0,o.createVNode)(32,"circle","RoundGauge__ringFill RoundGauge--color--"+e,null,1,{style:{"stroke-dashoffset":Math.max((2-(n[1]-n[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*n[0])+" 50 50)",cx:"50",cy:"50",r:"45"},t)})),0),(0,o.createVNode)(32,"g","RoundGauge__needle",[(0,o.createVNode)(32,"polygon","RoundGauge__needleLine",null,1,{points:"46,50 50,0 54,50"}),(0,o.createVNode)(32,"circle","RoundGauge__needleMiddle",null,1,{cx:"50",cy:"50",r:"8"})],4,{transform:"rotate("+(180*k-90)+" 50 50)"})],0,{viewBox:"0 0 100 50"}),2,Object.assign({},(0,i.computeBoxProps)(Object.assign({style:Object.assign({"font-size":N+"em"},V)},b))))),(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:t,format:C,size:N})]})}},77381:function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var o=n(96323),r=n(1060),a=n(99397),c=n(54425),i=["className","title","buttons","fill","fitted","scrollable","children"];function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function d(t){var n;return(n=e.call(this,t)||this).scrollableRef=void 0,n.scrollable=void 0,n.scrollableRef=(0,o.createRef)(),n.scrollable=t.scrollable,n}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=d.prototype;return s.componentDidMount=function(){this.scrollable&&(0,a.addScrollableNode)(this.scrollableRef.current)},s.componentWillUnmount=function(){this.scrollable&&(0,a.removeScrollableNode)(this.scrollableRef.current)},s.render=function(){var e=this.props,t=e.className,n=e.title,a=e.buttons,l=e.fill,d=e.fitted,s=e.scrollable,u=e.children,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i),p=(0,r.canRender)(n)||(0,r.canRender)(a);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",l&&"Section--fill",d&&"Section--fitted",s&&"Section--scrollable",t,(0,c.computeBoxClassName)(m)]),[p&&(0,o.createVNode)(1,"div","Section__title",[(0,o.createVNode)(1,"span","Section__titleText",n,0),(0,o.createVNode)(1,"div","Section__buttons",a,0)],4),(0,o.createVNode)(1,"div","Section__rest",(0,o.createVNode)(1,"div","Section__content",u,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,c.computeBoxProps)(m))))},d}(o.Component);t.Section=d},4482:function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(54425),i=n(42833),l=n(97667),d=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"];t.Slider=function(e){if(Byond.IS_LTE_IE8)return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,s=e.maxValue,u=e.minValue,m=e.onChange,p=e.onDrag,h=e.step,C=e.stepPixelSize,f=e.suppressFlicker,N=e.unit,g=e.value,V=e.className,b=e.fillValue,v=e.color,k=e.ranges,_=void 0===k?{}:k,y=e.children,w=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,d),x=y!==undefined;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:s,minValue:u,onChange:m,onDrag:p,step:h,stepPixelSize:C,suppressFlicker:f,unit:N,value:g},{children:function(e){var t=e.dragging,n=(e.editing,e.value),i=e.displayValue,l=e.displayElement,d=e.inputElement,m=e.handleDragStart,p=b!==undefined&&null!==b,h=((0,r.scale)(n,u,s),(0,r.scale)(null!=b?b:i,u,s)),C=(0,r.scale)(i,u,s),f=v||(0,r.keyOfMatchingRange)(null!=b?b:n,_)||"default";return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,a.classes)(["Slider","ProgressBar","ProgressBar--color--"+f,V,(0,c.computeBoxClassName)(w)]),[(0,o.createVNode)(1,"div",(0,a.classes)(["ProgressBar__fill",p&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,r.clamp01)(h)+"%",opacity:.4}}),(0,o.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,r.clamp01)(Math.min(h,C))+"%"}}),(0,o.createVNode)(1,"div","Slider__cursorOffset",[(0,o.createVNode)(1,"div","Slider__cursor"),(0,o.createVNode)(1,"div","Slider__pointer"),t&&(0,o.createVNode)(1,"div","Slider__popupValue",l,0)],0,{style:{width:100*(0,r.clamp01)(C)+"%"}}),(0,o.createVNode)(1,"div","ProgressBar__content",x?y:l,0),d],0,Object.assign({},(0,c.computeBoxProps)(w),{onMouseDown:m})))}})))}},4033:function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(96323),r=n(1060),a=n(67486),c=["className","vertical","fill"],i=["className","innerRef"],l=["className","hidden"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var s=function(e){var t=e.className,n=e.vertical,i=e.fill,l=d(e,c);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Stack",i&&"Stack--fill",n?"Stack--vertical":"Stack--horizontal",t,(0,a.computeFlexClassName)(e)]),null,1,Object.assign({},(0,a.computeFlexProps)(Object.assign({direction:n?"column":"row"},l)))))};t.Stack=s;s.Item=function(e){var t=e.className,n=e.innerRef,c=d(e,i);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Stack__item",t,(0,a.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,a.computeFlexItemProps)(c)),null,n))};s.Divider=function(e){var t=e.className,n=e.hidden,c=d(e,l);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Stack__item","Stack__divider",n&&"Stack__divider--hidden",t,(0,a.computeFlexItemClassName)(c)]),null,1,Object.assign({},(0,a.computeFlexItemProps)(c))))}},28581:function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var o=n(96323),r=n(1060),a=n(54425),c=["className","collapsing","children"],i=["className","header"],l=["className","collapsing","header"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var s=function(e){var t=e.className,n=e.collapsing,i=e.children,l=d(e,c);return(0,o.normalizeProps)((0,o.createVNode)(1,"table",(0,r.classes)(["Table",n&&"Table--collapsing",t,(0,a.computeBoxClassName)(l)]),(0,o.createVNode)(1,"tbody",null,i,0),2,Object.assign({},(0,a.computeBoxProps)(l))))};t.Table=s,s.defaultHooks=r.pureComponentHooks;var u=function(e){var t=e.className,n=e.header,c=d(e,i);return(0,o.normalizeProps)((0,o.createVNode)(1,"tr",(0,r.classes)(["Table__row",n&&"Table__row--header",t,(0,a.computeBoxClassName)(e)]),null,1,Object.assign({},(0,a.computeBoxProps)(c))))};t.TableRow=u,u.defaultHooks=r.pureComponentHooks;var m=function(e){var t=e.className,n=e.collapsing,c=e.header,i=d(e,l);return(0,o.normalizeProps)((0,o.createVNode)(1,"td",(0,r.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,a.computeBoxClassName)(e)]),null,1,Object.assign({},(0,a.computeBoxProps)(i))))};t.TableCell=m,m.defaultHooks=r.pureComponentHooks,s.Row=u,s.Cell=m},60839:function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(65743),i=["className","vertical","fill","fluid","children"],l=["className","selected","color","icon","leftSlot","rightSlot","children"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var s=function(e){var t=e.className,n=e.vertical,c=e.fill,l=e.fluid,s=e.children,u=d(e,i);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",c&&"Tabs--fill",l&&"Tabs--fluid",t,(0,a.computeBoxClassName)(u)]),s,0,Object.assign({},(0,a.computeBoxProps)(u))))};t.Tabs=s;s.Tab=function(e){var t=e.className,n=e.selected,i=e.color,s=e.icon,u=e.leftSlot,m=e.rightSlot,p=e.children,h=d(e,l);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Tab","Tabs__Tab","Tab--color--"+i,n&&"Tab--selected",t].concat((0,a.computeBoxClassName)(h))),[(0,r.canRender)(u)&&(0,o.createVNode)(1,"div","Tab__left",u,0)||!!s&&(0,o.createVNode)(1,"div","Tab__left",(0,o.createComponentVNode)(2,c.Icon,{name:s}),2),(0,o.createVNode)(1,"div","Tab__text",p,0),(0,r.canRender)(m)&&(0,o.createVNode)(1,"div","Tab__right",m,0)],0,Object.assign({},(0,a.computeBoxProps)(h))))}},51129:function(e,t,n){"use strict";t.__esModule=!0,t.TextArea=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(77863),i=n(57890),l=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],d=["className","fluid"];function s(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){var t,n;function m(t,n){var r;(r=e.call(this,t,n)||this).textareaRef=(0,o.createRef)(),r.fillerRef=(0,o.createRef)(),r.state={editing:!1};var a=t.dontUseTabForIndent,l=void 0!==a&&a;return r.handleOnInput=function(e){var t=r.state.editing,n=r.props.onInput;t||r.setEditing(!0),n&&n(e,e.target.value)},r.handleOnChange=function(e){var t=r.state.editing,n=r.props.onChange;t&&r.setEditing(!1),n&&n(e,e.target.value)},r.handleKeyPress=function(e){var t=r.state.editing,n=r.props.onKeyPress;t||r.setEditing(!0),n&&n(e,e.target.value)},r.handleKeyDown=function(e){var t=r.state.editing,n=r.props.onKeyDown;if(e.keyCode===i.KEY_ESCAPE)return r.setEditing(!1),e.target.value=(0,c.toInputValue)(r.props.value),void e.target.blur();if((t||r.setEditing(!0),!l)&&9===(e.keyCode||e.which)){e.preventDefault();var o=e.target,a=o.value,d=o.selectionStart,s=o.selectionEnd;e.target.value=a.substring(0,d)+"\t"+a.substring(s),e.target.selectionEnd=d+1}n&&n(e,e.target.value)},r.handleFocus=function(e){r.state.editing||r.setEditing(!0)},r.handleBlur=function(e){var t=r.state.editing,n=r.props.onChange;t&&(r.setEditing(!1),n&&n(e,e.target.value))},r}n=e,(t=m).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var p=m.prototype;return p.componentDidMount=function(){var e=this,t=this.props.value,n=this.textareaRef.current;n&&(n.value=(0,c.toInputValue)(t)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout((function(){n.focus(),e.props.autoSelect&&n.select()}),1)},p.componentDidUpdate=function(e,t){var n=this.state.editing,o=e.value,r=this.props.value,a=this.textareaRef.current;a&&!n&&o!==r&&(a.value=(0,c.toInputValue)(r))},p.setEditing=function(e){this.setState({editing:e})},p.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},p.render=function(){var e=this.props,t=(e.onChange,e.onKeyDown,e.onKeyPress,e.onInput,e.onFocus,e.onBlur,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=s(e,l),i=c.className,u=c.fluid,m=s(c,d);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({className:(0,r.classes)(["TextArea",u&&"TextArea--fluid",i])},m,{children:(0,o.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:n,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:t},null,this.textareaRef)})))},m}(o.Component);t.TextArea=m},92464:function(e,t,n){"use strict";t.__esModule=!0,t.TimeDisplay=void 0;var o=n(1033),r=n(96323);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){return"number"==typeof e&&Number.isFinite(e)&&!Number.isNaN(e)},i=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.last_seen_value=undefined,n.state={value:0},c(t.value)&&(n.state.value=Number(t.value),n.last_seen_value=Number(t.value)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var i=r.prototype;return i.componentDidUpdate=function(){var e=this;this.props.auto!==undefined&&(clearInterval(this.timer),this.timer=setInterval((function(){return e.tick()}),1e3))},i.tick=function(){var e=Number(this.state.value);this.props.value!==this.last_seen_value&&(this.last_seen_value=this.props.value,e=this.props.value);var t="up"===this.props.auto?10:-10,n=Math.max(0,e+t);this.setState({value:n})},i.componentDidMount=function(){var e=this;this.props.auto!==undefined&&(this.timer=setInterval((function(){return e.tick()}),1e3))},i.componentWillUnmount=function(){clearInterval(this.timer)},i.render=function(){var e=this.state.value;return c(e)?(0,o.formatTime)(e):this.state.value||null},r}(r.Component);t.TimeDisplay=i},59463:function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var o=n(96323),r=n(34739);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c={modifiers:[{name:"eventListeners",enabled:!1}]},i={width:0,height:0,top:0,right:0,bottom:0,left:0},l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var l=i.prototype;return l.getDOMNode=function(){return(0,o.findDOMfromVNode)(this.$LI,!0)},l.componentDidMount=function(){var e=this,t=this.getDOMNode();t&&(t.addEventListener("mouseenter",(function(){var n=i.renderedTooltip;n===undefined&&((n=document.createElement("div")).className="Tooltip",document.body.appendChild(n),i.renderedTooltip=n),i.currentHoveredElement=t,n.style.opacity="1",e.renderPopperContent()})),t.addEventListener("mouseleave",(function(){e.fadeOut()})))},l.fadeOut=function(){i.currentHoveredElement===this.getDOMNode()&&(i.currentHoveredElement=undefined,i.renderedTooltip.style.opacity="0")},l.renderPopperContent=function(){var e=this,t=i.renderedTooltip;t&&(0,o.render)((0,o.createVNode)(1,"span",null,this.props.content,0),t,(function(){var n=i.singletonPopper;n===undefined?(n=(0,r.createPopper)(i.virtualElement,t,Object.assign({},c,{placement:e.props.position||"auto"})),i.singletonPopper=n):(n.setOptions(Object.assign({},c,{placement:e.props.position||"auto"})),n.update())}),this.context)},l.componentDidUpdate=function(){i.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()},l.componentWillUnmount=function(){this.fadeOut()},l.render=function(){return this.props.children},i}(o.Component);t.Tooltip=l,l.renderedTooltip=void 0,l.singletonPopper=void 0,l.currentHoveredElement=void 0,l.virtualElement={getBoundingClientRect:function(){var e,t;return null!=(e=null==(t=l.currentHoveredElement)?void 0:t.getBoundingClientRect())?e:i}}},10580:function(e,t,n){"use strict";t.__esModule=!0,t.TrackOutsideClicks=void 0;var o=n(96323);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,n;function a(){var t;return(t=e.call(this)||this).ref=(0,o.createRef)(),t.handleOutsideClick=t.handleOutsideClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),document.addEventListener("click",t.handleOutsideClick),t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var c=a.prototype;return c.componentWillUnmount=function(){document.removeEventListener("click",this.handleOutsideClick)},c.handleOutsideClick=function(e){e.target instanceof Node&&this.ref.current&&!this.ref.current.contains(e.target)&&this.props.onOutsideClick()},c.render=function(){return(0,o.createVNode)(1,"div",null,this.props.children,0,null,null,this.ref)},a}(o.Component);t.TrackOutsideClicks=a},26949:function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=t.TrackOutsideClicks=t.TimeDisplay=t.TextArea=t.Tabs=t.Table=t.Stack=t.Slider=t.Section=t.RoundGauge=t.RestrictedInput=t.Popper=t.ProgressBar=t.NumberInput=t.NoticeBox=t.Modal=t.LabeledList=t.LabeledControls=t.Knob=t.KeyListener=t.Input=t.InfinitePlane=t.Icon=t.Grid=t.FitText=t.Flex=t.Dropdown=t.DraggableControl=t.Divider=t.Dimmer=t.ColorBox=t.Collapsible=t.Chart=t.ByondUi=t.Button=t.Box=t.BlockQuote=t.Blink=t.Autofocus=t.AnimatedNumber=void 0;var o=n(13251);t.AnimatedNumber=o.AnimatedNumber;var r=n(75434);t.Autofocus=r.Autofocus;var a=n(90297);t.Blink=a.Blink;var c=n(7149);t.BlockQuote=c.BlockQuote;var i=n(54425);t.Box=i.Box;var l=n(25808);t.Button=l.Button;var d=n(44051);t.ByondUi=d.ByondUi;var s=n(64726);t.Chart=s.Chart;var u=n(49751);t.Collapsible=u.Collapsible;var m=n(47233);t.ColorBox=m.ColorBox;var p=n(93913);t.Dimmer=p.Dimmer;var h=n(22755);t.Divider=h.Divider;var C=n(42833);t.DraggableControl=C.DraggableControl;var f=n(12489);t.Dropdown=f.Dropdown;var N=n(67486);t.Flex=N.Flex;var g=n(93519);t.FitText=g.FitText;var V=n(28408);t.Grid=V.Grid;var b=n(65743);t.Icon=b.Icon;var v=n(63268);t.InfinitePlane=v.InfinitePlane;var k=n(77863);t.Input=k.Input;var _=n(61515);t.KeyListener=_.KeyListener;var y=n(14274);t.Knob=y.Knob;var w=n(95592);t.LabeledControls=w.LabeledControls;var x=n(21173);t.LabeledList=x.LabeledList;var S=n(89416);t.Modal=S.Modal;var B=n(23257);t.NoticeBox=B.NoticeBox;var I=n(97667);t.NumberInput=I.NumberInput;var L=n(12194);t.ProgressBar=L.ProgressBar;var T=n(16513);t.Popper=T.Popper;var A=n(9464);t.RestrictedInput=A.RestrictedInput;var D=n(94709);t.RoundGauge=D.RoundGauge;var M=n(77381);t.Section=M.Section;var E=n(4482);t.Slider=E.Slider;var P=n(4033);t.Stack=P.Stack;var F=n(28581);t.Table=F.Table;var O=n(60839);t.Tabs=O.Tabs;var R=n(51129);t.TextArea=R.TextArea;var j=n(92464);t.TimeDisplay=j.TimeDisplay;var W=n(10580);t.TrackOutsideClicks=W.TrackOutsideClicks;var z=n(59463);t.Tooltip=z.Tooltip},84200:function(e,t){"use strict";t.__esModule=!0,t.T0C=t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_HARD_REFRESHING=t.UI_SOFT_REFRESHING=t.UI_NOT_REFRESHING=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.UI_NOT_REFRESHING=0;t.UI_SOFT_REFRESHING=1;t.UI_HARD_REFRESHING=2;t.COLORS={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312",exploration:"#c38312",silicon:"#c38312",miscellaneous:"#c38312",civillian:"#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"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Mercenary",freq:1213,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"CentCom",freq:1337,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"AI Private",freq:1447,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}];var n=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"carbon dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}];t.getGasLabel=function(e,t){var o=String(e).toLowerCase(),r=n.find((function(e){return e.id===o||e.name.toLowerCase()===o}));return r&&r.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),o=n.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return o&&o.color};t.T0C=273.15},71224:function(e,t,n){"use strict";t.__esModule=!0,t.KitchenSink=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(69321);t.KitchenSink=function(e,t){var n=e.panel,l=(0,r.useLocalState)(t,"kitchenSinkTheme")[0],d=(0,r.useLocalState)(t,"pageIndex",0),s=d[0],u=d[1],m=i.keys().map((function(e){return i(e)})),p=m[s],h=n?c.Pane:c.Window;return(0,o.createComponentVNode)(2,h,{title:"Kitchen Sink",width:600,height:500,theme:l,children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{m:1,mr:0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,fitted:!0,children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:m.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"transparent",selected:t===s,onClick:function(){return u(t)},children:e.meta.title},t)}))})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{position:"relative",grow:1,children:(0,o.createComponentVNode)(2,h.Content,{scrollable:!0,children:p.meta.render()})})]})})}},98069:function(e,t,n){"use strict";t.__esModule=!0,t.openExternalBrowser=t.toggleDebugLayout=t.toggleKitchenSink=void 0;var o=n(465),r=(0,o.createAction)("debug/toggleKitchenSink");t.toggleKitchenSink=r;var a=(0,o.createAction)("debug/toggleDebugLayout");t.toggleDebugLayout=a;var c=(0,o.createAction)("debug/openExternalBrowser");t.openExternalBrowser=c},35177:function(e,t,n){"use strict";t.__esModule=!0,t.useDebug=void 0;var o=n(465),r=n(12184);t.useDebug=function(e){return(0,o.useSelector)(e,r.selectDebug)}},27157:function(e,t,n){"use strict";t.__esModule=!0,t.debugReducer=t.relayMiddleware=t.debugMiddleware=t.KitchenSink=t.useDebug=void 0;var o=n(35177);t.useDebug=o.useDebug;var r=n(71224);t.KitchenSink=r.KitchenSink;var a=n(46656);t.debugMiddleware=a.debugMiddleware,t.relayMiddleware=a.relayMiddleware;var c=n(7124);t.debugReducer=c.debugReducer},46656:function(e,t,n){"use strict";t.__esModule=!0,t.relayMiddleware=t.debugMiddleware=void 0;var o=n(57890),r=n(99397),a=n(6965),c=n(98069),i=["backend/update","chat/message","backend/data"];t.debugMiddleware=function(e){return(0,a.acquireHotKey)(o.KEY_F11),(0,a.acquireHotKey)(o.KEY_F12),r.globalEvents.on("keydown",(function(t){t.code===o.KEY_F11&&e.dispatch((0,c.toggleDebugLayout)()),t.code===o.KEY_F12&&e.dispatch((0,c.toggleKitchenSink)()),t.ctrl&&t.alt&&t.code===o.KEY_BACKSPACE&&setTimeout((function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")}))})),function(e){return function(t){return e(t)}}};t.relayMiddleware=function(e){var t=n(82252),l="?external"===location.search;return l?t.subscribe((function(t){var n=t.type,o=t.payload;"relay"===n&&o.windowId===Byond.windowId&&e.dispatch(Object.assign({},o.action,{relayed:!0}))})):((0,a.acquireHotKey)(o.KEY_F10),r.globalEvents.on("keydown",(function(t){t===o.KEY_F10&&e.dispatch((0,c.openExternalBrowser)())}))),function(e){return function(n){var o=n.type,r=(n.payload,n.relayed);if(o!==c.openExternalBrowser.type)return!i.includes(o)||r||l||t.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:n}}),e(n);window.open(location.href+"?external","_blank")}}}},7124:function(e,t){"use strict";t.__esModule=!0,t.debugReducer=void 0;t.debugReducer=function(e,t){void 0===e&&(e={});var n=t.type;t.payload;return"debug/toggleKitchenSink"===n?Object.assign({},e,{kitchenSink:!e.kitchenSink}):"debug/toggleDebugLayout"===n?Object.assign({},e,{debugLayout:!e.debugLayout}):e}},12184:function(e,t){"use strict";t.__esModule=!0,t.selectDebug=void 0;t.selectDebug=function(e){return e.debug}},41410:function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=t.recallWindowGeometry=t.setWindowKey=void 0;var o,r=n(7151),a=n(67288);function c(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){c(a,o,r,i,l,"next",e)}function l(e){c(a,o,r,i,l,"throw",e)}i(undefined)}))}}var l,d,s,u,m,p=(0,n(79926).createLogger)("drag"),h=null!=(o=window.devicePixelRatio)?o:1,C=Byond.windowId,f=!1,N=!1,g=[0,0];t.setWindowKey=function(e){C=e};var V=function(){return[window.screenLeft*h,window.screenTop*h]},b=function(){return[window.innerWidth*h,window.innerHeight*h]},v=function(e){var t=(0,a.vecAdd)(e,g);return Byond.winset(Byond.windowId,{pos:t[0]+","+t[1]})},k=function(e){return Byond.winset(Byond.windowId,{size:e[0]+"x"+e[1]})},_=function(){return[window.screen.availWidth*h,window.screen.availHeight*h]},y=function(e,t,n){void 0===n&&(n=50);for(var o,r=[t],a=0;a<e.length;a++){var c=e[a];c!==t&&(r.length<n?r.push(c):o=c)}return[r,o]},w=function(){var e=i(regeneratorRuntime.mark((function t(){var e,n,o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.log("storing geometry"),e={pos:V(),size:b()},r.storage.set(C,e),t.t0=y,t.next=6,r.storage.get("geometries");case 6:if(t.t1=t.sent,t.t1){t.next=9;break}t.t1=[];case 9:t.t2=t.t1,t.t3=C,n=(0,t.t0)(t.t2,t.t3),o=n[0],(a=n[1])&&r.storage.remove(a),r.storage.set("geometries",o);case 16:case"end":return t.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=i(regeneratorRuntime.mark((function t(e){var n,o,c,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===e&&(e={}),t.t0=e.fancy,!t.t0){t.next=6;break}return t.next=5,r.storage.get(C);case 5:t.t0=t.sent;case 6:return(n=t.t0)&&p.log("recalled geometry:",n),o=(null==n?void 0:n.pos)||e.pos,(c=e.size)&&(c=[c[0]*h,c[1]*h]),t.next=13,l;case 13:i=_(),c&&(c=[Math.min(i[0],c[0]),Math.min(i[1],c[1])],k(c)),o?(c&&e.locked&&(o=B(o,c)[1]),v(o)):c&&(o=(0,a.vecAdd)((0,a.vecScale)(i,.5),(0,a.vecScale)(c,-.5),(0,a.vecScale)(g,-1)),v(o));case 16:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}();t.recallWindowGeometry=x;var S=function(){var e=i(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=V(),l=Byond.winget(Byond.windowId,"pos").then((function(t){return[t.x-e[0],t.y-e[1]]})),t.next=4,l;case 4:g=t.sent,p.debug("screen offset",g);case 6:case"end":return t.stop()}}),t)})));return function(){return e.apply(this,arguments)}}();t.setupDrag=S;var B=function(e,t){for(var n=[0-g[0],0-g[1]],o=_(),r=[e[0],e[1]],a=!1,c=0;c<2;c++){var i=n[c],l=n[c]+o[c];e[c]<i?(r[c]=i,a=!0):e[c]+t[c]>l&&(r[c]=l-t[c],a=!0)}return[a,r]};t.dragStartHandler=function(e){var t;p.log("drag start"),f=!0;V();d=(0,a.vecSubtract)([e.screenX,e.screenY],V()),null==(t=e.target)||t.focus(),document.addEventListener("mousemove",L),document.addEventListener("mouseup",I),L(e)};var I=function D(e){p.log("drag end"),L(e),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",D),f=!1,w()},L=function(e){f&&(e.preventDefault(),v((0,a.vecSubtract)([e.screenX,e.screenY],d)))};t.resizeStartHandler=function(e,t){return function(n){var o;s=[e,t],p.log("resize start",s),N=!0,d=(0,a.vecSubtract)([n.screenX,n.screenY],V()),u=b(),null==(o=n.target)||o.focus(),document.addEventListener("mousemove",A),document.addEventListener("mouseup",T),A(n)}};var T=function M(e){p.log("resize end",m),A(e),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",M),N=!1,w()},A=function(e){if(N){e.preventDefault();var t=(0,a.vecSubtract)([e.screenX,e.screenY],V()),n=(0,a.vecSubtract)(t,d);(m=(0,a.vecAdd)(u,(0,a.vecMultiply)(s,n),[1,1]))[0]=Math.max(m[0],150*h),m[1]=Math.max(m[1],50*h),k(m)}}},99397:function(e,t,n){"use strict";t.__esModule=!0,t.KeyEvent=t.removeScrollableNode=t.addScrollableNode=t.canStealFocus=t.setupGlobalEvents=t.globalEvents=void 0;var o=n(52844),r=n(57890),a=new o.EventEmitter;t.globalEvents=a;var c,i=!1;t.setupGlobalEvents=function(e){void 0===e&&(e={}),i=!!e.ignoreWindowFocus};var l=!0,d=function g(e,t){i?l=!0:(c&&(clearTimeout(c),c=null),t?c=setTimeout((function(){return g(e)})):l!==e&&(l=e,a.emit(e?"window-focus":"window-blur"),a.emit("window-focus-change",e)))},s=null,u=function(e){var t=String(e.tagName).toLowerCase();return"input"===t||"textarea"===t};t.canStealFocus=u;var m=function V(){s&&(s.removeEventListener("blur",V),s=null)},p=null,h=null,C=[];t.addScrollableNode=function(e){C.push(e)};t.removeScrollableNode=function(e){var t=C.indexOf(e);t>=0&&C.splice(t,1)};window.addEventListener("mousemove",(function(e){var t=e.target;t!==h&&(h=t,function(e){if(!s&&l)for(var t=document.body;e&&e!==t;){if(C.includes(e)){if(e.contains(p))return;return p=e,void e.focus()}e=e.parentNode}}(t))})),window.addEventListener("focusin",(function(e){if(h=null,p=e.target,d(!0),u(e.target))return t=e.target,m(),void(s=t).addEventListener("blur",m);var t})),window.addEventListener("focusout",(function(e){h=null,d(!1,!0)})),window.addEventListener("blur",(function(e){h=null,d(!1,!0)})),window.addEventListener("beforeunload",(function(e){d(!1)}));var f={},N=function(){function e(e,t,n){this.event=e,this.type=t,this.code=window.event?e.which:e.keyCode,this.ctrl=e.ctrlKey,this.shift=e.shiftKey,this.alt=e.altKey,this.repeat=!!n}var t=e.prototype;return t.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},t.isModifierKey=function(){return this.code===r.KEY_CTRL||this.code===r.KEY_SHIFT||this.code===r.KEY_ALT},t.isDown=function(){return"keydown"===this.type},t.isUp=function(){return"keyup"===this.type},t.toString=function(){return 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>=r.KEY_F1&&this.code<=r.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]"),this._str},e}();t.KeyEvent=N,document.addEventListener("keydown",(function(e){if(!u(e.target)){var t=e.keyCode,n=new N(e,"keydown",f[t]);a.emit("keydown",n),a.emit("key",n),f[t]=!0}})),document.addEventListener("keyup",(function(e){if(!u(e.target)){var t=e.keyCode,n=new N(e,"keyup");a.emit("keyup",n),a.emit("key",n),f[t]=!1}}))},40509:function(e,t){"use strict";t.__esModule=!0,t.focusWindow=t.focusMap=void 0;t.focusMap=function(){Byond.winset("mapwindow.map",{focus:!0})};t.focusWindow=function(){Byond.winset(Byond.windowId,{focus:!0})}},1033:function(e,t,n){"use strict";t.__esModule=!0,t.formatTime=t.formatSiBaseTenUnit=t.formatDb=t.formatMoney=t.formatPower=t.formatSiUnit=void 0;var o=n(97622),r=["f","p","n","\u03bc","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],a=r.indexOf(" "),c=function(e,t,n){if(void 0===t&&(t=-a),void 0===n&&(n=""),"number"!=typeof e||!Number.isFinite(e))return e;var c=Math.floor(Math.log10(e)),i=Math.floor(Math.max(3*t,c)),l=Math.floor(c/3),d=Math.floor(i/3),s=(0,o.clamp)(a+d,0,r.length),u=r[s],m=e/Math.pow(1e3,d),p=l>t?2+3*d-i:0;return((0,o.toFixed)(m,p)+" "+u+n).trim()};t.formatSiUnit=c;t.formatPower=function(e,t){return void 0===t&&(t=0),c(e,t,"W")};t.formatMoney=function(e,t){if(void 0===t&&(t=0),!Number.isFinite(e))return e;var n=(0,o.round)(e,t);t>0&&(n=(0,o.toFixed)(e,t));var r=(n=String(n)).length,a=n.indexOf(".");-1===a&&(a=r);for(var c="",i=0;i<r;i++)i>0&&i<a&&(a-i)%3==0&&(c+="\u2009"),c+=n.charAt(i);return c};t.formatDb=function(e){var t=20*Math.log(e)/Math.log(10),n=t>=0?"+":"\u2013",r=Math.abs(t);return n+(r=r===Infinity?"Inf":(0,o.toFixed)(r,2))+" dB"};var i=["","\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"],l=i.indexOf(" ");t.formatSiBaseTenUnit=function(e,t,n){if(void 0===t&&(t=-l),void 0===n&&(n=""),"number"!=typeof e||!Number.isFinite(e))return e;var r=Math.floor(Math.log10(e)),a=Math.floor(Math.max(3*t,r)),c=Math.floor(r/3),d=Math.floor(a/3),s=(0,o.clamp)(l+d,0,i.length),u=i[s],m=e/Math.pow(1e3,d),p=c>t?2+3*d-a:0;return((0,o.toFixed)(m,p)+" "+u+" "+n).trim()};t.formatTime=function(e,t){var n=(0,o.toFixed)(Math.floor(e/10%60)),r=(0,o.toFixed)(Math.floor(e/600%60)),a=(0,o.toFixed)(Math.floor(e/36e3%24));switch(t){case"short":return""+(a>0?a+"h":"")+(r>0?r+"m":"")+(n>0?n+"s":"");default:var c=n.padStart(2,"0"),i=r.padStart(2,"0");return a.padStart(2,"0")+":"+i+":"+c}}},6965:function(e,t,n){"use strict";t.__esModule=!0,t.listenForKeyEvents=t.setupHotKeys=t.releaseHeldKeys=t.releaseHotKey=t.acquireHotKey=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=r?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(o,c,i):o[c]=e[c]}o["default"]=e,n&&n.set(e,o);return o}(n(57890)),r=n(99397);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var l=(0,n(79926).createLogger)("hotkeys"),d={},s=[o.KEY_ESCAPE,o.KEY_ENTER,o.KEY_SPACE,o.KEY_TAB,o.KEY_CTRL,o.KEY_SHIFT,o.KEY_UP,o.KEY_DOWN,o.KEY_LEFT,o.KEY_RIGHT,o.KEY_F5],u={},m=[],p=function(e){var t=String(e);if("Ctrl+F5"!==t&&"Ctrl+R"!==t){if("Ctrl+F"!==t&&!(e.event.defaultPrevented||e.isModifierKey()||s.includes(e.code))){var n,o=16===(n=e.code)?"Shift":17===n?"Ctrl":18===n?"Alt":33===n?"Northeast":34===n?"Southeast":35===n?"Southwest":36===n?"Northwest":37===n?"West":38===n?"North":39===n?"East":40===n?"South":45===n?"Insert":46===n?"Delete":n>=48&&n<=57||n>=65&&n<=90?String.fromCharCode(n):n>=96&&n<=105?"Numpad"+(n-96):n>=112&&n<=123?"F"+(n-111):188===n?",":189===n?"-":190===n?".":void 0;if(o){var r=d[o];if(r)return l.debug("macro",r),Byond.command(r);if(e.isDown()&&!u[o]){u[o]=!0;var a='KeyDown "'+o+'"';return l.debug(a),Byond.command(a)}if(e.isUp()&&u[o]){u[o]=!1;var c='KeyUp "'+o+'"';return l.debug(c),Byond.command(c)}}}}else location.reload()};t.acquireHotKey=function(e){s.push(e)};t.releaseHotKey=function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)};var h=function(){for(var e=0,t=Object.keys(u);e<t.length;e++){var n=t[e];u[n]&&(u[n]=!1,l.log('releasing key "'+n+'"'),Byond.command('KeyUp "'+n+'"'))}};t.releaseHeldKeys=h;t.setupHotKeys=function(){Byond.winget("default.*").then((function(e){for(var t={},n=0,o=Object.keys(e);n<o.length;n++){var r=o[n],a=r.split("."),c=a[1],i=a[2];c&&i&&(t[c]||(t[c]={}),t[c][i]=e[r])}for(var s=/\\"/g,u=function(e){return e.substring(1,e.length-1).replace(s,'"')},m=0,p=Object.keys(t);m<p.length;m++){var h=t[p[m]],C=u(h.name);d[C]=u(h.command)}l.debug("loaded macros",d)})),r.globalEvents.on("window-blur",(function(){h()})),r.globalEvents.on("key",(function(e){for(var t,n=c(m);!(t=n()).done;){(0,t.value)(e)}p(e)}))};t.listenForKeyEvents=function(e){m.push(e);var t=!1;return function(){t||(t=!0,m.splice(m.indexOf(e),1))}}},94500:function(e,t){"use strict";t.__esModule=!0,t.fetchRetry=void 0;t.fetchRetry=function n(e,t,o){return void 0===o&&(o=1e3),fetch(e,t)["catch"]((function(){return new Promise((function(r){setTimeout((function(){n(e,t,o).then(r)}),o)}))}))}},82820:function(e,t,n){"use strict";t.__esModule=!0,t.AICard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AICard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.has_ai,s=l.integrity,u=l.backup_capacitor,m=l.flushing,p=l.has_laws,h=l.laws,C=l.wireless,f=l.radio;if(0===d)return(0,o.createComponentVNode)(2,c.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var N=null;N=s>=75?"green":s>=25?"yellow":"red";var g=null;return u>=75&&(g="green"),g=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,c.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:N,value:s/100})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:g,value:u/100})})]})}),(0,o.createComponentVNode)(2,a.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,a.Box,{children:h.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",children:e},t)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"check":"times",content:f?"Enabled":"Disabled",color:f?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},51072:function(e,t,n){"use strict";t.__esModule=!0,t.APC=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(19447);n(75309);t.APC=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:450,height:445,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var l={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"}},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,d=n.data,s=d.locked&&!d.siliconUser,u=(d.normallyLocked,l[d.externalPower]||l[0]),m=l[d.chargingStatus]||l[0],p=d.powerChannels||[],h=(d.malfStatus,d.powerCellStatus/100);return d.failTime>0?(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createVNode)(1,"b",null,(0,o.createVNode)(1,"h3",null,"SYSTEM FAILURE",16),2),(0,o.createVNode)(1,"i",null,"I/O regulators malfunction detected! Waiting for system reboot...",16),(0,o.createVNode)(1,"br"),"Automatic reboot in ",d.failTime," seconds...",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reboot Now",onClick:function(){return c("reboot")}})]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:d.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!s,color:d.isOperating?"":"bad",disabled:s,onClick:function(){return c("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",value:h})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:s,onClick:function(){return c("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[p.map((function(e){var t=e.topicParams;return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return c("channel",t.auto)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return c("channel",t.on)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return c("channel",t.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Load",children:d.totalCharging?(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W (+ "),d.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[d.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return c("overload")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",selected:d.coverLocked,disabled:s,onClick:function(){return c("cover")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===d.nightshiftSetting,onClick:function(){return c("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===d.nightshiftSetting,onClick:function(){return c("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===d.nightshiftSetting,onClick:function(){return c("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",selected:d.emergencyLights,onClick:function(){return c("emergency_lighting")}})})]})})],4)}},65235:function(e,t,n){"use strict";t.__esModule=!0,t.AbductorConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(19457);t.AbductorConsole=function(e,t){var n=(0,r.useSharedState)(t,"tab",1),i=n[0],u=n[1];return(0,o.createComponentVNode)(2,c.Window,{theme:"abductor",width:600,height:532,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:1===i,onClick:function(){return u(1)},children:"Abductsoft 3000"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:2===i,onClick:function(){return u(2)},children:"Mission Settings"})]}),1===i&&(0,o.createComponentVNode)(2,l),2===i&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.experiment,s=l.points,u=l.credits,m=l.categories;if(!d)return(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"No Experiment Machine Detected"});for(var p=[],h=[],C=0;C<m.length;C++){var f=m[C];p.push(f.name);for(var N=0;N<f.items.length;N++){var g=f.items[N];h.push({id:g.name,name:g.name,category:f.name,cost:g.cost+" Credits",desc:g.desc,disabled:u<g.cost})}}return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Collected Samples",children:s})})}),(0,o.createComponentVNode)(2,i.GenericUplink,{currency:u+" Credits",categories:p,items:h,handleBuy:function(e){return c("buy",{name:e.name})}})],4)},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.pad,d=i.gizmo;return l?(0,o.createComponentVNode)(2,a.Section,{title:"Emergency Teleport",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-circle",content:"Activate",color:"bad",onClick:function(){return c("teleporter_send")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mark Retrieval",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"user-plus":"user-slash",content:d?"Retrieve":"No Mark",disabled:!d,onClick:function(){return c("teleporter_retrieve")}})})})}):(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"No Telepad Detected"})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.vest,d=i.vest_mode,s=i.vest_lock;return l?(0,o.createComponentVNode)(2,a.Section,{title:"Agent Vest Settings",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){return c("toggle_vest")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:1===d?"eye-slash":"fist-raised",content:1===d?"Stealth":"Combat",onClick:function(){return c("flip_vest")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disguise",children:(0,o.createComponentVNode)(2,a.Button,{icon:"user-secret",content:"Select",onClick:function(){return c("select_disguise")}})})]})}):(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"No Agent Vest Detected"})}},2730:function(e,t,n){"use strict";t.__esModule=!0,t.AccountingConsole=void 0;var o=n(96323),r=n(26949),a=n(31246),c=n(2381);t.AccountingConsole=function(e,t){var n=(0,a.useBackend)(t),l=(n.act,n.data),d=l.PlayerAccounts,s=l.AuditLog,u=(0,a.useLocalState)(t,"tab_main",1),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Window,{width:300,height:360,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,r.Tabs,{fluid:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,r.Tabs.Tab,{selected:1===m,onClick:function(){return p(1)},children:"Users"}),(0,o.createComponentVNode)(2,r.Tabs.Tab,{selected:2===m,onClick:function(){return p(2)},children:"Audit"})]}),1===m&&(0,o.createComponentVNode)(2,r.Section,{title:"Crew Account Summary",children:d.map((function(e){return(0,o.createComponentVNode)(2,r.Collapsible,{fill:!0,title:e.name,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Occupation",children:e.job}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Balance",children:e.balance}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pay Modifier",children:[100*e.modifier,"%"]})]})},e.index)}))}),2===m&&(0,o.createComponentVNode)(2,r.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,r.BlockQuote,{p:1,children:[(0,o.createVNode)(1,"b",null,e.account,0)," spent ",(0,o.createVNode)(1,"b",null,e.cost,0)," ","cr at ",(0,o.createVNode)(1,"i",null,[e.vendor,(0,o.createTextVNode)(".")],0)]},e.index)}))})]})})};var i=function(e,t){var n=(0,a.useBackend)(t),c=(n.act,n.data),i=(0,a.useLocalState)(t,"lockedmode",1);i[0],i[1];return c.Crashing?(0,o.createComponentVNode)(2,r.Modal,{textAlign:"center",mr:1.5,children:(0,o.createVNode)(1,"blink",null,"OH GOD THE ECONOMY IS RUINED.",16)}):null}},61539:function(e,t,n){"use strict";t.__esModule=!0,t.AccountsTerminal=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AccountsTerminal=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,a.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return c("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,t){var n=(0,r.useBackend)(t).act,c=(0,r.useSharedState)(t,"holder",""),i=c[0],l=c[1],d=(0,r.useSharedState)(t,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,a.Input,{value:i,fluid:!0,onInput:function(e,t){return l(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,a.Input,{value:s,fluid:!0,onInput:function(e,t){return u(t)}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return n("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,h=i.transactions;return(0,o.createComponentVNode)(2,a.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return c("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return c("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,a.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Terminal"})]}),h.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source_terminal})]},t)}))]})})]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.accounts;return(0,o.createComponentVNode)(2,a.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return c("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"There are no accounts available."})})}},56514:function(e,t,n){"use strict";t.__esModule=!0,t.Achievements=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Achievements=function(e,t){var n=(0,r.useBackend)(t).data,l=n.categories,s=(0,r.useLocalState)(t,"category",l[0]),u=s[0],m=s[1],p=n.achievements.filter((function(e){return e.category===u}));return(0,o.createComponentVNode)(2,c.Window,{title:"Achievements",width:540,height:680,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[l.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:u===e,onClick:function(){return m(e)},children:e},e)})),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"High Scores"===u,onClick:function(){return m("High Scores")},children:"High Scores"})]}),"High Scores"===u&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,i,{achievements:p})]})})};var i=function(e,t){var n=e.achievements;return(0,o.createComponentVNode)(2,a.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,l,{achievement:e},e.name)}))})},l=function(e){var t=e.achievement,n=t.name,r=t.desc,c=t.icon_class,i=t.value,l=t.score;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Box,{m:1,className:c})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",children:[(0,o.createVNode)(1,"h1",null,n,0),r,l&&(0,o.createComponentVNode)(2,a.Box,{color:i>0?"good":"bad",children:i>0?"Earned "+i+" times":"Locked"})||(0,o.createComponentVNode)(2,a.Box,{color:i?"good":"bad",children:i?"Unlocked":"Locked"})]})]},n)},d=function(e,t){var n=(0,r.useBackend)(t).data,c=n.highscore,i=n.user_ckey,l=(0,r.useLocalState)(t,"highscore",0),d=l[0],s=l[1],u=c[d];if(!u)return null;var m=Object.keys(u.scores).map((function(e){return{ckey:e,value:u.scores[e]}}));return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:d===t,onClick:function(){return s(t)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"#"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Key"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Score"})]}),m.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",m:2,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",textAlign:"center",children:t+1}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:e.ckey===i&&"green",textAlign:"center",children:[0===t&&(0,o.createComponentVNode)(2,a.Icon,{name:"crown",color:"yellow",mr:2}),e.ckey,0===t&&(0,o.createComponentVNode)(2,a.Icon,{name:"crown",color:"yellow",ml:2})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.value})]},e.ckey)}))]})})]})}},37937:function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleList=t.AdminShuttleController=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.AdminShuttleController=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,c.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:(0,r.sortBy)((function(e){var t;return(null==(t=e.name)?void 0:t.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name})]},e.ref)}))})})]})};t.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},81173:function(e,t,n){"use strict";t.__esModule=!0,t.Adminhelp=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Adminhelp=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.adminCount,s=l.urgentAhelpEnabled,u=l.bannedFromUrgentAhelp,m=l.urgentAhelpPromptMessage,p=(0,r.useLocalState)(t,"request_for_admin",!1),h=p[0],C=p[1],f=(0,r.useLocalState)(t,"confirm_request",!1),N=f[0],g=f[1],V=(0,r.useLocalState)(t,"ahelp_message",""),b=V[0],v=V[1],k="alert admins";return(0,o.createComponentVNode)(2,c.Window,{title:"Create Adminhelp",theme:"admin",height:300,width:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{"background-image":"none"},children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.TextArea,{autoFocus:!0,height:"100%",value:b,placeholder:"Admin help",onChange:function(e,t){return v(t)}})}),s&&d<=0&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:[m,N&&(0,o.createComponentVNode)(2,a.Box,{mt:1,width:"100%",fontFamily:"arial",backgroundColor:"grey",style:{"font-style":"normal"},children:["Input '",k,"' to proceed.",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Confirmation Prompt",autoFocus:!0,fluid:!0,onChange:function(e,t){t===k&&C(!0),g(!1)}})]})||(0,o.createComponentVNode)(2,a.Button,{mt:1,content:"Alert admins?",onClick:function(){h?C(!1):g(!0)},color:h?"orange":"blue",icon:h?"check-square-o":"square-o",disabled:u,tooltip:u?"You are banned from using urgent ahelps.":null,fluid:!0,textAlign:"center"})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{color:"good",fluid:!0,content:"Submit",textAlign:"center",onClick:function(){return i("ahelp",{urgent:h,message:b})}})})]})})})}},42638:function(e,t,n){"use strict";t.__esModule=!0,t.AdventureBrowser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(80320),l=n(1033),d=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=e.entry_ref,d=e.close,s=c.adventures.find((function(e){return e.ref===l}));return s?(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:s.id}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"JSON Version",children:s.version}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Uploader",children:s.uploader}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Last Update",children:s.timestamp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Approved",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:s.approved,onClick:function(){return i("approve",{ref:s.ref})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"JSON",children:[s.json_status,(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("upload",{ref:s.ref})},content:"Upload"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("download",{ref:s.ref})},content:"Download"})]})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{onClick:function(){d(),i("delete",{ref:s.ref})},content:"Delete"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("play",{ref:s.ref})},content:"Play"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("refresh",{ref:s.ref})},content:"Refresh"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{onClick:function(){return i("save",{ref:s.ref})},content:"Save"}),(0,o.createComponentVNode)(2,a.Button,{onClick:d,content:"Close"})]}):null},s=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=(0,r.useLocalState)(t,"openAdventure",null),s=l[0],u=l[1];return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,d,{entry_ref:s,close:function(){return u(null)}}),!s&&(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:"ID"}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:"Title"}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:"Edit"})]}),c.adventures.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"edit",onClick:function(){return u(e.ref)}})})]},e.ref)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("create")},children:"Create New"})})]})],0)},u=function(e,t){var n=(0,r.useBackend)(t),c=n.data,d=n.act;return(0,o.createComponentVNode)(2,a.Section,{title:"Playtest",buttons:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return d("end_play")},children:"End Playtest"}),children:c.delay_time>0?(0,o.createComponentVNode)(2,a.Box,{children:["DELAY ",(0,l.formatTime)(c.delay_time)," / ",c.delay_message]}):(0,o.createComponentVNode)(2,i.AdventureScreen,{adventure_data:c.adventure_data,drone_integrity:100,drone_max_integrity:100,hide_status:!0})})};t.AdventureBrowser=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,c.Window,{width:650,height:500,title:"Adventure Manager",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!!n.feedback_message&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:n.feedback_message}),n.play_mode?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)]})})}},78835:function(e,t,n){"use strict";t.__esModule=!0,t.AgentCard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AgentCard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,c.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Info",children:(0,o.createComponentVNode)(2,a.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},25790:function(e,t,n){"use strict";t.__esModule=!0,t.AiAirlock=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}};t.AiAirlock=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,c.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Access",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.emergency?"power-off":"times",content:d.emergency?"Enabled":"Disabled",selected:d.emergency,onClick:function(){return l("emergency-toggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33105:function(e,t,n){"use strict";t.__esModule=!0,t.AiRestorerContent=t.AiRestorer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AiRestorer=function(){return(0,o.createComponentVNode)(2,c.Window,{width:370,height:360,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,h=i.health,C=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:d}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return c("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,a.Section,{title:C?"System Status":s,buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return c("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{className:"candystripe",children:e},e)}))})]})],0)};t.AiRestorerContent=i},96789:function(e,t,n){"use strict";t.__esModule=!0,t.AiSupermatter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(75309);t.AiSupermatter=function(e,t){var n=(0,r.useBackend)(t).data,a=(n.integrity_percentage,n.ambient_temp,n.ambient_pressure,n.detonating),i=(0,o.createComponentVNode)(2,d);return a&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,c.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:i})})};var l=function(e,t){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data,c=n.integrity_percentage,i=n.ambient_temp,l=n.ambient_pressure;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:c,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},26488:function(e,t,n){"use strict";t.__esModule=!0,t.AiVoiceChanger=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AiVoiceChanger=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"Voice changer settings",width:400,height:200,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accent",children:(0,o.createComponentVNode)(2,a.Dropdown,{options:l.voices,onSelected:function(e){return i("look",{look:e})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verb",children:(0,o.createComponentVNode)(2,a.Input,{"default":l.say_verb,onChange:function(e,t){return i("verb",{verb:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.loud?"power-off":"times",content:l.loud?"Loudmode on":"Loudmode Off",selected:l.loud,onClick:function(){return i("loud")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fake name",children:(0,o.createComponentVNode)(2,a.Input,{"default":l.name,onChange:function(e,t){return i("name",{name:t})}})})]})})})}},24782:function(e,t,n){"use strict";t.__esModule=!0,t.AirAlarm=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(84200),l=n(2381),d=n(75549),s=n(19447);t.AirAlarm=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),c=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!c&&(0,o.createComponentVNode)(2,h)]})})};var u=function(e,t){var n=(0,a.useBackend)(t).data,l=(n.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[n.danger_level]||d[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var t=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:t.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Area status",color:n.atmos_alarm||n.fire_alarm?"bad":"good",children:(n.atmos_alarm?"Atmosphere Alarm":n.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!n.emagged&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,c.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,c.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,c.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,c.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,c.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return C}},vents:{title:"Vent Controls",component:function(){return f}},scrubbers:{title:"Scrubber Controls",component:function(){return N}},modes:{title:"Operating Mode",component:function(){return g}},thresholds:{title:"Alarm Thresholds",component:function(){return V}}},h=function(e,t){var n=(0,a.useLocalState)(t,"screen"),r=n[0],i=n[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(0,a.useLocalState)(t,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,c.Box,{mt:1}),(0,o.createComponentVNode)(2,c.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,c.Box,{mt:2}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,c.Box,{mt:1}),(0,o.createComponentVNode)(2,c.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,c.Box,{mt:1}),(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,c.Box,{mt:1}),(0,o.createComponentVNode)(2,c.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},f=function(e,t){var n=(0,a.useBackend)(t).data.vents;return n&&0!==n.length?n.map((function(e){return(0,o.createComponentVNode)(2,d.Vent,{vent:e},e.id_tag)})):"Nothing to show"},N=function(e,t){var n=(0,a.useBackend)(t).data.scrubbers;return n&&0!==n.length?n.map((function(e){return(0,o.createComponentVNode)(2,d.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,c.Box,{mt:1})],4,e.mode)})):"Nothing to show"},V=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,c.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},71627:function(e,t,n){"use strict";t.__esModule=!0,t.AirlockController=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AirlockController=function(e,t){var n=(0,r.useBackend)(t).data,s=n.airlockState,u=n.pumpStatus,m=n.interiorStatus,p=n.exteriorStatus,h=d(s),C=function(e){return e.replace(/^\w/,(function(e){return e.toUpperCase()}))};return(0,o.createComponentVNode)(2,c.Window,{width:500,height:190,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Airlock Status",buttons:(0,o.createComponentVNode)(2,i),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Status",children:h.primary}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chamber Pressure",children:(0,o.createComponentVNode)(2,l,{currentStatus:h})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Control Pump",children:C(u)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Interior Door",children:(0,o.createComponentVNode)(2,a.Box,{color:"open"===m&&"good",children:C(m)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Exterior Door",children:(0,o.createComponentVNode)(2,a.Box,{color:"open"===p&&"good",children:C(p)})})]})})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act;switch(n.data.airlockState){case"pressurize":case"depressurize":return(0,o.createComponentVNode)(2,a.Button,{icon:"stop-circle",onClick:function(){return c("abort")},children:"Abort"});case"closed":return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"lock-open",onClick:function(){return c("cycleInterior")},children:"Open Interior Airlock"}),(0,o.createComponentVNode)(2,a.Button,{icon:"lock-open",onClick:function(){return c("cycleExterior")},children:"Open Exterior Airlock"})],4);case"inopen":return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return c("cycleClosed")},children:"Close Interior Airlock"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return c("cycleExterior")},children:"Cycle to Exterior Airlock"})],4);case"outopen":return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return c("cycleClosed")},children:"Close Exterior Airlock"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return c("cycleInterior")},children:"Cycle to Interior Airlock"})],4);default:return null}},l=function(e,t){var n=(0,r.useBackend)(t).data.sensorPressure,c=e.currentStatus,i=c.icon,l=c.color,d="fan"===i?1:0;return(0,o.createComponentVNode)(2,a.Box,{color:l,children:[n," kPa ",i&&(0,o.createComponentVNode)(2,a.Icon,{name:i,spin:d})]})},d=function(e){switch(e){case"inopen":return{primary:"Interior Airlock Open",icon:"",color:"good"};case"pressurize":return{primary:"Cycling to Interior Airlock",icon:"fan",color:"average"};case"closed":return{primary:"Inactive",icon:"",color:"white"};case"depressurize":return{primary:"Cycling to Exterior Airlock",icon:"fan",color:"average"};case"outopen":return{primary:"Exterior Airlock Open",icon:"exclamation-triangle",color:"bad"};default:return{primary:"Unknown",icon:"",color:"average"}}}},33364:function(e,t,n){"use strict";t.__esModule=!0,t.AirlockElectronics=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(29854);t.AirlockElectronics=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.oneAccess,u=d.unres_direction,m=d.passedName,p=d.passedCycleId,h=d.regions||[],C=d.accesses||[];return(0,o.createComponentVNode)(2,c.Window,{width:420,height:485,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Main",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Access Required",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"unlock":"lock",content:s?"One":"All",onClick:function(){return l("one_access")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unrestricted Access",children:[(0,o.createComponentVNode)(2,a.Button,{icon:1&u?"check-square-o":"square-o",content:"North",selected:1&u,onClick:function(){return l("direc_set",{unres_direction:"1"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:2&u?"check-square-o":"square-o",content:"South",selected:2&u,onClick:function(){return l("direc_set",{unres_direction:"2"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:4&u?"check-square-o":"square-o",content:"East",selected:4&u,onClick:function(){return l("direc_set",{unres_direction:"4"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:8&u?"check-square-o":"square-o",content:"West",selected:8&u,onClick:function(){return l("direc_set",{unres_direction:"8"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Airlock Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,maxLength:30,value:m,onChange:function(e,t){return l("passedName",{passedName:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cycling Id",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,maxLength:30,value:p,onChange:function(e,t){return l("passedCycleId",{passedCycleId:t})}})})]})}),(0,o.createComponentVNode)(2,i.AccessConfig,{accesses:h,selectedList:C,accessMod:function(e){return l("set",{access:e})},grantAll:function(){return l("grant_all")},denyAll:function(){return l("clear_all")},grantDep:function(e){return l("grant_region",{region:e})},denyDep:function(e){return l("deny_region",{region:e})}})]})})}},458:function(e,t,n){"use strict";t.__esModule=!0,t.AlertModal=void 0;var o=n(96323),r=n(55631),a=n(31246),c=n(57890),i=n(26949),l=n(2381);t.AlertModal=function(e,t){var n=(0,a.useBackend)(t),s=n.act,u=n.data,m=u.autofocus,p=u.buttons,h=void 0===p?[]:p,C=u.large_buttons,f=u.message,N=void 0===f?"":f,g=u.timeout,V=u.title,b=(0,a.useLocalState)(t,"selected",0),v=b[0],k=b[1],_=115+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&C?5:0),y=325+(h.length>2?55:0),w=function(e){0===v&&-1===e?k(h.length-1):v===h.length-1&&1===e?k(0):k(v+e)};return(0,o.createComponentVNode)(2,l.Window,{height:_,title:V,width:y,children:[!!g&&(0,o.createComponentVNode)(2,r.Loader,{value:g}),(0,o.createComponentVNode)(2,l.Window.Content,{onKeyDown:function(e){var t=window.event?e.which:e.keyCode;t===c.KEY_SPACE||t===c.KEY_ENTER?s("choose",{choice:h[v]}):t===c.KEY_ESCAPE?s("cancel"):t===c.KEY_LEFT?(e.preventDefault(),w(-1)):t!==c.KEY_TAB&&t!==c.KEY_RIGHT||(e.preventDefault(),w(1))},children:(0,o.createComponentVNode)(2,i.Section,{fill:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,m:1,children:(0,o.createComponentVNode)(2,i.Box,{color:"label",overflow:"hidden",children:N})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[!!m&&(0,o.createComponentVNode)(2,i.Autofocus),(0,o.createComponentVNode)(2,d,{selected:v})]})]})})})]})};var d=function(e,t){var n=(0,a.useBackend)(t).data,r=n.buttons,c=void 0===r?[]:r,l=n.large_buttons,d=n.swapped_buttons,u=e.selected;return(0,o.createComponentVNode)(2,i.Flex,{align:"center",direction:d?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:null==c?void 0:c.map((function(e,t){return l&&c.length<3?(0,o.createComponentVNode)(2,i.Flex.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s,{button:e,id:t.toString(),selected:u===t})},t):(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,s,{button:e,id:t.toString(),selected:u===t})},t)}))})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.large_buttons,l=e.button,d=e.selected,s=l.length>7?l.length:7;return(0,o.createComponentVNode)(2,i.Button,{fluid:!!c,height:!!c&&2,onClick:function(){return r("choose",{choice:l})},m:.5,pl:2,pr:2,pt:c?.33:0,selected:d,textAlign:"center",width:!c&&s,children:c?l.toUpperCase():l})}},79247:function(e,t,n){"use strict";t.__esModule=!0,t.AlgaeFarm=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118);t.AlgaeFarm=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,h=d.inputDir,C=d.outputDir,f=d.input,N=d.output,g=d.errorText;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[g&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:g})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,a.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,a.Table,{mt:1,children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Gas Input ("+h+")",children:f?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Pressure",children:[f.pressure," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:f.name,children:[f.percent,"% (",f.moles," moles)"]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Gas Output ("+C+")",children:N?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},47185:function(e,t,n){"use strict";t.__esModule=!0,t.AnomalyRefinery=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(42055);t.AnomalyRefinery=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"Anomaly Refinery",width:550,height:350,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useSharedState)(t,"exploderTab",1),u=l[0],m=l[1],p=i.core,h=i.valvePresent,C=i.active;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[1===u&&(0,o.createComponentVNode)(2,d),2===u&&(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!p||C,onClick:function(){return c("eject_core")},children:"Eject Core"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:1===u?"server":"compress-arrows-alt",onClick:function(){return m(1===u?2:1)},children:1===u?"Run Simulations":"Implosion Control"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!h||C,onClick:function(){return c("eject_bomb")},children:"Eject Bomb"})})]})})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.core,d=i.requiredRadius,s=i.gasList,u=i.valveReady,m=i.active,p=i.valvePresent;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Inserted Core",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",backgroundColor:"red",onClick:function(){return c("start_implosion")},disabled:m||!u||!l,children:"Implode Core"}),children:[!l&&(0,o.createComponentVNode)(2,a.Modal,{textAlign:"center",children:"No Core Inserted!"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l||"-"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Radius",children:d?d+" tiles":"Implosion not possible."})]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Inserted Bomb",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"exchange-alt",onClick:function(){return c("swap")},children:"Swap Merging Order"}),children:[!p&&(0,o.createComponentVNode)(2,a.Modal,{textAlign:"center",children:"No Bomb Inserted!"}),(0,o.createComponentVNode)(2,a.Stack,{align:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",bold:!0,children:"Giver Tank ("+(s[1].name?s[1].name:"Not Available")+")"}),(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",children:(s[1].total_moles?String(s[0].total_moles.toFixed(2)):"-")+" moles at "+(s[1].total_moles?String(s[1].temperature.toFixed(2)):"-")+" Kelvin"}),(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",children:(s[1].total_moles?String(s[1].pressure.toFixed(2)):"-")+" kPa"})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"arrow-right"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",bold:!0,children:"Target Tank ("+(s[0].name?s[0].name:"Not Available")+")"}),(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",children:(s[0].total_moles?String(s[0].total_moles.toFixed(2)):"-")+" moles at "+(s[0].total_moles?String(s[0].temperature.toFixed(2)):"-")+" Kelvin"}),(0,o.createComponentVNode)(2,a.Box,{height:2,width:"100%",children:(s[1].total_moles?String(s[0].pressure.toFixed(2)):"-")+" kPa"})]})]})]})})],4)},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.gasList,s=l.reactionIncrement;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:d[2].name,scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{tooltip:0===s?"Valve status: Closed":"Valve status: Open. Current reaction count:"+s,icon:"vial",tooltipPosition:"left",onClick:function(){return c("react")},textAlign:"center",disabled:!d[0].total_moles||!d[1].total_moles,content:0===s?"Open Valve":"React"}),children:[!d[2].total_moles&&(0,o.createComponentVNode)(2,a.Modal,{textAlign:"center",children:"No Gas Present"}),(0,o.createComponentVNode)(2,i.GasmixParser,{gasmix:d[2]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[d[0],d[1]].map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:e.name?e.name:"Not Available",children:[!e.total_moles&&(0,o.createComponentVNode)(2,a.Modal,{textAlign:"center",children:"No Gas Present"}),(0,o.createComponentVNode)(2,i.GasmixParser,{gasmix:e})]})},e.ref)}))})})],4)}},13455:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoBrainwashed=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoBrainwashed=function(){return(0,o.createComponentVNode)(2,c.Window,{width:400,height:400,theme:"abductor",children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:"#722e7d",children:[(0,o.createComponentVNode)(2,a.Icon,{size:16,name:"flushed",color:"#3f1945",position:"absolute",top:"42%",left:"26%"}),(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontFamily:"Wingdings",children:"Hey, no! Stop translating this!"}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-.25,fontSize:"20px",children:"Your mind reels..."}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-.25,fontSize:"20px",children:"It is focusing on a single purpose..."}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:3.5,grow:!0,children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"20px",textColor:"#61e4b9",children:"Follow the directives at any cost!"}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontFamily:"Wingdings",children:"You ruined my cool font effect."})]})})]})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,textColor:"#61e4b9",children:"Your current objectives:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"left",children:n?n.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:[e.count,". ",e.explanation]},e.count),(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,textColor:"red",children:"This Directive must be followed."})],8)})):"None!"})]})}},69573:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoBrother=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoBrother=function(e,t){var n=(0,r.useBackend)(t).data,l=n.antag_name,d=n.brothers;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:250,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:["You are the ",l," of ",d,"!"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i)})]})})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"Your objectives:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})}},56234:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoChangeling=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381),i={fontWeight:"bold",color:"yellow"},l={color:"red",fontWeight:"bold"},d={color:"lightblue",fontWeight:"bold"},s={color:"orange",fontWeight:"bold"},u={color:"lightgreen",fontWeight:"bold"},m=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"Your current objectives:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})},p=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.hive_name,d=c.objectives;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Intro",scrollable:!!d&&d.length>4,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"25px",children:["You are the Changeling from the",(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("\u2002"),l],0,{style:i}),"."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,m)})]})})},h=function(e,t){(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Abilities",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,textColor:"label",grow:!0,children:["Your",(0,o.createVNode)(1,"span",null,"\u2002Absorb DNA",16,{style:l})," ability allows you to steal the DNA and memories of a victim. Your",(0,o.createVNode)(1,"span",null,"\u2002Extract DNA Sting",16,{style:l})," ability also steals the DNA of a victim, and is undetectable, but does not grant you their memories or speech patterns."]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,textColor:"label",grow:!0,children:["Your",(0,o.createVNode)(1,"span",null,"\u2002Reviving Stasis",16,{style:d})," ability allows you to revive. It means nothing short of a complete body destruction can stop you! Obviously, this is loud and so should not be done in front of people you are not planning on silencing."]})]})}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,textColor:"label",grow:!0,children:["Your",(0,o.createVNode)(1,"span",null,"\u2002Transform",16,{style:s})," ability allows you to change into the form of those you have collected DNA from, lethally and nonlethally. It will also mimic (NOT REAL CLOTHING) the clothing they were wearing for every slot you have open."]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,textColor:"label",grow:!0,children:["The",(0,o.createVNode)(1,"span",null,"\u2002Cellular Emporium",16,{style:u})," is where you purchase more abilities beyond your starting kit. You have 10 genetic points to spend on abilities and you are able to readapt after absorbing a body, refunding your points for different kits."]})]})})]})})},C=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.memories,l=c.stolen_antag_info,d=(0,r.useSharedState)(t,"memory",!!i&&i[0]||null),s=d[0],u=d[1],m={};for(var p in i){var h=i[p];m[h.name]=h}return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!!i,title:"Stolen Memories",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltipPosition:"left",tooltip:"Absorbing targets allows\nyou to collect their memories. They should\nhelp you impersonate your target!"}),children:!i&&(0,o.createComponentVNode)(2,a.Box,{children:!l&&(0,o.createComponentVNode)(2,a.Dimmer,{mr:"-100%",bold:!0,children:"You need to absorb a victim first!"})})||(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:null==s?void 0:s.name,options:i.map((function(e){return e.name})),onSelected:function(e){return u(m[e])}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:!!s&&s.story})]})})},f=function(e,t){var n=(0,r.useBackend)(t).data.stolen_antag_info;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!!n,title:"Additional Stolen Information",children:!!n&&n})};t.AntagInfoChangeling=function(e,t){(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:580,children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{backgroundImage:"none"},children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{maxHeight:13.2,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:4,children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,ml:0,basis:0,children:(0,o.createComponentVNode)(2,f)})]})})]})})})}},13322:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoDemon=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={color:"lightblue"},l={color:"yellow"};t.AntagInfoDemon=function(e,t){var n=(0,r.useBackend)(t).data,u=n.fluff,m=n.objectives,p=n.explain_attack;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:356,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{"background-image":"none"},children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,width:"544px",fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:m.length>2,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",textColor:"red",fontSize:"20px",children:u}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,d)})]})})}),!!p&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Demonic Powers",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createVNode)(1,"span",null,"Blood Jaunt:",16,{style:i})," You can dive in and out of blood to travel anywhere you need to be. You will gain a speed boost upon leaving the jaunt for surprise attacks. You can drag victims you have disabled through the blood, consuming them and restoring health."]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createVNode)(1,"span",null,"Monstrous strike:",16,{style:l})," You can launch a devastating slam attack by right-clicking, capable of smashing bones in one strike. Great for preventing the escape of your victims, as their wounds will slow them."]})]})})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,s)})]})})})};var d=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"It is in your nature to accomplish these goals:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"20px",children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})},s=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{height:"102%",mt:"-6px",fill:!0,children:(0,o.createComponentVNode)(2,a.Box,{className:"HellishRunes__demonrune",children:["Y",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"K",(0,o.createVNode)(1,"br"),"T",(0,o.createVNode)(1,"br"),"O",(0,o.createVNode)(1,"br"),"P",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"S",(0,o.createVNode)(1,"br"),"Y",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"K",(0,o.createVNode)(1,"br"),"T",(0,o.createVNode)(1,"br"),"O",(0,o.createVNode)(1,"br"),"P",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"S",(0,o.createVNode)(1,"br"),"Y",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"K",(0,o.createVNode)(1,"br"),"T",(0,o.createVNode)(1,"br"),"O",(0,o.createVNode)(1,"br"),"P",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"S",(0,o.createVNode)(1,"br"),"Y",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"K",(0,o.createVNode)(1,"br"),"T",(0,o.createVNode)(1,"br"),"O",(0,o.createVNode)(1,"br"),"P",(0,o.createVNode)(1,"br"),"U",(0,o.createVNode)(1,"br"),"S"]})})}},59234:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoGangmember=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoGangmember=function(e,t){var n=(0,r.useBackend)(t).data,s=n.gang_name,u=n.antag_name;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{"background-image":"none"},children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:[s," for life! You are a ",u,"!"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",children:"As a gang member, support your family above all! Tag turf with a spraycan, wear your family's clothes, induct new members with induction packages, and accomplish your family objective."}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,l)})]})}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,d)})]})})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data,c=n.gang_name,i=n.gang_clothes;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.5,mb:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"tshirt"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:["Wear the following to represent the ",c,":"]})]})}),(0,o.createComponentVNode)(2,a.BlockQuote,{children:i&&i.length?i.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- ",e]},e)})):"- Anything!"})]})},l=function(){return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.5,children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"phone"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"You were given a cell phone with your induction package!"})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:"Use it in hand to activate it, then speak into it to talk with your other family members."})})]})},d=function(e,t){var n=(0,r.useBackend)(t).data.gang_objective;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,fontSize:"16px",children:"Your family's goal:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n||"No objective set! This is a problem!"})]})}},87862:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoGeneric=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoGeneric=function(e,t){var n=(0,r.useBackend)(t).data.antag_name;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:250,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:["You are the ",n,"!"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i)})]})})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"Your objectives:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})}},56015:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoHeretic=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={color:"#e03c3c"},l={fontWeight:"bold",color:"#2185d0"},d={fontWeight:"bold",color:"#bd54e0"},s={fontWeight:"bold",color:"#20b142"},u={fontWeight:"bold",color:"yellow"},m=function(){return(0,o.createComponentVNode)(2,a.Stack,{justify:"space-evenly",height:"100%",width:"100%",children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"You are the Heretic!",fill:!0,fontSize:"14px",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,f)]})})})})},p=function(){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,textAlign:"center",fontSize:"14px",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("Another day at a meaningless job. You feel a\xa0"),(0,o.createVNode)(1,"span",null,"shimmer",16,{style:l}),(0,o.createTextVNode)("\xa0around you, as a realization of something\xa0"),(0,o.createVNode)(1,"span",null,"strange",16,{style:i}),(0,o.createTextVNode)("\xa0in the air unfolds. You look inwards and discover something that will change your life.")],4)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createVNode)(1,"b",null,[(0,o.createTextVNode)("The "),(0,o.createVNode)(1,"span",null,"Gates of Mansus",16,{style:d}),(0,o.createTextVNode)("\xa0open up to your mind.")],4)})]})})},h=function(){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fontSize:"12px",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- Find reality smashing\xa0",(0,o.createVNode)(1,"span",null,"influences",16,{style:d}),"\xa0around the station invisible to the normal eye and\xa0",(0,o.createVNode)(1,"b",null,"right click",16)," on them to harvest them for\xa0",(0,o.createVNode)(1,"span",null,"knowledge points",16,{style:l}),". Tapping them makes them visible to all after a short time."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- Use your\xa0",(0,o.createVNode)(1,"span",null,"Living Heart action",16,{style:i}),"\xa0to track down\xa0",(0,o.createVNode)(1,"span",null,"sacrifice targets",16,{style:i}),", but be careful: Pulsing it will produce a heartbeat sound that nearby people may hear. This action is tied to your ",(0,o.createVNode)(1,"b",null,"heart",16)," - if you lose it, you must complete a ritual to regain it."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- Draw a\xa0",(0,o.createVNode)(1,"span",null,"transmutation rune",16,{style:s})," by using a drawing tool (a pen or crayon) on the floor while having\xa0",(0,o.createVNode)(1,"span",null,"Mansus Grasp",16,{style:s}),"\xa0active in your other hand. This rune allows you to complete rituals and sacrifices."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- Follow your ",(0,o.createVNode)(1,"span",null,"Living Heart",16,{style:i})," to find your targets. Bring them back to a\xa0",(0,o.createVNode)(1,"span",null,"transmutation rune",16,{style:s})," to\xa0",(0,o.createVNode)(1,"span",null,"sacrifice",16,{style:i})," them for\xa0",(0,o.createVNode)(1,"span",null,"knowledge points",16,{style:l}),". The Mansus ",(0,o.createVNode)(1,"b",null,"ONLY",16)," accepts targets pointed to by the\xa0",(0,o.createVNode)(1,"span",null,"Living Heart",16,{style:i}),"."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["- Accomplish all of your objectives to be able to learn the ",(0,o.createVNode)(1,"span",null,"final ritual",16,{style:u}),". Complete the ritual to become all powerful!"]})]})})},C=function(e,t){var n=(0,r.useBackend)(t).data,c=n.charges,d=n.total_sacrifices,s=n.ascended;return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[!!s&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{align:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:"You have"}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"24px",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"yellow",children:"ASCENDED"}),"!"]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["You have ",(0,o.createVNode)(1,"b",null,c||0,0),"\xa0",(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("knowledge point"),1!==c?"s":""],0,{style:l}),"."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["You have made a total of\xa0",(0,o.createVNode)(1,"b",null,d||0,0),"\xa0",(0,o.createVNode)(1,"span",null,"sacrifices",16,{style:i}),"."]})]})})},f=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"In order to ascend, you have these tasks to fulfill:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[e.count,": ",e.explanation]},e.count)})):"None!"})]})})},N=function(e,t){var n=(0,r.useBackend)(t).data.learnedKnowledge;return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Researched Knowledge",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{width:"100%",color:e.color,content:e.hereticPath+" - "+e.name,tooltip:e.desc})},e.name)})):"None!"})})})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.learnableKnowledge;return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Potential Knowledge",fill:!0,scrollable:!0,children:l.length?l.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{mb:1,children:[(0,o.createComponentVNode)(2,a.Button,{width:"100%",color:e.color,disabled:e.disabled,content:e.hereticPath+" - "+(e.cost>0?e.name+": "+e.cost+"\n point"+(1!==e.cost?"s":""):e.name),tooltip:e.desc,onClick:function(){return i("research",{path:e.path})}}),!!e.gainFlavor&&(0,o.createComponentVNode)(2,a.BlockQuote,{children:(0,o.createVNode)(1,"i",null,e.gainFlavor,0)})]},e.name)})):"None!"})})},V=function(e,t){var n=(0,r.useBackend)(t).data.charges;return(0,o.createComponentVNode)(2,a.Stack,{justify:"space-evenly",height:"100%",width:"100%",children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,height:"100%",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"20px",textAlign:"center",children:["You have ",(0,o.createVNode)(1,"b",null,n||0,0),"\xa0",(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("knowledge point"),1!==n?"s":""],0,{style:l})," to spend."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{height:"100%",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,g)]})})]})})})};t.AntagInfoHeretic=function(e,t){var n=(0,r.useBackend)(t).data.ascended,i=(0,r.useLocalState)(t,"currentTab",0),l=i[0],d=i[1];return(0,o.createComponentVNode)(2,c.Window,{width:675,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{"background-image":"none",background:n?"radial-gradient(circle, rgba(24,9,9,1) 54%, rgba(31,10,10,1) 60%, rgba(46,11,11,1) 80%, rgba(47,14,14,1) 100%);":"radial-gradient(circle, rgba(9,9,24,1) 54%, rgba(10,10,31,1) 60%, rgba(21,11,46,1) 80%, rgba(24,14,47,1) 100%);"},children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{fluid:!0,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"info",selected:0===l,onClick:function(){return d(0)},children:"Information"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:1===l?"book-open":"book",selected:1===l,onClick:function(){return d(1)},children:"Research"})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:0===l&&(0,o.createComponentVNode)(2,m)||(0,o.createComponentVNode)(2,V)})]})})})}},11291:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoMalf=void 0;var o=n(96323),r=n(31246),a=(n(21118),n(19457)),c=n(26949),i=n(2381),l={fontWeight:"bold",color:"yellow"},d={color:"red",fontWeight:"bold"},s={color:"lightgreen",fontWeight:"bold"},u=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{bold:!0,children:"Your prime objectives:"}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{children:["≥-",e.count,": ",e.explanation]},e.count)})):"None!"})]})},m=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.intro);return(0,o.createComponentVNode)(2,c.Section,{fill:!0,title:"Intro",scrollable:!0,children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{fontSize:"25px",children:a}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,u)})]})})},p=function(e,t){var n=(0,r.useBackend)(t).data,a=n.allies,i=n.goal;return(0,o.createComponentVNode)(2,c.Section,{fill:!0,title:"Diagnostics",buttons:(0,o.createComponentVNode)(2,c.Button,{mr:-.8,mt:-.5,icon:"hammer",tooltip:"This is a gameplay suggestion for bored ais.\nYou don't have to follow it, unless you want some\nideas for how to spend the round.",tooltipPosition:"bottom-start",children:"Policy"}),children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{style:{"background-color":"black"},children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("System Integrity Report:"),(0,o.createVNode)(1,"br")],4,{style:s}),">",i]}),(0,o.createComponentVNode)(2,c.Stack.Divider),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,style:{"background-color":"black"},children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Morality Core Report:"),(0,o.createVNode)(1,"br")],4,{style:l}),">",a]}),(0,o.createComponentVNode)(2,c.Stack.Divider),(0,o.createComponentVNode)(2,c.Stack.Item,{style:{"background-color":"black"},children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Overall Sentience Coherence Grade: FAILING."),(0,o.createVNode)(1,"br")],4,{style:d}),">Report to Nanotrasen?",(0,o.createVNode)(1,"br"),">>N"]})]})})})})},h=function(e,t){var n=(0,r.useBackend)(t).data,a=n.has_codewords,i=n.phrases,l=n.responses;return(0,o.createComponentVNode)(2,c.Section,{title:"Codewords",mb:!a&&-1,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:!a&&(0,o.createComponentVNode)(2,c.BlockQuote,{children:"You have not been supplied the Syndicate codewords. You will have to use alternative methods to find potential allies. Proceed with caution, however, as everyone is a potential foe."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,c.BlockQuote,{children:["New access to restricted channels has provided you with intercepted syndicate codewords. Syndicate agents will respond as if you're one of their own. Proceed with caution, however, as everyone is a potential foe.",(0,o.createVNode)(1,"span",null,"\u2002The speech recognition subsystem has been configured to flag these codewords.",16,{style:d})]})}),(0,o.createComponentVNode)(2,c.Stack.Divider,{mr:1}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:"Code Phrases:"}),(0,o.createComponentVNode)(2,c.Stack.Item,{bold:!0,textColor:"blue",children:i}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:"Code Responses:"}),(0,o.createComponentVNode)(2,c.Stack.Item,{bold:!0,textColor:"red",children:l})]})})],4)})})};t.AntagInfoMalf=function(e,t){for(var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.processingTime,u=d.categories,C=(0,r.useLocalState)(t,"antagInfoTab",0),f=C[0],N=C[1],g=[],V=[],b=0;b<u.length;b++){var v=u[b];g.push(v.name);for(var k=0;k<v.items.length;k++){var _=v.items[k];V.push({id:_.name,name:_.name,category:v.name,cost:_.cost+" PT",desc:_.desc,disabled:s<_.cost})}}return(0,o.createComponentVNode)(2,i.Window,{width:660,height:530,theme:0===f?"hackerman":"malfunction",children:(0,o.createComponentVNode)(2,i.Window.Content,{style:{"font-family":"Consolas, monospace"},children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Tabs,{fluid:!0,children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"info",selected:0===f,onClick:function(){return N(0)},children:"Information"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"code",selected:1===f,onClick:function(){return N(1)},children:"Malfunction Modules"})]})}),0===f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{width:"70%",children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,c.Stack.Item,{width:"30%",children:(0,o.createComponentVNode)(2,p)})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,h)})],4)||(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,a.GenericUplink,{categories:g,items:V,currency:s+" PT",handleBuy:function(e){return l("buy",{name:e.name})}})})})]})})})}},60972:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoMorph=void 0;var o=n(96323),r=n(26949),a=n(2381),c={color:"lightgreen"},i={color:"red"},l={color:"lightblue"};t.AntagInfoMorph=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:620,height:170,theme:"abductor",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{fontSize:"25px",children:"You are a morph..."}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.BlockQuote,{children:["...a shapeshifting abomination that can eat almost anything. You may take the form of anything you can see by ",(0,o.createVNode)(1,"span",null,"shift-clicking",16,{style:l})," it.",(0,o.createVNode)(1,"span",null,"\u2002This process will alert any nearby observers.",16,{style:i})," While morphed, you move faster, but are unable to attack creatures or eat anything. In addition,",(0,o.createVNode)(1,"span",null,"\u2002anyone within three tiles will note an uncanny wrongness if examining you.",16,{style:i})," You can attack any item or dead creature to consume it -",(0,o.createVNode)(1,"span",null,"\u2002creatures will restore your health.",16,{style:c})," Finally, you can restore yourself to your original form while morphed by ",(0,o.createVNode)(1,"span",null,"shift-clicking",16,{style:l})," yourself."]})})]})})})}},77064:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoNightmare=void 0;var o=n(96323),r=n(26949),a=n(2381),c={color:"white"},i={color:"lightblue"};t.AntagInfoNightmare=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:620,height:340,children:(0,o.createComponentVNode)(2,a.Window.Content,{backgroundColor:"#0d0d0d",children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{width:"46.2%",children:(0,o.createComponentVNode)(2,r.Section,{fill:!0,children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{fontSize:"25px",children:"You are a Nightmare."}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.BlockQuote,{children:["You are a creature from beyond the stars that has incredibly strong powers in the darkness, becoming nigh unbeatable. Unfortunately, you wither and burn away in the light. You must use your",(0,o.createVNode)(1,"span",null,"\u2002light eater",16,{style:i})," to dim the station, making hunting easier."]})}),(0,o.createComponentVNode)(2,r.Stack.Divider),(0,o.createComponentVNode)(2,r.Stack.Item,{textColor:"label",children:[(0,o.createVNode)(1,"span",null,"Tip #1:\u2002",16,{style:c}),"Move often. The station will be hunting you after you are discovered, so don't stay in one area for long.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Tip #2:\u2002",16,{style:c}),"Pick unfair fights. You are incredibly strong in one versus one situations, use it. The more you fight, the harder it will be to keep it dark.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Tip #3:\u2002",16,{style:c}),"Fully destroy APCs when possible. Instead of hunting lights that can be fixed, hunt the APCs which are harder to repair."]})]})})}),(0,o.createComponentVNode)(2,r.Stack.Item,{width:"53%",children:(0,o.createComponentVNode)(2,r.Section,{fill:!0,title:"Powers",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Shadow Dance",children:"Whilst in the shadows, you are immune to all ranged attacks, whilst also rapidly regenerating health."}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Shadow Walk",children:"You are allowed unlimited, unrestricted movement in the dark. Light will pull you out of this."}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Heart of Darkness",children:"Your heart invites the shadows. If you die in the darkness, you will eventually revive if left alone."}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Light Eater",children:"Your twisted appendage. It will consume the light of what it touches, be it victim or object."})]})})})]})})})}},40469:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoSeparatist=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoSeparatist=function(e,t){var n=(0,r.useBackend)(t).data.nationColor;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:450,children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:n,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l)})]})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.nation;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:["You are the Separatist for a free ",n,"!"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d)})]})})},l=function(e,t){var n=(0,r.useBackend)(t).data.nation;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"info",color:"label"})," Frequently Asked Questions:"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:'"What even IS a Separatist?"'}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Separatists are semi-antagonists that every department is filled with when the round starts. They do not have the permission to freely go about and kill, but rather defend the soverignity of their department. You may actually recognize them by their historical mode they existed from: Nations!"}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:'"What am I supposed to do?"'}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Each department (nation) has an objective. It's a freeform objective, so try your best to follow it as you would a freeform abductor objective. From experience, eventually nations conflict and devolve into war. As long as both departments know what and why conflict is starting, that's a green light to attack opposing nations."}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:['"Is ',n,' the best nation?"']}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Yes."})]})})},d=function(e,t){var n=(0,r.useBackend)(t).data,c=n.nation,i=n.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:[c,"'s objectives:"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:i?i.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})}},81585:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoThief=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AntagInfoThief=function(e,t){var n=(0,r.useBackend)(t).data,l=n.intro,d=n.goal,s=n.hideout,u=n.policy;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:340,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:l}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:d}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i)})]})})}),!!s&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",textColor:"green",children:["This station has an established criminal hideout, which your connections to Val Corrin has granted you access to. It is at the ",s,". Use it as a space to plan heists with other thieves, and store stolen goods!"]})}),!!u&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",textColor:"red",fontSize:"19px",children:u})})]})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"These are your heisting goals for today:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})}},96681:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoTraitor=void 0;var o=n(96323),r=n(31246),a=(n(21118),n(26949)),c=n(2381),i={fontWeight:"bold",color:"yellow"},l={color:"red",fontWeight:"bold"},d={color:"lightblue",fontWeight:"bold"},s=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"Your current objectives:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.intro);return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Intro",scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"25px",children:c}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s)})]})})},m=function(e,t){var n=(0,r.useBackend)(t).data,c=n.allies,l=n.goal;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Employer",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"hammer",tooltip:"This is a gameplay suggestion for bored traitors.\nYou don't have to follow it, unless you want some\nideas for how to spend the round.",tooltipPosition:"bottom-start",children:"Policy"}),children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Your allegiances:"),(0,o.createVNode)(1,"br")],4,{style:i}),(0,o.createComponentVNode)(2,a.BlockQuote,{children:c})]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Employer thoughts:"),(0,o.createVNode)(1,"br")],4,{style:d}),(0,o.createComponentVNode)(2,a.BlockQuote,{children:l})]})]})})})})},p=function(e,t){var n=(0,r.useBackend)(t).data,c=n.has_uplink,i=n.uplink_intro,s=n.uplink_unlock_info,u=n.code,m=n.failsafe_code;return(0,o.createComponentVNode)(2,a.Section,{title:"Uplink",mb:!c&&-1,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:!c&&(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",children:"You were not supplied with an uplink."})})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:[i,(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Code: "),u],0,{style:d}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Failsafe: "),m],0,{style:l})]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:"1%",children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:s})})],4)})})},h=function(e,t){var n=(0,r.useBackend)(t).data,c=n.has_codewords,i=n.phrases,d=n.responses;return(0,o.createComponentVNode)(2,a.Section,{title:"Codewords",mb:!c&&-1,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:!c&&(0,o.createComponentVNode)(2,a.BlockQuote,{children:"You have not been supplied the Syndicate codewords. You will have to use alternative methods to find potential allies. Proceed with caution, however, as everyone is a potential foe."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:["The Syndicate have provided you with the following codewords to identify fellow agents. Use the codewords during regular conversation to identify other agents. Proceed with caution, however, as everyone is a potential foe.",(0,o.createVNode)(1,"span",null,"\u2002You have memorized the codewords, allowing you to recognise them when heard.",16,{style:l})]})}),(0,o.createComponentVNode)(2,a.Stack.Divider,{mr:1}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Code Phrases:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,textColor:"blue",children:i}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Code Responses:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,textColor:"red",children:d})]})})],4)})})};t.AntagInfoTraitor=function(e,t){var n=(0,r.useBackend)(t).data.theme;return(0,o.createComponentVNode)(2,c.Window,{width:620,height:580,theme:n,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{width:"70%",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"30%",children:(0,o.createComponentVNode)(2,m)})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,h)})]})})})}},35856:function(e,t,n){"use strict";t.__esModule=!0,t.AntagInfoWizard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={color:"yellow"},l={color:"lightblue"},d={color:"red"},s={color:"orange"},u={color:"yellow"},m={color:"cyan"},p={color:"violet"};t.AntagInfoWizard=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:620,height:580,theme:"wizard",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"red",fontSize:"20px",children:"You are the Space Wizard!"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,h)})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Spellbook",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:["You have a spellbook which is bound to you. You can use it to choose a magical arsenal.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"The deadly page has the offensive spells, to destroy your enemies.",16,{style:d}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"The defensive page has defensive spells, to keep yourself alive. Remember, you may be powerful, but you are still only human.",16,{style:s}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"The transport page has mobility spells, very important aspect of staying alive and getting things done.",16,{style:u}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"The summoning page has summoning and other helpful spells for not fighting alone. Careful, not every summon is on your side.",16,{style:m}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"The rituals page has powerful global effects, that will pit the station against itself. Do mind that these are either expensive, or just for panache.",16,{style:p})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"lightgreen",children:'(If you are unsure what to get or are new to the Federation, go to the "Wizard Approved Loadouts" section. There you will find some kits that work fairly well for new wizards.)'})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Misc Gear",children:(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createVNode)(1,"span",null,"Teleport scroll:",16,{style:i})," 4 uses to teleport wherever you want. You will not be able to come back to the den, so be sure you have everything ready before departing.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Wizard robes:",16,{style:l})," Used to cast most spells. Your spellbook will let you know which spells cannot be cast without a garb."]})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",textColor:"red",fontSize:"20px",children:"Remember: Do not forget to prepare your spells."})})]})})})};var h=function(e,t){var n=(0,r.useBackend)(t).data.objectives;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:"The Space Wizards Federation has given you the following tasks:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:n?n.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:["#",e.count,": ",e.explanation]},e.count)})):"None!"})]})}},18768:function(e,t,n){"use strict";t.__esModule=!0,t.ApcControl=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(31246),l=n(26949),d=n(2381),s=n(52484);t.ApcControl=function(e,t){var n=(0,i.useBackend)(t).data;return(0,o.createComponentVNode)(2,d.Window,{title:"APC Controller",width:550,height:500,children:[1===n.authenticated&&(0,o.createComponentVNode)(2,m),0===n.authenticated&&(0,o.createComponentVNode)(2,u)]})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.emagged,c=1===a?"Open":"Log In";return(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,color:1===a?"":"good",content:c,onClick:function(){return r("log-in")}})})},m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.restoring,c=(0,i.useLocalState)(t,"tab-index",1),s=c[0],u=c[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===s,onClick:function(){u(1),r("check-apcs")},children:"APC Control Panel"}),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:2===s,onClick:function(){u(2),r("check-logs")},children:"Log View Panel"})]}),1===a&&(0,o.createComponentVNode)(2,l.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,l.Icon,{name:"cog",spin:!0})," Resetting..."]}),1===s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,l.Box,{fillPositionedParent:!0,top:"53px",children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,h)})})],4),2===s&&(0,o.createComponentVNode)(2,l.Box,{fillPositionedParent:!0,top:"20px",children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,C)})})],0)},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.emagged,d=a.logging,s=(0,i.useLocalState)(t,"sortByField",null),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,l.Flex,{children:[(0,o.createComponentVNode)(2,l.Flex.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"name"===u,content:"Name",onClick:function(){return m("name"!==u&&"name")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"charge"===u,content:"Charge",onClick:function(){return m("charge"!==u&&"charge")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:"draw"===u,content:"Draw",onClick:function(){return m("draw"!==u&&"draw")}})]}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:1}),(0,o.createComponentVNode)(2,l.Flex.Item,{children:[1===c&&(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{color:1===d?"bad":"good",content:1===d?"Stop Logging":"Restore Logging",onClick:function(){return r("toggle-logs")}}),(0,o.createComponentVNode)(2,l.Button,{content:"Reset Console",onClick:function(){return r("restore-console")}})],4),(0,o.createComponentVNode)(2,l.Button,{color:"bad",content:"Log Out",onClick:function(){return r("log-out")}})]})]})},h=function(e,t){var n=(0,i.useBackend)(t),c=n.data,d=n.act,u=(0,i.useLocalState)(t,"sortByField",null)[0],m=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.name+t})})),"name"===u&&(0,r.sortBy)((function(e){return e.name})),"charge"===u&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===u&&(0,r.sortBy)((function(e){return-(0,s.powerRank)(e.load)}),(function(e){return-parseFloat(e.load)}))])(c.apcs);return(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"On/Off"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),m.map((function(e,t){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,l.Button,{icon:e.operating?"power-off":"times",color:e.operating?"good":"bad",onClick:function(){return d("breaker",{ref:e.ref})}}),2),(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("access-apc",{ref:e.ref})},children:e.name}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,s.AreaCharge,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{target:"equipment",status:e.eqp,apc:e,act:d}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{target:"lighting",status:e.lgt,apc:e,act:d}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{target:"environ",status:e.env,apc:e,act:d}),2)],4,null,e.id)}))]})},C=function(e,t){var n=(0,i.useBackend)(t).data,c=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.entry+t})})),function(e){return e.reverse()}])(n.logs);return(0,o.createComponentVNode)(2,l.Box,{m:-.5,children:c.map((function(e){return(0,o.createComponentVNode)(2,l.Box,{p:.5,className:"candystripe",bold:!0,children:e.entry},e.id)}))})},f=function(e){var t=e.target,n=e.status,r=e.apc,a=e.act,c=Boolean(2&n),i=Boolean(1&n);return(0,o.createComponentVNode)(2,l.Button,{icon:i?"sync":"power-off",color:c?"good":"bad",onClick:function(){return a("toggle-minor",{type:t,value:N(n),ref:r.ref})}})},N=function(e){return 0===e?2:2===e?3:0};f.defaultHooks=c.pureComponentHooks},48018:function(e,t,n){"use strict";t.__esModule=!0,t.AppearanceChanger=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(2381);t.AppearanceChanger=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.config),N=n.data,g=N.name,V=N.specimen,b=N.gender,v=N.gender_id,k=N.hair_style,_=N.facial_hair_style,y=N.ear_style,w=N.tail_style,x=N.wing_style,S=N.change_race,B=N.change_gender,I=N.change_eye_color,L=N.change_skin_tone,T=N.change_skin_color,A=N.change_hair_color,D=N.change_facial_hair_color,M=N.change_hair,E=N.change_facial_hair,P=N.mapRef,F=r.title,O=I||L||T||A||D,R=-1;S?R=0:B?R=1:O?R=2:M?R=4:E&&(R=5);var j=(0,c.useLocalState)(t,"tabIndex",R),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,a.decodeHtmlEntities)(F),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:g}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:S?null:"grey",children:V}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:B?null:"grey",children:b?(0,a.capitalize)(b):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:O?null:"grey",children:v?(0,a.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:k?(0,a.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:E?null:"grey",children:_?(0,a.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:y?(0,a.capitalize)(y):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:w?(0,a.capitalize)(w):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,a.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:P,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,B?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,O?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[S&&0===W?(0,o.createComponentVNode)(2,d):null,B&&1===W?(0,o.createComponentVNode)(2,s):null,O&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,E&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,h):null,M&&6===W?(0,o.createComponentVNode)(2,C):null,M&&7===W?(0,o.createComponentVNode)(2,f):null]})]})})};var d=function(e,t){var n=(0,c.useBackend)(t),a=n.act,l=n.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return a("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.gender,d=a.gender_id,s=a.genders,u=a.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.change_eye_color,d=a.change_skin_tone,s=a.change_skin_color,u=a.change_hair_color,m=a.change_facial_hair_color,p=a.eye_color,h=a.skin_color,C=a.hair_color,f=a.facial_hair_color,N=a.ears_color,g=a.ears2_color,V=a.tail_color,b=a.tail2_color,v=a.wing_color,k=a.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.hair_style,d=a.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.facial_hair_style,d=a.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},h=function(e,t){var n=(0,c.useBackend)(t),a=n.act,l=n.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},C=function(e,t){var n=(0,c.useBackend)(t),a=n.act,l=n.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},f=function(e,t){var n=(0,c.useBackend)(t),a=n.act,l=n.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return a("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},61554:function(e,t,n){"use strict";t.__esModule=!0,t.ApprenticeContract=void 0;var o=n(96323),r=(n(21118),n(39646)),a=n(31246),c=n(26949),i=n(2381);t.ApprenticeContract=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{width:620,height:600,theme:"wizard",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Section,{textColor:"lightgreen",fontSize:"15px",children:"If you cannot reach any of your apprentices today, you can feed the contract back into your spellbook to refund it."})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,l,{iconName:"fire",fluffName:"Apprentice of Destruction",schoolTitle:"destruction",assetName:"destruction.png",blurb:"Your apprentice is skilled in offensive magic.\nThey know Magic Missile and Fireball."}),(0,o.createComponentVNode)(2,l,{iconName:"route",fluffName:"Student of Translocation",schoolTitle:"bluespace",assetName:"bluespace.png",blurb:"Your apprentice is able to defy physics, melting through\nsolid objects and travelling great distances in the\nblink of an eye. They know Teleport and Ethereal Jaunt."}),(0,o.createComponentVNode)(2,l,{iconName:"medkit",fluffName:"Neophyte of Restoration",schoolTitle:"healing",assetName:"healing.png",blurb:"Your apprentice is training to cast spells that will\naid your survival. They know Forcewall and Charge and\ncome with a Staff of Healing."}),(0,o.createComponentVNode)(2,l,{iconName:"user-secret",fluffName:"Robeless Pupil",schoolTitle:"robeless",assetName:"robeless.png",blurb:"Your apprentice is training to cast spells without\ntheir robes. They know Knock and Mindswap."})]})]})})})};var l=function(e,t){var n=(0,a.useBackend)(t).act,i=e.iconName,l=e.fluffName,d=e.schoolTitle,s=e.assetName,u=e.blurb;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Stack,{align:"middle",fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(s),style:{"border-style":"solid","border-color":"#7e90a7"}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",fluid:!0,onClick:function(){return n("buy",{school:d})},children:"Select"})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"20px",height:"30%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:i})," ",l]}),(0,o.createComponentVNode)(2,c.BlockQuote,{height:"70%",fontSize:"16px",children:u})]})]})})}},33806:function(e,t,n){"use strict";t.__esModule=!0,t.Aquarium=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Aquarium=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.temperature,s=l.fluid_type,u=l.minTemperature,m=l.maxTemperature,p=l.fluidTypes,h=l.contents,C=l.allow_breeding;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Aquarium Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.Knob,{size:1.25,mb:1,value:d,unit:"K",minValue:u,maxValue:m,step:1,stepPixelSize:1,onDrag:function(e,t){return i("temperature",{temperature:t})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Fluid",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",mb:1,children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e,selected:s===e,onClick:function(){return i("fluid",{fluid:e})}})},e)}))})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Reproduction Prevention System",children:(0,o.createComponentVNode)(2,a.Button,{content:C?"Offline":"Online",selected:!C,onClick:function(){return i("allow_breeding")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Contents",children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return i("remove",{ref:e.ref})}},e.ref)}))})]})})}},99926:function(e,t,n){"use strict";t.__esModule=!0,t.ArcadeBattle=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ArcadeBattle=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,h=l.enemyHP,C=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,c.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Section,{color:"label",children:[(0,o.createComponentVNode)(2,a.Box,{children:d}),(0,o.createComponentVNode)(2,a.Box,{children:!C&&s})]}),(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:h,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[h,"HP"]})})})})]}),C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,a.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},21064:function(e,t,n){"use strict";t.__esModule=!0,t.AreaScrubberControl=void 0;var o=n(96323),r=n(26949),a=n(31246),c=n(2381),i=n(21118);t.AreaScrubberControl=function(e,t){var n=(0,a.useBackend)(t),i=n.act,d=n.data,s=(0,a.useLocalState)(t,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,c.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,t){var n=(0,a.useBackend)(t).act,c=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:c.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:c.on?"Enabled":"Disabled",selected:c.on,onClick:function(){return n("toggle",{id:c.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[c.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[c.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[c.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(c.area)})]})]})}},62095:function(e,t,n){"use strict";t.__esModule=!0,t.AssemblyInfrared=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AssemblyInfrared=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},72333:function(e,t,n){"use strict";t.__esModule=!0,t.AssemblyProx=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(1033);t.AssemblyProx=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.timing,m=s.time,p=s.range,h=s.maxRange,C=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,t){return d("set_time",{time:t})}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{minValue:1,value:p,maxValue:h,onDrag:function(e,t){return d("range",{range:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,c.Button,{mr:1,icon:C?"lock":"lock-open",selected:C,onClick:function(){return d("scanning")},children:C?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},15932:function(e,t,n){"use strict";t.__esModule=!0,t.AssemblyTimer=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(1033);t.AssemblyTimer=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,t){return d("set_time",{time:t})}})})})})})})}},64383:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosAlertConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosAlertConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,c.Window,{width:350,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"bad",onClick:function(){return i("clear",{zone:e})}}),2,null,e)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:e,color:"average",onClick:function(){return i("clear",{zone:e})}}),2,null,e)}))],0)})})})}},44634:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControlContent=t.AtmosControl=void 0;var o=n(96323),r=n(1397),a=n(2381),c=n(26949),i=n(31246);(0,n(79926).createLogger)("fuck");t.AtmosControl=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n,a=(0,i.useBackend)(t),l=a.act,d=a.data,s=a.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(t,"tabIndex",0),p=m[0],h=m[1],C=(0,i.useLocalState)(t,"zoom",1),f=C[0],N=C[1];return 0===p?n=(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(n=(0,o.createComponentVNode)(2,c.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,c.NanoMap,{onZoom:function(e){return N(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:f,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return h(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:n})],4)};t.AtmosControlContent=l},86610:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControlConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(44151),l=n(42055);t.AtmosControlConsole=function(e,t){var n,d=(0,r.useBackend)(t),s=d.act,u=d.data,m=u.chambers||[],p=(0,r.useLocalState)(t,"chamberId",null==(n=m[0])?void 0:n.id),h=p[0],C=p[1],f=1===m.length?m[0]:m.find((function(e){return e.id===h})),N=(0,i.atmosHandbookHooks)(t),g=N[0],V=N[1];return(0,o.createComponentVNode)(2,c.Window,{width:550,height:350,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[m.length>1&&(0,o.createComponentVNode)(2,a.Section,{title:"Chamber Selection",children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",options:m.map((function(e){return e.name})),selected:null==f?void 0:f.name,onSelected:function(e){var t;return C((null==(t=m.find((function(t){return t.name===e})))?void 0:t.id)||m[0].id)}})}),(0,o.createComponentVNode)(2,a.Section,{title:f?f.name:"Chamber Reading",buttons:!!u.reconnecting&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Reconnect",onClick:function(){return s("reconnect")}}),children:f&&f.gasmix?(0,o.createComponentVNode)(2,l.GasmixParser,{gasmix:f.gasmix,gasesOnClick:g,reactionOnClick:V}):(0,o.createComponentVNode)(2,a.Box,{italic:!0,children:[" ","No Sensors Detected!"]})}),!!f&&!!u.control&&(0,o.createComponentVNode)(2,a.Section,{title:"Chamber Controls",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:f.input_info?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input Injector",children:(0,o.createComponentVNode)(2,a.Button,{icon:f.input_info.active?"power-off":"times",content:f.input_info.active?"Injecting":"Off",selected:f.input_info.active,onClick:function(){return s("toggle_input",{chamber:f.id})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:Number(f.input_info.amount),unit:"L/s",width:"63px",minValue:0,maxValue:u.maxInput,suppressFlicker:2e3,onChange:function(e,t){return s("adjust_input",{chamber:f.id,rate:t})}})})]}):(0,o.createComponentVNode)(2,a.Box,{italic:!0,children:[" ","No Input Device Detected!"]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:f.output_info?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Regulator",children:(0,o.createComponentVNode)(2,a.Button,{icon:f.output_info.active?"power-off":"times",content:f.output_info.active?"Open":"Closed",selected:f.output_info.active,onClick:function(){return s("toggle_output",{chamber:f.id})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:Number(f.output_info.amount),unit:"kPa",width:"75px",minValue:0,maxValue:u.maxOutput,step:10,suppressFlicker:2e3,onChange:function(e,t){return s("adjust_output",{chamber:f.id,rate:t})}})})]}):(0,o.createComponentVNode)(2,a.Box,{italic:!0,children:[" ","No Output Device Detected !"," "]})})]})}),(0,o.createComponentVNode)(2,i.AtmosHandbookContent)]})})}},42327:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosControlPanel=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(2381);t.AtmosControlPanel=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.area+t})})),(0,r.sortBy)((function(e){return e.id}))])(s.excited_groups);return(0,o.createComponentVNode)(2,l.Window,{title:"SSAir Control Panel",width:900,height:500,children:[(0,o.createComponentVNode)(2,i.Section,{m:1,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",align:"baseline",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return d("toggle-freeze")},color:1===s.frozen?"good":"bad",children:1===s.frozen?"Freeze Subsystem":"Unfreeze Subsystem"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:["Fire Cnt: ",s.fire_count]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:["Active Turfs: ",s.active_size]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:["Excited Groups: ",s.excited_size]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:["Hotspots: ",s.hotspots_size]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:["Superconductors: ",s.conducting_size]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:s.showing_user,onClick:function(){return d("toggle_user_display")},children:"Personal View"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:s.show_all,onClick:function(){return d("toggle_show_all")},children:"Display all"})})]})}),(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,top:"45px",children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Area Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:"Breakdown"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:"Dismantle"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:"Turfs"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:1===s.display_max&&"Max Share"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:"Display"})]}),u.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,i.Button,{content:e.area,onClick:function(){return d("move-to-target",{spot:e.jump_to})}}),2),(0,o.createVNode)(1,"td",null,e.breakdown,0),(0,o.createVNode)(1,"td",null,e.dismantle,0),(0,o.createVNode)(1,"td",null,e.size,0),(0,o.createVNode)(1,"td",null,1===s.display_max&&e.max_share,0),(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e.should_show,onClick:function(){return d("toggle_show_group",{group:e.group})}}),2)],4,null,e.id)}))]})})})})]})}},61496:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosFilter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=n(2381);t.AtmosFilter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.filter_types||[];return(0,o.createComponentVNode)(2,i.Window,{width:420,height:221,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:d.max_rate,onDrag:function(e,t){return l("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:d.rate===d.max_rate,onClick:function(){return l("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,c.getGasLabel)(e.gas_id,e.gas_name),selected:e.enabled,onClick:function(){return l("toggle_filter",{val:e.gas_id})}},e.id)}))})]})})})})}},98892:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosMixer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosMixer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:370,height:165,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,t){return i("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Main Node",labelColor:"green",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return i("node1",{concentration:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Side Node",labelColor:"blue",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,t){return i("node2",{concentration:t})}})})]})})})})}},67515:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosPump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosPump=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:335,height:115,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),l.max_rate?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:l.max_rate,onChange:function(e,t){return i("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,t){return i("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]})]})})})})}},59994:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosRelief=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosRelief=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:335,height:115,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Open Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.open_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure||4500,step:10,onChange:function(e,t){return i("open_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.open_pressure===l.max_pressure,onClick:function(){return i("open_pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Close Pressure",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.close_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure||4500,step:10,onChange:function(e,t){return i("close_pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.close_pressure===l.max_pressure,onClick:function(){return i("close_pressure",{pressure:"max"})}})]})]})})})})}},23414:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosTempGate=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosTempGate=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:335,height:115,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Heat settings",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.temperature),unit:"K",width:"75px",minValue:l.min_temperature,maxValue:l.max_temperature,step:1,onChange:function(e,t){return i("temperature",{temperature:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.temperature===l.max_temperature,onClick:function(){return i("temperature",{temperature:"max"})}})]})]})})})})}},8282:function(e,t,n){"use strict";t.__esModule=!0,t.AtmosTempPump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.AtmosTempPump=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:335,height:115,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Heat transfer rate",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.rate),unit:"%",width:"75px",minValue:0,maxValue:l.max_heat_transfer_rate,step:1,onChange:function(e,t){return i("rate",{rate:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_heat_transfer_rate,onClick:function(){return i("rate",{rate:"max"})}})]})]})})})})}},47533:function(e,t,n){"use strict";t.__esModule=!0,t.Autolathe=void 0;var o=n(96323),r=n(32416),a=n(1397),c=n(31246),i=n(26949),l=n(2381),d=n(49545),s=n(21118),u=function(e,t,n){if(void 0===n&&(n=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=c[a],r=t.find((function(e){return e.name===o}));return r?r.amount<e.requirements[o]*n?{v:!1}:void 0:"continue"},a=0,c=o;a<c.length;a++){var i=r();if("continue"!==i&&"object"==typeof i)return i.v}return!0};t.Autolathe=function(e,t){var n=(0,c.useBackend)(t),m=n.act,p=n.data,h=p.recipes,C=p.busy,f=p.materials,N=p.categories,g=(0,c.useLocalState)(t,"category",0),V=g[0],b=g[1],v=(0,c.useLocalState)(t,"search_text",""),k=v[0],_=v[1],y=(0,s.createSearch)(k,(function(e){return e.name})),w=(0,r.flow)([(0,a.filter)((function(e){return e.category===N[V]})),k&&(0,a.filter)(y),(0,a.sortBy)((function(e){return e.name.toLowerCase()}))])(h);return(0,o.createComponentVNode)(2,l.Window,{width:550,height:700,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,d.Materials,{disableEject:!0})}),(0,o.createComponentVNode)(2,i.Section,{title:"Recipes",buttons:(0,o.createComponentVNode)(2,i.Dropdown,{width:"190px",options:N,selected:N[V],onSelected:function(e){return b(N.indexOf(e))}}),children:[(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return _(t)},mb:1}),w.map((function(e){return(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{color:e.hidden?"red":null,icon:"hammer",iconSpin:C===e.name,disabled:!u(e,f,1),onClick:function(){return m("make",{make:e.ref})},children:(0,s.toTitleCase)(e.name)}),!e.is_stack&&(0,o.createComponentVNode)(2,i.Box,{as:"span",children:[(0,o.createComponentVNode)(2,i.Button,{color:e.hidden?"red":null,disabled:!u(e,f,5),onClick:function(){return m("make",{make:e.ref,multiplier:5})},children:"x5"}),(0,o.createComponentVNode)(2,i.Button,{color:e.hidden?"red":null,disabled:!u(e,f,10),onClick:function(){return m("make",{make:e.ref,multiplier:10})},children:"x10"})]})||null]}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:e.requirements&&Object.keys(e.requirements).map((function(t){return(0,s.toTitleCase)(t)+": "+e.requirements[t]})).join(", ")||(0,o.createComponentVNode)(2,i.Box,{children:"No resources required."})})]},e.ref)}))]})]})})}},87710:function(e,t,n){"use strict";t.__esModule=!0,t.AutomatedAnnouncement=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381),i="%PERSON will be replaced with their name.\n%RANK with their job.";t.AutomatedAnnouncement=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.arrivalToggle,u=d.arrival,m=d.newheadToggle,p=d.newhead;return(0,o.createComponentVNode)(2,c.Window,{title:"Automated Announcement System",width:500,height:225,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Arrival Announcement",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return l("ArrivalToggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:i,tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,t){return l("ArrivalText",{newText:t})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Departmental Head Announcement",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",selected:m,content:m?"On":"Off",onClick:function(){return l("NewheadToggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:i,tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:p,onChange:function(e,t){return l("NewheadText",{newText:t})}})})})})]})})}},38783:function(e,t,n){"use strict";t.__esModule=!0,t.AuxBaseConsoleContent=t.AuxBaseConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(76005);t.AuxBaseConsole=function(e,t){var n=(0,r.useBackend)(t).data,l=(0,r.useSharedState)(t,"tab",1),s=l[0],u=l[1],m=n.type,p=n.blind_drop,h=n.turrets,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.Window,{width:C.length?620:350,height:C.length?310:260,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!!C.length,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:1===s,onClick:function(){return u(1)},children:"shuttle"===m?"Shuttle Launch":"Base Launch"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:2===s,onClick:function(){return u(2)},children:["Turrets (",C.length,")"]})]}),1===s&&(0,o.createComponentVNode)(2,i.ShuttleConsoleContent,{type:m,blind_drop:p}),2===s&&(0,o.createComponentVNode)(2,d)]})})};var l={ERROR:"bad",Disabled:"bad",Firing:"average","All Clear":"good"},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.turrets,d=void 0===i?[]:i;return(0,o.createComponentVNode)(2,a.Section,{title:"Turret Control",buttons:!!d.length&&(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Toggle Power",onClick:function(){return c("turrets_power")}}),children:d.length?(0,o.createComponentVNode)(2,a.Table,{cellpadding:"3",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Unit"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Condition"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Direction"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Distance"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Power"})]}),d.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.integrity,"%"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:l[e.status]||"bad",children:e.status}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.direction}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.distance,"m"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Toggle",onClick:function(){return c("single_turret_power",{single_turret_power:e.ref})}})})]},e.key)}))]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No connected turrets"})})};t.AuxBaseConsoleContent=d},98829:function(e,t,n){"use strict";t.__esModule=!0,t.BankMachine=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.BankMachine=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.current_balance,u=d.siphoning,m=d.station_name;return(0,o.createComponentVNode)(2,i.Window,{width:350,height:155,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"Authorized personnel only"}),(0,o.createComponentVNode)(2,a.Section,{title:m+" Vault",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Balance",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"times":"sync",content:u?"Stop Siphoning":"Siphon Credits",selected:u,onClick:function(){return l(u?"halt":"siphon")}}),children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s,format:function(e){return(0,c.formatMoney)(e)}})," cr"]})})})]})})}},45443:function(e,t,n){"use strict";t.__esModule=!0,t.Batteryrack=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Batteryrack=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.mode,s=l.transfer_max,u=l.output_load,m=l.input_load,p=l.equalise,h=l.blink_tick,C=(l.cells_max,l.cells_cur,l.cells_list);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Mode",children:1===d&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OUTPUT ONLY"})||2===d&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"INPUT ONLY"})||3===d&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"INPUT AND OUTPUT"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OFFLINE"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input Status",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," / ",s," W"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Status",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," / ",s," W"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Control Panel",children:[(0,o.createComponentVNode)(2,a.Button,{content:"OFF",selected:0===d,onClick:function(){return i("disable")}}),(0,o.createComponentVNode)(2,a.Button,{content:"OUT",selected:1===d,onClick:function(){return i("enable",{enable:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"IN",selected:2===d,onClick:function(){return i("enable",{enable:2})}}),(0,o.createComponentVNode)(2,a.Button,{content:"IN/OUT",selected:3===d,onClick:function(){return i("enable",{enable:3})}}),p&&(0,o.createComponentVNode)(2,a.Button,{content:"EQ",color:h?"red":"yellow",onClick:function(){return i("equaliseoff")}})||(0,o.createComponentVNode)(2,a.Button,{content:"EQ",onClick:function(){return i("equaliseon")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cells",children:(0,o.createComponentVNode)(2,a.Table,{children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:["Cell ",e.slot]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.used?e.percentage:100,minValue:0,maxValue:100,color:e.used?"good":"bad",children:e.used?e.percentage+"%":"N/C"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.used,onClick:function(){return i("ejectcell",{ejectcell:e.id})}})})]},e.slot)}))})})]})})}},35541:function(e,t,n){"use strict";t.__esModule=!0,t.BeaconLocator=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.BeaconLocator=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.scan_ticks,u=d.degrees,m=d.rawfreq,p=d.minFrequency,h=d.maxFrequency;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:220,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Beacon Locator",children:[s&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Scanning..."})||null,u&&(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{size:4,name:"arrow-up",rotation:u})}),"Locked on. Follow the arrow."]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No lock."}),(0,o.createComponentVNode)(2,c.Button,{mt:1,mb:1,fluid:!0,icon:"broadcast-tower",onClick:function(){return l("reset_tracking")},children:"Reset tracker"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:p/10,maxValue:h/10,value:m/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,t){return l("setFrequency",{freq:(0,r.round)(10*t)})}})})})]})})})}},29104:function(e,t,n){"use strict";t.__esModule=!0,t.Bepis=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Bepis=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.amount;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:480,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Business Exploration Protocol Incubation Sink",children:[(0,o.createComponentVNode)(2,a.Section,{title:"Information",backgroundColor:"#450F44",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:l.manual_power?"Off":"On",selected:!l.manual_power,onClick:function(){return i("toggle_power")}}),children:"All you need to know about the B.E.P.I.S. and you! The B.E.P.I.S. performs hundreds of tests a second using electrical and financial resources to invent new products, or discover new technologies otherwise overlooked for being too risky or too niche to produce!"}),(0,o.createComponentVNode)(2,a.Section,{title:"Payer's Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"redo-alt",content:"Reset Account",onClick:function(){return i("account_reset")}}),children:["Console is currently being operated by ",l.account_owner?l.account_owner:"no one","."]}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.5,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored Data and Statistics",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available Credits",children:l.stored_cash}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Investment Variability",children:[l.accuracy_percentage,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Innovation Bonus",children:l.positive_cash_offset}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Risk Offset",color:"bad",children:l.negative_cash_offset}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deposit Amount",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:d,unit:"Credits",minValue:100,maxValue:3e4,step:100,stepPixelSize:2,onChange:function(e,t){return i("amount",{amount:t})}})})]})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"donate",content:"Deposit Credits and Start",disabled:1===l.manual_power||1===l.silicon_check,onClick:function(){return i("begin_experiment")}})})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Market Data and Analysis",children:[(0,o.createComponentVNode)(2,a.Box,{children:["Average technology cost: ",l.mean_value]}),(0,o.createComponentVNode)(2,a.Box,{children:["Current chance of Success: Est. ",l.success_estimate,"%"]}),l.error_name&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Previous Failure Reason: Deposited cash value too low. Please insert more money for future success."})]})})]})]})})})}},39169:function(e,t,n){"use strict";t.__esModule=!0,t.Biogenerator=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=["title","items"];var d={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.Biogenerator=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:l.processing&&(0,o.createComponentVNode)(2,c.Section,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:[l.points," points available.",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"blender",onClick:function(){return r("activate")},children:"Activate"}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:!l.beaker,onClick:function(){return r("detach")},children:"Eject Beaker"})]}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)],4)})})};var s=function(e,t){var n=(0,a.useBackend)(t),l=(n.act,n.data),s=l.points,u=l.items,m=(0,a.useLocalState)(t,"search",""),h=m[0],C=(m[1],(0,a.useLocalState)(t,"sort","Alphabetical")),f=C[0],N=(C[1],(0,a.useLocalState)(t,"descending",!1)),g=N[0],V=(N[1],(0,r.createSearch)(h,(function(e){return e[0]}))),b=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(V).map((function(e){return e[1].affordable=s>=e[1].price/l.build_eff,e[1]})).sort(d[f]);if(0!==n.length)return g&&(n=n.reverse()),b=!0,(0,o.createComponentVNode)(2,p,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,c.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:b?v:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,t){var n=(0,a.useLocalState)(t,"search",""),r=(n[0],n[1]),i=(0,a.useLocalState)(t,"sort",""),l=(i[0],i[1]),s=(0,a.useLocalState)(t,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,c.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,t){return!!e.affordable&&!(e.reagent&&!t.beaker)},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,d=e.title,s=e.items,u=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Collapsible,Object.assign({open:!0,title:d},u,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,c.Button,{disabled:!m(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:d,name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})]},e.name)}))})))}},2711:function(e,t,n){"use strict";t.__esModule=!0,t.BlackMarketUplink=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.BlackMarketUplink=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.categories,m=void 0===u?[]:u,p=s.markets,h=void 0===p?[]:p,C=s.items,f=void 0===C?[]:C,N=s.money,g=s.viewing_market,V=s.viewing_category;return(0,o.createComponentVNode)(2,i.Window,{width:670,height:480,theme:"hackerman",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Black Market Uplink",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N,format:function(e){return(0,c.formatMoney)(e)+" cr"}})})}),(0,o.createComponentVNode)(2,a.Tabs,{children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.id===g,onClick:function(){return d("set_market",{market:e.id})},children:e.name},e.id)}))}),(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{mt:.5,selected:V===e,onClick:function(){return d("set_category",{category:e})},children:e},e)}))})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{className:"candystripe",p:1,pb:2,children:[(0,o.createComponentVNode)(2,a.Stack,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,bold:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Stack.Item,{color:"label",children:e.amount?e.amount+" in stock":"Out of stock"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,c.formatMoney)(e.cost)+" cr"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Buy",disabled:!e.amount||e.cost>N,onClick:function(){return d("select",{item:e.id})}})})]}),e.desc]},e.name)}))})]})]})]})};var l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.buying,s=l.ltsrbt_built,u=l.money;if(!d)return null;var m=l.delivery_methods.map((function(e){var t=l.delivery_method_description[e.name];return Object.assign({},e,{description:t})}));return(0,o.createComponentVNode)(2,a.Modal,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:m.map((function(e){return"LTSRBT"!==e.name||s?(0,o.createComponentVNode)(2,a.Stack.Item,{mx:1,width:"17.5rem",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"30px",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:e.description}),(0,o.createComponentVNode)(2,a.Button,{mt:2,content:(0,c.formatMoney)(e.price)+" cr",disabled:u<e.price,onClick:function(){return i("buy",{method:e.name})}})]},e.name):null}))}),(0,o.createComponentVNode)(2,a.Button,{content:"Cancel",color:"bad",onClick:function(){return i("cancel")}})]})}},78585:function(e,t,n){"use strict";t.__esModule=!0,t.BloodFilter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(2942);t.BloodFilter=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.whitelist),d=void 0===l?[]:l,s=(0,r.useLocalState)(t,"chemName",""),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,c.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.ChemFilterPane,{title:"Whitelist",list:d,reagentName:u,onReagentInput:function(e){return m(e)}})})})})})}},42981:function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceArtillery=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.BluespaceArtillery=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.notice,s=l.connected,u=l.unlocked,m=l.target;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:220,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:d}),s?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Target",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"crosshairs",disabled:!u,onClick:function(){return i("recalibrate")}}),children:(0,o.createComponentVNode)(2,a.Box,{color:m?"average":"bad",fontSize:"25px",children:m||"No Target Set"})}),(0,o.createComponentVNode)(2,a.Section,{children:u?(0,o.createComponentVNode)(2,a.Box,{style:{margin:"auto"},children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"FIRE",color:"bad",disabled:!m,fontSize:"30px",textAlign:"center",lineHeight:"46px",onClick:function(){return i("fire")}})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"bad",fontSize:"18px",children:"Bluespace artillery is currently locked."}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"Awaiting authorization via keycard reader from at minimum two station heads."})],4)})],4):(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance",children:(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"Complete Deployment",onClick:function(){return i("build")}})})})})]})})}},16254:function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceLocator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={north:0,northeast:45,east:90,southeast:135,south:180,southwest:225,west:270,northwest:315};t.BluespaceLocator=function(e,t){var n=(0,r.useSharedState)(t,"tab","implant"),i=n[0],s=n[1];return(0,o.createComponentVNode)(2,c.Window,{width:300,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"implant"===i,onClick:function(){return s("implant")},children:"Implants"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"beacon"===i,onClick:function(){return s("beacon")},children:"Teleporter Beacons"})]}),"beacon"===i&&(0,o.createComponentVNode)(2,l)||"implant"===i&&(0,o.createComponentVNode)(2,d)]})})};var l=function(e,t){return(0,r.useBackend)(t).data.telebeacons.map((function(e){return(0,o.createComponentVNode)(2,s,{name:e.name,distance:e.distance,direction:i[e.direction]},e.name)}))},d=function(e,t){return(0,r.useBackend)(t).data.trackimplants.map((function(e){return(0,o.createComponentVNode)(2,s,{name:e.name,distance:e.distance,direction:i[e.direction]},e.name)}))},s=function(e,t){var n=(0,r.useBackend)(t).data.trackingrange,c=e.name,i=e.direction,l=e.distance;return(0,o.createComponentVNode)(2,a.ProgressBar,{mb:1,value:n-l,minValue:0,maxValue:n,ranges:{red:[0,n/3],yellow:[n/3,n/3*2],green:[n/3*2,n]},children:[c,(0,o.createComponentVNode)(2,a.Icon,{ml:2,name:"arrow-up",rotation:i})]})}},40997:function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceSender=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(31246),l=n(26949),d=n(84200),s=n(2381);t.BluespaceSender=function(e,t){var n=(0,i.useBackend)(t),u=n.act,m=n.data,p=(m.on,m.gas_transfer_rate),h=(m.price_multiplier,(0,a.flow)([(0,r.filter)((function(e){return e.amount>=.01})),(0,r.sortBy)((function(e){return-e.amount}))])(m.bluespace_network_gases||[])),C=Math.max.apply(Math,[1].concat(h.map((function(e){return e.amount}))));return(0,o.createComponentVNode)(2,s.Window,{title:"Bluespace Sender",width:500,height:600,children:(0,o.createComponentVNode)(2,s.Window.Content,{children:(0,o.createComponentVNode)(2,l.Section,{scrollable:!0,fill:!0,title:"Bluespace Network Gases",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{mr:.5,color:"transparent",icon:"info",tooltipPosition:"bottom-start",tooltip:"Any gas you pipe into here will be added to the Bluespace\nNetwork! That means any connected Bluespace Vendor (multitool)\nwill hook up to all the gas stored in this, and charge\nthis machine's price to buy it."}),(0,o.createComponentVNode)(2,l.NumberInput,{animated:!0,value:p,step:.01,width:"63px",unit:"moles/S",minValue:0,maxValue:1,onDrag:function(e,t){return u("rate",{rate:t})}}),(0,o.createComponentVNode)(2,l.Button,{ml:.5,icon:m.on?"power-off":"times",content:m.on?"On":"Off",selected:m.on,tooltipPosition:"bottom-start",tooltip:"Will only take in gases while on.",onClick:function(){return u("power")}}),(0,o.createComponentVNode)(2,l.Button,{ml:.5,content:"Retrieve gases",tooltipPosition:"bottom-start",tooltip:"Will transfer any gases inside to the pipe.",onClick:function(){return u("retrieve")}})],4),children:[(0,o.createComponentVNode)(2,l.Box,{children:"The vendors have made "+m.credits+" credits so far."}),(0,o.createComponentVNode)(2,l.Divider),(0,o.createComponentVNode)(2,l.LabeledList,{children:h.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{color:"label",basis:10,ml:1,children:[(0,d.getGasLabel)(e.name)+" prices: ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,l.Box,{mt:.25,children:(0,o.createComponentVNode)(2,l.NumberInput,{animated:!0,value:e.price,width:"63px",unit:"per mole",minValue:0,maxValue:100,onDrag:function(t,n){return u("price",{gas_price:n,gas_type:e.id})}})})]}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,mt:"2%",mr:1,children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:C,children:(0,c.toFixed)(e.amount,2)+" moles"})})]},e.name),(0,o.createComponentVNode)(2,l.Divider)],8)}))})]})})})}},41765:function(e,t,n){"use strict";t.__esModule=!0,t.BluespaceVendor=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=(n(21118),n(31246)),l=n(26949),d=n(84200),s=n(2381);t.BluespaceVendor=function(e,t){var n=(0,i.useBackend)(t),u=n.act,m=n.data,p=(m.on,m.tank_filling_amount),h=(m.price_multiplier,m.pumping,m.selected_gas,(0,a.flow)([(0,r.filter)((function(e){return e.amount>=.01})),(0,r.sortBy)((function(e){return-e.amount}))])(m.bluespace_network_gases||[])),C=Math.max.apply(Math,[1].concat(h.map((function(e){return e.amount}))));return(0,o.createComponentVNode)(2,s.Window,{title:"Bluespace Vendor",width:500,height:600,children:(0,o.createComponentVNode)(2,s.Window.Content,{children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{title:"Controls",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{ml:1,icon:"plus",content:"Prepare Tank",disabled:m.pumping||m.inserted_tank||!m.tank_amount,onClick:function(){return u("tank_prepare")}}),(0,o.createComponentVNode)(2,l.Button,{ml:1,icon:"minus",content:"Remove Tank",disabled:m.pumping||!m.inserted_tank,onClick:function(){return u("tank_expel")}})],4),children:(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.NumberInput,{animated:!0,value:p,width:"63px",unit:"% tank filling goal",minValue:0,maxValue:100,onDrag:function(e,t){return u("pumping_rate",{rate:t})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:m.tank_full/1010,ranges:{good:[.67,1],average:[.34,.66],bad:[0,.33]}})})]})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Section,{scrollable:!0,fill:!0,title:"Bluespace Network Gases",buttons:(0,o.createComponentVNode)(2,l.Button,{color:"transparent",icon:"info",tooltipPosition:"bottom-start",tooltip:"Quick guide for machine use: prepare a tank to create a\nnew one in the machine, pick how much you want it filled,\nand finally press start on the gas of your choice!"}),children:(0,o.createComponentVNode)(2,l.LabeledList,{children:h.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{color:"label",basis:8,ml:1,children:(0,d.getGasLabel)(e.name)+" is "+e.price+" credits per mole"}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,mt:1,children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:C,children:(0,c.toFixed)(e.amount,2)+" moles"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{ml:-.1,mr:1,mt:1,children:!m.pumping&&m.selected_gas!==e.id&&(0,o.createComponentVNode)(2,l.Button,{ml:1,icon:"play",tooltipPosition:"left",tooltip:"Start adding "+e.name+".",disabled:!m.inserted_tank,onClick:function(){return u("start_pumping",{gas_id:e.id})}})||(0,o.createComponentVNode)(2,l.Button,{ml:1,disabled:m.selected_gas!==e.id,icon:"minus",tooltipPosition:"left",tooltip:"Stop adding "+e.name+".",onClick:function(){return u("stop_pumping",{gas_id:e.id})}})})]},e.name),(0,o.createComponentVNode)(2,l.Divider)],8)}))})})})]})})})}},8721:function(e,t,n){"use strict";t.__esModule=!0,t.BodyDesigner=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.BodyDesigner=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,h=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,h]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.bodyrecords;return(0,o.createComponentVNode)(2,c.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,c.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,c.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,c.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,c.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,c.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var t=d.styles[e];return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:[t.styleHref?(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:t.style,onClick:function(){return i("href_conversion",{target_href:t.styleHref,target_value:1})}}):null,t.colorHref?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:t.color,onClick:function(){return i("href_conversion",{target_href:t.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,c.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:t.color,style:{border:"1px solid #fff"}})]}):null,t.colorHref2?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:t.color2,onClick:function(){return i("href_conversion",{target_href:t.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,c.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:t.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var t=d.markings[e];return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,backgroundColor:t,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.activeBodyRecord;return(0,o.createComponentVNode)(2,c.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},33897:function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,t){for(var n=[],o=0;o<e.length;o+=2)n.push(t(e[o],e[o+1],o));return n},p=function(e){return e.length>0?e.reduce((function(e,t){return null===e?t:(0,o.createFragment)([e,!!t&&(0,o.createComponentVNode)(2,c.Box,{children:t})],0)})):null},h=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,a.useBackend)(t).data,r=n.occupied,c=n.occupant,l=void 0===c?{}:c,d=r?(0,o.createComponentVNode)(2,C,{occupant:l}):(0,o.createComponentVNode)(2,_);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var C=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,f,{occupant:t}),(0,o.createComponentVNode)(2,N,{occupant:t}),(0,o.createComponentVNode)(2,g,{occupant:t}),(0,o.createComponentVNode)(2,V,{occupant:t}),(0,o.createComponentVNode)(2,v,{organs:t.extOrgan}),(0,o.createComponentVNode)(2,k,{organs:t.intOrgan})]})},f=function(e,t){var n=(0,a.useBackend)(t),i=n.act,d=n.data,s=d.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},N=function(e){var t=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Blood Reagents",children:t.reagents?(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:"Amount"})]}),t.reagents.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Stomach Reagents",children:t.ingested?(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:"Amount"})]}),t.ingested.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},g=function(e){var t=e.occupant,n=t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus;return(n=n||t.humanPrey||t.livingPrey||t.objectPrey)?(0,o.createComponentVNode)(2,c.Section,{title:"Abnormalities",children:d.map((function(e,n){if(t[e[0]])return(0,o.createComponentVNode)(2,c.Box,{color:e[1],bold:"bad"===e[1],children:e[2](t)})}))}):(0,o.createComponentVNode)(2,c.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No abnormalities found."})})},V=function(e){var t=e.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,c.Table,{children:m(s,(function(e,n,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,b,{value:t[e[1]],marginBottom:r<s.length-2})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:!!n&&(0,o.createComponentVNode)(2,b,{value:t[n[1]]})})]})],4)}))})})},b=function(e){return(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:e.value/100,mt:"0.5rem",mb:!!e.marginBottom&&"0.5rem",ranges:u,children:(0,r.round)(e.value,0)})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,c.Section,{title:"External Organs",children:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,c.Section,{title:"External Organs",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,c.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",q:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:e.maxHealth,mt:t>0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,c.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,c.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,c.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,h(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},k=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,c.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,o.createComponentVNode)(2,c.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:t>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",inline:!0,children:p([h(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DEAD"})])})]})]},t)}))]})})},_=function(){return(0,o.createComponentVNode)(2,c.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},2814:function(e,t,n){"use strict";t.__esModule=!0,t.BombTester=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.BombTester=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,h=d.tank2,C=d.tank2ref,f=d.canister,N=d.sim_canister_output;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,a.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Secondary Slot",children:h&&(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("remove_tank",{ref:C})},icon:"eject",children:h})||(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:f&&(0,o.createComponentVNode)(2,a.Box,{color:"label",children:f})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No tank connected."})}),f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,value:N,maxValue:1013.25,onDrag:function(e,t){return i("set_can_pressure",{pressure:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var t,n;function r(t){var n;n=e.call(this,t)||this;var o=Math.random()>.5,r=Math.random()>.5;return n.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},n.process=setInterval((function(){n.setState((function(e){var t=Object.assign({},e);return t.reverseX?t.x-2<-5?(t.reverseX=!1,t.x+=2):t.x-=2:t.x+2>340?(t.reverseX=!0,t.x-=2):t.x+=2,t.reverseY?t.y-2<-20?(t.reverseY=!1,t.y+=2):t.y-=2:t.y+2>205?(t.reverseY=!0,t.y-=2):t.y+=2,t}))}),1),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var c=r.prototype;return c.componentWillUnmount=function(){clearInterval(this.process)},c.render=function(){var e=this.state,t={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,a.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,a.Icon,{style:t,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},30647:function(e,t,n){"use strict";t.__esModule=!0,t.BorgPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.BorgPanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.borg||{},s=l.cell||{},u=s.charge/s.maxcharge,m=l.channels||[],p=l.modules||[],h=l.upgrades||[],C=l.ais||[],f=l.laws||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Borg Panel",width:700,height:700,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:d.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){return i("rename")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.emagged?"check-square-o":"square-o",content:"Emagged",selected:d.emagged,onClick:function(){return i("toggle_emagged")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:d.lockdown,onClick:function(){return i("toggle_lockdown")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:d.scrambledcodes,onClick:function(){return i("toggle_scrambledcodes")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[s.missing?(0,o.createVNode)(1,"span","color-bad","No cell installed",16):(0,o.createComponentVNode)(2,a.ProgressBar,{value:u,children:s.charge+" / "+s.maxcharge}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set",onClick:function(){return i("set_charge")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Change",onClick:function(){return i("change_cell")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){return i("remove_cell")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radio Channels",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return i("toggle_radio",{channel:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Model",children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:d.active_module===e.type?"check-square-o":"square-o",content:e.name,selected:d.active_module===e.type,onClick:function(){return i("setmodule",{module:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upgrades",children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.installed?"check-square-o":"square-o",content:e.name,selected:e.installed,onClick:function(){return i("toggle_upgrade",{upgrade:e.type})}},e.type)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",children:C.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.connected?"check-square-o":"square-o",content:e.name,selected:e.connected,onClick:function(){return i("slavetoai",{slavetoai:e.ref})}},e.ref)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Laws",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:d.lawupdate,onClick:function(){return i("toggle_lawupdate")}}),children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})}},30063:function(e,t,n){"use strict";t.__esModule=!0,t.BotanyEditor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.BotanyEditor=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,h=l.loaded;return d?(0,o.createComponentVNode)(2,c.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,c.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Loaded Material",children:h&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:h})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},70143:function(e,t,n){"use strict";t.__esModule=!0,t.BotanyIsolator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.BotanyIsolator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,h=l.hasGenetics,C=l.sourceName;return s?(0,o.createComponentVNode)(2,c.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,c.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Buffered Genetic Data",children:h&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,a.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,a.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},86487:function(e,t,n){"use strict";t.__esModule=!0,t.BountyBoardContent=t.BountyBoard=void 0;var o=n(96323),r=n(31246),a=n(42323),c=n(26949),i=n(1033),l=n(2381);t.BountyBoard=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{width:550,height:600,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=(d.accountName,d.requests),u=void 0===s?[]:s,m=d.applicants,p=void 0===m?[]:m,h=d.bountyValue,C=(d.bountyText,d.user);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"User Details",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Reset Account",onClick:function(){return l("clear")}}),children:(0,o.createComponentVNode)(2,a.UserDetails)}),(0,o.createComponentVNode)(2,c.Flex,{mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,basis:0,children:null==u?void 0:u.map((function(e){return(0,o.createComponentVNode)(2,c.Collapsible,{title:e.owner,width:"300px",children:(0,o.createComponentVNode)(2,c.Section,{width:"300px",children:[(0,o.createComponentVNode)(2,c.Stack,{align:"baseline",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{bold:!0,width:"310px",children:e.owner}),(0,o.createComponentVNode)(2,c.Stack.Item,{width:"100px",children:(0,i.formatMoney)(e.value)+" cr"}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"pen-fancy",content:"Apply",disabled:e.owner===C.name,onClick:function(){return l("apply",{request:e.acc_number})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash-alt",content:"Delete",color:"red",onClick:function(){return l("deleteRequest",{request:e.acc_number})}})]})]}),(0,o.createComponentVNode)(2,c.BlockQuote,{pt:1,align:"center",children:(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)('"'),e.description,(0,o.createTextVNode)('"')],0)}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Applicants",children:null==p?void 0:p.map((function(t){return t.request_id===e.acc_number&&(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,p:.5,backgroundColor:"rgba(50, 50, 170, 0.5)",width:"500px",textAlign:"center",style:{border:"2px solid rgba(13, 13, 213, 0.7)"},children:t.name}),(0,o.createComponentVNode)(2,c.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,p:1,icon:"cash-register",tooltip:"Pay out to this applicant.",onClick:function(){return l("payApplicant",{applicant:t.requestee_id,request:e.acc_number})}})})]})}))})]},e.name)},e.name)}))}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Collapsible,{title:"New Bounty",width:"220px",color:"green",children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.TextArea,{fluid:!0,height:"150px",width:"200px",backgroundColor:"black",textColor:"white",onChange:function(e,t){return l("bountyText",{bountytext:t})}}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"cr",minValue:1,maxValue:1e3,value:h,width:"80px",onChange:function(e,t){return l("bountyVal",{bountyval:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Submit bounty",disabled:"Unknown"===C.name,onClick:function(){return l("createBounty")}})]})]})})})]})],4)};t.BountyBoardContent=d},77729:function(e,t,n){"use strict";t.__esModule=!0,t.BrigTimer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.BrigTimer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:138,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:l.timing?"Stop":"Start",selected:l.timing,onClick:function(){return i(l.timing?"stop":"start")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:l.flash_charging?"Recharging":"Flash",disabled:l.flash_charging,onClick:function(){return i("flash")}})],4),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",onClick:function(){return i("time",{adjust:-600})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",onClick:function(){return i("time",{adjust:-100})}})," ",String(l.minutes).padStart(2,"0"),":",String(l.seconds).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",onClick:function(){return i("time",{adjust:100})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",onClick:function(){return i("time",{adjust:600})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Short",onClick:function(){return i("preset",{preset:"short"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Medium",onClick:function(){return i("preset",{preset:"medium"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"hourglass-start",content:"Long",onClick:function(){return i("preset",{preset:"long"})}})]})})})}},50337:function(e,t,n){"use strict";t.__esModule=!0,t.CTFPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CTFPanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.teams||[],s=l.enabled||[];return(0,o.createComponentVNode)(2,c.Window,{title:"CTF Panel",width:700,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",fontSize:"18px",children:s}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Flex,{align:"center",wrap:"wrap",textAlign:"center",m:-.5,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{width:"49%",m:.5,mb:8,children:(0,o.createComponentVNode)(2,a.Section,{title:e.color+" Team",children:[(0,o.createComponentVNode)(2,a.Stack,{fill:!0,mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,e.team_size,0)," member",1===e.team_size?"":"s"]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,e.score,0)," point",1===e.score?"":"s"]})})]}),(0,o.createComponentVNode)(2,a.Button,{content:"Jump",fontSize:"18px",fluid:1,color:e.color.toLowerCase(),onClick:function(){return i("jump",{refs:e.refs})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Join",fontSize:"18px",fluid:1,color:e.color.toLowerCase(),onClick:function(){return i("join",{refs:e.refs})}})]},e.name)},e.name)}))})]})})}},83548:function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleContent=t.CameraConsole=t.selectCameras=t.prevNextCamera=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(21118),l=n(31246),d=n(26949),s=n(2381),u=function(e,t){var n,o;if(!t)return[];var r=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[r-1])?void 0:n.name,null==(o=e[r+1])?void 0:o.name]};t.prevNextCamera=u;var m=function(e,t){void 0===t&&(t="");var n=(0,i.createSearch)(t,(function(e){return e.name}));return(0,a.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),t&&(0,r.filter)(n),(0,r.sortBy)((function(e){return e.name}))])(e)};t.selectCameras=m;t.CameraConsole=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,c=a.mapRef,i=a.activeCamera,h=m(a.cameras),C=u(h,i),f=C[0],N=C[1];return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",disabled:!f,onClick:function(){return r("switch_camera",{name:f})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",disabled:!N,onClick:function(){return r("switch_camera",{name:N})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:c,type:"map"}})],4)]})};var p=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,i=(0,l.useLocalState)(t,"searchText",""),s=i[0],u=i[1],p=a.activeCamera,h=m(a.cameras,s);return(0,o.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,d.Flex.Item,{children:(0,o.createComponentVNode)(2,d.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(e,t){return u(t)}})}),(0,o.createComponentVNode)(2,d.Flex.Item,{height:"100%",children:(0,o.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,children:h.map((function(e){return(0,o.createVNode)(1,"div",(0,c.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",p&&e.name===p.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){return r("switch_camera",{name:e.name})}},e.name)}))})})]})};t.CameraConsoleContent=p},98566:function(e,t,n){"use strict";t.__esModule=!0,t.Canister=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(1033),l=n(2381),d=function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")};t.Canister=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,s=i.portConnected,u=i.tankPressure,m=i.releasePressure,p=i.defaultReleasePressure,h=i.minReleasePressure,C=i.maxReleasePressure,f=i.pressureLimit,N=i.valveOpen,g=i.isPrototype,V=i.hasHoldingTank,b=i.holdingTank,v=i.holdingTankLeakPressure,k=i.holdingTankFragPressure,_=i.restricted;return(0,o.createComponentVNode)(2,l.Window,{width:350,height:275,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Canister",buttons:(0,o.createFragment)([!!g&&(0,o.createComponentVNode)(2,c.Button,{mr:1,icon:_?"lock":"unlock",color:"caution",content:_?"Engineering":"Public",onClick:function(){return r("restricted")}}),(0,o.createComponentVNode)(2,c.Button,{icon:i.shielding?"power-off":"times",content:i.shielding?"Shielding-ON":"Shielding-OFF",selected:i.shielding,onClick:function(){return r("shielding")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:"Relabel",onClick:function(){return r("relabel")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledControls,{children:[(0,o.createComponentVNode)(2,c.LabeledControls.Item,{minWidth:"66px",label:"Pressure",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:u,minValue:0,maxValue:f,alertAfter:.7*f,ranges:{good:[0,.7*f],average:[.7*f,.85*f],bad:[.85*f,f]},format:d})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,c.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,c.Knob,{size:1.25,color:!!N&&"yellow",value:m,unit:"kPa",minValue:h,maxValue:C,step:5,stepPixelSize:1,onDrag:function(e,t){return r("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return r("pressure",{pressure:C})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return r("pressure",{pressure:p})}})]})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,c.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:N?V?"caution":"danger":null,content:N?"Open":"Closed",onClick:function(){return r("valve")}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,c.Tooltip,{content:s?"Connected":"Disconnected",position:"top",children:(0,o.createComponentVNode)(2,c.Box,{position:"relative",children:(0,o.createComponentVNode)(2,c.Icon,{size:1.25,name:s?"plug":"times",color:s?"good":"bad"})})})})]})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{children:i.has_cell?"Cell charge at: "+i.cell_charge+"%":"Missing Cell"})})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{height:"100%",title:"Holding Tank",buttons:!!V&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:N&&"danger",content:"Eject",onClick:function(){return r("eject")}}),children:[!!V&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:b.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.RoundGauge,{value:b.tankPressure,minValue:0,maxValue:1.15*k,alertAfter:v,ranges:{good:[0,v],average:[v,k],bad:[k,1.15*k]},format:d,size:1.75})})]}),!V&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No Holding Tank"})]})})]})})})}},49072:function(e,t,n){"use strict";t.__esModule=!0,t.Canvas=void 0;var o=n(96323),r=n(89716),a=n(21118),c=n(31246),i=n(26949),l=n(2381),d=["value","width","height","imageWidth","imageHeight"];function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){return e.map((function(e){return e.map((function(e){return r.Color.fromHex(e)}))}))},p=function(e){return e.map((function(e){return{x:e.x+1,y:e.y+1}}))},h=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).canvasRef=void 0,n.baseImageData=void 0,n.modifiedElements=void 0,n.onCanvasModified=void 0,n.drawing=void 0,n.drawing_color=void 0,n.canvasRef=(0,o.createRef)(),n.modifiedElements=[],n.drawing=!1,n.onCanvasModified=t.onCanvasModifiedHandler,n.handleStartDrawing=n.handleStartDrawing.bind(s(n)),n.handleDrawing=n.handleDrawing.bind(s(n)),n.handleEndDrawing=n.handleEndDrawing.bind(s(n)),n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var c=a.prototype;return c.componentDidMount=function(){this.prepareCanvas(),this.syncCanvas()},c.componentDidUpdate=function(){this.props.value!==undefined&&JSON.stringify(this.baseImageData)!==JSON.stringify(m(this.props.value))&&this.syncCanvas()},c.prepareCanvas=function(){var e=this.canvasRef.current,t=e.getContext("2d"),n=this.props.width||e.width||360,o=this.props.height||e.height||360,r=this.props.imageWidth||36,a=this.props.imageHeight||36,c=Math.round(n/r),i=Math.round(o/a);null==t||t.setTransform(1,0,0,1,0,0),null==t||t.scale(c,i)},c.syncCanvas=function(){if(this.props.value!==undefined){this.baseImageData=m(this.props.value),this.modifiedElements=[];for(var e=this.canvasRef.current.getContext("2d"),t=0;t<this.baseImageData.length;t++)for(var n=this.baseImageData[t],o=0;o<n.length;o++){var r=n[o];e.fillStyle=r.toString(),e.fillRect(t,o,1,1)}}},c.eventToCoords=function(e){var t=this.canvasRef.current,n=this.props.width||t.width||360,o=this.props.height||t.height||360,r=this.props.imageWidth||36,a=this.props.imageHeight||36,c=Math.round(n/r),i=Math.round(o/a);return{x:Math.floor(e.offsetX/c),y:Math.floor(e.offsetY/i)}},c.handleStartDrawing=function(e){if(this.props.editable&&this.props.drawing_color!==undefined&&null!==this.props.drawing_color){this.modifiedElements=[],this.drawing=!0,this.drawing_color=this.props.drawing_color;var t=this.eventToCoords(e);this.drawPoint(t.x,t.y,this.drawing_color)}},c.drawPoint=function(e,t,n){var o={x:e,y:t,color:r.Color.fromHex(n)};this.modifiedElements.push(o);var a=this.canvasRef.current.getContext("2d");a.fillStyle=n,a.fillRect(e,t,1,1)},c.handleDrawing=function(e){if(this.drawing){var t=this.eventToCoords(e);this.drawPoint(t.x,t.y,this.drawing_color)}},c.handleEndDrawing=function(e){this.drawing&&(this.drawing=!1,this.canvasRef.current.getContext("2d"),this.onCanvasModified!==undefined&&this.onCanvasModified(this.modifiedElements))},c.render=function(){var e=this.props,t=(e.value,e.width),n=void 0===t?300:t,r=e.height,a=void 0===r?300:r,c=(e.imageWidth,e.imageHeight,function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,d));return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:n,height:a},c,{onMouseDown:this.handleStartDrawing,onMouseMove:this.handleDrawing,onMouseUp:this.handleEndDrawing,onMouseOut:this.handleEndDrawing}),null,this.canvasRef))},a}(o.Component);t.Canvas=function(e,t){var n=(0,c.useBackend)(t),r=n.act,d=n.data,s=function(e){var t=e.length;return[t,0!==t?e[0].length:0]}(d.grid),u=s[0],m=s[1],C=u*d.px_per_unit,f=m*d.px_per_unit;return(0,o.createComponentVNode)(2,l.Window,{width:C+72,height:f+75+(d.show_plaque?90:0)+(d.editable&&d.paint_tool_palette?36:0),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,h,{value:d.grid,imageWidth:u,imageHeight:m,width:C,height:f,drawing_color:d.paint_tool_color,onCanvasModifiedHandler:function(e){return r("paint",{data:p(e)})},editable:d.editable}),(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"center",direction:"column",children:[!!d.editable&&!!d.paint_tool_palette&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:d.paint_tool_palette.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{backgroundColor:e.color,style:{width:"24px",height:"24px","border-style":"solid","border-color":e.is_selected?"lightblue":"black","border-width":"2px"},onClick:function(){return r("select_color",{selected_color:e.color})}},""+t)}))}),!d.finalized&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button.Confirm,{onClick:function(){return r("finalize")},content:"Finalize"})}),!!d.finalized&&!!d.show_plaque&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"content",p:2,width:"60%",textColor:"black",textAlign:"left",backgroundColor:"white",style:{"border-style":"inset"},children:[(0,o.createComponentVNode)(2,i.Box,{mb:1,fontSize:"18px",bold:!0,children:(0,a.decodeHtmlEntities)(d.name)}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,children:[d.author,!!d.date&&"- "+(new Date(d.date).getFullYear()+540)]}),(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:d.medium}),(0,o.createComponentVNode)(2,i.Box,{italic:!0,children:[!!d.patron&&"Sponsored by "+d.patron+" ",(0,o.createComponentVNode)(2,i.Button,{icon:"hand-holding-usd",color:"transparent",iconColor:"black",onClick:function(){return r("patronage")}})]})]})]})]})})})}},97232:function(e,t,n){"use strict";t.__esModule=!0,t.CargoCatalog=t.CargoContent=t.Cargo=void 0;var o=n(96323),r=n(32416),a=n(1397),c=n(31246),i=n(26949),l=n(1033),d=n(2381);t.Cargo=function(e,t){return(0,o.createComponentVNode)(2,d.Window,{width:780,height:750,children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data),a=(0,c.useSharedState)(t,"tab","catalog"),l=a[0],d=a[1],s=r.requestonly,m=r.cart||[],C=r.requests||[];return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Section,{fitted:!0,children:(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"list",selected:"catalog"===l,onClick:function(){return d("catalog")},children:"Catalog"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"envelope",textColor:"requests"!==l&&C.length>0&&"yellow",selected:"requests"===l,onClick:function(){return d("requests")},children:["Requests (",C.length,")"]}),!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"shopping-cart",textColor:"cart"!==l&&m.length>0&&"yellow",selected:"cart"===l,onClick:function(){return d("cart")},children:["Checkout (",m.length,")"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"question",selected:"help"===l,onClick:function(){return d("help")},children:"Help"})],4)]})}),"catalog"===l&&(0,o.createComponentVNode)(2,p),"requests"===l&&(0,o.createComponentVNode)(2,h),"cart"===l&&(0,o.createComponentVNode)(2,f),"help"===l&&(0,o.createComponentVNode)(2,N)]})};t.CargoContent=s;var u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.department,s=a.grocery,u=a.away,m=a.docked,p=a.loan,h=a.loan_dispatched,C=a.location,f=a.message,N=a.points,g=a.requestonly,V=a.can_send;return(0,o.createComponentVNode)(2,i.Section,{title:d,buttons:(0,o.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:N,format:function(e){return(0,l.formatMoney)(e)}})," credits"]}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shuttle",children:m&&!g&&V&&(0,o.createComponentVNode)(2,i.Button,{color:s?"orange":"green",content:C,tooltip:s?"The chef is waiting on their grocery supplies.":"",tooltipPosition:"right",onClick:function(){return r("send")}})||C}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"CentCom Message",children:f}),!!p&&!g&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loan",children:!h&&(0,o.createComponentVNode)(2,i.Button,{content:"Loan Shuttle",disabled:!(u&&m),onClick:function(){return r("loan")}})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Loaned to Centcom"})})]})})},m=function(e,t){return t=t.toLowerCase(),(0,r.flow)([function(e){return e.flatMap((function(e){return e.packs}))},(0,a.filter)((function(e){var n,o;return(null==(n=e.name)?void 0:n.toLowerCase().includes(t.toLowerCase()))||(null==(o=e.desc)?void 0:o.toLowerCase().includes(t.toLowerCase()))})),(0,a.sortBy)((function(e){return e.name})),function(e){return e.slice(0,25)}])(e)},p=function(e,t){var n,r=e.express,a=(0,c.useBackend)(t),d=a.act,s=a.data,u=s.self_paid,p=s.app_cost,h=Object.values(s.supplies),f=(0,c.useSharedState)(t,"supply",null==(n=h[0])?void 0:n.name),N=f[0],g=f[1],V=(0,c.useSharedState)(t,"search_text",""),b=V[0],v=V[1],k="search_results"===N?{packs:m(h,b)}:h.find((function(e){return e.name===N}));return(0,o.createComponentVNode)(2,i.Section,{title:"Catalog",buttons:!r&&(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,i.Button.Checkbox,{ml:2,content:"Buy Privately",checked:u,onClick:function(){return d("toggleprivate")}})],4),children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{ml:-1,mr:1,children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"search_results"===N,children:(0,o.createComponentVNode)(2,i.Stack,{align:"baseline",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{name:"search"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search...",value:b,onInput:function(e,t){if(t!==b){if(t.length)g("search_results");else if("search_results"===N){var n;g(null==(n=h[0])?void 0:n.name)}v(t)}},onChange:function(e,t){var n,o,r=null==(n=e.target)||null==(o=n.props)?void 0:o.onInput;r&&r(e,t)}})})]})},"search_results"),h.map((function(e){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e.name===N,onClick:function(){g(e.name),v("")},children:[e.name," (",e.packs.length,")"]},e.name)}))]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.Table,{children:null==k?void 0:k.packs.map((function(e){var t=[];return e.small_item&&t.push("Small"),e.access&&t.push("Restricted"),(0,o.createComponentVNode)(2,i.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",textAlign:"right",children:t.join(", ")}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,tooltip:e.desc,tooltipPosition:"left",onClick:function(){return d("add",{id:e.id})},children:[(0,l.formatMoney)(u&&!e.goody||p?Math.round(1.1*e.cost):e.cost)," cr"]})})]},e.name)}))})})]})})};t.CargoCatalog=p;var h=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.requestonly,s=a.can_send,u=a.can_approve_requests,m=a.requests||[];return(0,o.createComponentVNode)(2,i.Section,{title:"Active Requests",buttons:!d&&(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Clear",color:"transparent",onClick:function(){return r("denyall")}}),children:[0===m.length&&(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"No Requests"}),m.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:["#",e.id]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.object}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createVNode)(1,"b",null,e.orderer,0)}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"25%",children:(0,o.createVNode)(1,"i",null,e.reason,0)}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:[(0,l.formatMoney)(e.cost)," cr"]}),(!d||s)&&u&&(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"check",color:"good",onClick:function(){return r("approve",{id:e.id})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"bad",onClick:function(){return r("deny",{id:e.id})}})]})]},e.id)}))})]})},C=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.requestonly,s=a.can_send,u=a.can_approve_requests,m=a.cart||[],p=m.reduce((function(e,t){return e+t.cost}),0);return!d&&s&&u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,mx:1,children:[0===m.length&&"Cart is empty",1===m.length&&"1 item",m.length>=2&&m.length+" items"," ",p>0&&"("+(0,l.formatMoney)(p)+" cr)"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"transparent",content:"Clear",onClick:function(){return r("clear")}})],4):null},f=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.requestonly,s=a.away,u=a.docked,m=a.location,p=a.can_send,h=a.cart||[];return(0,o.createComponentVNode)(2,i.Section,{title:"Current Cart",buttons:(0,o.createComponentVNode)(2,C),children:[0===h.length&&(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Nothing in cart"}),h.length>0&&(0,o.createComponentVNode)(2,i.Table,{children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:["#",e.id]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.object}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:!!e.paid&&(0,o.createVNode)(1,"b",null,"[Paid Privately]",16)}),e.dep_order&&(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:[(0,l.formatMoney)(e.cost)," cr earned on delivery"]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"right",children:[(0,l.formatMoney)(e.cost)," cr"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:p&&(0,o.createComponentVNode)(2,i.Button,{icon:"minus",onClick:function(){return r("remove",{id:e.id})}})})],4)]},e.id)}))}),h.length>0&&!d&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:1===s&&1===u&&(0,o.createComponentVNode)(2,i.Button,{color:"green",style:{"line-height":"28px",padding:"0 12px"},content:"Confirm the order",onClick:function(){return r("send")}})||(0,o.createComponentVNode)(2,i.Box,{opacity:.5,children:["Shuttle in ",m,"."]})})]})},N=function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Department Orders",children:["Each department on the station will order crates from their own personal consoles. These orders are ENTIRELY FREE! They do not come out of cargo's budget, and rather put the consoles on cooldown. So here's where you come in: The ordered crates will show up on your supply console, and you need to deliver the crates to the orderers. You'll actually be paid the full value of the department crate on delivery if the crate was not tampered with, making the system a good source of income.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Examine a department order crate to get specific details about where the crate needs to go.",16)]}),(0,o.createComponentVNode)(2,i.Section,{title:"MULEbots",children:["MULEbots are slow but loyal delivery bots that will get crates delivered with minimal technician effort required. It is slow, though, and can be tampered with while en route.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Setting up a MULEbot is easy:",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"1.",16)," Drag the crate you want to deliver next to the MULEbot.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"2.",16)," Drag the crate on top of MULEbot. It should load on.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"3.",16)," Open your PDA.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"4.",16)," Click ",(0,o.createVNode)(1,"i",null,"Delivery Bot Control",16),".",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"5.",16)," Click ",(0,o.createVNode)(1,"i",null,"Scan for Active Bots",16),".",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"6.",16)," Choose your MULE.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"7.",16)," Click on ",(0,o.createVNode)(1,"i",null,"Destination: (set)",16),".",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"8.",16)," Choose a destination and click OK.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"9.",16)," Click ",(0,o.createVNode)(1,"i",null,"Proceed",16),"."]}),(0,o.createComponentVNode)(2,i.Section,{title:"Disposals Delivery System",children:["In addition to MULEs and hand-deliveries, you can also make use of the disposals mailing system. Note that a break in the disposal piping could cause your package to be lost (this hardly ever happens), so this is not always the most secure ways to deliver something. You can wrap up a piece of paper and mail it the same way if you (or someone at the desk) wants to mail a letter.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Using the Disposals Delivery System is even easier:",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"1.",16)," Wrap your item/crate in packaging paper.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"2.",16)," Use the destinations tagger to choose where to send it.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"3.",16)," Tag the package.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"4.",16)," Stick it on the conveyor and let the system handle it.",(0,o.createVNode)(1,"br")]}),(0,o.createComponentVNode)(2,i.NoticeBox,{textAlign:"center",info:!0,mb:0,children:"Pondering something not included here? When in doubt, ask the QM!"})],4)}},72602:function(e,t,n){"use strict";t.__esModule=!0,t.CargoBountyConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.CargoBountyConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,d=n.data.bountydata,s=void 0===d?[]:d;return(0,o.createComponentVNode)(2,i.Window,{width:750,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Bounty List",onClick:function(){return c("Print")}}),children:(0,o.createComponentVNode)(2,a.Table,{border:!0,children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,italic:!0,color:"label",fontSize:1.25,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Bounty Object"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Description"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Progress"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Claim"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:1===e.priority?"rgba(252, 152, 3, 0.25)":"",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{italic:!0,textAlign:"center",p:1,children:e.description}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,textAlign:"center",children:[1===e.priority?(0,o.createComponentVNode)(2,a.Box,{children:"High Priority"}):"",e.completion_string]}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,textAlign:"center",children:e.reward_string}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:1===e.claimed?"check":"",content:1===e.claimed?"Claimed":"Claim",disabled:1===e.claimed,color:1===e.can_claim?"green":"red",onClick:function(){return c("ClaimBounty",{bounty:e.bounty_ref})}})})]},e.name)}))]})})})})};var l=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.stored_cash);return(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i,format:function(e){return(0,c.formatMoney)(e)}})," credits"]})}},86875:function(e,t,n){"use strict";t.__esModule=!0,t.CargoExpress=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(97232),l=n(19447);t.CargoExpress=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data);return(0,o.createComponentVNode)(2,c.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.InterfaceLockNoticeBox,{accessText:"a QM-level ID card"}),!a.locked&&(0,o.createComponentVNode)(2,d)]})})};var d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Cargo Express",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(l.points)})," credits"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Landing Location",children:[(0,o.createComponentVNode)(2,a.Button,{content:"Cargo Bay",selected:!l.usingBeacon,onClick:function(){return c("LZCargo")}}),(0,o.createComponentVNode)(2,a.Button,{selected:l.usingBeacon,disabled:!l.hasBeacon,onClick:function(){return c("LZBeacon")},children:[l.beaconzone," (",l.beaconName,")"]}),(0,o.createComponentVNode)(2,a.Button,{content:l.printMsg,disabled:!l.canBuyBeacon,onClick:function(){return c("printBeacon")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notice",children:l.message})]})}),(0,o.createComponentVNode)(2,i.CargoCatalog,{express:!0})],4)}},25542:function(e,t,n){"use strict";t.__esModule=!0,t.CargoHoldTerminal=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CargoHoldTerminal=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.points,s=l.pad,u=l.sending,m=l.status_report;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:230,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Cargo Value",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(d)})," credits"]})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cargo Pad",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Recalculate Value",disabled:!s,onClick:function(){return i("recalc")}}),(0,o.createComponentVNode)(2,a.Button,{icon:u?"times":"arrow-up",content:u?"Stop Sending":"Send Goods",selected:u,disabled:!s,onClick:function(){return i(u?"stop":"send")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:s?"good":"bad",children:s?"Online":"Not Found"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cargo Report",children:m})]})})]})})}},32875:function(e,t,n){"use strict";t.__esModule=!0,t.CasinoPrizeDispenser=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=["title","items"];var d={Alphabetical:function(e,t){return e-t},"By availability":function(e,t){return-(e.affordable-t.affordable)},"By price":function(e,t){return e.price-t.price}};t.CasinoPrizeDispenser=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)],4)})})};var s=function(e,t){var n=(0,a.useLocalState)(t,"search",""),r=(n[0],n[1]),i=(0,a.useLocalState)(t,"sort",""),l=(i[0],i[1]),s=(0,a.useLocalState)(t,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,c.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,t){return r(t)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,c.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,t){var n=(0,a.useBackend)(t),l=(n.act,n.data),s=l.points,u=l.items,p=(0,a.useLocalState)(t,"search",""),h=p[0],C=(p[1],(0,a.useLocalState)(t,"sort","Alphabetical")),f=C[0],N=(C[1],(0,a.useLocalState)(t,"descending",!1)),g=N[0],V=(N[1],(0,r.createSearch)(h,(function(e){return e[0]}))),b=!1,v=Object.entries(u).map((function(e,t){var n=Object.entries(e[1]).filter(V).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(d[f]);if(0!==n.length)return g&&(n=n.reverse()),b=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:n},e[0])}));return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,c.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:b?v:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.title),d=e.items,s=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Collapsible,Object.assign({open:!0,title:i},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,c.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})]},e.name)}))})))}},15889:function(e,t,n){"use strict";t.__esModule=!0,t.CellularEmporium=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CellularEmporium=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.can_readapt,u=d.genetic_points_remaining;return(0,o.createComponentVNode)(2,c.Window,{width:900,height:480,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Genetic Points",buttons:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:[u&&u," ",(0,o.createComponentVNode)(2,a.Icon,{name:"dna",color:"#DD66DD"})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Readapt",disabled:!s,onClick:function(){return l("readapt")}})})]}),children:(0,o.createComponentVNode)(2,i)})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.abilities,d=i.genetic_points_remaining;return l?(0,o.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:e.name,buttons:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:e.dna_cost}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:"dna",color:e.owned?"#DD66DD":"gray"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Evolve",disabled:e.owned||e.dna_cost>d||!e.can_purchase,onClick:function(){return c("evolve",{path:e.path})}})})]}),children:[e.desc,(0,o.createComponentVNode)(2,a.Box,{color:"good",children:e.helptext})]},e.name)}))}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"None"})}},18730:function(e,t,n){"use strict";t.__esModule=!0,t.CentcomPodLauncher=void 0;var o=n(96323),r=n(97622),a=n(1060),c=n(7151),i=(n(21118),n(54530)),l=n(31246),d=n(26949),s=n(2381);function u(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){u(a,o,r,c,i,"next",e)}function i(e){u(a,o,r,c,i,"throw",e)}c(undefined)}))}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h={color:"grey"},C=function(e){var t=(0,l.useLocalState)(e,"compact",!1),n=t[0],o=t[1];return[n,function(){return o(!n)}]};t.CentcomPodLauncher=function(e,t){var n=C(t)[0];return(0,o.createComponentVNode)(2,s.Window,{title:"Supply Pod Menu (Use against Helen Weinstein)",width:n?460:730,height:n?360:440,children:(0,o.createComponentVNode)(2,f)})};var f=function(e,t){var n=C(t)[0];return(0,o.createComponentVNode)(2,s.Window.Content,{children:(0,o.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{shrink:0,children:(0,o.createComponentVNode)(2,I)}),(0,o.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,o.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,T)}),(0,o.createComponentVNode)(2,d.Stack.Item,{children:(0,o.createComponentVNode)(2,L)}),(0,o.createComponentVNode)(2,d.Stack.Item,{children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,A)})})]})}),!n&&(0,o.createComponentVNode)(2,d.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,w)}),(0,o.createComponentVNode)(2,d.Stack.Item,{basis:"8em",children:(0,o.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{children:(0,o.createComponentVNode)(2,M)}),(0,o.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,E)}),!n&&(0,o.createComponentVNode)(2,d.Stack.Item,{children:(0,o.createComponentVNode)(2,F)})]})}),(0,o.createComponentVNode)(2,d.Stack.Item,{basis:"11em",children:(0,o.createComponentVNode)(2,D)})]})})]})})},N=[{title:"View Pod",component:function(){return x}},{title:"View Bay",component:function(){return S}},{title:"View Dropoff Location",component:function(){return B}}],g=[{title:"Mobs",icon:"user"},{title:"Unanchored\nObjects",key:"Unanchored",icon:"cube"},{title:"Anchored\nObjects",key:"Anchored",icon:"anchor"},{title:"Under-Floor",key:"Underfloor",icon:"eye-slash"},{title:"Wall-Mounted",key:"Wallmounted",icon:"link"},{title:"Floors",icon:"border-all"},{title:"Walls",icon:"square"},{title:"Mechs",key:"Mecha",icon:"truck"}],V=[{title:"Pre",tooltip:"Time until pod gets to station"},{title:"Fall",tooltip:"Duration of pods\nfalling animation"},{title:"Open",tooltip:"Time it takes pod to open after landing"},{title:"Exit",tooltip:"Time for pod to\nleave after opening"}],b=[{title:"Pre",tooltip:"Time until pod appears above dropoff point"},{title:"Fall",tooltip:"Duration of pods\nfalling animation"},{title:"Open",tooltip:"Time it takes pod to open after landing"},{title:"Exit",tooltip:"Time for pod to\nleave after opening"}],v=[{title:"Fall",act:"fallingSound",tooltip:"Plays while pod falls, timed\nto end when pod lands"},{title:"Land",act:"landingSound",tooltip:"Plays after pod lands"},{title:"Open",act:"openingSound",tooltip:"Plays when pod opens"},{title:"Exit",act:"leavingSound",tooltip:"Plays when pod leaves"}],k=[{title:"Standard"},{title:"Advanced"},{title:"Nanotrasen"},{title:"Syndicate"},{title:"Deathsquad"},{title:"Cultist"},{title:"Missile"},{title:"Syndie Missile"},{title:"Supply Box"},{title:"Clown Pod"},{title:"Fruit"},{title:"Invisible"},{title:"Gondola"},{title:"Seethrough"}],_=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"ERT"}],y=[{list:[{title:"Launch All Turfs",icon:"globe",choiceNumber:0,selected:"launchChoice",act:"launchAll"},{title:"Launch Turf Ordered",icon:"sort-amount-down-alt",choiceNumber:1,selected:"launchChoice",act:"launchOrdered"},{title:"Pick Random Turf",icon:"dice",choiceNumber:2,selected:"launchChoice",act:"launchRandomTurf"},{divider:1},{title:"Launch Whole Turf",icon:"expand",choiceNumber:0,selected:"launchRandomItem",act:"launchWholeTurf"},{title:"Pick Random Item",icon:"dice",choiceNumber:1,selected:"launchRandomItem",act:"launchRandomItem"},{divider:1},{title:"Clone",icon:"clone",soloSelected:"launchClone",act:"launchClone"}],label:"Load From",alt_label:"Load",tooltipPosition:"right"},{list:[{title:"Specific Target",icon:"user-check",soloSelected:"effectTarget",act:"effectTarget"},{title:"Pod Stays",icon:"hand-paper",choiceNumber:0,selected:"effectBluespace",act:"effectBluespace"},{title:"Stealth",icon:"user-ninja",soloSelected:"effectStealth",act:"effectStealth"},{title:"Quiet",icon:"volume-mute",soloSelected:"effectQuiet",act:"effectQuiet"},{title:"Missile Mode",icon:"rocket",soloSelected:"effectMissile",act:"effectMissile"},{title:"Burst Launch",icon:"certificate",soloSelected:"effectBurst",act:"effectBurst"},{title:"Any Descent Angle",icon:"ruler-combined",soloSelected:"effectCircle",act:"effectCircle"},{title:"No Ghost Alert\n(If you dont want to\nentertain bored ghosts)",icon:"ghost",choiceNumber:0,selected:"effectAnnounce",act:"effectAnnounce"}],label:"Normal Effects",tooltipPosition:"bottom"},{list:[{title:"Explosion Custom",icon:"bomb",choiceNumber:1,selected:"explosionChoice",act:"explosionCustom"},{title:"Adminbus Explosion\nWhat are they gonna do, ban you?",icon:"bomb",choiceNumber:2,selected:"explosionChoice",act:"explosionBus"},{divider:1},{title:"Custom Damage",icon:"skull",choiceNumber:1,selected:"damageChoice",act:"damageCustom"},{title:"Gib",icon:"skull-crossbones",choiceNumber:2,selected:"damageChoice",act:"damageGib"},{divider:1},{title:"Projectile Cloud",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",act:"effectShrapnel"},{title:"Stun",icon:"sun",soloSelected:"effectStun",act:"effectStun"},{title:"Delimb",icon:"socks",soloSelected:"effectLimb",act:"effectLimb"},{title:"Yeet Organs",icon:"book-dead",soloSelected:"effectOrgans",act:"effectOrgans"}],label:"Harmful Effects",tooltipPosition:"bottom"}],w=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,c=(0,l.useLocalState)(t,"tabPageIndex",1),i=c[0],s=c[1],u=a.mapRef,m=N[i].component();return(0,o.createComponentVNode)(2,d.Section,{fill:!0,title:"View",buttons:(0,o.createFragment)([!!a.customDropoff&&1===a.effectReverse&&(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",tooltip:"View Dropoff Location",icon:"arrow-circle-down",selected:2===i,onClick:function(){s(2),r("tabSwitch",{tabIndex:2})}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",tooltip:"View Pod",icon:"rocket",selected:0===i,onClick:function(){s(0),r("tabSwitch",{tabIndex:0})}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",tooltip:"View Source Bay",icon:"th",selected:1===i,onClick:function(){s(1),r("tabSwitch",{tabIndex:1})}}),(0,o.createVNode)(1,"span",null,"|",16,{style:h}),!!a.customDropoff&&1===a.effectReverse&&(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",icon:"lightbulb",selected:a.renderLighting,tooltip:"Render Lighting for the dropoff view",onClick:function(){r("renderLighting"),r("refreshView")}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",icon:"sync-alt",tooltip:"Refresh view window in case it breaks",onClick:function(){s(i),r("refreshView")}})],0),children:(0,o.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d.ByondUi,{height:"100%",params:{zoom:0,id:u,type:"map"}})})]})})},x=function(e,t){return(0,o.createComponentVNode)(2,d.Box,{color:"label",children:["Note: You can right click on this",(0,o.createVNode)(1,"br"),"blueprint pod and edit vars directly"]})},S=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Button,{content:"Teleport",icon:"street-view",onClick:function(){return r("teleportCentcom")}}),(0,o.createComponentVNode)(2,d.Button,{content:a.oldArea?a.oldArea.substring(0,17):"Go Back",disabled:!a.oldArea,icon:"undo-alt",onClick:function(){return r("teleportBack")}})],4)},B=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Button,{content:"Teleport",icon:"street-view",onClick:function(){return r("teleportDropoff")}}),(0,o.createComponentVNode)(2,d.Button,{content:a.oldArea?a.oldArea.substring(0,17):"Go Back",disabled:!a.oldArea,icon:"undo-alt",onClick:function(){return r("teleportBack")}})],4)},I=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,c=C(t),i=c[0],s=c[1];return(0,o.createComponentVNode)(2,d.Section,{fill:!0,width:"100%",children:(0,o.createComponentVNode)(2,d.Stack,{children:y.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Stack.Item,{children:[(0,o.createComponentVNode)(2,d.Box,{bold:!0,color:"label",mb:1,children:[1===i&&e.alt_label?e.alt_label:e.label,":"]}),(0,o.createComponentVNode)(2,d.Box,{children:e.list.map((function(t,n){return(0,o.createFragment)([t.divider&&(0,o.createVNode)(1,"span",null,(0,o.createVNode)(1,"b",null,"|",16),2,{style:h}),!t.divider&&(0,o.createComponentVNode)(2,d.Button,{tooltip:t.details&&a.effectShrapnel?t.title+"\n"+a.shrapnelType+"\nMagnitude:"+a.shrapnelMagnitude:t.title,tooltipPosition:e.tooltipPosition,icon:t.icon,content:t.content,selected:t.soloSelected?a[t.soloSelected]:a[t.selected]===t.choiceNumber,onClick:function(){return 0!==a.payload?r(t.act,t.payload):r(t.act)},style:{"vertical-align":"middle","margin-left":0!==n?"1px":"0px","margin-right":n!==e.list.length-1?"1px":"0px","border-radius":"5px"}})],0,n)}))})]}),t<y.length&&(0,o.createComponentVNode)(2,d.Stack.Divider),t===y.length-1&&(0,o.createComponentVNode)(2,d.Stack.Item,{children:[(0,o.createComponentVNode)(2,d.Box,{color:"label",mb:1,children:(0,o.createVNode)(1,"b",null,"Extras:",16)}),(0,o.createComponentVNode)(2,d.Box,{children:[(0,o.createComponentVNode)(2,d.Button,{m:0,inline:!0,color:"transparent",icon:"list-alt",tooltip:"Game Panel",tooltipPosition:"top-start",onClick:function(){return r("gamePanel")}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,m:0,color:"transparent",icon:"hammer",tooltip:"Build Mode",tooltipPosition:"top-start",onClick:function(){return r("buildMode")}}),i&&(0,o.createComponentVNode)(2,d.Button,{inline:!0,m:0,color:"transparent",icon:"expand",tooltip:"Maximize",tooltipPosition:"top-start",onClick:function(){s(),r("refreshView")}})||(0,o.createComponentVNode)(2,d.Button,{m:0,inline:!0,color:"transparent",icon:"compress",tooltip:"Compact mode",tooltipPosition:"top-start",onClick:function(){return s()}})]})]})],0,t)}))})})},L=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,c=(0,l.useLocalState)(t,"tabPageIndex",1),i=c[0],s=c[1];return(0,o.createComponentVNode)(2,d.Section,{fill:!0,height:"100%",title:"Reverse",buttons:(0,o.createComponentVNode)(2,d.Button,{icon:1===a.effectReverse?"toggle-on":"toggle-off",selected:a.effectReverse,tooltip:"Doesn't send items.\nAfer landing, returns to\ndropoff turf (or bay\nif none specified).",tooltipPosition:"top-start",onClick:function(){r("effectReverse"),2===i&&(s(1),r("tabSwitch",{tabIndex:1}))}}),children:1===a.effectReverse&&(0,o.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,d.Stack.Item,{maxHeight:"20px",children:[(0,o.createComponentVNode)(2,d.Button,{content:"Dropoff Turf",selected:a.picking_dropoff_turf,disabled:!a.effectReverse,tooltip:"Where reverse pods\ngo after landing",tooltipPosition:"bottom-end",onClick:function(){return r("pickDropoffTurf")}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,icon:"trash",disabled:!a.customDropoff,tooltip:"Clears the custom dropoff\nlocation. Reverse pods will\ninstead dropoff at the\nselected bay.",tooltipPosition:"bottom",onClick:function(){r("clearDropoffTurf"),2===i&&(s(1),r("tabSwitch",{tabIndex:1}))}})]}),(0,o.createComponentVNode)(2,d.Stack.Divider),(0,o.createComponentVNode)(2,d.Stack.Item,{maxHeight:"20px",children:g.map((function(e,t){return(0,o.createComponentVNode)(2,d.Button,{inline:!0,icon:e.icon,disabled:!a.effectReverse,selected:e.key?a.reverse_option_list[e.key]:a.reverse_option_list[e.title],tooltip:e.title,onClick:function(){return r("reverseOption",{reverseOption:e.key?e.key:e.title})}},t)}))})]})})},T=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).state={presets:[]},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var a=r.prototype;return a.componentDidMount=function(){var e=m(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.next=3,this.getPresets();case 3:e.t1=e.sent,e.t2={presets:e.t1},e.t0.setState.call(e.t0,e.t2);case 6:case"end":return e.stop()}}),t,this)})));return function(){return e.apply(this,arguments)}}(),a.saveDataToPreset=function(e,t){c.storage.set("podlauncher_preset_"+e,t)},a.loadDataFromPreset=function(){var e=m(regeneratorRuntime.mark((function t(e,n){var o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=(0,l.useBackend)(this.context),r=o.act,t.t0=r,t.next=4,c.storage.get("podlauncher_preset_"+e);case 4:t.t1=t.sent,t.t2={payload:t.t1},(0,t.t0)("loadDataFromPreset",t.t2);case 7:case"end":return t.stop()}}),t,this)})));return function(t,n){return e.apply(this,arguments)}}(),a.newPreset=function(e,t,n){var o=this.state.presets;o||(o=[]).push("hi!");var r=(0,i.createUuid)(),a={id:r,title:e,hue:t};o.push(a),c.storage.set("podlauncher_presetlist",o),this.saveDataToPreset(r,n)},a.getPresets=function(){var e=m(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.storage.get("podlauncher_presetlist");case 2:return(e=t.sent)===undefined&&(e=[]),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(){return e.apply(this,arguments)}}(),a.deletePreset=function(e){for(var t=this.state.presets,n=0;n<t.length;n++)if(t[n].id===e){t.splice(n,1);break}c.storage.set("podlauncher_presetlist",t)},a.render=function(){var e=this,t=this.state.presets,n=(0,l.useBackend)(this.context),r=(n.act,n.data),a=(0,l.useLocalState)(this.context,"presetIndex",0),c=a[0],i=a[1],s=(0,l.useLocalState)(this.context,"settingName",0),u=s[0],m=s[1],p=(0,l.useLocalState)(this.context,"newNameText",""),C=p[0],f=p[1],N=(0,l.useLocalState)(this.context,"hue",0),g=N[0],V=N[1];return(0,o.createComponentVNode)(2,d.Section,{scrollable:!0,fill:!0,title:"Presets",buttons:(0,o.createFragment)([0===u&&(0,o.createComponentVNode)(2,d.Button,{color:"transparent",icon:"plus",tooltip:"New Preset",onClick:function(){return m(1)}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",content:"",icon:"download",tooltip:"Saves preset",tooltipPosition:"bottom",onClick:function(){return e.saveDataToPreset(c,r)}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",content:"",icon:"upload",tooltip:"Loads preset",onClick:function(){e.loadDataFromPreset(c)}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,color:"transparent",icon:"trash",tooltip:"Deletes the selected preset",tooltipPosition:"bottom-start",onClick:function(){return e.deletePreset(c)}})],0),children:[1===u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Button,{inline:!0,icon:"check",tooltip:"Confirm",tooltipPosition:"right",onClick:function(){e.newPreset(C,g,r),m(0)}}),(0,o.createComponentVNode)(2,d.Button,{inline:!0,icon:"window-close",tooltip:"Cancel",onClick:function(){f(""),m(0)}}),(0,o.createVNode)(1,"span",null," Hue: ",16,{color:"label"}),(0,o.createComponentVNode)(2,d.NumberInput,{inline:!0,animated:!0,width:"40px",step:5,stepPixelSize:5,value:g,minValue:0,maxValue:360,onChange:function(e,t){return V(t)}}),(0,o.createComponentVNode)(2,d.Input,{inline:!0,autofocus:!0,placeholder:"Preset Name",onChange:function(e,t){return f(t)}}),(0,o.createComponentVNode)(2,d.Divider,{horizontal:!0})],4),(!t||0===t.length)&&(0,o.createVNode)(1,"span",null,"Click [+] to define a new preset. They are persistent across rounds/servers!",16,{style:h}),t?t.map((function(t,n){return(0,o.createComponentVNode)(2,d.Button,{width:"100%",backgroundColor:"hsl("+t.hue+", 50%, 50%)",onClick:function(){return i(t.id)},onDblClick:function(){return e.loadDataFromPreset(t.id)},content:t.title,style:c===t.id?{"border-width":"1px","border-style":"solid","border-color":"hsl("+t.hue+", 80%, 80%)"}:""},n)})):"",(0,o.createVNode)(1,"span",null,[(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("NOTE: Custom sounds from outside the base game files will not save! :(")],4,{style:h})]})},r}(o.Component),A=function(e,t){var n=C(t)[0],r=(0,l.useBackend)(t),a=r.act,c=r.data;return(0,o.createComponentVNode)(2,d.Button,{fluid:!0,textAlign:"center",tooltip:"You should know what the\nCodex Astartes says about this",selected:c.giveLauncher,tooltipPosition:"top",content:(0,o.createComponentVNode)(2,d.Box,{bold:!0,fontSize:"1.4em",lineHeight:n?1.5:3,children:"LAUNCH"}),onClick:function(){return a("giveLauncher")}})},D=function(e,t){var n=(0,l.useBackend)(t),r=n.act,c=n.data;return(0,o.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,title:"Style",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Name",color:"transparent",icon:"edit",selected:c.effectName,tooltip:"Edit pod's\nname/desc.",tooltipPosition:"bottom-start",onClick:function(){return r("effectName")}}),children:k.map((function(e,t){return(0,o.createComponentVNode)(2,d.Button,{width:"45px",height:"45px",tooltipPosition:t>=k.length-2?t%2==1?"top-start":"top-end":t%2==1?"bottom-start":"bottom-end",tooltip:e.title,style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},selected:c.styleChoice-1===t,onClick:function(){return r("setStyle",{style:t})},children:(0,o.createComponentVNode)(2,d.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+(t+1)]),style:{transform:"rotate(45deg) translate(-25%,-10%)","pointer-events":"none"}})},t)}))})},M=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data;C(t)[0];return(0,o.createComponentVNode)(2,d.Section,{fill:!0,title:"Bay",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Button,{icon:"trash",color:"transparent",tooltip:"Clears everything\nfrom the selected bay",tooltipPosition:"bottom-end",onClick:function(){return r("clearBay")}}),(0,o.createComponentVNode)(2,d.Button,{icon:"question",color:"transparent",tooltip:'Each option corresponds\nto an area on centcom.\nLaunched pods will\nbe filled with items\nin these areas according\nto the "Load from Bay"\noptions at the top left.',tooltipPosition:"bottom-end"})],4),children:_.map((function(e,t){return(0,o.createComponentVNode)(2,d.Button,{content:e.title,tooltipPosition:"bottom-end",selected:a.bayNumber===""+(t+1),onClick:function(){return r("switchBay",{bayNumber:""+(t+1)})}},t)}))})},E=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data;return(0,o.createComponentVNode)(2,d.Section,{fill:!0,title:"Time",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Button,{icon:"undo",color:"transparent",tooltip:"Reset all pod\ntimings/delays",tooltipPosition:"bottom-end",onClick:function(){return r("resetTiming")}}),(0,o.createComponentVNode)(2,d.Button,{icon:1===a.custom_rev_delay?"toggle-on":"toggle-off",selected:a.custom_rev_delay,disabled:!a.effectReverse,color:"transparent",tooltip:"Toggle Reverse Delays\nNote: Top set is\nnormal delays, bottom set\nis reversing pod's delays",tooltipPosition:"bottom-end",onClick:function(){return r("toggleRevDelays")}})],4),children:[(0,o.createComponentVNode)(2,P,{delay_list:V}),a.custom_rev_delay&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Divider,{horizontal:!0}),(0,o.createComponentVNode)(2,P,{delay_list:b,reverse:!0})],4)||""]})},P=function(e,t){var n=(0,l.useBackend)(t),a=n.act,c=n.data,i=e.delay_list,s=e.reverse,u=void 0!==s&&s;return(0,o.createComponentVNode)(2,d.LabeledControls,{wrap:!0,children:i.map((function(e,t){return(0,o.createComponentVNode)(2,d.LabeledControls.Item,{label:c.custom_rev_delay?"":e.title,children:(0,o.createComponentVNode)(2,d.Knob,{inline:!0,step:.02,size:c.custom_rev_delay?.75:1,value:(u?c.rev_delays[t+1]:c.delays[t+1])/10,unclamped:!0,minValue:0,unit:"s",format:function(e){return(0,r.toFixed)(e,2)},maxValue:10,color:(u?c.rev_delays[t+1]:c.delays[t+1])/10>10?"orange":"default",onDrag:function(e,n){a("editTiming",{timer:""+(t+1),value:Math.max(n,0),reverse:u})}})},t)}))})},F=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data;return(0,o.createComponentVNode)(2,d.Section,{fill:!0,title:"Sounds",buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"volume-up",color:"transparent",selected:a.soundVolume!==a.defaultSoundVolume,tooltip:"Sound Volume:"+a.soundVolume,onClick:function(){return r("soundVolume")}}),children:v.map((function(e,t){return(0,o.createComponentVNode)(2,d.Button,{content:e.title,tooltip:e.tooltip,tooltipPosition:"top-end",selected:a[e.act],onClick:function(){return r(e.act)}},t)}))})}},88994:function(e,t,n){"use strict";t.__esModule=!0,t.ChameleonCard=void 0;var o=n(96323),r=n(31246),a=n(52126),c=n(2381);t.ChameleonCard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.accesses,s=l.selectedList,u=l.wildcardFlags,m=l.wildcardSlots,p=l.trimAccess,h=l.accessFlags,C=l.accessFlagNames,f=l.showBasic,N=l.ourAccess,g=l.theftAccess,V=l.ourTrimAccess,b=d.flatMap((function(e){var t=e.name,n=e.accesses,o={name:t,accesses:[]};return o.accesses=n.filter((function(e){return!V.includes(e.ref)&&!(!N.includes(e.ref)&&!g.includes(e.ref))})),o.accesses.length?o:[]}));return(0,o.createComponentVNode)(2,c.Window,{width:500,height:620,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.AccessList,{accesses:b,selectedList:s,wildcardFlags:u,wildcardSlots:m,trimAccess:p,accessFlags:h,accessFlagNames:C,showBasic:!!f,accessMod:function(e,t){return i("mod_access",{access_target:e,access_wildcard:t})}})})})}},2095:function(e,t,n){"use strict";t.__esModule=!0,t.Changelog=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381),l=n(39646),d=u(n(44198)),s=u(n(84883));function u(e){return e&&e.__esModule?e:{"default":e}}function m(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h={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"}},C=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).getData=function(e,n){void 0===n&&(n=1);var o=(0,a.useBackend)(t.context).act,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t);if(n>6)return t.setData("Failed to load data after 6 attempts");o("get_month",{date:e}),fetch((0,l.resolveAsset)(e+".yml")).then(function(){var t,o=(t=regeneratorRuntime.mark((function a(t){var o,c;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.text();case 2:o=a.sent,/^Cannot find/.test(o)?(c=50+50*n,r.setData("Loading changelog data"+".".repeat(n+3)),setTimeout((function(){r.getData(e,n+1)}),c)):r.setData(s["default"].load(o,{schema:s["default"].CORE_SCHEMA}));case 5:case"end":return a.stop()}}),a)})),function(){var e=this,n=arguments;return new Promise((function(o,r){var a=t.apply(e,n);function c(e){m(a,o,r,c,i,"next",e)}function i(e){m(a,o,r,c,i,"throw",e)}c(undefined)}))});return function(e){return o.apply(this,arguments)}}())},t.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},t.dateChoices=[],t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var C=u.prototype;return C.setData=function(e){this.setState({data:e})},C.setSelectedDate=function(e){this.setState({selectedDate:e})},C.setSelectedIndex=function(e){this.setState({selectedIndex:e})},C.componentDidMount=function(){var e=this,t=(0,a.useBackend)(this.context).data.dates,n=void 0===t?[]:t;n&&(n.forEach((function(t){return e.dateChoices.push((0,d["default"])(t,"mmmm yyyy",!0))})),this.setSelectedDate(this.dateChoices[0]),this.getData(n[0]))},C.render=function(){var e=this,t=this.state,n=t.data,l=t.selectedDate,s=t.selectedIndex,u=(0,a.useBackend)(this.context).data.dates,m=this.dateChoices,p=m.length>0&&(0,o.createComponentVNode)(2,c.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{className:"Changelog__Button",disabled:0===s,icon:"chevron-left",onClick:function(){var t=s-1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(m[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Dropdown,{displayText:l,options:m,onSelected:function(t){var n=m.indexOf(t);return e.setData("Loading changelog data..."),e.setSelectedIndex(n),e.setSelectedDate(t),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[n])},selected:l,width:"150px"})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{className:"Changelog__Button",disabled:s===m.length-1,icon:"chevron-right",onClick:function(){var t=s+1;return e.setData("Loading changelog data..."),e.setSelectedIndex(t),e.setSelectedDate(m[t]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),e.getData(u[t])}})})]}),C=(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createVNode)(1,"h1",null,"Citadel Station 13 RP",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Thanks to: ",16),(0,o.createTextVNode)("Virgo, Polaris, Baystation 12, , /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original Space Station 13 developers and the countless others who have contributed to the game, issue tracker or wiki over the years.")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Current project maintainers can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/orgs/Citadel-Station-13/people"}),(0,o.createTextVNode)(", recent GitHub contributors can be found "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://github.com/Citadel-Station-13/Citadel-Station-13/pulse/monthly"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("You can also join our discord "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://discord.gg/citadelstation"}),(0,o.createTextVNode)(".")],0),p]}),f=(0,o.createComponentVNode)(2,c.Section,{children:[p,(0,o.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Coders: ",16),(0,o.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,o.createVNode)(1,"p",null,[(0,o.createVNode)(1,"b",null,"Spriters: ",16),(0,o.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Citadel Station 13 RP is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,o.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,o.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Changelog#April_2010"}),(0,o.createTextVNode)(".")],0),(0,o.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,o.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,o.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,o.createVNode)(1,"h3",null,"Citadel Station 13 RP License",16),(0,o.createVNode)(1,"p",null,["All code after ",(0,o.createVNode)(1,"a",null,"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST",16,{href:"https://github.com/tgstation/tgstation/commit/333c566b88108de218d882840e61928a9b759d8f"})," is licensed under ",(0,o.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,o.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,o.createVNode)(1,"a",null,"LICENSE",16,{href:"https://github.com/tgstation/tgstation/blob/master/LICENSE"})," and ",(0,o.createVNode)(1,"a",null,"GPLv3.txt",16,{href:"https://github.com/tgstation/tgstation/blob/master/GPLv3.txt"})," for more details."],0),(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("The TGS DMAPI API is licensed as a subproject under the MIT license."),(0,o.createTextVNode)(" See the footer of "),(0,o.createVNode)(1,"a",null,"code/__DEFINES/tgs.dm",16,{href:"https://github.com/tgstation/tgstation/blob/master/code/__DEFINES/tgs.dm"}),(0,o.createTextVNode)(" and "),(0,o.createVNode)(1,"a",null,"code/modules/tgs/LICENSE",16,{href:"https://github.com/tgstation/tgstation/blob/master/code/modules/tgs/LICENSE"}),(0,o.createTextVNode)(" for the MIT license.")],0),(0,o.createVNode)(1,"p",null,["All assets including icons and sound are under a ",(0,o.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)]}),N="object"==typeof n&&Object.keys(n).length>0&&Object.entries(n).reverse().map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,c.Section,{title:(0,d["default"])(t,"d mmmm yyyy",!0),children:(0,o.createComponentVNode)(2,c.Box,{ml:3,children:Object.entries(n).map((function(e){var t=e[0],n=e[1];return(0,o.createFragment)([(0,o.createVNode)(1,"h4",null,[t,(0,o.createTextVNode)(" changed:")],0),(0,o.createComponentVNode)(2,c.Box,{ml:3,children:(0,o.createComponentVNode)(2,c.Table,{children:n.map((function(e){var t=Object.keys(e)[0];return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,o.createComponentVNode)(2,c.Icon,{color:h[t]?h[t].color:h.unknown.color,name:h[t]?h[t].icon:h.unknown.icon})}),(0,o.createComponentVNode)(2,c.Table.Cell,{className:"Changelog__Cell",children:e[t]})]},t+e[t])}))})})],4,t)}))})},t)}));return(0,o.createComponentVNode)(2,i.Window,{title:"Changelog",width:675,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[C,N,"string"==typeof n&&(0,o.createVNode)(1,"p",null,n,0),f]})})},u}(o.Component);t.Changelog=C},24370:function(e,t,n){"use strict";t.__esModule=!0,t.CharacterDirectory=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e){switch(e){case"Unset":return"label";case"Top":return"red";case"Switch":return"orange";case"Bottom":return"blue";case"No ERP":return"green"}};t.CharacterDirectory=function(e,t){var n=(0,r.useBackend)(t),i=n.act,s=n.data,u=s.personalVisibility,m=s.personalErpTag,p=s.personalTag,h=(0,r.useLocalState)(t,"overlay",null),C=h[0];h[1];return(0,o.createComponentVNode)(2,c.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:C&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:m,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:p,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,t){var n=(0,r.useLocalState)(t,"overlay",null),c=n[0],l=n[1];return(0,o.createComponentVNode)(2,a.Section,{title:c.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Species",children:(0,o.createComponentVNode)(2,a.Box,{children:c.species})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,a.Box,{p:1,backgroundColor:i(c.erptag),children:c.erptag})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,a.Box,{children:c.tag})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,a.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,a.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.flavor_text||"Unset."})})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.directory,d=(0,r.useLocalState)(t,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(t,"sortOrder","name")),p=m[0],h=(m[1],(0,r.useLocalState)(t,"overlay",null)),C=(h[0],h[1]);return(0,o.createComponentVNode)(2,a.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Refresh",onClick:function(){return c("refresh")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"species",children:"Species"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,t){var n=p?1:-1;return e[u].localeCompare(t[u])*n})).map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:i(e.erptag),children:[(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.species}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return C(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},t)}))]})})},s=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data,e.id),i=e.children,l=(0,r.useLocalState)(t,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(t,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{width:"100%",color:d!==c&&"transparent",onClick:function(){d===c?p(!m):(s(c),p(!0))},children:[i,d===c&&(0,o.createComponentVNode)(2,a.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},37786:function(e,t,n){"use strict";t.__esModule=!0,t.ChemAcclimator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ChemAcclimator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:320,height:271,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Acclimator",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperature",children:[l.chem_temp," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:l.target_temperature,unit:"K",width:"59px",minValue:0,maxValue:1e3,step:5,stepPixelSize:2,onChange:function(e,t){return i("set_target_temperature",{temperature:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Acceptable Temp. Difference",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:l.allowed_temperature_difference,unit:"K",width:"59px",minValue:1,maxValue:l.target_temperature,stepPixelSize:2,onChange:function(e,t){i("set_allowed_temperature_difference",{temperature:t})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:l.enabled?"On":"Off",selected:l.enabled,onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:l.max_volume,unit:"u",width:"50px",minValue:l.reagent_volume,maxValue:200,step:2,stepPixelSize:2,onChange:function(e,t){return i("change_volume",{volume:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Operation",children:l.acclimate_state}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current State",children:l.emptying?"Emptying":"Filling"})]})})]})})}},53672:function(e,t,n){"use strict";t.__esModule=!0,t.ChemDebugSynthesizer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ChemDebugSynthesizer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.amount,s=l.purity,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.isBeakerLoaded,h=l.beakerContents,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.Window,{width:390,height:330,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Recipient",buttons:p?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return i("ejectBeaker")}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:d,unit:"u",minValue:1,maxValue:m,step:1,stepPixelSize:2,onChange:function(e,t){return i("amount",{amount:t})}}),(0,o.createComponentVNode)(2,a.NumberInput,{value:s,unit:"%",minValue:0,maxValue:120,step:1,stepPixelSize:2,onChange:function(e,t){return i("purity",{amount:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Input",onClick:function(){return i("input")}})],4):(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Create Beaker",onClick:function(){return i("makecup")}}),children:p?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," / "+m+" u"]}),C.length>0?(0,o.createComponentVNode)(2,a.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume," u"]},e.name)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Recipient Empty"})],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Recipient"})})})})}},68078:function(e,t,n){"use strict";t.__esModule=!0,t.ChemDispenser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(57361),i=n(2381),l=[5,10,20,30,40,60],d=[1,5,10];t.ChemDispenser=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.amount;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return c("amount",{amount:e})}})},t)}))})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,a.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,t){return c("amount",{amount:t})}})})]})})},u=function(e,t){for(var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,a.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return c("dispense",{reagent:e.id})}})},t)})),s.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})},m=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,h=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,a.Box,{children:[!!s&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:s,beakerContents:h,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{content:t,onClick:function(){return i("remove",{reagent:e.id,amount:t})}},n)})),(0,o.createComponentVNode)(2,a.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},2942:function(e,t,n){"use strict";t.__esModule=!0,t.ChemFilter=t.ChemFilterPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t).act,c=e.title,i=e.list,l=e.reagentName,d=e.onReagentInput,s=c.toLowerCase();return(0,o.createComponentVNode)(2,a.Section,{title:c,minHeight:"240px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Input,{placeholder:"Reagent",width:"140px",onInput:function(e,t){return d(t)}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",onClick:function(){return n("add",{which:s,name:l})}})],4),children:i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"minus",content:e,onClick:function(){return n("remove",{which:s,reagent:e})}})],4,e)}))})};t.ChemFilterPane=i;t.ChemFilter=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data),d=l.left,s=void 0===d?[]:d,u=l.right,m=void 0===u?[]:u,p=(0,r.useLocalState)(t,"leftName",""),h=p[0],C=p[1],f=(0,r.useLocalState)(t,"rightName",""),N=f[0],g=f[1];return(0,o.createComponentVNode)(2,c.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i,{title:"Left",list:s,reagentName:h,onReagentInput:function(e){return C(e)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i,{title:"Right",list:m,reagentName:N,onReagentInput:function(e){return g(e)}})})]})})})}},95348:function(e,t,n){"use strict";t.__esModule=!0,t.ChemHeater=void 0;var o=n(96323),r=n(97622),a=n(39646),c=n(31246),i=n(26949),l=n(84200),d=n(2381),s=n(57361);t.ChemHeater=function(e,t){var n=(0,c.useBackend)(t),u=n.act,m=n.data,p=m.targetTemp,h=m.isActive,C=m.isFlashing,f=m.currentpH,N=m.isBeakerLoaded,g=m.currentTemp,V=m.beakerCurrentVolume,b=m.beakerMaxVolume,v=m.acidicBufferVol,k=m.basicBufferVol,_=m.dispenseVolume,y=m.upgradeLevel,w=m.tutorialMessage,x=m.beakerContents,S=void 0===x?[]:x,B=m.activeReactions,I=void 0===B?[]:B;return(0,o.createComponentVNode)(2,d.Window,{width:330,height:w?680:350,children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"question",selected:w,content:"Help",left:-2,tooltip:"Guides you through a tutorial reaction!",onClick:function(){return u("help")}}),(0,o.createComponentVNode)(2,i.Button,{icon:h?"power-off":"times",selected:h,content:h?"On":"Off",onClick:function(){return u("power")}})]}),children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Heat"}),(0,o.createComponentVNode)(2,i.Table.Cell),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Buffers"}),(0,o.createComponentVNode)(2,i.Table.Cell),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.NumberInput,{width:"45px",unit:"u",step:1,stepPixelSize:3,value:_,minValue:1,maxValue:10,onDrag:function(e,t){return u("disp_vol",{target:t})}})})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:"Target:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,r.round)(p),minValue:0,maxValue:1e3,onDrag:function(e,t){return u("temperature",{target:t})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:"Acidic:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",disabled:!v,tooltip:"Inject",tooltipPosition:"left",onClick:function(){return u("acidBuffer",{target:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:l.COLORS.reagent.acidicbuffer,textAlign:"center",children:v+"u"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"upload",tooltip:"Draw all",tooltipPosition:"top",disabled:100===v,onClick:function(){return u("acidBuffer",{target:-100})}})})]}),(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:"Reading:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"default",children:(0,o.createComponentVNode)(2,i.Box,{width:"60px",textAlign:"right",children:N&&(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:g,format:function(e){return(0,r.toFixed)(e)+" K"}})||"\u2014"})}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,color:"label",children:"Basic:"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",tooltip:"Inject",tooltipPosition:"left",disabled:!k,onClick:function(){return u("basicBuffer",{target:1})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:l.COLORS.reagent.basicbuffer,textAlign:"center",children:k+"u"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"upload",tooltip:"Draw all",disabled:100===k,onClick:function(){return u("basicBuffer",{target:-100})}})})]})]})}),!!N&&(0,o.createComponentVNode)(2,i.Section,{title:"Reactions",buttons:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"label",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:f,format:function(e){return"pH: "+(0,r.round)(e,3)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:f,children:function(e,t){return(0,o.createComponentVNode)(2,i.RoundGauge,{size:1.6,value:t,minValue:0,maxValue:14,alertAfter:C,content:"test",format:function(e){return null},ranges:{red:[-.22,1.5],orange:[1.5,3],yellow:[3,4.5],olive:[4.5,5],good:[5,6],green:[6,8.5],teal:[8.5,9.5],blue:[9.5,11],purple:[11,12.5],violet:[12.5,14]}})}})})]}),children:0===I.length&&(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No active reactions."})||(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,color:"label",children:"Reaction"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,color:"label",children:y<4?"Status":"Reaction quality"}),(0,o.createComponentVNode)(2,i.Table.Cell,{bold:!0,color:"label",children:"Target"})]}),I.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{width:"60px",color:e.danger&&"red",children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"100px",pr:"10px",children:y<4&&(0,o.createComponentVNode)(2,i.Icon,{name:e.danger?"exclamation-triangle":"spinner",color:e.danger&&"red",spin:!e.danger,ml:2.5})||(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:e.quality,children:function(t,n){return(0,o.createComponentVNode)(2,i.RoundGauge,{size:1.3,value:n,minValue:0,maxValue:1,alertAfter:e.purityAlert,content:"test",format:function(e){return null},ml:5,ranges:{red:[0,e.minPure],orange:[e.minPure,e.inverse],yellow:[e.inverse,.8],green:[.8,1]}})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{width:"70px",children:y>2&&(0,o.createComponentVNode)(2,i.ProgressBar,{value:e.reactedVol,minValue:0,maxValue:e.targetVol,textAlign:"center",icon:e.overheat&&"thermometer-full",width:7,color:e.overheat?"red":"label",children:[e.targetVol,"u"]})||(0,o.createComponentVNode)(2,i.Box,{color:e.danger&&"red",ml:2,children:[e.targetVol,"u"]})})]},"reactions")})),(0,o.createComponentVNode)(2,i.Table.Row)]})}),w&&(0,o.createComponentVNode)(2,i.Section,{title:"Tutorial",preserveWhitespace:!0,children:[(0,o.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)("chem_help_advisor.gif"),width:"30px"}),w]}),(0,o.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:2,children:[V," / ",b," units"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",onClick:function(){return u("eject")}})],4),children:(0,o.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:N,beakerContents:S})})]})})}},45747:function(e,t,n){"use strict";t.__esModule=!0,t.ChemMaster=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(57361),l=n(84645),d=[1,5,10,30,60];t.ChemMaster=function(e,t){var n=(0,r.useBackend)(t).data,a=n.condi,i=n.beaker,d=n.beaker_reagents,p=void 0===d?[]:d,h=n.buffer_reagents,C=void 0===h?[]:h,f=n.mode;return(0,o.createComponentVNode)(2,c.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:C.length>0}),(0,o.createComponentVNode)(2,u,{mode:f,bufferReagents:C}),(0,o.createComponentVNode)(2,m,{isCondiment:a,bufferNonEmpty:C.length>0})]})]})};var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,s=(n.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return c("eject")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return c("eject")}});return(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,n){return(0,o.createComponentVNode)(2,a.Box,{mb:n<u.length-1&&"2px",children:[(0,o.createComponentVNode)(2,a.Button,{content:"Analyze",mb:"0",onClick:function(){return(0,l.modalOpen)(t,"analyze",{idx:n+1,beaker:1})}}),d.map((function(t,n){return(0,o.createComponentVNode)(2,a.Button,{content:t,mb:"0",onClick:function(){return c("add",{id:e.id,amount:t})}},n)})),(0,o.createComponentVNode)(2,a.Button,{content:"All",mb:"0",onClick:function(){return c("add",{id:e.id,amount:e.volume})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom..",mb:"0",onClick:function(){return(0,l.modalOpen)(t,"addcustom",{id:e.id})}})]})}}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},u=function(e,t){var n=(0,r.useBackend)(t).act,c=e.mode,s=e.bufferReagents,u=void 0===s?[]:s;return(0,o.createComponentVNode)(2,a.Section,{title:"Buffer",buttons:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Transferring to\xa0",(0,o.createComponentVNode)(2,a.Button,{icon:c?"flask":"trash",color:!c&&"bad",content:c?"Beaker":"Disposal",onClick:function(){return n("toggle")}})]}),children:u.length>0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,a.Box,{mb:r<u.length-1&&"2px",children:[(0,o.createComponentVNode)(2,a.Button,{content:"Analyze",mb:"0",onClick:function(){return(0,l.modalOpen)(t,"analyze",{idx:r+1,beaker:0})}}),d.map((function(t,r){return(0,o.createComponentVNode)(2,a.Button,{content:t,mb:"0",onClick:function(){return n("remove",{id:e.id,amount:t})}},r)})),(0,o.createComponentVNode)(2,a.Button,{content:"All",mb:"0",onClick:function(){return n("remove",{id:e.id,amount:e.volume})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom..",mb:"0",onClick:function(){return(0,l.modalOpen)(t,"removecustom",{id:e.id})}})]})}}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Buffer is empty."})})},m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return e.bufferNonEmpty?(0,o.createComponentVNode)(2,a.Section,{title:"Production",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.loaded_pill_bottle,icon:"eject",content:i.loaded_pill_bottle?i.loaded_pill_bottle_name+" ("+i.loaded_pill_bottle_contents_len+"/"+i.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return c("ejectp")}}),children:e.isCondiment?(0,o.createComponentVNode)(2,h):(0,o.createComponentVNode)(2,p)}):(0,o.createComponentVNode)(2,a.Section,{title:"Production",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.loaded_pill_bottle,icon:"eject",content:i.loaded_pill_bottle?i.loaded_pill_bottle_name+" ("+i.loaded_pill_bottle_contents_len+"/"+i.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return c("ejectp")}}),children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"tint-slash",mt:"0.5rem",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"Buffer is empty."]})})})},p=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data);return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pills",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"circle",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_pill")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-circle",content:"Multiple",mb:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_pill_multiple")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return(0,l.modalOpen)(t,"change_pill_style")},children:[(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(pill"+c.pillsprite+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Patches",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"square",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_patch")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,l.modalOpen)(t,"create_patch_multiple")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lollipops",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"square",content:"One (20u max)",mr:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_lollipop")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,l.modalOpen)(t,"create_lollipop_multiple")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autoinjectors",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"square",content:"One (5u max)",mr:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_autoinjector")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,l.modalOpen)(t,"create_autoinjector_multiple")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bottle",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"wine-bottle",content:"Create bottle (60u max)",mr:"0.5rem",mb:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_bottle")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,l.modalOpen)(t,"create_bottle_multiple")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{mb:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"change_bottle_style")},children:[(0,o.createVNode)(1,"div",null,null,1,{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(bottle-"+c.bottlesprite+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]})]})},h=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){return(0,l.modalOpen)(t,"create_condi_pack")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"wine-bottle",content:"Create bottle (60u max)",mb:"0",onClick:function(){return n("create_condi_bottle")}})],4)};(0,l.modalRegisterBodyOverride)("analyze",(function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.args.analysis;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:i.condi?"Condiment Analysis":"Reagent Analysis",children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(l.desc||"").length>0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,a.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return c("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},56984:function(e,t,n){"use strict";t.__esModule=!0,t.ChemPress=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ChemPress=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.current_volume,s=l.product_name,u=l.pill_style,m=l.pill_styles,p=void 0===m?[]:m,h=l.product,C=l.min_volume,f=l.max_volume,N=l.patch_style,g=l.patch_styles,V=void 0===g?[]:g;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:227,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Product",children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Pills",checked:"pill"===h,onClick:function(){return i("change_product",{product:"pill"})}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Patches",checked:"patch"===h,onClick:function(){return i("change_product",{product:"patch"})}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Bottles",checked:"bottle"===h,onClick:function(){return i("change_product",{product:"bottle"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:d,unit:"u",width:"43px",minValue:C,maxValue:f,step:1,stepPixelSize:2,onChange:function(e,t){return i("change_current_volume",{volume:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:[(0,o.createComponentVNode)(2,a.Input,{value:s,placeholder:s,onChange:function(e,t){return i("change_product_name",{name:t})}}),(0,o.createComponentVNode)(2,a.Box,{as:"span",children:h})]}),"pill"===h&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Style",children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{width:"30px",selected:e.id===u,textAlign:"center",color:"transparent",onClick:function(){return i("change_pill_style",{id:e.id})},children:(0,o.createComponentVNode)(2,a.Box,{mx:-1,className:e.class_name})},e.id)}))}),"patch"===h&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Style",children:V.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.style===N,textAlign:"center",color:"transparent",onClick:function(){return i("change_patch_style",{patch_style:e.style})},children:(0,o.createComponentVNode)(2,a.Box,{mb:0,mt:1,className:e.class_name})},e.style)}))})]})})})})}},45567:function(e,t,n){"use strict";t.__esModule=!0,t.ChemReactionChamber=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(97622);t.ChemReactionChamber=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=(0,r.useLocalState)(t,"reagentName",""),u=s[0],m=s[1],p=(0,r.useLocalState)(t,"reagentQuantity",1),h=p[0],C=p[1],f=d.emptying,N=d.temperature,g=d.ph,V=d.targetTemp,b=d.isReacting,v=d.reagentAcidic,k=d.reagentAlkaline,_=d.reagents||[];return(0,o.createComponentVNode)(2,c.Window,{width:290,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Conditions",buttons:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.3,children:"Target:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,i.round)(V),minValue:0,maxValue:1e3,onDrag:function(e,t){return l("temperature",{target:t})}})})]}),children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"label",children:"Current Temperature:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N,format:function(e){return(0,i.toFixed)(e)+" K"}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.RoundGauge,{value:g,minValue:0,maxValue:14,format:function(){return null},position:"absolute",size:1.5,top:.5,right:.5,ranges:{red:[-.22,1.5],orange:[1.5,3],yellow:[3,4.5],olive:[4.5,5],good:[5,6],green:[6,8.5],teal:[8.5,9.5],blue:[9.5,11],purple:[11,12.5],violet:[12.5,14]}})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"label",children:"ph:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:15,children:g}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:1,mb:-.5,children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"question",tooltip:"In chemistry, pH is a scale used to specify\nthe acidity or basicity of an aqueous solution.\nAcidic solutions are measured to have lower\npH values than basic or alkaline solutions.\nThe pH scale is logarithmic and inversely\nindicates the concentration of hydrogen ions\nin the solution.",tooltipPosition:"bottom-start"})})]})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Settings",fill:!0,scrollable:!0,buttons:b&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:"purple",children:"Reacting"})||(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",inline:!0,bold:!0,color:f?"bad":"good",children:f?"Emptying":"Filling"}),children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Acidic pH limit",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:v,minValue:-1e3,maxValue:1e3,step:1,stepPixelSize:3,width:"39px",onDrag:function(e,t){return l("acidic",{target:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Alkaline pH limit",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:k,minValue:-1e3,maxValue:1e3,step:1,stepPixelSize:3,width:"39px",onDrag:function(e,t){return l("alkaline",{target:t})}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,mr:1})]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:"",placeholder:"Reagent Name",onInput:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:h,minValue:1,maxValue:100,step:1,stepPixelSize:3,width:"39px",onDrag:function(e,t){return C(t)}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,mr:1})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return l("add",{chem:u,amount:h})}})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:_.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.25,textColor:"label",children:e.name+":"}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.25,grow:!0,children:e.required_reagent}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"minus",color:"bad",onClick:function(){return l("remove",{chem:e.name})}})})]})},e)}))})})]})})})]})})})}},61889:function(e,t,n){"use strict";t.__esModule=!0,t.ChemRecipeDebug=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(57361);t.ChemRecipeDebug=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.targetTemp,m=s.isActive,p=s.isFlashing,h=s.currentTemp,C=s.currentpH,f=s.forcepH,N=s.forceTemp,g=s.targetVol,V=s.targatpH,b=s.processing,v=s.processAll,k=s.index,_=s.endIndex,y=s.beakerSpawn,w=s.minTemp,x=s.editRecipeName,S=s.editRecipeCold,B=s.editRecipe,I=void 0===B?[]:B,L=s.chamberContents,T=void 0===L?[]:L,A=s.activeReactions,D=void 0===A?[]:A,M=s.queuedReactions,E=void 0===M?[]:M;return(0,o.createComponentVNode)(2,i.Window,{width:450,height:850,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:y?"power-off":"times",selected:y,content:"Spawn beaker",onClick:function(){return d("beakerSpawn")}}),(0,o.createComponentVNode)(2,c.Button,{icon:v?"power-off":"times",selected:v,content:"All",onClick:function(){return d("all")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reactions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return d("setTargetList")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Queued",children:v&&(0,o.createComponentVNode)(2,c.Box,{children:"All"})||(0,o.createComponentVNode)(2,c.Box,{children:E.length&&E.map((function(e){return e.name+", "}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temp",children:[h,"K",(0,o.createComponentVNode)(2,c.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,r.round)(u),minValue:0,maxValue:1e3,onDrag:function(e,t){return d("temperature",{target:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:N?"power-off":"times",selected:N,content:"Force",onClick:function(){return d("forceTemp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:w?"power-off":"times",selected:w,content:"MinTemp",onClick:function(){return d("minTemp")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vol multi",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"65px",unit:"x",step:1,stepPixelSize:3,value:(0,r.round)(g),minValue:1,maxValue:200,onDrag:function(e,t){return d("vol",{target:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"pH",children:[C,(0,o.createComponentVNode)(2,c.NumberInput,{width:"65px",step:.1,stepPixelSize:3,value:V,minValue:0,maxValue:14,onDrag:function(e,t){return d("pH",{target:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:f?"power-off":"times",selected:f,content:"Force",onClick:function(){return d("forcepH")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Index",children:[k," of ",_]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Start",children:[(0,o.createComponentVNode)(2,c.Button,{icon:b?"power-off":"times",selected:!!b,content:"Start",onClick:function(){return d("start")}}),(0,o.createComponentVNode)(2,c.Button,{icon:b?"times":"power-off",color:"red",content:"Stop",onClick:function(){return d("stop")}})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipe edit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:x||"lookup",children:(0,o.createComponentVNode)(2,c.Button,{icon:"flask",color:"purple",content:"Select recipe",onClick:function(){return d("setEdit")}})}),!!I&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"is_cold_recipe",children:(0,o.createComponentVNode)(2,c.Button,{icon:S?"smile":"times",color:S?"green":"red",content:"Cold?",onClick:function(){return d("updateVar",{type:entry.name,target:value})}})}),I.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"65px",step:1,stepPixelSize:3,value:e["var"],minValue:-9999,maxValue:9999,onDrag:function(t,n){return d("updateVar",{type:e.name,target:n})}})},e.name)}))],0),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Export",children:(0,o.createComponentVNode)(2,c.Button,{icon:"save",color:"green",content:"export",onClick:function(){return d("export")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Reactions",buttons:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{color:"label",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:C,format:function(e){return"pH: "+(0,r.round)(e,3)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:C,children:function(e,t){return(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.6,value:t,minValue:0,maxValue:14,alertAfter:p,content:"test",format:function(e){return null},ranges:{red:[-.22,1.5],orange:[1.5,3],yellow:[3,4.5],olive:[4.5,5],good:[5,6],green:[6,8.5],teal:[8.5,9.5],blue:[9.5,11],purple:[11,12.5],violet:[12.5,14]}})}})})]}),children:0===D.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No active reactions."})||(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:"label",children:"Reaction"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:"label",children:"Reaction quality"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:"label",children:"Target"})]}),D&&D.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{width:"60px",color:e.danger&&"red",children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{width:"100px",pr:"10px",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.quality,children:function(t,n){return(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.3,value:n,minValue:0,maxValue:1,alertAfter:e.purityAlert,content:"test",format:function(e){return null},ml:5,ranges:{red:[0,e.minPure],orange:[e.minPure,e.inverse],yellow:[e.inverse,.8],green:[.8,1]}})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{width:"70px",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:e.reactedVol,minValue:0,maxValue:e.targetVol,textAlign:"center",icon:e.overheat&&"thermometer-full",width:7,color:e.overheat?"red":"label",children:[e.targetVol,"u"]})})]},"reactions")})),(0,o.createComponentVNode)(2,c.Table.Row)]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chamber",buttons:(0,o.createComponentVNode)(2,c.Box,{children:m?"Reacting":"Waiting"}),children:T.length&&(0,o.createComponentVNode)(2,l.BeakerContents,{beakerLoaded:!0,beakerContents:T})||(0,o.createComponentVNode)(2,c.Box,{children:"Nothing"})})]})})}},28368:function(e,t,n){"use strict";t.__esModule=!0,t.ChemSplitter=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.ChemSplitter=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.straight,u=d.side,m=d.max_transfer;return(0,o.createComponentVNode)(2,i.Window,{width:220,height:105,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Straight",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:s,unit:"u",width:"55px",minValue:1,maxValue:m,format:function(e){return(0,r.toFixed)(e,2)},step:.05,stepPixelSize:4,onChange:function(e,t){return l("set_amount",{target:"straight",amount:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Side",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:u,unit:"u",width:"55px",minValue:1,maxValue:m,format:function(e){return(0,r.toFixed)(e,2)},step:.05,stepPixelSize:4,onChange:function(e,t){return l("set_amount",{target:"side",amount:t})}})})]})})})})}},38654:function(e,t,n){"use strict";t.__esModule=!0,t.ChemSynthesizer=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.ChemSynthesizer=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.amount,u=d.current_reagent,m=d.chemicals,p=void 0===m?[]:m,h=d.possible_amounts,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:375,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:(0,r.toFixed)(e,0),selected:e===s,onClick:function(){return l("amount",{target:e})}},(0,r.toFixed)(e,0))}))}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"tint",content:e.title,width:"129px",selected:e.id===u,onClick:function(){return l("select",{reagent:e.id})}},e.id)}))})]})})})}},90424:function(e,t,n){"use strict";t.__esModule=!0,t.CircuitAccessChecker=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949),i=n(29854);t.CircuitAccessChecker=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.oneAccess,u=d.regions||[],m=d.accesses||[];return(0,o.createComponentVNode)(2,a.Window,{width:420,height:360,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Required",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"unlock":"lock",content:s?"One":"All",onClick:function(){return l("one_access")}})})}),(0,o.createComponentVNode)(2,i.AccessConfig,{accesses:u,selectedList:m,accessMod:function(e){return l("set",{access:e})},grantAll:function(){return l("grant_all")},denyAll:function(){return l("clear_all")},grantDep:function(e){return l("grant_region",{region:e})},denyDep:function(e){return l("deny_region",{region:e})}})]})})}},65422:function(e,t,n){"use strict";t.__esModule=!0,t.CircuitAdminPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CircuitAdminPanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"Circuit Admin Panel",width:1200,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Circuit name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Creator"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),l.circuits.map((function(e){var t=function(t){return function(){i(t,{circuit:e.ref})}};return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.creator}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:t("follow_circuit"),children:"Follow"}),(0,o.createComponentVNode)(2,a.Button,{onClick:t("open_circuit"),children:"Open"}),(0,o.createComponentVNode)(2,a.Button,{onClick:t("vv_circuit"),children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:t("save_circuit"),children:"Save"}),(0,o.createComponentVNode)(2,a.Button,{onClick:t("duplicate_circuit"),children:"Duplicate"}),!!e.has_inserter&&(0,o.createComponentVNode)(2,a.Button,{onClick:t("open_player_panel"),children:"Player Panel"})]})]},e.ref)}))]})})})}},82268:function(e,t,n){"use strict";t.__esModule=!0,t.CircuitModule=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["onRemove","onEnter","onSetType","name","datatype","datatypeOptions"];t.CircuitModule=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.input_ports,u=d.output_ports,m=d.global_port_types;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"View Internal Circuit",textAlign:"center",fluid:!0,onClick:function(){return i("open_internal_circuit")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Section,{title:"Input Ports",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,l,{name:e.name,datatype:e.type,datatypeOptions:m,onRemove:function(){return i("remove_input_port",{port_id:t+1})},onSetType:function(e){return i("set_port_type",{port_id:t+1,is_input:!0,port_type:e})},onEnter:function(e,n){return i("set_port_name",{port_id:t+1,is_input:!0,port_name:n})}},t)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Add Input Port",color:"good",icon:"plus",onClick:function(){return i("add_input_port")}})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Section,{title:"Output Ports",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[u.map((function(e,t){return(0,o.createComponentVNode)(2,l,{name:e.name,datatype:e.type,datatypeOptions:m,onRemove:function(){return i("remove_output_port",{port_id:t+1})},onSetType:function(e){return i("set_port_type",{port_id:t+1,is_input:!1,port_type:e})},onEnter:function(e,n){return i("set_port_name",{port_id:t+1,is_input:!1,port_name:n})}},t)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Add Output Port",color:"good",icon:"plus",onClick:function(){return i("add_output_port")}})})]})})})]})})]})})})};var l=function(e,t){var n=e.onRemove,r=e.onEnter,c=e.onSetType,l=e.name,d=e.datatype,s=e.datatypeOptions,u=void 0===s?[]:s,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Stack.Item,Object.assign({},m,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name",value:l,onChange:r,fluid:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:d,options:u,onSelected:c})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:n})})]})})))}},71569:function(e,t,n){"use strict";t.__esModule=!0,t.CircuitSignalHandler=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["onRemove","onEnter","onSetOption","name","current_option","options"];function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function i(t){var n;(n=e.call(this,t)||this).bitflags=void 0,n.state={signal_id:"signal_id",responseList:[],parameterList:[],global:!1},n.bitflags={};for(var o=0;o<24;o++)n.bitflags[1<<o]="Flag "+(o+1);return n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i.prototype.render=function(){var e=this,t=(0,r.useBackend)(this.context),n=t.act,i=t.data,l=this.state,d=l.responseList,u=l.parameterList,m=l.signal_id,p=l.global,h=i.global_port_types;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Signal ID",value:m,fluid:!0,onChange:function(t,n){return e.setState({signal_id:n})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,content:"Global",onClick:function(t){return e.setState({global:!p})}})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Responses",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[d.map((function(t,n){return(0,o.createComponentVNode)(2,s,{name:t.name,current_option:e.bitflags[t.bitflag],onRemove:function(){d.splice(n,1),e.setState({parameterList:u})},onEnter:function(t,o){d[n].name=o,e.setState({parameterList:u})}},n)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Add Response",color:"good",icon:"plus",onClick:function(){var t=Object.keys(e.bitflags);d.push({name:"Response",bitflag:t[d.length]}),e.setState({parameterList:u})}})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Parameters",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[u.map((function(t,n){return(0,o.createComponentVNode)(2,s,{name:t.name,current_option:t.datatype,options:h,onRemove:function(){u.splice(n,1),e.setState({parameterList:u})},onSetOption:function(t){u[n].datatype=t,e.setState({parameterList:u})},onEnter:function(t,o){u[n].name=o,e.setState({parameterList:u})}},n)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Add Parameter",color:"good",icon:"plus",onClick:function(){u.push({name:"Parameter",datatype:h[0]}),e.setState({parameterList:u})}})})]})})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Submit",textAlign:"center",fluid:!0,onClick:function(){return n("add_new_id",{signal_id:m,responses:d,parameters:u,global:p})}})})]})})})},i}(o.Component);t.CircuitSignalHandler=d;var s=function(e,t){var n=e.onRemove,r=e.onEnter,c=e.onSetOption,l=e.name,d=e.current_option,s=e.options,u=void 0===s?[]:s,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Stack.Item,Object.assign({},m,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name",value:l,onChange:r,fluid:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:u.length&&(0,o.createComponentVNode)(2,a.Dropdown,{displayText:d,options:u,onSelected:c})||(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",py:"2px",px:2,children:d})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:n})})]})})))}},24160:function(e,t,n){"use strict";t.__esModule=!0,t.CivCargoHoldTerminal=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CivCargoHoldTerminal=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.pad,m=s.sending,p=s.status_report,h=s.id_inserted,C=s.id_bounty_info,f=s.picking;return(0,o.createComponentVNode)(2,c.Window,{width:580,height:375,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Flex,{children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{color:h?"blue":"default",children:h?"Welcome valued employee.":"To begin, insert your ID into the console."}),(0,o.createComponentVNode)(2,a.Section,{title:"Cargo Pad",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"sync",tooltip:"Check Contents",disabled:!u||!h,onClick:function(){return d("recalc")}}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"times":"arrow-up",tooltip:m?"Stop Sending":"Send Goods",selected:m,disabled:!u||!h,onClick:function(){return d(m?"stop":"send")}}),(0,o.createComponentVNode)(2,a.Button,{icon:C?"recycle":"pen",color:C?"green":"default",tooltip:C?"Replace Bounty":"New Bounty",disabled:!h,onClick:function(){return d("bounty")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Eject ID",disabled:!h,onClick:function(){return d("eject")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:u?"good":"bad",children:u?"Online":"Not Found"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cargo Report",children:p})]})}),f?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i)]})})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data,c=n.id_bounty_info,i=n.id_bounty_value,l=n.id_bounty_num;return(0,o.createComponentVNode)(2,a.Section,{title:"Bounty Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:c||"N/A, please add a new bounty."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Quantity",children:c?l:"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Value",children:c?i:"N/A"})]})})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.id_bounty_names,d=i.id_bounty_values;return(0,o.createComponentVNode)(2,a.Section,{title:"Please Select a Bounty:",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",wrap:!0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:0,grow:.5,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",content:l[0],onClick:function(){return c("pick",{value:1})},children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"14px",children:["Payout: ",d[0]," cr"]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:0,grow:.5,px:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",content:l[1],onClick:function(){return c("pick",{value:2})},children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"14px",children:["Payout: ",d[1]," cr"]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:0,grow:.5,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",content:l[2],onClick:function(){return c("pick",{value:3})},children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"14px",children:["Payout: ",d[2]," cr"]})})})]})})}},80422:function(e,t,n){"use strict";t.__esModule=!0,t.ClawMachine=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ClawMachine=function(e,t){var n,i=(0,r.useBackend)(t),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?n=(0,o.createComponentVNode)(2,a.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?n=(0,o.createComponentVNode)(2,a.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(n=(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,a.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,c.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,n,0)})}},11198:function(e,t,n){"use strict";t.__esModule=!0,t.Cleanbot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Cleanbot=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,h=(l.patrol,l.vocal),C=l.wet_floors,f=l.spray_blood,N=l.rgbpanel,g=l.red_switch,V=l.green_switch,b=l.blue_switch;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("vocal")},children:h?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,a.Section,{title:"Maintenance Panel",children:N&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,a.Button,{fontSize:5.39,icon:V?"toggle-on":"toggle-off",backgroundColor:V?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,a.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:C,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"brown",selected:f,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:f?"Yes":"No"})})]})})})||null]})})}},86500:function(e,t,n){"use strict";t.__esModule=!0,t.Clipboard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Clipboard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.pen,s=l.integrated_pen,u=l.top_paper,m=l.top_paper_ref,p=l.paper,h=l.paper_ref;return(0,o.createComponentVNode)(2,c.Window,{title:"Clipboard",width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:"#704D25",scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:d?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pen",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("remove_pen")}}),children:d})}):s?(0,o.createComponentVNode)(2,a.Box,{color:"white",align:"center",children:"There is a pen integrated into the clipboard's clip."}):(0,o.createComponentVNode)(2,a.Box,{color:"white",align:"center",children:"No pen attached!"})}),(0,o.createComponentVNode)(2,a.Divider),u?(0,o.createComponentVNode)(2,a.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"center",grow:1,children:(0,o.createComponentVNode)(2,a.Box,{align:"center",children:u})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:d?"pen":"eye",onClick:function(){return i("edit_paper",{ref:m})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"tag",onClick:function(){return i("rename_paper",{ref:m})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("remove_paper",{ref:m})}})]})]}):(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"white",align:"center",children:"The clipboard is empty!"})}),p.length>0&&(0,o.createComponentVNode)(2,a.Divider),p.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},mb:.5,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-up",color:"transparent",iconColor:"black",onClick:function(){return i("move_top_paper",{ref:h[t]})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{align:"center",grow:1,children:(0,o.createComponentVNode)(2,a.Box,{align:"center",children:e})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:d?"pen":"eye",onClick:function(){return i("edit_paper",{ref:h[t]})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"tag",onClick:function(){return i("rename_paper",{ref:h[t]})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("remove_paper",{ref:h[t]})}})]})]},h[t])}))]})})}},4536:function(e,t,n){"use strict";t.__esModule=!0,t.CSTutorial=t.CSScripture=t.ClockworkSlab=void 0;for(var o=n(96323),r=n(31246),a=n(1397),c=n(26949),i=n(2381),l="",d=0;d<Math.min(100*Math.random());d++)l+="HONOR RATVAR ";t.ClockworkSlab=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,m=d.recollection,p=void 0===m||m,h=d.scripture,C=void 0===h?{}:h,f=d.tier_infos,N=void 0===f?{}:f,g=d.power,V=void 0===g?"0 W":g,b=(0,r.useSharedState)(t,"tab","Application"),v=b[0],k=b[1],_=C&&C[v]||[],y=N&&N[v]||{};return(0,o.createComponentVNode)(2,i.Window,{theme:"clockcult",width:800,height:420,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:p?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,c.Section,{title:"Power",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"book",tooltip:"Tutorial",tooltipPosition:"left",onClick:function(){return l("toggle")},children:"Recollection"}),children:[(0,o.createVNode)(1,"b",null,V,0)," power is available for scripture and other consumers.",(0,o.createComponentVNode)(2,c.Section,{level:2,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:(0,a.map)((function(e,t){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:v===t,onClick:function(){return k(t)},children:t},t)}))(C)}),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#B18B25",bold:!!y.ready,italic:!y.ready,children:y.ready?"These scriptures are permanently unlocked.":y.requirement}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#DAAA18",children:["Scriptures in ",(0,o.createVNode)(1,"b",null,"yellow",16)," are related to construction and building."]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#6E001A",children:["Scriptures in ",(0,o.createVNode)(1,"b",null,"red",16)," are related to attacking and offense."]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#1E8CE1",children:["Scriptures in ",(0,o.createVNode)(1,"b",null,"blue",16)," are related to healing and defense."]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#AF0AAF",children:["Scriptures in ",(0,o.createVNode)(1,"b",null,"purple",16)," are niche but still important!"]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#DAAA18",italic:!0,children:"Scriptures with italicized names are important to success."}),(0,o.createComponentVNode)(2,c.Divider),(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,s,{scriptInTab:_})})]})]})})})};var s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.power_unformatted,l=void 0===i?0:i,d=e.scriptInTab;return null==d?void 0:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{italic:!!e.important,color:e.fontcolor,children:[(0,o.createVNode)(1,"b",null,e.name,0),"\n "+e.descname+"\n "+(e.invokers||"")+"\n "]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.required_unformatted>=l,tooltip:e.tip,tooltipPosition:"left",onClick:function(){return a("recite",{script:e.type})},children:"Recite "+e.required})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!e.quickbind,onClick:function(){return a("bind",{script:e.type})},children:e.bound?"Unbind "+e.bound:"Quickbind"})})]},e.name)}))};t.CSScripture=s;var u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data,d=i.recollection_categories,s=void 0===d?[]:d,u=i.rec_section,m=void 0===u?null:u,p=i.rec_binds,h=void 0===p?[]:p,C=i.HONOR_RATVAR,f=void 0!==C&&C;return(0,o.createComponentVNode)(2,c.Section,{title:"Recollection",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",tooltipPosition:"left",onClick:function(){return a("toggle")},children:"Recital"}),children:[(0,o.createComponentVNode)(2,c.Box,{children:f?(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#BE8700",fontSize:2,bold:!0,children:l}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#BE8700",fontSize:2,bold:!0,children:"Chetr nyy hagehguf naq ubabe Ratvar."}),(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"NOTICE: This information is out of date. Read the Ark & You primer in your backpack or read the wiki page for current info."}),(0,o.createTextVNode)("These pages serve as the archives of Ratvar, the Clockwork Justiciar. This section of your slab has information on being as a Servant, advice for what to do next, and pointers for serving the master well. You should recommended that you check this area for help if you get stuck or need guidance on what to do next."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Disclaimer: Many objects, terms, and phrases, such as Servant, Cache, and Slab, are capitalized like proper nouns. This is a quirk of the Ratvarian language do not let it confuse you! You are free to use the names in pronoun form when speaking in normal languages."})],4)}),null==s?void 0:s.map((function(e){return(0,o.createFragment)([(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{tooltip:e.desc,tooltipPosition:"right",onClick:function(){return a("rec_category",{category:e.name})},children:e.name})],4,e.name)})),(0,o.createComponentVNode)(2,c.Divider),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#BE8700",fontSize:2.3,children:null!=m&&m.title?m.title:"500 Slab Internal archives not found."}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),null!=m&&m.info?m.info:"One of the cogscarabs must've misplaced this section."]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Divider),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{as:"span",textColor:"#BE8700",fontSize:2.3,children:"Quickbound Scripture"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{as:"span",italic:!0,children:"You can have up to five scriptures bound to action buttons for easy use."}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),null==h?void 0:h.map((function(e){return(0,o.createFragment)([(0,o.createTextVNode)("A "),(0,o.createVNode)(1,"b",null,"Quickbind",16),(0,o.createTextVNode)(" slot ("),h.indexOf(e)+1,(0,o.createTextVNode)("), currently set to\xa0"),(0,o.createVNode)(1,"span",null,null!=e&&e.name?e.name:"None",0,{style:"color:"+(e?e.color:"#BE8700")}),(0,o.createTextVNode)("."),(0,o.createVNode)(1,"br")],0,e.name?e.name:"none")}))]})]})};t.CSTutorial=u},6542:function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(84200),l=n(84645),d=n(2381),s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,h=d.strucenzymes,C=m.split(" - ");return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Damage",children:C.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:C[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,c.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:C[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,c.Box,{color:i.COLORS.damageType.brute,inline:!0,children:C[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,c.Box,{color:i.COLORS.damageType.burn,inline:!0,children:C[1]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,c.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.menu;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,t){var n,r=(0,a.useBackend)(t).data.menu;return 1===r?n=(0,o.createComponentVNode)(2,p):2===r&&(n=(0,o.createComponentVNode)(2,h)),n},p=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,h=l.scan_mode,C=l.numberofpods,f=l.pods,N=l.selected_pod,g=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,selected:g,icon:g?"toggle-on":"toggle-off",content:g?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:g||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,c.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"brain":"male",content:h?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Pods",level:"2",children:C?f.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,c.Button,{selected:N===e.pod,icon:N===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,c.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["Pod #",t+1]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.records;return i.length?(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,t){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},t)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},C=function(e,t){var n,r=(0,a.useBackend)(t),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})))}},f=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,c.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"None connected!"})})]})})}},20825:function(e,t,n){"use strict";t.__esModule=!0,t.CodexGigas=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["Dark","Hellish","Fallen","Fiery","Sinful","Blood","Fluffy"],l=["Lord","Prelate","Count","Viscount","Vizier","Elder","Adept"],d=["hal","ve","odr","neit","ci","quon","mya","folth","wren","geyr","hil","niet","twou","phi","coa"],s=["the Red","the Soulless","the Master","the Lord of all things","Jr."];t.CodexGigas=function(e,t){var n=(0,r.useBackend)(t),u=n.act,m=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:450,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[m.name,(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prefix",children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:1!==m.currentSection,onClick:function(){return u(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:m.currentSection>2,onClick:function(){return u(e+" ")}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:m.currentSection>4,onClick:function(){return u(e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suffix",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,disabled:4!==m.currentSection,onClick:function(){return u(" "+e)}},e.toLowerCase())}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submit",children:(0,o.createComponentVNode)(2,a.Button,{content:"Search",disabled:m.currentSection<4,onClick:function(){return u("search")}})})]})]})})})}},32733:function(e,t,n){"use strict";t.__esModule=!0,t.ColorBlindTester=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ColorBlindTester=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.details);return(0,o.createComponentVNode)(2,c.Window,{title:"Color Blindness Testing",width:600,height:515,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{children:"HEY FUCKOS, these filters are based off VERY OLD and VERY FLAWED matrixes."}),(0,o.createComponentVNode)(2,a.Box,{children:"There is NO GOOD WAY to do proper color blind simulation in BYOND, because we have no way to extract the gamma of a pixel without iterating all pixels on the screen, which we need to do to properly correct for the human eye."}),(0,o.createComponentVNode)(2,a.Box,{children:"Because of this, this simulation is very imperfect. You will notice things are much more bright then they should be. This is a direct result of not being able to correct for gamma."}),(0,o.createComponentVNode)(2,a.Box,{children:"This tool exists so we have at least some form of baseline for accessability, it is nowhere near gospel."}),(0,o.createComponentVNode)(2,a.Box,{children:"If I find you being a dick to someone over this I will clobber you with a crowbar"})]}),(0,o.createComponentVNode)(2,a.Section,{children:Object.keys(l).map((function(e){return(0,o.createComponentVNode)(2,i,{category:e},e)}))})]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.category,d=i.details,s=i.selected;return l!==s?(0,o.createComponentVNode)(2,a.Section,{title:l,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"Select",onClick:function(){return c("set_matrix",{name:l})}}),children:d[l]},l):(0,o.createComponentVNode)(2,a.Section,{title:l,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Clear",color:"bad",onClick:function(){return c("clear_matrix")}}),children:d[l]},l)}},27707:function(e,t,n){"use strict";t.__esModule=!0,t.ColorMate=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ColorMate=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,c.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,a.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Items",children:d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:["#",t+1,": ",e]},t)}))})],4)||(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No items inserted."})})})})}},47074:function(e,t,n){"use strict";t.__esModule=!0,t.ColorMatrixEditor=void 0;var o=n(96323),r=n(31246),a=n(97622),c=n(26949),i=n(2381);t.ColorMatrixEditor=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.mapRef,u=d.currentColor,m=u[0],p=(m[0],m[1],m[2],m[3],u[1]),h=(p[0],p[1],p[2],p[3],u[2]),C=(h[0],h[1],h[2],h[3],u[3]),f=(C[0],C[1],C[2],C[3],u[4]),N=(f[0],f[1],f[2],f[3],["r","g","b","a","c"]);return(0,o.createComponentVNode)(2,i.Window,{title:"Color Matrix Editor",width:600,height:220,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Stack,{children:[0,1,2,3].map((function(e,t){return(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[0,1,2,3,4].map((function(t,n){return(0,o.createComponentVNode)(2,c.Stack.Item,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,textColor:"label",width:"2.1rem",children:""+N[t]+N[e]+":"}),(0,o.createComponentVNode)(2,c.NumberInput,{inline:!0,value:u[4*t+e],step:.01,width:"50px",format:function(e){return(0,a.toFixed)(e,2)},onDrag:function(n,o){var r=u;r[4*t+e]=o,l("transition_color",{color:r})}})]},n)}))})},t)}))})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0}),(0,o.createComponentVNode)(2,c.Stack.Item,{align:"left",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{content:"Confirm",confirmContent:"Confirm?",onClick:function(){return l("confirm")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.ByondUi,{height:"100%",params:{id:s,type:"map"}})})]})})})}},24848:function(e,t,n){"use strict";t.__esModule=!0,t.CommandReport=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CommandReport=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.command_name,s=l.custom_name,u=l.command_name_presets,m=void 0===u?[]:u,p=l.command_report_content,h=l.played_sound,C=l.announcer_sounds,f=void 0===C?[]:C,N=l.announce_contents;return(0,o.createComponentVNode)(2,c.Window,{title:"Create Command Report",width:325,height:525,theme:"admin",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Set Central Command name:",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:d,options:m,onSelected:function(e){return i("update_command_name",{updated_name:e})}}),!!s&&(0,o.createComponentVNode)(2,a.Input,{width:"100%",mt:1,value:d,placeholder:d,onChange:function(e,t){return i("update_command_name",{updated_name:t})}})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Set announcement sound:",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",displayText:h,options:f,onSelected:function(e){return i("set_report_sound",{picked_sound:e})}})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Set report text:",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.TextArea,{height:"200px",mb:1,value:p,onChange:function(e,t){return i("update_report_contents",{updated_contents:t})}}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:N,onClick:function(){return i("toggle_announce")},children:"Announce Contents"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,icon:"check",color:"good",textAlign:"center",content:"Submit Report",onClick:function(){return i("submit_report")}})})]})]})})]})})})}},6125:function(e,t,n){"use strict";t.__esModule=!0,t.CommunicationsConsole=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(2381),d=n(81890),s="buying_shuttle",u="changing_status",m="main",p="messages",h=(0,r.sortBy)((function(e){return!e.emagOnly}),(function(e){return e.creditCost})),C=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.alertLevelTick,s=l.canSetAlertLevel,u=e.alertLevel,m=e.setShowAlertLevelConfirm,p=l.alertLevel===u;return(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",color:p&&"good",content:(0,a.capitalize)(u),onClick:function(){p||("SWIPE_NEEDED"===s?m([u,d]):r("changeSecurityLevel",{newSecurityLevel:u}))}})},f=function(e,t){var n=(0,c.useBackend)(t).data.maxMessageLength,r=(0,c.useLocalState)(t,e.label,""),a=r[0],l=r[1],d=e.minLength===undefined||a.length>=e.minLength;return(0,o.createComponentVNode)(2,i.Modal,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{fontSize:"16px",maxWidth:"90vw",mb:1,children:[e.label,":"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:2,mb:1,children:(0,o.createComponentVNode)(2,i.TextArea,{fluid:!0,height:"20vh",width:"80vw",backgroundColor:"black",textColor:"white",onInput:function(e,t){l(t.substring(0,n))},value:a})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:e.icon,content:e.buttonText,color:"good",disabled:!d,tooltip:d?"":"You need a longer reason.",tooltipPosition:"right",onClick:function(){d&&(l(""),e.onSubmit(a))}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Cancel",color:"bad",onClick:e.onBack})]}),!!e.notice&&(0,o.createComponentVNode)(2,i.Flex.Item,{maxWidth:"90vw",children:e.notice})]})})},N=function(){return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",textAlign:"center",width:"300px",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Icon,{color:"red",name:"wifi",size:10}),(0,o.createComponentVNode)(2,i.Blink,{children:(0,o.createVNode)(1,"div",null,null,1,{style:{background:"#db2828",bottom:"60%",left:"25%",height:"10px",position:"relative",transform:"rotate(45deg)",width:"150px"}})})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{fontSize:"16px",children:"A connection to the station cannot be established."})]})})},g=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",content:"Back",onClick:function(){return r("setState",{state:m})}})}),(0,o.createComponentVNode)(2,i.Section,{children:["Budget: ",(0,o.createVNode)(1,"b",null,a.budget.toLocaleString(),0)," credits"]}),h(a.shuttles).map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createVNode)(1,"span",null,e.name,0,{style:{display:"inline-block",width:"70%"}}),buttons:(0,o.createComponentVNode)(2,i.Button,{content:e.creditCost.toLocaleString()+" credits",color:e.emagOnly?"red":"default",disabled:a.budget<e.creditCost,onClick:function(){return r("purchaseShuttle",{shuttle:e.ref})},tooltip:a.budget<e.creditCost?"You need "+(e.creditCost-a.budget)+" more credits.":e.emagOnly?"This shuttle is deemed significantly dangerous to the crew, and is only supplied by the Syndicate.":undefined,tooltipPosition:"left"}),children:[(0,o.createComponentVNode)(2,i.Box,{children:e.description}),e.prerequisites?(0,o.createVNode)(1,"b",null,[(0,o.createTextVNode)("Prerequisites: "),e.prerequisites],0):null]},e.ref)}))]})},V=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.maxStatusLineLength,d=(0,c.useLocalState)(t,"lineOne",a.lineOne),s=d[0],u=d[1],p=(0,c.useLocalState)(t,"lineTwo",a.lineTwo),h=p[0],C=p[1];return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",content:"Back",onClick:function(){return r("setState",{state:m})}})}),(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Clear Alert",color:"bad",onClick:function(){return r("setStatusPicture",{picture:"blank"})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mt:1,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"check-square-o",content:"Default",onClick:function(){return r("setStatusPicture",{picture:"default"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell-o",content:"Red Alert",onClick:function(){return r("setStatusPicture",{picture:"redalert"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Lockdown",onClick:function(){return r("setStatusPicture",{picture:"lockdown"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-circle",content:"Biohazard",onClick:function(){return r("setStatusPicture",{picture:"biohazard"})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"space-shuttle",content:"Shuttle ETA",onClick:function(){return r("setStatusPicture",{picture:"shuttle"})}})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Message",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,i.Input,{maxLength:l,value:s,width:"200px",onChange:function(e,t){return u(t)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,i.Input,{maxLength:l,value:h,width:"200px",onChange:function(e,t){return C(t)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"comment-o",content:"Message",onClick:function(){return r("setStatusMessage",{lineOne:s,lineTwo:h})}})})]})})]})},b=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.alertLevel,m=l.alertLevelTick,h=l.aprilFools,N=l.callShuttleReasonMinLength,g=l.canBuyShuttles,V=l.canMakeAnnouncement,b=l.canMessageAssociates,v=l.canRecallShuttles,k=l.canRequestNuke,_=l.canSendToSectors,y=l.canSetAlertLevel,w=l.canToggleEmergencyAccess,x=l.emagged,S=l.syndicate,B=l.emergencyAccess,I=l.importantActionReady,L=l.sectors,T=l.shuttleCalled,A=l.shuttleCalledPreviously,D=l.shuttleCanEvacOrFailReason,M=l.shuttleLastCalled,E=l.shuttleRecallable,P=(0,c.useLocalState)(t,"calling_shuttle",!1),F=P[0],O=P[1],R=(0,c.useLocalState)(t,"messaging_associates",!1),j=R[0],W=R[1],z=(0,c.useLocalState)(t,"messaing_sector",null),H=z[0],U=z[1],G=(0,c.useLocalState)(t,"requesting_nuke_codes",!1),q=G[0],Y=G[1],K=(0,c.useLocalState)(t,"showConfirmPrompt",[null,null]),$=K[0],Q=$[0],X=$[1],J=K[1];return(0,o.createComponentVNode)(2,i.Box,{children:[!S&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Shuttle",children:[!!T&&(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"space-shuttle",content:"Recall Emergency Shuttle",color:"bad",disabled:!v||!E,tooltip:v&&!E?"It's too late for the emergency shuttle to be recalled.":"You do not have permission to recall the emergency shuttle.",tooltipPosition:"bottom-end",onClick:function(){return r("recallShuttle")}})||(0,o.createComponentVNode)(2,i.Button,{icon:"space-shuttle",content:"Call Emergency Shuttle",disabled:1!==D,tooltip:1!==D?D:undefined,tooltipPosition:"bottom-end",onClick:function(){return O(!0)}}),!!A&&(M&&(0,o.createComponentVNode)(2,i.Box,{children:["Most recent shuttle call/recall traced to:"," ",(0,o.createVNode)(1,"b",null,M,0)]})||(0,o.createComponentVNode)(2,i.Box,{children:"Unable to trace most recent shuttle/recall signal."}))]}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Alert Level",children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Box,{children:["Currently on ",(0,o.createVNode)(1,"b",null,(0,a.capitalize)(d),0)," Alert"]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,C,{alertLevel:"green",showAlertLevelConfirm:Q,setShowAlertLevelConfirm:J}),(0,o.createComponentVNode)(2,C,{alertLevel:"blue",showAlertLevelConfirm:Q,setShowAlertLevelConfirm:J})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Functions",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[!!V&&(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:"Make Priority Announcement",onClick:function(){return r("makePriorityAnnouncement")}}),!!h&&!!V&&(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",content:"Call Emergency Meeting",onClick:function(){return r("emergency_meeting")}}),!!w&&(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"id-card-o",content:(B?"Disable":"Enable")+" Emergency Maintenance Access",color:B?"bad":undefined,onClick:function(){return r("toggleEmergencyAccess")}}),!S&&(0,o.createComponentVNode)(2,i.Button,{icon:"desktop",content:"Set Status Display",onClick:function(){return r("setState",{state:u})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"envelope-o",content:"Message List",onClick:function(){return r("setState",{state:p})}}),0!==g&&(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Purchase Shuttle",disabled:1!==g,tooltip:1!==g?g:undefined,tooltipPosition:"right",onClick:function(){return r("setState",{state:s})}}),!!b&&(0,o.createComponentVNode)(2,i.Button,{icon:"comment-o",content:"Send message to "+(x?"[UNKNOWN]":"CentCom"),disabled:!I,onClick:function(){return W(!0)}}),!!k&&(0,o.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Request Nuclear Authentication Codes",disabled:!I,onClick:function(){return Y(!0)}}),!!x&&!S&&(0,o.createComponentVNode)(2,i.Button,{icon:"undo",content:"Restore Backup Routing Data",onClick:function(){return r("restoreBackupRoutingData")}})]})}),!!b&&j&&(0,o.createComponentVNode)(2,f,{label:"Message to transmit to "+(x?"[ABNORMAL ROUTING COORDINATES]":"CentCom")+" via quantum entanglement",notice:"Please be aware that this process is very expensive, and abuse will lead to...termination. Transmission does not guarantee a response.",icon:"bullhorn",buttonText:"Send",onBack:function(){return W(!1)},onSubmit:function(e){W(!1),r("messageAssociates",{message:e})}}),!!k&&q&&(0,o.createComponentVNode)(2,f,{label:"Reason for requesting nuclear self-destruct codes",notice:"Misuse of the nuclear request system will not be tolerated under any circumstances. Transmission does not guarantee a response.",icon:"bomb",buttonText:"Request Codes",onBack:function(){return Y(!1)},onSubmit:function(e){Y(!1),r("requestNukeCodes",{reason:e})}}),!!F&&(0,o.createComponentVNode)(2,f,{label:"Nature of emergency",icon:"space-shuttle",buttonText:"Call Shuttle",minLength:N,onBack:function(){return O(!1)},onSubmit:function(e){O(!1),r("callShuttle",{reason:e})}}),!!y&&Q&&X===m&&(0,o.createComponentVNode)(2,i.Modal,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",textAlign:"center",width:"300px",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{fontSize:"16px",mb:2,children:"Swipe ID to confirm change"}),(0,o.createComponentVNode)(2,i.Flex.Item,{mr:2,mb:1,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"id-card-o",content:"Swipe ID",color:"good",fontSize:"16px",onClick:function(){return r("changeSecurityLevel",{newSecurityLevel:Q})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Cancel",color:"bad",fontSize:"16px",onClick:function(){return J(!1)}})]})]})}),!!_&&L.length>0&&(0,o.createComponentVNode)(2,i.Section,{title:"Allied Sectors",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",children:[L.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Send a message to station in "+e+" sector",disabled:!I,onClick:function(){return U(e)}})},e)})),L.length>2&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Send a message to all allied stations",disabled:!I,onClick:function(){return U("all")}})})]})}),!!_&&L.length>0&&H&&(0,o.createComponentVNode)(2,f,{label:"Message to send to allied station",notice:"Please be aware that this process is very expensive, and abuse will lead to...termination.",icon:"bullhorn",buttonText:"Send",onBack:function(){return U(null)},onSubmit:function(e){r("sendToOtherSector",{destination:H,message:e}),U(null)}})]})},v=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.messages||[],l=[];l.push((0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",content:"Back",onClick:function(){return r("setState",{state:m})}})}));for(var s=[],u=function(){var e=h[p],t=e[0],n=e[1],a=null;n.possibleAnswers.length>0&&(a=(0,o.createComponentVNode)(2,i.Box,{mt:1,children:n.possibleAnswers.map((function(e,a){return(0,o.createComponentVNode)(2,i.Button,{content:e,color:n.answered===a+1?"good":undefined,onClick:n.answered?undefined:function(){return r("answerMessage",{message:parseInt(t,10)+1,answer:a+1})}},a)}))}));var c={__html:(0,d.sanitizeText)(n.content)};s.push((0,o.createComponentVNode)(2,i.Section,{title:n.title,buttons:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"trash",content:"Delete",color:"red",onClick:function(){return r("deleteMessage",{message:t+1})}}),children:[(0,o.createComponentVNode)(2,i.Box,{dangerouslySetInnerHTML:c}),a]},t))},p=0,h=Object.entries(a);p<h.length;p++)u();return l.push(s.reverse()),l};t.CommunicationsConsole=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.authenticated,h=a.authorizeName,C=a.canLogOut,f=a.emagged,k=a.hasConnection,_=a.page,y=a.canRequestSafeCode,w=a.safeCodeDeliveryWait,x=a.safeCodeDeliveryArea;return(0,o.createComponentVNode)(2,l.Window,{width:400,height:650,theme:f?"syndicate":undefined,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[!k&&(0,o.createComponentVNode)(2,N),(C||!d)&&(0,o.createComponentVNode)(2,i.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,i.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Log Out"+(h?" ("+h+")":""):"Log In",color:d?"bad":"good",onClick:function(){return r("toggleAuthentication")}})}),!!y&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Safe Code",children:(0,o.createComponentVNode)(2,i.Button,{icon:"key",content:"Request Safe Code",color:"good",onClick:function(){return r("requestSafeCodes")}})})||!!w&&(0,o.createComponentVNode)(2,i.Section,{title:"Emergency Safe Code Delivery",children:"Drop pod to "+x+" in "+Math.round(w/10)+"s"}),!!d&&(_===s&&(0,o.createComponentVNode)(2,g)||_===u&&(0,o.createComponentVNode)(2,V)||_===m&&(0,o.createComponentVNode)(2,b)||_===p&&(0,o.createComponentVNode)(2,v)||(0,o.createComponentVNode)(2,i.Box,{children:["Page not implemented: ",_]}))]})})}},36520:function(e,t,n){"use strict";t.__esModule=!0,t.Communicator=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(2381),d=n(83828),s={};t.Communicator=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data),a=r.currentTab,d=r.video_comm,C=(r.mapRef,(0,c.useLocalState)(t,"videoSetting",0)),f=C[0],N=C[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:f,setVideoSetting:N}),(!d||0!==f)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[a]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,h,{videoSetting:f,setVideoSetting:N})],4)]})})};var u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=(a.video_comm,a.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,a.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,a.decodeHtmlEntities)(u)})]})})},h=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:a,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},C=function(e,t){var n=(0,c.useBackend)(t).data,o=n.voice_mobs,r=n.communicating,a=n.requestsReceived,i=n.invitesSent,l=n.video_comm;return!("Phone"!==e||!(o.length||r.length||a.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:a.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:C(e.module,t),color:C(e.module,t)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var f=function(e,t){for(var n=(0,c.useBackend)(t),r=n.act,a=n.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;s<l.length;s+=4)d.push((0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:l[s]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l[s+1]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l[s+2]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:l[s+3]})]}));return(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"center",mt:1,children:(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Table,{children:d}),(0,o.createComponentVNode)(2,i.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:[(0,o.createComponentVNode)(2,i.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){return r("dial",{dial:a})},children:(0,o.createComponentVNode)(2,i.Icon,{name:"phone",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:"Dial"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:[(0,o.createComponentVNode)(2,i.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){r("message",{message:a}),r("switch_tab",{switch_tab:4})},children:(0,o.createComponentVNode)(2,i.Icon,{name:"comment-alt",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:"Message"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"33%",children:[(0,o.createComponentVNode)(2,i.Button,{width:"100%",height:"64px",position:"relative",onClick:function(){return r("hang_up")},children:(0,o.createComponentVNode)(2,i.Icon,{name:"times",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:"Hang Up"})]})]})]})})};s[2]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.targetAddress,s=l.voice_mobs,u=l.communicating,m=l.requestsReceived,p=l.invitesSent,h=l.video_comm,C=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Phone",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Input,{fluid:!0,value:d,onInput:function(e,t){return r("write_target_address",{val:t})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",onClick:function(){return r("clear_target_address")}})})]})})}),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,i.Section,{title:"Connection Management",level:2,mt:2,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:C?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})})}),(0,o.createComponentVNode)(2,i.Section,{title:"External Connections",level:3,children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(e.name),children:(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return r("disconnect",{disconnect:e.true_name})}})},e.ref)}))})||(0,o.createComponentVNode)(2,i.Box,{children:"No connections"})}),(0,o.createComponentVNode)(2,i.Section,{title:"Internal Connections",level:3,children:!!u.length&&(0,o.createComponentVNode)(2,i.Table,{children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return r("disconnect",{disconnect:e.true_name})}}),null===h&&(0,o.createComponentVNode)(2,i.Button,{icon:"camera",content:"Start Video",onClick:function(){return r("startvideo",{startvideo:e.ref})}})||h===e.ref&&(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){return r("endvideo",{endvideo:e.true_name})}})]})]},e.address)}))})||(0,o.createComponentVNode)(2,i.Box,{children:"No connections"})}),(0,o.createComponentVNode)(2,i.Section,{title:"Requests Received",level:3,children:!!m.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(e.name),children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,a.decodeHtmlEntities)(e.address)}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"signal",content:"Accept",onClick:function(){return r("dial",{dial:e.address})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Decline",onClick:function(){return r("decline",{decline:e.ref})}})]})]},e.address)}))})||(0,o.createComponentVNode)(2,i.Box,{children:"No requests received."})}),(0,o.createComponentVNode)(2,i.Section,{title:"Invites Sent",level:3,children:!!p.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(e.name),children:[(0,o.createComponentVNode)(2,i.Box,{children:(0,a.decodeHtmlEntities)(e.address)}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){r("copy",{copy:e.address})},content:"Copy"})})]},e.address)}))})||(0,o.createComponentVNode)(2,i.Box,{children:"No invites sent."})})]})]})}));s[3]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data.knownDevices;return(0,o.createComponentVNode)(2,i.Section,{title:"Known Devices",children:l.length&&(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,a.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Box,{children:e.address}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){r("copy",{copy:e.address}),r("switch_tab",{switch_tab:2})},content:"Copy"}),(0,o.createComponentVNode)(2,i.Button,{icon:"phone",onClick:function(){r("dial",{dial:e.address}),r("copy",{copy:e.address}),r("switch_tab",{switch_tab:2})},content:"Call"}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment-alt",onClick:function(){r("copy",{copy:e.address}),r("copy_name",{copy_name:e.name}),r("switch_tab",{switch_tab:40})},content:"Msg"})]})]})]},e.address)}))})||(0,o.createComponentVNode)(2,i.Box,{children:"No devices detected on your local NTNet region."})})}));s[4]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data.imContacts;return(0,o.createComponentVNode)(2,i.Section,{title:"Messaging",children:l.length&&(0,o.createComponentVNode)(2,i.Table,{children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,a.decodeHtmlEntities)(e.name),":"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Box,{children:e.address}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){r("copy",{copy:e.address}),r("copy_name",{copy_name:e.name}),r("switch_tab",{switch_tab:40})},content:"View Conversation"})})]})]},e.address)}))})||(0,o.createComponentVNode)(2,i.Box,{children:["You haven't sent any messages yet.",(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"user",onClick:function(){return r("switch_tab",{switch_tab:3})},content:"Contacts"})]})})}));var N=function(e,t){return e.address!==t},g=function(e,t,n){return(e+t).length>n?t.length>n?t.slice(0,n)+"...":t:e+t},V=function(e,t,n,o){if(n<0||n>o.length)return N(e,t)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=N(e,t),a=N(o[n],t);return r&&a?"TinderMessage_Subsequent_Sent":r||a?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,c.useLocalState)(t,"clipboardMode",!1),p=m[0],h=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:g("Conversation with ",(0,a.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return h(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{className:N(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[N(e,s)?"You":"Them",": ",e.im]},t)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:g("Conversation with ",(0,a.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return h(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,t,n){return(0,o.createComponentVNode)(2,i.Box,{textAlign:N(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:V(e,s,t-1,n),inline:!0,children:(0,a.decodeHtmlEntities)(e.im)})},t)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var b=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,a.decodeHtmlEntities)(l.name)+" by "+(0,a.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,a.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,a.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,a.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},v=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,a.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,a.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data),a=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!a.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,b)||(0,o.createComponentVNode)(2,v)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:a})})}));var k=function(e,t,n,o,r){return e<t?"bad":e<n||e>o?"average":e>r?"bad":"good"};s[7]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),l=(n.act,n.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:k(e.val,e.bad_low,e.poor_low,e.poor_high,e.bad_high),children:[e.val,(0,a.decodeHtmlEntities)(e.units)]},e.entry)}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,a.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,a.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,h=l.ring,C=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,a.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:C?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,a.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:[(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:h,selected:h,fluid:!0,content:h?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:"Set Ringer Tone",onClick:function(){return r("set_ringer_tone")}})]})]})})}))},49883:function(e,t,n){"use strict";t.__esModule=!0,t.ComponentPrinter=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(22586),i=n(2381),l=n(26949);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var u="All",m=function(e){return(0,r.createSearch)(e,(function(e){e[0];var t=e[1];return t.name+t.description}))},p=function(e,t){for(var n,o=d(t);!(n=o()).done;){var r=n.value,a=e[r.name];if(a&&a>r.amount)return!1}return!0},h=function(e){return(0,o.createComponentVNode)(2,l.Stack,{children:Object.entries(e.materials).map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,l.Stack.Item,{mr:1,children:(0,o.createComponentVNode)(2,c.MaterialAmount,{name:t,amount:n,formatting:c.MaterialFormatting.Locale,style:{transform:"scale(0.75) translate(0%, 10%)"}})},t)}))})};t.ComponentPrinter=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,s=(0,a.useLocalState)(t,"category",u),C=s[0],f=s[1],N=(0,a.useLocalState)(t,"searchText",""),g=N[0],V=N[1];return(0,o.createComponentVNode)(2,i.Window,{title:"Component Printer",width:900,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.Materials,{materials:d.materials||[],onEject:function(e,t){r("remove_mat",{ref:e,amount:t})}})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{title:"Categories",fill:!0,children:(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,fill:!0,children:Object.values(d.designs).reduce((function(e,t){var n=function(e){return"Circuitry"===e[0]?e[1]:e[0]}(t.categories);return-1===e.indexOf(n)?[n].concat(e):e}),[u]).sort().map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{onClick:function(){return f(e)},selected:e===C,fluid:!0,children:e},e)}))})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,l.Section,{title:"Parts",children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:g,onInput:function(e,t){return V(t)}})}),Object.entries(d.designs).filter((function(e){e[0];var t=e[1];return C===u||-1!==t.categories.indexOf(C)})).filter(m(g)).map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{title:n.name,buttons:(0,o.createComponentVNode)(2,l.Button,{onClick:function(){r("print",{designId:t})},disabled:!p(n.materials,d.materials),px:1.5,children:"Print"}),children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,width:"100%",children:n.description}),(0,o.createComponentVNode)(2,h,{materials:n.materials})]})},t)}))]})})})]})})]})})})}},98555:function(e,t,n){"use strict";t.__esModule=!0,t.ComputerFabricator=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381);t.ComputerFabricator=function(e,t){var n=(0,r.useBackend)(t),u=n.act,m=n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"Personal Computer Vendor",width:500,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act;n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,a.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,a.Box,{mt:3,children:(0,o.createComponentVNode)(2,a.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return c("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return c("pick_device",{pick:"2"})}})})]})})]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",children:[i.totalprice," cr"]}),children:[(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right",children:"Battery:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return c("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return c("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return c("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right",children:"Hard Drive:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return c("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return c("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return c("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right",children:"Network Card:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return c("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return c("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return c("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right",children:"Nano Printer:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return c("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return c("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.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",children:"Secondary Card Reader:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return c("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return c("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right",children:"Tesla Relay:"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return c("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return c("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return c("confirm_order")}})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:"Please insert the required"})," ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:[i.totalprice," cr"]})]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:1,textAlign:"center",fontSize:"18px",children:"Current:"}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:.5,textAlign:"center",fontSize:"18px",color:i.credits>=i.totalprice?"good":"bad",children:[i.credits," cr"]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Purchase",disabled:i.credits<i.totalprice,mt:8,color:"good",textAlign:"center",fontSize:"20px",lineHeight:2,onClick:function(){return c("purchase")}})]})},s=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,a.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},6884:function(e,t,n){"use strict";t.__esModule=!0,t.CookingAppliance=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CookingAppliance=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,h=l.our_contents;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:h.map((function(e,t){return e.empty?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Slot #"+(t+1),children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("slot",{slot:t+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Slot #"+(t+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!p,onClick:function(){return i("slot",{slot:t+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},t)}))})})]})})}},67526:function(e,t,n){"use strict";t.__esModule=!0,t.Crayon=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Crayon=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.has_cap||l.can_change_colour,s=l.drawables||[];return(0,o.createComponentVNode)(2,c.Window,{width:600,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[!!d&&(0,o.createComponentVNode)(2,a.Section,{title:"Basic",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cap",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.is_capped?"power-off":"times",content:l.is_capped?"On":"Off",selected:l.is_capped,onClick:function(){return i("toggle_cap")}})})}),(0,o.createComponentVNode)(2,a.Button,{content:"Select New Color",onClick:function(){return i("select_colour")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Stencil",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){var t=e.items||[];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:t.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.item,selected:e.item===l.selected_stencil,onClick:function(){return i("select_stencil",{item:e.item})}},e.item)}))},e.name)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Text",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Buffer",children:l.text_buffer})}),(0,o.createComponentVNode)(2,a.Button,{content:"New Text",onClick:function(){return i("enter_text")}})]})]})})}},75213:function(e,t,n){"use strict";t.__esModule=!0,t.CrewConsole=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(84200),l=n(2381),d=["#17d568","#c4cf2d","#e67e22","#ed5100","#e74c3c","#801308"],s=["heart","heart","heart","heart","heartbeat","skull"],u=function(e){return 0===e?i.COLORS.department.captain:e>=10&&e<20?i.COLORS.department.security:e>=20&&e<30?i.COLORS.department.medbay:e>=30&&e<40?i.COLORS.department.science:e>=40&&e<50?i.COLORS.department.engineering:e>=50&&e<60?i.COLORS.department.cargo:e>=200&&e<230?i.COLORS.department.centcom:i.COLORS.department.other},m=function(e,t,n,o,r){var a=e+t+n+o;return r[Math.min(Math.max(Math.ceil(a/25),0),5)]},p=function(e){var t=e.type,n=e.value;return(0,o.createComponentVNode)(2,c.Box,{inline:!0,width:2,color:i.COLORS.damageType[t],textAlign:"center",children:n})};t.CrewConsole=function(){return(0,o.createComponentVNode)(2,l.Window,{title:"Crew Monitor",width:600,height:600,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{minHeight:"540px",children:(0,o.createComponentVNode)(2,h)})})})};var h=function(e,t){var n,i=(0,a.useBackend)(t),l=(i.act,i.data),d=(0,r.sortBy)((function(e){return e.ijob}))(null!=(n=l.sensors)?n:[]);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,textAlign:"center",children:"Vitals"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,textAlign:"center",children:"Position"}),!!l.link_allowed&&(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,textAlign:"center",children:"Tracking"})]}),d.map((function(e){return(0,o.createComponentVNode)(2,C,{sensor_data:e},e.ref)}))]})},C=function(e,t){var n,r=(0,a.useBackend)(t),i=r.act,l=r.data.link_allowed,h=e.sensor_data,C=h.name,f=h.assignment,N=h.ijob,g=h.life_status,V=h.oxydam,b=h.toxdam,v=h.burndam,k=h.brutedam,_=h.area,y=h.can_track;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:(n=N,n%10==0),color:u(N),children:[C,f!==undefined?" ("+f+")":""]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:V!==undefined?(0,o.createComponentVNode)(2,c.Icon,{name:m(V,b,v,k,s),color:m(V,b,v,k,d),size:1}):g?(0,o.createComponentVNode)(2,c.Icon,{name:"heart",color:"#17d568",size:1}):(0,o.createComponentVNode)(2,c.Icon,{name:"skull",color:"#801308",size:1})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:V!==undefined?(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,p,{type:"oxy",value:V}),"/",(0,o.createComponentVNode)(2,p,{type:"toxin",value:b}),"/",(0,o.createComponentVNode)(2,p,{type:"burn",value:v}),"/",(0,o.createComponentVNode)(2,p,{type:"brute",value:k})]}):g?"Alive":"Dead"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:_!==undefined?_:(0,o.createComponentVNode)(2,c.Icon,{name:"question",color:"#ffffff",size:1})}),!!l&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{content:"Track",disabled:!y,onClick:function(){return i("select_person",{name:C})}})})]})}},83828:function(e,t,n){"use strict";t.__esModule=!0,t.CrewManifestContent=t.CrewManifest=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(84200),l=n(21118);t.CrewManifest=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.manifest);return(0,o.createComponentVNode)(2,a.Section,{title:"Crew Manifest",noTopPadding:!0,children:c.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:i.COLORS.department[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,a.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};t.CrewManifestContent=d},38544:function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitorContent=t.CrewMonitor=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(2381),l=n(26949),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};t.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,t){var n,i=(0,c.useBackend)(t),u=i.act,p=i.data,h=(i.config,(0,c.useLocalState)(t,"tabIndex",0)),C=h[0],f=h[1],N=(0,a.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),g=(0,c.useLocalState)(t,"zoom",1);g[0],g[1];return n=0===C?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),N.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===C?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===C,onClick:function(){return f(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView")}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:n})],4)};t.CrewMonitorContent=u;var m=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.config),a=n.data,i=(0,c.useLocalState)(t,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:a.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},10996:function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(57361),i=n(2381),l=[{label:"Brute",type:"bruteLoss"},{label:"Respiratory",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Burn",type:"fireLoss"}];t.Cryo=function(){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:550,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",children:d.occupant.name||"No Occupant"}),!!d.hasOccupant&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:d.occupant.statstate,children:d.occupant.stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",color:d.occupant.temperaturestatus,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.bodyTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant.health/d.occupant.maxHealth,color:d.occupant.health>0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant.health})})}),l.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.occupant[e.type]/100,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.occupant[e.type]})})},e.id)}))],0)]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cell",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:d.isOperating?"power-off":"times",disabled:d.isOpen,onClick:function(){return i("power")},color:d.isOperating&&"green",children:d.isOperating?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.cellTemperature})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:[(0,o.createComponentVNode)(2,a.Button,{icon:d.isOpen?"unlock":"lock",onClick:function(){return i("door")},content:d.isOpen?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.Button,{icon:d.autoEject?"sign-out-alt":"sign-in-alt",onClick:function(){return i("autoeject")},content:d.autoEject?"Auto":"Manual"})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d.isBeakerLoaded,onClick:function(){return i("ejectbeaker")},content:"Eject"}),children:(0,o.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:d.isBeakerLoaded,beakerContents:d.beakerContents})})],4)}},41710:function(e,t,n){"use strict";t.__esModule=!0,t.CryoStorageItems=t.CryoStorageCrew=t.CryoStorage=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.CryoStorage=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(t,"tab",0),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return h(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.crew);return(0,o.createComponentVNode)(2,a.Section,{title:"Stored Crew",children:c.length&&c.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No crew currently stored."})})};t.CryoStorageCrew=i;var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.items;return(0,o.createComponentVNode)(2,a.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"hand-rock",onClick:function(){return c("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"hand-rock",onClick:function(){return c("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No items stored."})})};t.CryoStorageItems=l},57784:function(e,t,n){"use strict";t.__esModule=!0,t.CryoStorageItemsVr=t.CryoStorageVr=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(41710);t.CryoStorageVr=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(t,"tab",0),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return h(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.items);return(0,o.createComponentVNode)(2,a.Section,{title:"Stored Items",children:c.length&&c.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No items stored."})})};t.CryoStorageItemsVr=l},4584:function(e,t,n){"use strict";t.__esModule=!0,t.Crystallizer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=n(97622),l=n(2381),d=function(e){return Math.log2(16+Math.max(0,e))-4};t.Crystallizer=function(e,t){var n=(0,r.useBackend)(t),s=n.act,u=n.data,m=u.selected_recipes||[],p=u.internal_gas_data||[],h=u.requirements,C=u.internal_temperature,f=u.progress_bar,N=(u.gas_input,u.selected);return(0,o.createComponentVNode)(2,l.Window,{width:500,height:600,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:u.on?"power-off":"times",content:u.on?"On":"Off",selected:u.on,onClick:function(){return s("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipe",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.id===N,content:e.name,onClick:function(){return s("recipe",{mode:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gas Input",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(u.gas_input),width:"63px",unit:"moles/s",minValue:0,maxValue:250,onDrag:function(e,t){return s("gas_input",{gas_input:t})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Requirements and progress",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:f/100,ranges:{good:[.67,1],average:[.34,.66],bad:[0,.33]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipe",children:(0,o.createComponentVNode)(2,a.Box,{m:1,preserveWhitespace:!0,children:h})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d(C),minValue:0,maxValue:d(1e4),ranges:{teal:[-Infinity,d(80)],good:[d(80),d(600)],average:[d(600),d(5e3)],bad:[d(5e3),Infinity]},children:(0,i.toFixed)(C)+" K"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Gases",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,c.getGasLabel)(e.name),children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:(0,c.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:1e3,children:(0,i.toFixed)(e.amount,2)+" moles"})},e.name)}))})})]})})}},32016:function(e,t,n){"use strict";t.__esModule=!0,t.CyborgBootDebug=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381);t.CyborgBootDebug=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.designation,s=l.master,u=l.lawsync,m=l.aisync,p=l.locomotion,h=l.panel;return(0,o.createComponentVNode)(2,c.Window,{width:(null==s?void 0:s.length)>26?537:440,height:289,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Basic Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Designation",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"Enter a new name for this unit. Set to blank to reset to default,\nwhich means unit will be able to choose it's own name.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d||"Default Cyborg",onChange:function(e,t){return i("rename",{new_name:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Servo Motor Functions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"If restricted, unit will be\nunder lockdown until released.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Button,{icon:p?"unlock":"lock",content:p?"Free":"Restricted",color:p?"good":"bad",onClick:function(){return i("locomotion")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover Panel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"If unlocked, unit's cover panel will be\naccessible even without proper authorization.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"lock":"unlock",content:h?"Locked":"Unlocked",onClick:function(){return i("panel")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"AI Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI Connection Port",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"If closed, this unit will\nnot be paired with any AI.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",onClick:function(){return i("aisync")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"Controls who will be the\nmaster AI of this unit.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,a.Button,{icon:m?s?"edit":"sync":"times",content:m?s||"Automatic":"None",color:s?"default":"good",disabled:!m,onClick:function(){return i("set_ai")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"LawSync Port",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"info",tooltip:"If closed, this unit will not synchronize\nit's laws with it's master AI.",tooltipPosition:"top-start"}),children:(0,o.createComponentVNode)(2,a.Button,{icon:m&&u?"unlock":"lock",content:m&&u?"Open":"Closed",disabled:!m,onClick:function(){return i("lawsync")}})})]})})]})})}},34660:function(e,t,n){"use strict";t.__esModule=!0,t.DNAForensics=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DNAForensics=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,c.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,a.Box,{children:[u,(0,o.createComponentVNode)(2,a.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},49223:function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(84645),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,a=(0,r.useBackend)(t),l=(a.act,a.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return t.dnaBlockSize=s,t.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(n=(0,o.createComponentVNode)(2,b,{duration:d})),(0,o.createComponentVNode)(2,c.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),n,(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return c("toggleLock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return c("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Divider)]})}),t.isDNAInvalid?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,t){var n,c=(0,r.useBackend)(t),i=c.act,l=c.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?t.isDNAInvalid?(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C)],4):"se"===s?n=(0,o.createFragment)([(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,C)],4):"buffer"===s?n=(0,o.createComponentVNode)(2,f):"rejuvenators"===s&&(n=(0,o.createComponentVNode)(2,V)),(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,o.createComponentVNode)(2,a.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,a.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return c("changeUITarget",{value:t})}})})}),(0,o.createComponentVNode)(2,a.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return c("pulseUIRadiation")}})]})},h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,a.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return c("pulseSERadiation")}})]})},C=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,a.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,a.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return c("radiationIntensity",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,a.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,t){return c("radiationDuration",{value:t})}})})]}),(0,o.createComponentVNode)(2,a.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(){return c("pulseRadiation")}})]})},f=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.buffers.map((function(e,t){return(0,o.createComponentVNode)(2,N,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Buffers",level:"2",children:c}),(0,o.createComponentVNode)(2,g)],4)},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return c("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return c("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return c("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return c("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return c("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return c("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return c("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return c("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return c("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return c("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,a.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return c("wipeDisk")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return c("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},V=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,a.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return c("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inject",children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return c("injectRejuvenators",{amount:e})}},t)})),(0,o.createComponentVNode)(2,a.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return c("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},b=function(e,t){return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,a.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,a.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,t){for(var n=(0,r.useBackend)(t),c=n.act,i=(n.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],h=function(e){for(var t=e/s+1,n=[],r=function(r){var i=r+1;n.push((0,o.createComponentVNode)(2,a.Button,{selected:l===t&&d===i,content:m[e+r],mb:"0",onClick:function(){return c(u,{block:t,subblock:i})}}))},i=0;i<s;i++)r(i);p.push((0,o.createComponentVNode)(2,a.Flex.Item,{flex:"0 0 16%",mb:"1rem",children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",width:"20px",height:"20px",mr:"0.5rem",lineHeight:"20px",backgroundColor:"rgba(0, 0, 0, 0.33)",fontFamily:"monospace",textAlign:"center",children:t}),n]}))},C=0;C<m.length;C+=s)h(C);return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:p})}},27188:function(e,t,n){"use strict";t.__esModule=!0,t.DecalPainter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DecalPainter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=!d.color_list.some((function(e){return e.color===d.current_color})),u=!!d.supports_custom_color,m=s?"custom":d.current_color;return(0,o.createComponentVNode)(2,c.Window,{width:550,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Decal Color",children:[d.color_list.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.color===d.current_color,onClick:function(){return l("select color",{color:e.color})},children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:e.color,mr:.5}),e.name]},e.color)})),u&&(0,o.createComponentVNode)(2,a.Button,{selected:s,onClick:function(){return l("pick custom color")},children:[(0,o.createComponentVNode)(2,a.ColorBox,{color:d.current_custom_color,mr:.5}),"Custom"]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Decal Style",children:(0,o.createComponentVNode)(2,a.Flex,{direction:"row",wrap:"nowrap",align:"fill",justify:"fill",children:d.decal_list.map((function(e){return d.nondirectional_decals.includes(e.decal)?(0,o.createComponentVNode)(2,i,{decal:e.decal,dir:2,color:m,label:e.name,selected:e.decal===d.current_decal},e.decal):(0,o.createComponentVNode)(2,a.Flex,{direction:"column",wrap:"nowrap",align:"fill",justify:"fill",children:d.dir_list.map((function(t){var n=e.decal===d.current_decal&&t.dir===d.current_dir;return(0,o.createComponentVNode)(2,i,{decal:e.decal,dir:t.dir,color:m,label:t.name+" "+e.name,selected:n},t.dir)}))},e.decal)}))})})]})})};var i=function(e,t){var n,c,i,l=(0,r.useBackend)(t),d=l.act,s=l.data,u=(n=e.decal,c=e.dir,i=e.color,s.icon_prefix+" "+n+"_"+c+"_"+i.replace("#",""));return(0,o.createComponentVNode)(2,a.Button,{tooltip:e.label,selected:e.selected,verticalAlignContent:"middle",m:"2px",p:1,onClick:function(){return d("select decal",{decal:e.decal,dir:e.dir})},children:(0,o.createVNode)(1,"div",u,null,1,{style:{display:"block"}})})}},44681:function(e,t,n){"use strict";t.__esModule=!0,t.DepartmentOrders=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e){var t=e.cost,n=(t>2250?"red":t>750&&"orange")||"green",r=(t>2250?"long":t>750&&"moderate")||"short";return(0,o.createComponentVNode)(2,a.Box,{as:"span",textColor:n,children:[r," cooldown."]})};t.DepartmentOrders=function(e,t){var n=(0,r.useBackend)(t).data.time_left;return(0,o.createComponentVNode)(2,c.Window,{title:"Department Orders",width:620,height:580,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:!!n&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"As employees of Nanotrasen, the selection of orders here are completely free of charge, only incurring a cooldown on the service. Cheaper items will make you wait for less time before Nanotrasen allows another purchase, to encourage tasteful spending."})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d)})]})})})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.can_override,d=i.time_left;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Icon,{color:"orange",name:"route",size:20})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",color:"orange",children:["Ready for another order in ",d,"..."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",color:"orange",children:(0,o.createComponentVNode)(2,a.Button,{width:"300px",lineHeight:2,tooltip:!l?"Crate already shipped! No cancelling now!":"This action requires Head of Staff access!",fontSize:"14px",color:"red",disabled:!l,onClick:function(){return c("override_order")},children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"22px",children:"Override"})})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.supplies,d=(0,r.useLocalState)(t,"tabName",l[0]),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{textAlign:"center",fluid:!0,children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:s===e,onClick:function(){return u(e)},children:e.name},e)}))})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:s.packs.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{className:"candystripe",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Tooltip,{content:e.desc,children:(0,o.createComponentVNode)(2,a.Box,{as:"span",style:{"border-bottom":"2px dotted rgba(255, 255, 255, 0.8)"},children:e.name})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,i,{cost:e.cost}),"\u2002",(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("order",{id:e.id})},children:"Order"})]})]})},e.name)}))})})})]})}},36376:function(e,t,n){"use strict";t.__esModule=!0,t.DestinationTagger=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DestinationTagger=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.currTag,s=l.taggerLocs;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Tagger Locations",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,justify:"center",children:s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:d===e?"check-square-o":"square-o",selected:d===e,content:e,onClick:function(){return i("set_tag",{tag:e})}})},e)}))})})})})}},96812:function(e,t,n){"use strict";t.__esModule=!0,t.DiseaseSplicer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DiseaseSplicer=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data.busy);return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,a.Section,{title:"The Splicer is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,l)],4)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.dish_inserted,d=i.effects,s=i.info,u=i.growth,m=i.affected_species;return(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!l,onClick:function(){return c("eject")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:u})})}),s?(0,o.createComponentVNode)(2,a.Section,{level:2,children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:s})}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Symptoms",children:d&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["(",e.stage,") ",e.name," ",e.badness>1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return c("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,a.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return c("affected_species")}})]})],4)]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,a.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,a.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return c("disk")}}),l?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return c("splice",{splice:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return c("splice",{splice:2})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return c("splice",{splice:3})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return c("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return c("splice",{splice:5})}})}):null]})}},71431:function(e,t,n){"use strict";t.__esModule=!0,t.DishIncubator=void 0;var o=n(96323),r=n(1033),a=n(31246),c=n(26949),i=n(2381);t.DishIncubator=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,h=d.growth,C=d.toxins,f=d.chemicals_inserted,N=d.can_breed_virus,g=d.chemical_volume,V=d.max_chemical_volume,b=d.dish_inserted,v=d.blood_already_infected,k=d.virus,_=d.analysed,y=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":h>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:C})})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:N?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject "+(N?"Vial":"Chemicals"),disabled:!f,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Breed Virus",disabled:!N,onClick:function(){return l("virus")}})],4),children:f&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:V,value:g,children:[g,"/",V]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breeding Environment",color:N?"good":"average",children:[b?N?"Suitable":"No hemolytic samples detected":"N/A",v?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject Dish",disabled:!b,onClick:function(){return l("ejectdish")}}),children:b?k?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:h})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Infection Rate",children:_?y:"Unknown."})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No dish loaded."})})]})})}},79858:function(e,t,n){"use strict";t.__esModule=!0,t.DisposalBin=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DisposalBin=function(e,t){var n,i,l=(0,r.useBackend)(t),d=l.act,s=l.data;return 2===s.mode?(n="good",i="Ready"):s.mode<=0?(n="bad",i="N/A"):1===s.mode?(n="average",i="Pressurizing"):(n="average",i="Idle"),(0,o.createComponentVNode)(2,c.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:n,children:i}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},69974:function(e,t,n){"use strict";t.__esModule=!0,t.DisposalUnit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DisposalUnit=function(e,t){var n,i,l=(0,r.useBackend)(t),d=l.act,s=l.data;return s.full_pressure?(n="good",i="Ready"):s.panel_open?(n="bad",i="Power Disabled"):s.pressure_charging?(n="average",i="Pressurizing"):(n="bad",i="Off"),(0,o.createComponentVNode)(2,c.Window,{width:300,height:180,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:n,children:i}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:s.per,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Handle",children:(0,o.createComponentVNode)(2,a.Button,{icon:s.flush?"toggle-on":"toggle-off",disabled:s.isai||s.panel_open,content:s.flush?"Disengage":"Engage",onClick:function(){return d(s.flush?"handle-0":"handle-1")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:s.isai,content:"Eject Contents",onClick:function(){return d("eject")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",disabled:s.panel_open,selected:s.pressure_charging,onClick:function(){return d(s.pressure_charging?"pump-0":"pump-1")}})})]})})})})}},94522:function(e,t,n){"use strict";t.__esModule=!0,t.DnaConsoleCommands=t.DnaConsole=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(21118),l=n(39646),d=n(31246),s=n(26949),u=n(2381),m=["gene","onChange","disabled"];var p=["A","T","C","G"],h={A:"green",T:"green",G:"blue",C:"blue",X:"grey"},C="storage",f="sequencer",N="enzymes",g="console",V="disk",b="injector",v="mutations",k="chromosomes",_="mutations",y="diskenzymes",w={1:"good",2:"bad",4:"average"},x=function(e,t){return e.Alias===t.Alias&&e.AppliedChromo===t.AppliedChromo};t.DnaConsole=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=(n.act,r.isPulsingRads),c=r.radPulseSeconds,i=r.view.consoleMode;return(0,o.createComponentVNode)(2,u.Window,{title:"DNA Console",width:539,height:710,resizable:!0,children:[!!a&&(0,o.createComponentVNode)(2,s.Dimmer,{fontSize:"14px",textAlign:"center",children:[(0,o.createComponentVNode)(2,s.Icon,{mr:1,name:"spinner",spin:!0}),"Radiation pulse in progress...",(0,o.createComponentVNode)(2,s.Box,{mt:1}),c,"s"]}),(0,o.createComponentVNode)(2,u.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,S),(0,o.createComponentVNode)(2,T),i===C&&(0,o.createComponentVNode)(2,D),i===f&&(0,o.createComponentVNode)(2,O),i===N&&(0,o.createComponentVNode)(2,z)]})]})};var S=function(e,t){return(0,o.createComponentVNode)(2,s.Section,{title:"DNA Scanner",buttons:(0,o.createComponentVNode)(2,B),children:(0,o.createComponentVNode)(2,L)})},B=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.hasDelayedAction,i=r.isPulsingRads,l=r.isScannerConnected,u=r.isScrambleReady,m=r.isViableSubject,p=r.scannerLocked,h=r.scannerOpen,C=r.scrambleSeconds;return l?(0,o.createFragment)([!!c&&(0,o.createComponentVNode)(2,s.Button,{content:"Cancel Delayed Action",onClick:function(){return a("cancel_delay")}}),!!m&&(0,o.createComponentVNode)(2,s.Button,{disabled:!u||i,onClick:function(){return a("scramble_dna")},children:["Scramble DNA",!u&&" ("+C+"s)"]}),(0,o.createComponentVNode)(2,s.Box,{inline:!0,mr:1}),(0,o.createComponentVNode)(2,s.Button,{icon:p?"lock":"lock-open",color:p&&"bad",disabled:h,content:p?"Locked":"Unlocked",onClick:function(){return a("toggle_lock")}}),(0,o.createComponentVNode)(2,s.Button,{disabled:p,content:h?"Close":"Open",onClick:function(){return a("toggle_door")}})],0):(0,o.createComponentVNode)(2,s.Button,{content:"Connect Scanner",onClick:function(){return a("connect_scanner")}})},I=function(e,t){var n=e.status;return 0===n?(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:"good",children:"Conscious"}):2===n?(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:"average",children:"Unconscious"}):1===n?(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:"average",children:"Critical"}):3===n?(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:"bad",children:"Dead"}):4===n?(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:"bad",children:"Transforming"}):(0,o.createComponentVNode)(2,s.Box,{inline:!0,children:"Unknown"})},L=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=(n.act,r.subjectName),c=r.isScannerConnected,i=r.isViableSubject,l=r.subjectHealth,u=r.subjectRads,m=r.subjectStatus;return c?i?(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",children:[a,(0,o.createComponentVNode)(2,s.Icon,{mx:1,color:"label",name:"long-arrow-alt-right"}),(0,o.createComponentVNode)(2,I,{status:m})]}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,s.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{olive:[101,Infinity],good:[70,101],average:[30,70],bad:[-Infinity,30]},children:[l,"%"]})}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,s.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{bad:[71,Infinity],average:[30,71],good:[0,30],olive:[-Infinity,0]},children:[u,"%"]})})]}):(0,o.createComponentVNode)(2,s.Box,{color:"average",children:"No viable subject found in DNA Scanner."}):(0,o.createComponentVNode)(2,s.Box,{color:"bad",children:"DNA Scanner is not connected."})},T=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.hasDisk,i=r.isInjectorReady,l=r.injectorSeconds,u=r.view.consoleMode;return(0,o.createComponentVNode)(2,s.Section,{title:"DNA Console",buttons:!i&&(0,o.createComponentVNode)(2,s.Box,{lineHeight:"20px",color:"label",children:["Injector on cooldown (",l,"s)"]}),children:(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,s.Button,{content:"Storage",selected:u===C,onClick:function(){return a("set_view",{consoleMode:C})}}),(0,o.createComponentVNode)(2,s.Button,{content:"Sequencer",disabled:!r.isViableSubject,selected:u===f,onClick:function(){return a("set_view",{consoleMode:f})}}),(0,o.createComponentVNode)(2,s.Button,{content:"Enzymes",selected:u===N,onClick:function(){return a("set_view",{consoleMode:N})}})]}),!!c&&(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Disk",children:(0,o.createComponentVNode)(2,s.Button,{icon:"eject",content:"Eject",onClick:function(){a("eject_disk"),a("set_view",{storageMode:g})}})})]})})};t.DnaConsoleCommands=T;var A=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.hasDisk,i=r.view,l=i.storageMode,u=i.storageConsSubMode,m=i.storageDiskSubMode;return(0,o.createFragment)([l===g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Button,{selected:u===v,content:"Mutations",onClick:function(){return a("set_view",{storageConsSubMode:v})}}),(0,o.createComponentVNode)(2,s.Button,{selected:u===k,content:"Chromosomes",onClick:function(){return a("set_view",{storageConsSubMode:k})}})],4),l===V&&(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Button,{selected:m===v,content:"Mutations",onClick:function(){return a("set_view",{storageDiskSubMode:v})}}),(0,o.createComponentVNode)(2,s.Button,{selected:m===y,content:"Enzymes",onClick:function(){return a("set_view",{storageDiskSubMode:y})}})],4),(0,o.createComponentVNode)(2,s.Box,{inline:!0,mr:1}),(0,o.createComponentVNode)(2,s.Button,{content:"Console",selected:l===g,onClick:function(){return a("set_view",{storageMode:g,storageConsSubMode:v})}}),(0,o.createComponentVNode)(2,s.Button,{content:"Disk",disabled:!c,selected:l===V,onClick:function(){return a("set_view",{storageMode:V,storageDiskSubMode:_})}}),(0,o.createComponentVNode)(2,s.Button,{content:"Adv. Injector",selected:l===b,onClick:function(){return a("set_view",{storageMode:b})}})],0)},D=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.view,i=c.storageMode,l=c.storageConsSubMode,u=c.storageDiskSubMode,m=r.diskMakeupBuffer,p=r.diskHasMakeup,h=r.storage[i];return(0,o.createComponentVNode)(2,s.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,A),children:[i===g&&l===v&&(0,o.createComponentVNode)(2,M,{mutations:h}),i===g&&l===k&&(0,o.createComponentVNode)(2,E),i===V&&u===_&&(0,o.createComponentVNode)(2,M,{mutations:h}),i===V&&u===y&&(0,o.createFragment)([(0,o.createComponentVNode)(2,Y,{makeup:m}),(0,o.createComponentVNode)(2,s.Button,{icon:"times",color:"red",disabled:!p,content:"Delete",onClick:function(){return a("del_makeup_disk")}})],4),i===b&&(0,o.createComponentVNode)(2,$)]})},M=function(e,t){var n=e.customMode,r=void 0===n?"":n,a=(0,d.useBackend)(t),c=a.data,l=a.act,u=e.mutations||[],m=c.view.storageMode+r,p=c.view["storage"+m+"MutationRef"],h=u.find((function(e){return e.ByondRef===p}));return!h&&u.length>0&&(h=u[0],p=h.ByondRef),(0,o.createComponentVNode)(2,s.Flex,{children:[(0,o.createComponentVNode)(2,s.Flex.Item,{width:"140px",children:(0,o.createComponentVNode)(2,s.Section,{title:(0,i.capitalize)(c.view.storageMode)+" Storage",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,s.Button,{fluid:!0,ellipsis:!0,color:"transparent",selected:e.ByondRef===p,content:e.Name,onClick:function(){var t;return l("set_view",((t={})["storage"+m+"MutationRef"]=e.ByondRef,t))}},e.ByondRef)}))})}),(0,o.createComponentVNode)(2,s.Flex.Item,{children:(0,o.createComponentVNode)(2,s.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,s.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,s.Section,{title:"Mutation Info",level:2,children:(0,o.createComponentVNode)(2,P,{mutation:h})})})]})},E=function(e,t){var n,a=(0,d.useBackend)(t),c=a.data,i=a.act,l=null!=(n=c.chromoStorage)?n:[],u=(0,r.uniqBy)((function(e){return e.Name}))(l),m=c.view.storageChromoName,p=l.find((function(e){return e.Name===m}));return(0,o.createComponentVNode)(2,s.Flex,{children:[(0,o.createComponentVNode)(2,s.Flex.Item,{width:"140px",children:(0,o.createComponentVNode)(2,s.Section,{title:"Console Storage",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,s.Button,{fluid:!0,ellipsis:!0,color:"transparent",selected:e.Name===m,content:e.Name,onClick:function(){return i("set_view",{storageChromoName:e.Name})}},e.Index)}))})}),(0,o.createComponentVNode)(2,s.Flex.Item,{children:(0,o.createComponentVNode)(2,s.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,s.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,s.Section,{title:"Chromosome Info",level:2,children:!p&&(0,o.createComponentVNode)(2,s.Box,{color:"label",children:"Nothing to show."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:p.Name}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Description",children:p.Description}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Amount",children:l.filter((function(e){return e.Name===p.Name})).length})]}),(0,o.createComponentVNode)(2,s.Button,{mt:2,icon:"eject",content:"Eject Chromosome",onClick:function(){return i("eject_chromo",{chromo:p.Name})}})],4)})})]})},P=function(e,t){var n,c,i,l=e.mutation,u=(0,d.useBackend)(t),m=u.data,p=u.act,h=m.diskCapacity,C=m.diskReadOnly,f=m.hasDisk,N=m.isInjectorReady,g=null!=(n=m.storage.disk)?n:[],V=null!=(c=m.storage.console)?c:[],b=null!=(i=m.storage.injector)?i:[];if(!l)return(0,o.createComponentVNode)(2,s.Box,{color:"label",children:"Nothing to show."});if("occupant"===l.Source&&!l.Discovered)return(0,o.createComponentVNode)(2,s.LabeledList,{children:(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:l.Alias})});var v=V.find((function(e){return x(e,l)})),k=g.find((function(e){return x(e,l)})),_=(0,a.flow)([(0,r.uniqBy)((function(e){return e.Name})),(0,r.filter)((function(e){return e.Name!==l.Name}))])([].concat(g,V));return(0,o.createFragment)([(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,s.Box,{inline:!0,color:w[l.Quality],children:l.Name})}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Description",children:l.Description}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Instability",children:l.Instability})]}),(0,o.createComponentVNode)(2,s.Divider),(0,o.createComponentVNode)(2,s.Box,{children:["disk"===l.Source&&(0,o.createComponentVNode)(2,Q,{disabled:!f||h<=0||C,mutations:_,source:l}),"console"===l.Source&&(0,o.createComponentVNode)(2,Q,{mutations:_,source:l}),["occupant","disk","console"].includes(l.Source)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Dropdown,{width:"240px",options:b.map((function(e){return e.name})),disabled:0===b.length||!l.Active,selected:"Add to advanced injector",onSelected:function(e){return p("add_advinj_mut",{mutref:l.ByondRef,advinj:e,source:l.Source})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!N||!l.Active,content:"Print Activator",onClick:function(){return p("print_injector",{mutref:l.ByondRef,is_activator:1,source:l.Source})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!N||!l.Active,content:"Print Mutator",onClick:function(){return p("print_injector",{mutref:l.ByondRef,is_activator:0,source:l.Source})}})],4)]}),["disk","occupant"].includes(l.Source)&&(0,o.createComponentVNode)(2,s.Button,{icon:"save",disabled:v||!l.Active,content:"Save to Console",onClick:function(){return p("save_console",{mutref:l.ByondRef,source:l.Source})}}),["console","occupant"].includes(l.Source)&&(0,o.createComponentVNode)(2,s.Button,{icon:"save",disabled:k||!f||h<=0||C||!l.Active,content:"Save to Disk",onClick:function(){return p("save_disk",{mutref:l.ByondRef,source:l.Source})}}),["console","disk","injector"].includes(l.Source)&&(0,o.createComponentVNode)(2,s.Button,{icon:"times",color:"red",content:"Delete from "+l.Source,onClick:function(){return p("delete_"+l.Source+"_mut",{mutref:l.ByondRef})}}),(2===l.Class||!!l.Scrambled&&"occupant"===l.Source)&&(0,o.createComponentVNode)(2,s.Button,{content:"Nullify",onClick:function(){return p("nullify",{mutref:l.ByondRef})}}),(0,o.createComponentVNode)(2,s.Divider),(0,o.createComponentVNode)(2,F,{disabled:"occupant"!==l.Source,mutation:l})],0)},F=function(e,t){var n=e.mutation,r=e.disabled,a=(0,d.useBackend)(t),c=(a.data,a.act);return 0===n.CanChromo?(0,o.createComponentVNode)(2,s.Box,{color:"label",children:"No compatible chromosomes"}):1===n.CanChromo?r?(0,o.createComponentVNode)(2,s.Box,{color:"label",children:"No chromosome applied."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Dropdown,{width:"240px",options:n.ValidStoredChromos,disabled:0===n.ValidStoredChromos.length,selected:0===n.ValidStoredChromos.length?"No Suitable Chromosomes":"Select a chromosome",onSelected:function(e){return c("apply_chromo",{chromo:e,mutref:n.ByondRef})}}),(0,o.createComponentVNode)(2,s.Box,{color:"label",mt:1,children:["Compatible with: ",n.ValidChromos]})],4):2===n.CanChromo?(0,o.createComponentVNode)(2,s.Box,{color:"label",children:["Applied chromosome: ",n.AppliedChromo]}):null},O=function(e,t){var n,r,a=(0,d.useBackend)(t),c=a.data,i=a.act,u=null!=(n=null==(r=c.storage)?void 0:r.occupant)?n:[],m=c.isJokerReady,p=c.isMonkey,h=c.jokerSeconds,C=c.subjectStatus,f=c.view,N=f.sequencerMutation,g=f.jokerActive,V=u.find((function(e){return e.Alias===N}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,s.Flex.Item,{width:u.length<=8?"154px":"174px",children:(0,o.createComponentVNode)(2,s.Section,{title:"Sequences",height:"214px",overflowY:u.length>8&&"scroll",children:u.map((function(e){return(0,o.createComponentVNode)(2,R,{url:(0,l.resolveAsset)(e.Image),selected:e.Alias===N,onClick:function(){i("set_view",{sequencerMutation:e.Alias}),i("check_discovery",{alias:e.Alias})}},e.Alias)}))})}),(0,o.createComponentVNode)(2,s.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,s.Section,{title:"Sequence Info",minHeight:"100%",children:(0,o.createComponentVNode)(2,P,{mutation:V})})})]}),3===C&&(0,o.createComponentVNode)(2,s.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: DECEASED."})||p&&"Monkified"!==(null==V?void 0:V.Name)&&(0,o.createComponentVNode)(2,s.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: MONKEY."})||4===C&&(0,o.createComponentVNode)(2,s.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: TRANSFORMING."})||(0,o.createComponentVNode)(2,s.Section,{title:"Genome Sequencer\u2122",buttons:!m&&(0,o.createComponentVNode)(2,s.Box,{lineHeight:"20px",color:"label",children:["Joker on cooldown (",h,"s)"]})||g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Box,{mr:1,inline:!0,color:"label",children:"Click on a gene to reveal it."}),(0,o.createComponentVNode)(2,s.Button,{content:"Cancel Joker",onClick:function(){return i("set_view",{jokerActive:""})}})],4)||(0,o.createComponentVNode)(2,s.Button,{icon:"crown",color:"purple",content:"Use Joker",onClick:function(){return i("set_view",{jokerActive:"1"})}}),children:(0,o.createComponentVNode)(2,W,{mutation:V})})],0)},R=function(e,t){var n,r=e.url,a=e.selected,c=e.onClick;return a&&(n="2px solid #22aa00"),(0,o.createComponentVNode)(2,s.Box,{as:"img",src:r,style:{width:"64px",margin:"2px","margin-left":"4px",outline:n},onClick:c})},j=function(e,t){var n=e.gene,r=e.onChange,a=e.disabled,c=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,m),i=p.length,l=p.indexOf(n),d=a&&h.X||h[n];return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Button,Object.assign({},c,{color:d,onClick:function(e){if(e.preventDefault(),r)if(-1!==l){var t=p[(l+1)%i];r(e,t)}else r(e,p[0])},oncontextmenu:function(e){if(e.preventDefault(),r)if(-1!==l){var t=p[(l-1+i)%i];r(e,t)}else r(e,p[i-1])},children:n})))},W=function(e,t){var n=e.mutation,r=(0,d.useBackend)(t),a=r.data,i=r.act,l=a.view.jokerActive;if(!n)return(0,o.createComponentVNode)(2,s.Box,{color:"average",children:"No genome selected for sequencing."});if(n.Scrambled)return(0,o.createComponentVNode)(2,s.Box,{color:"average",children:"Sequence unreadable due to unpredictable mutation."});for(var u=n.Sequence,m=n.DefaultSeq,p=[],h=function(e){var t=u.charAt(e),r=(0,o.createComponentVNode)(2,j,{width:"22px",textAlign:"center",disabled:!!n.Scrambled||1!==n.Class,className:"X"===(null==m?void 0:m.charAt(e))&&!n.Active&&(0,c.classes)(["outline-solid","outline-color-orange"]),gene:t,onChange:function(t,o){if(!t.ctrlKey)return l?(i("pulse_gene",{pos:e+1,gene:"J",alias:n.Alias}),void i("set_view",{jokerActive:""})):void i("pulse_gene",{pos:e+1,gene:o,alias:n.Alias});i("pulse_gene",{pos:e+1,gene:"X",alias:n.Alias})}});p.push(r)},C=0;C<u.length;C++)h(C);for(var f=[],N=0;N<p.length;N+=2){var g=(0,o.createComponentVNode)(2,s.Box,{inline:!0,m:.5,children:[p[N],(0,o.createComponentVNode)(2,s.Box,{mt:"-2px",ml:"10px",width:"2px",height:"8px",backgroundColor:"label"}),p[N+1]]},N);N%8==0&&0!==N&&f.push((0,o.createComponentVNode)(2,s.Box,{inline:!0,position:"relative",top:"-17px",left:"-1px",width:"8px",height:"2px",backgroundColor:"label"},N+"_divider")),f.push(g)}return(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Box,{m:-.5,children:f}),(0,o.createComponentVNode)(2,s.Box,{color:"label",mt:1,children:[(0,o.createVNode)(1,"b",null,"Tip:",16)," Ctrl+Click on the gene to set it to X. Right Click to cycle in reverse."]})],4)},z=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=(n.act,r.isScannerConnected);r.stdDevAcc,r.stdDevStr;return a?(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,s.Flex.Item,{width:"155px",children:(0,o.createComponentVNode)(2,H)}),(0,o.createComponentVNode)(2,s.Flex.Item,{width:"140px",children:(0,o.createComponentVNode)(2,U)}),(0,o.createComponentVNode)(2,s.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,G)})]}),(0,o.createComponentVNode)(2,q)],4):(0,o.createComponentVNode)(2,s.Section,{color:"bad",children:"DNA Scanner is not connected."})},H=function(e,t){var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.radStrength,i=r.radDuration;return(0,o.createComponentVNode)(2,s.Section,{title:"Radiation Emitter",minHeight:"100%",children:(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Output level",children:(0,o.createComponentVNode)(2,s.NumberInput,{animated:!0,width:"32px",stepPixelSize:10,value:c,minValue:1,maxValue:15,onDrag:function(e,t){return a("set_pulse_strength",{val:t})}})}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Pulse duration",children:(0,o.createComponentVNode)(2,s.NumberInput,{animated:!0,width:"32px",stepPixelSize:10,value:i,minValue:1,maxValue:30,onDrag:function(e,t){return a("set_pulse_duration",{val:t})}})})]})})},U=function(e,t){var n=(0,d.useBackend)(t).data,r=n.stdDevAcc,a=n.stdDevStr;return(0,o.createComponentVNode)(2,s.Section,{title:"Probabilities",minHeight:"100%",children:(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Accuracy",textAlign:"right",children:r}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"P(\xb1"+a+")",textAlign:"right",children:"68 %"}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"P(\xb1"+2*a+")",textAlign:"right",children:"95 %"})]})})},G=function(e,t){for(var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.subjectUNI,i=void 0===c?[]:c,l=[],u=[],m=function(e){var t=i.charAt(e),n=(0,o.createComponentVNode)(2,s.Button,{fluid:!0,textAlign:"center",content:t,onClick:function(){return a("makeup_pulse",{index:e+1})}},e);if(u.push(n),u.length>=3){var r=(0,o.createComponentVNode)(2,s.Box,{inline:!0,width:"22px",mx:"1px",children:u});l.push(r),u=[]}},p=0;p<i.length;p++)m(p);return(0,o.createComponentVNode)(2,s.Section,{title:"Unique Enzymes",minHeight:"100%",position:"relative",children:(0,o.createComponentVNode)(2,s.Box,{mx:"-1px",children:l})})},q=function(e,t){for(var n=(0,d.useBackend)(t),r=n.data,a=n.act,c=r.diskHasMakeup,i=r.hasDisk,l=r.isViableSubject,u=r.makeupCapacity,m=void 0===u?3:u,p=r.makeupStorage,h=[],C=function(e){var t=p[e],n=(0,o.createComponentVNode)(2,s.Collapsible,{title:t?t.label||t.name:"Slot "+e,buttons:(0,o.createFragment)([!(!i||!c)&&(0,o.createComponentVNode)(2,s.Button,{mr:1,disabled:!i||!c,content:"Import from disk",onClick:function(){return a("load_makeup_disk",{index:e})}}),(0,o.createComponentVNode)(2,s.Button,{disabled:!l,content:"Save",onClick:function(){return a("save_makeup_console",{index:e})}}),(0,o.createComponentVNode)(2,s.Button,{ml:1,icon:"times",color:"red",disabled:!t,onClick:function(){return a("del_makeup_console",{index:e})}})],0),children:(0,o.createComponentVNode)(2,K,{index:e,makeup:t})});h.push(n)},f=1;f<=m;f++)C(f);return(0,o.createComponentVNode)(2,s.Section,{title:"Genetic Makeup Buffers",children:h})},Y=function(e,t){var n=e.makeup;return(0,o.createComponentVNode)(2,s.Section,{title:"Enzyme Information",children:(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:n.name||"None"}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Blood Type",children:n.blood_type||"None"}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Unique Enzyme",children:n.UE||"None"}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Unique Identifier",children:n.UI||"None"})]})})},K=function(e,t){var n=e.index,r=e.makeup,a=(0,d.useBackend)(t),c=a.act,i=a.data,l=i.isViableSubject,u=i.hasDisk,m=i.diskReadOnly,p=i.isInjectorReady,h=l?"makeup_apply":"makeup_delay";return r?(0,o.createFragment)([(0,o.createComponentVNode)(2,Y,{makeup:r}),(0,o.createComponentVNode)(2,s.Divider),(0,o.createComponentVNode)(2,s.Box,{bold:!0,color:"label",mb:1,children:"Makeup Actions"}),(0,o.createComponentVNode)(2,s.LabeledList,{children:[(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Enzymes",children:[(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!p,content:"Print",onClick:function(){return c("makeup_injector",{index:n,type:"ue"})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"exchange-alt",onClick:function(){return c(h,{index:n,type:"ue"})},children:["Transfer",!l&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Identity",children:[(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!p,content:"Print",onClick:function(){return c("makeup_injector",{index:n,type:"ui"})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"exchange-alt",onClick:function(){return c(h,{index:n,type:"ui"})},children:["Transfer",!l&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{label:"Full Makeup",children:[(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!p,content:"Print",onClick:function(){return c("makeup_injector",{index:n,type:"mixed"})}}),(0,o.createComponentVNode)(2,s.Button,{icon:"exchange-alt",onClick:function(){return c(h,{index:n,type:"mixed"})},children:["Transfer",!l&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,s.LabeledList.Item,{children:(0,o.createComponentVNode)(2,s.Button,{icon:"save",disabled:!u||m,content:"Export To Disk",onClick:function(){return c("save_makeup_disk",{index:n})}})})]})],4):(0,o.createComponentVNode)(2,s.Box,{color:"average",children:"No stored subject data."})},$=function(e,t){var n,r=(0,d.useBackend)(t),a=r.act,c=r.data,i=c.maxAdvInjectors,l=c.isInjectorReady,u=null!=(n=c.storage.injector)?n:[];return(0,o.createComponentVNode)(2,s.Section,{title:"Advanced Injectors",children:[u.map((function(e){return(0,o.createComponentVNode)(2,s.Collapsible,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.Button,{icon:"syringe",disabled:!l,content:"Print",onClick:function(){return a("print_adv_inj",{name:e.name})}}),(0,o.createComponentVNode)(2,s.Button,{ml:1,color:"red",icon:"times",onClick:function(){return a("del_adv_inj",{name:e.name})}})],4),children:(0,o.createComponentVNode)(2,M,{mutations:e.mutations,customMode:"advinj"+u.findIndex((function(t){return e.name===t.name}))})},e.name)})),(0,o.createComponentVNode)(2,s.Box,{mt:2,children:(0,o.createComponentVNode)(2,s.Button.Input,{minWidth:"200px",content:"Create new injector",disabled:u.length>=i,onCommit:function(e,t){return a("new_adv_inj",{name:t})}})})]})},Q=function(e,t){var n=e.mutations,r=void 0===n?[]:n,a=e.source,c=(0,d.useBackend)(t),i=c.act,l=(c.data,function(e){var t;return null==(t=r.find((function(t){return t.Name===e})))?void 0:t.ByondRef});return(0,o.createComponentVNode)(2,s.Dropdown,{width:"240px",options:r.map((function(e){return e.Name})),disabled:0===r.length,selected:"Combine mutations",onSelected:function(e){return i("combine_"+a.Source,{firstref:l(e),secondref:a.ByondRef})}},a.ByondRef)}},67045:function(e,t,n){"use strict";t.__esModule=!0,t.DnaConsoleEnzymes=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(19253),i=n(56092),l=function(e,t){var n=e.index,i=e.makeup,l=(0,r.useBackend)(t),d=l.act,s=l.data,u=s.isViableSubject,m=s.hasDisk,p=s.diskReadOnly,h=s.isInjectorReady,C=u?"makeup_apply":"makeup_delay";return i?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.GeneticMakeupInfo,{makeup:i}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",mb:1,children:"Makeup Actions"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Enzymes",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",disabled:!h,content:"Print",onClick:function(){return d("makeup_injector",{index:n,type:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exchange-alt",onClick:function(){return d(C,{index:n,type:"ue"})},children:["Transfer",!u&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Identity",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",disabled:!h,content:"Print",onClick:function(){return d("makeup_injector",{index:n,type:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exchange-alt",onClick:function(){return d(C,{index:n,type:"ui"})},children:["Transfer",!u&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Features",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",disabled:!h,content:"Print",onClick:function(){return d("makeup_injector",{index:n,type:"uf"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exchange-alt",onClick:function(){return d(C,{index:n,type:"uf"})},children:["Transfer",!u&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Full Makeup",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",disabled:!h,content:"Print",onClick:function(){return d("makeup_injector",{index:n,type:"mixed"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exchange-alt",onClick:function(){return d(C,{index:n,type:"mixed"})},children:["Transfer",!u&&" (Delayed)"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",disabled:!m||p,content:"Export To Disk",onClick:function(){return d("save_makeup_disk",{index:n})}})})]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No stored subject data."})},d=function(e,t){for(var n=(0,r.useBackend)(t),c=n.data,i=n.act,d=c.diskHasMakeup,s=c.geneticMakeupCooldown,u=c.hasDisk,m=c.isViableSubject,p=c.makeupCapacity,h=void 0===p?3:p,C=c.makeupStorage,f=[],N=function(e){var t=C[e],n=(0,o.createComponentVNode)(2,a.Collapsible,{title:t?t.label||t.name:"Slot "+e,buttons:(0,o.createFragment)([!(!u||!d)&&(0,o.createComponentVNode)(2,a.Button,{mr:1,disabled:!u||!d,content:"Import from disk",onClick:function(){return i("load_makeup_disk",{index:e})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,content:"Save",onClick:function(){return i("save_makeup_console",{index:e})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"times",color:"red",disabled:!t,onClick:function(){return i("del_makeup_console",{index:e})}})],0),children:(0,o.createComponentVNode)(2,l,{index:e,makeup:t})});f.push(n)},g=1;g<=h;g++)N(g);return(0,o.createComponentVNode)(2,a.Section,{title:"Genetic Makeup Buffers",children:[!!s&&(0,o.createComponentVNode)(2,a.Dimmer,{fontSize:"14px",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{mr:1,name:"spinner",spin:!0}),"Genetic makeup transfer ready in...",(0,o.createComponentVNode)(2,a.Box,{mt:1}),s,"s"]}),f]})},s=function(e,t){var n=(0,r.useBackend)(t).data,c=n.stdDevAcc,i=n.stdDevStr;return(0,o.createComponentVNode)(2,a.Section,{title:"Probabilities",minHeight:"100%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accuracy",textAlign:"right",children:c}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"P(\xb1"+i+")",textAlign:"right",children:"68 %"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"P(\xb1"+2*i+")",textAlign:"right",children:"95 %"})]})})},u=function(e,t){for(var n=(0,r.useBackend)(t).act,c=e.subjectBlock,i=void 0===c?[]:c,l=e.type,d=e.name,s=[],u=[],m=function(e){var t=i.charAt(e),r=(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",content:t,onClick:function(){return n("makeup_pulse",{index:e+1,type:l})}},e);if(u.push(r),u.length>=3){var c=(0,o.createComponentVNode)(2,a.Box,{inline:!0,width:"22px",mx:"1px",children:u});s.push(c),u=[]}},p=0;p<i.length;p++)m(p);return(0,o.createComponentVNode)(2,a.Section,{title:"Unique "+d,minHeight:"100%",position:"relative",children:(0,o.createComponentVNode)(2,a.Box,{mx:"-1px",children:s})})},m=function(e,t){var n=(0,r.useBackend)(t),c=n.data,l=n.act,d=c.pulseStrength,s=c.pulseDuration;return(0,o.createComponentVNode)(2,a.Section,{title:"Emitter Configuration",minHeight:"100%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output level",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,width:"32px",stepPixelSize:10,value:d,minValue:1,maxValue:i.PULSE_STRENGTH_MAX,onDrag:function(e,t){return l("set_pulse_strength",{val:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse duration",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,width:"32px",stepPixelSize:10,value:s,minValue:1,maxValue:i.PULSE_DURATION_MAX,onDrag:function(e,t){return l("set_pulse_duration",{val:t})}})})]})})};t.DnaConsoleEnzymes=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=(n.act,c.isScannerConnected),l=e.subjectBlock,p=e.type,h=e.name;return i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{width:"155px",children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"140px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,u,{subjectBlock:l,type:p,name:h})})]}),(0,o.createComponentVNode)(2,d)],4):(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"DNA Scanner is not connected."})}},81933:function(e,t,n){"use strict";t.__esModule=!0,t.DnaConsoleSequencer=void 0;var o=n(96323),r=n(1060),a=n(39646),c=n(31246),i=n(26949),l=n(50842),d=n(56092),s=["alias","gene","index","disabled"];var u=function(e,t){var n,r=e.url,a=e.selected,c=e.onClick;return a&&(n="2px solid #22aa00"),(0,o.createComponentVNode)(2,i.Box,{as:"img",src:r,style:{width:"64px",margin:"2px","margin-left":"4px",outline:n},onClick:c})},m=function(e,t){var n=(0,c.useBackend)(t).act,r=e.alias,a=e.gene,l=e.index,u=e.disabled,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,s),p=u&&d.GENE_COLORS.X||d.GENE_COLORS[a];return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Button,Object.assign({},m,{color:p,onClick:function(e){e.preventDefault(),e.ctrlKey?n("pulse_gene",{pos:l+1,pulseAction:d.CLEAR_GENE,alias:r}):n("pulse_gene",{pos:l+1,pulseAction:d.NEXT_GENE,alias:r})},oncontextmenu:function(e){e.preventDefault(),n("pulse_gene",{pos:l+1,pulseAction:d.PREV_GENE,alias:r})},children:a})))},p=function(e,t){var n=e.mutation;if(!n)return(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"No genome selected for sequencing."});if(n.Scrambled)return(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Sequence unreadable due to unpredictable mutation."});for(var a=n.Sequence,c=n.DefaultSeq,l=[],s=0;s<a.length;s++){var u=a.charAt(s),p=(0,o.createComponentVNode)(2,m,{width:"22px",textAlign:"center",disabled:!!n.Scrambled||n.Class!==d.MUT_NORMAL,className:"X"===(null==c?void 0:c.charAt(s))&&!n.Active&&(0,r.classes)(["outline-solid","outline-color-orange"]),gene:u,index:s,alias:n.Alias});l.push(p)}for(var h=[],C=0;C<l.length;C+=2){var f=(0,o.createComponentVNode)(2,i.Box,{inline:!0,m:.5,children:[l[C],(0,o.createComponentVNode)(2,i.Box,{mt:"-2px",ml:"10px",width:"2px",height:"8px",backgroundColor:"label"}),l[C+1]]},C);C%8==0&&0!==C&&h.push((0,o.createComponentVNode)(2,i.Box,{inline:!0,position:"relative",top:"-17px",left:"-1px",width:"8px",height:"2px",backgroundColor:"label"},C+"_divider")),h.push(f)}return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{m:-.5,children:h}),(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:1,children:[(0,o.createVNode)(1,"b",null,"Tip:",16)," Ctrl+Click on the gene to set it to X. Right Click to cycle in reverse."]})],4)};t.DnaConsoleSequencer=function(e,t){var n,r,s=(0,c.useBackend)(t),m=s.data,h=s.act,C=null!=(n=null==(r=m.storage)?void 0:r.occupant)?n:[],f=m.isJokerReady,N=m.isMonkey,g=m.jokerSeconds,V=m.subjectStatus,b=m.view,v=b.sequencerMutation,k=b.jokerActive,_=C.find((function(e){return e.Alias===v}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Stack,{mb:1,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{width:C.length<=8?"154px":"174px",children:(0,o.createComponentVNode)(2,i.Section,{title:"Sequences",height:"214px",overflowY:C.length>8&&"scroll",children:C.map((function(e){return(0,o.createComponentVNode)(2,u,{url:(0,a.resolveAsset)(e.Image),selected:e.Alias===v,onClick:function(){h("set_view",{sequencerMutation:e.Alias}),h("check_discovery",{alias:e.Alias})}},e.Alias)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Sequence Info",minHeight:"100%",children:(0,o.createComponentVNode)(2,l.MutationInfo,{mutation:_})})})]}),V===d.SUBJECT_DEAD&&(0,o.createComponentVNode)(2,i.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: DECEASED."})||N&&"Monkified"!==(null==_?void 0:_.Name)&&(0,o.createComponentVNode)(2,i.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: MONKEY."})||V===d.SUBJECT_TRANSFORMING&&(0,o.createComponentVNode)(2,i.Section,{color:"bad",children:"Genetic sequence corrupted. Subject diagnostic report: TRANSFORMING."})||(0,o.createComponentVNode)(2,i.Section,{title:"Genome Sequencer\u2122",buttons:!f&&(0,o.createComponentVNode)(2,i.Box,{lineHeight:"20px",color:"label",children:["Joker on cooldown (",g,"s)"]})||k&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{mr:1,inline:!0,color:"label",children:"Click on a gene to reveal it."}),(0,o.createComponentVNode)(2,i.Button,{content:"Cancel Joker",onClick:function(){return h("set_view",{jokerActive:""})}})],4)||(0,o.createComponentVNode)(2,i.Button,{icon:"crown",color:"purple",content:"Use Joker",onClick:function(){return h("set_view",{jokerActive:"1"})}}),children:(0,o.createComponentVNode)(2,p,{mutation:_})})],0)}},25404:function(e,t,n){"use strict";t.__esModule=!0,t.DnaConsoleStorage=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(19253),d=n(50842),s=n(56092),u=function(e,t){var n,r=(0,c.useBackend)(t),a=r.act,l=r.data,d=l.maxAdvInjectors,s=l.isInjectorReady,u=null!=(n=l.storage.injector)?n:[];return(0,o.createComponentVNode)(2,i.Section,{title:"Advanced Injectors",children:[u.map((function(e){return(0,o.createComponentVNode)(2,i.Collapsible,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",disabled:!s,content:"Print",onClick:function(){return a("print_adv_inj",{name:e.name})}}),(0,o.createComponentVNode)(2,i.Button,{ml:1,color:"red",icon:"times",onClick:function(){return a("del_adv_inj",{name:e.name})}})],4),children:(0,o.createComponentVNode)(2,h,{mutations:e.mutations,customMode:"advinj"+u.findIndex((function(t){return e.name===t.name}))})},e.name)})),(0,o.createComponentVNode)(2,i.Box,{mt:2,children:(0,o.createComponentVNode)(2,i.Button.Input,{minWidth:"200px",content:"Create new injector",disabled:u.length>=d,onCommit:function(e,t){return a("new_adv_inj",{name:t})}})})]})},m=function(e,t){var n=(0,c.useBackend)(t),r=n.data,a=n.act,l=r.hasDisk,d=r.view,u=d.storageMode,m=d.storageConsSubMode,p=d.storageDiskSubMode;return(0,o.createFragment)([u===s.STORAGE_MODE_CONSOLE&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{selected:m===s.STORAGE_CONS_SUBMODE_MUTATIONS,content:"Mutations",onClick:function(){return a("set_view",{storageConsSubMode:s.STORAGE_CONS_SUBMODE_MUTATIONS})}}),(0,o.createComponentVNode)(2,i.Button,{selected:m===s.STORAGE_CONS_SUBMODE_CHROMOSOMES,content:"Chromosomes",onClick:function(){return a("set_view",{storageConsSubMode:s.STORAGE_CONS_SUBMODE_CHROMOSOMES})}})],4),u===s.STORAGE_MODE_DISK&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{selected:p===s.STORAGE_CONS_SUBMODE_MUTATIONS,content:"Mutations",onClick:function(){return a("set_view",{storageDiskSubMode:s.STORAGE_CONS_SUBMODE_MUTATIONS})}}),(0,o.createComponentVNode)(2,i.Button,{selected:p===s.STORAGE_DISK_SUBMODE_ENZYMES,content:"Enzymes",onClick:function(){return a("set_view",{storageDiskSubMode:s.STORAGE_DISK_SUBMODE_ENZYMES})}})],4),(0,o.createComponentVNode)(2,i.Box,{inline:!0,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Console",selected:u===s.STORAGE_MODE_CONSOLE,onClick:function(){return a("set_view",{storageMode:s.STORAGE_MODE_CONSOLE,storageConsSubMode:null!=s.STORAGE_CONS_SUBMODE_MUTATIONS?s.STORAGE_CONS_SUBMODE_MUTATIONS:m})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Disk",disabled:!l,selected:u===s.STORAGE_MODE_DISK,onClick:function(){return a("set_view",{storageMode:s.STORAGE_MODE_DISK,storageDiskSubMode:null!=s.STORAGE_DISK_SUBMODE_MUTATIONS?s.STORAGE_DISK_SUBMODE_MUTATIONS:p})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Adv. Injector",selected:u===s.STORAGE_MODE_ADVINJ,onClick:function(){return a("set_view",{storageMode:s.STORAGE_MODE_ADVINJ})}})],0)},p=function(e,t){var n,a=(0,c.useBackend)(t),l=a.data,d=a.act,s=null!=(n=l.chromoStorage)?n:[],u=(0,r.uniqBy)((function(e){return e.Name}))(s),m=l.view.storageChromoName,p=s.find((function(e){return e.Name===m}));return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"140px",children:(0,o.createComponentVNode)(2,i.Section,{title:"Console Storage",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,ellipsis:!0,color:"transparent",selected:e.Name===m,content:e.Name,onClick:function(){return d("set_view",{storageChromoName:e.Name})}},e.Index)}))})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Chromosome Info",level:2,children:!p&&(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Nothing to show."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:p.Name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:p.Description}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Amount",children:s.filter((function(e){return e.Name===p.Name})).length})]}),(0,o.createComponentVNode)(2,i.Button,{mt:2,icon:"eject",content:"Eject Chromosome",onClick:function(){return d("eject_chromo",{chromo:p.Name})}})],4)})})]})},h=function(e,t){var n=e.customMode,r=void 0===n?"":n,l=(0,c.useBackend)(t),s=l.data,u=l.act,m=e.mutations||[],p=s.view.storageMode+r,h=s.view["storage"+p+"MutationRef"],C=m.find((function(e){return e.ByondRef===h}));return!C&&m.length>0&&(C=m[0],h=C.ByondRef),(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"140px",children:(0,o.createComponentVNode)(2,i.Section,{title:(0,a.capitalize)(s.view.storageMode)+" Storage",level:2,children:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,ellipsis:!0,color:"transparent",selected:e.ByondRef===h,content:e.Name,onClick:function(){var t;return u("set_view",((t={})["storage"+p+"MutationRef"]=e.ByondRef,t))}},e.ByondRef)}))})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Mutation Info",level:2,children:(0,o.createComponentVNode)(2,d.MutationInfo,{mutation:C})})})]})};t.DnaConsoleStorage=function(e,t){var n=(0,c.useBackend)(t),r=n.data,a=n.act,d=r.view,C=d.storageMode,f=d.storageConsSubMode,N=d.storageDiskSubMode,g=r.diskMakeupBuffer,V=r.diskHasMakeup,b=r.storage[C];return(0,o.createComponentVNode)(2,i.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,m),children:[C===s.STORAGE_MODE_CONSOLE&&f===s.STORAGE_CONS_SUBMODE_MUTATIONS&&(0,o.createComponentVNode)(2,h,{mutations:b}),C===s.STORAGE_MODE_CONSOLE&&f===s.STORAGE_CONS_SUBMODE_CHROMOSOMES&&(0,o.createComponentVNode)(2,p),C===s.STORAGE_MODE_DISK&&N===s.STORAGE_DISK_SUBMODE_MUTATIONS&&(0,o.createComponentVNode)(2,h,{mutations:b}),C===s.STORAGE_MODE_DISK&&N===s.STORAGE_DISK_SUBMODE_ENZYMES&&(0,o.createFragment)([(0,o.createComponentVNode)(2,l.GeneticMakeupInfo,{makeup:g}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"red",disabled:!V,content:"Delete",onClick:function(){return a("del_makeup_disk")}})],4),C===s.STORAGE_MODE_ADVINJ&&(0,o.createComponentVNode)(2,u)]})}},59405:function(e,t,n){"use strict";t.__esModule=!0,t.DnaScanner=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(56092),i=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.hasDelayedAction,d=c.isPulsing,s=c.isScannerConnected,u=c.isScrambleReady,m=c.isViableSubject,p=c.scannerLocked,h=c.scannerOpen,C=c.scrambleSeconds;return s?(0,o.createFragment)([!!l&&(0,o.createComponentVNode)(2,a.Button,{content:"Cancel Delayed Action",onClick:function(){return i("cancel_delay")}}),!!m&&(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,onClick:function(){return i("scramble_dna")},children:["Scramble DNA",!u&&" ("+C+"s)"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,mr:1}),(0,o.createComponentVNode)(2,a.Button,{icon:p?"lock":"lock-open",color:p&&"bad",disabled:h,content:p?"Locked":"Unlocked",onClick:function(){return i("toggle_lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:p,content:h?"Close":"Open",onClick:function(){return i("toggle_door")}})],0):(0,o.createComponentVNode)(2,a.Button,{content:"Connect Scanner",onClick:function(){return i("connect_scanner")}})},l=function(e,t){var n=e.status;return n===c.SUBJECT_CONCIOUS?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Conscious"}):n===c.SUBJECT_UNCONSCIOUS?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:"Unconscious"}):n===c.SUBJECT_SOFT_CRIT?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:"Critical"}):n===c.SUBJECT_DEAD?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Dead"}):n===c.SUBJECT_TRANSFORMING?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Transforming"}):(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:"Unknown"})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=(n.act,c.subjectName),d=c.isScannerConnected,s=c.isViableSubject,u=c.subjectHealth,m=c.subjectDamage,p=c.subjectStatus;return d?s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:[i,(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"label",name:"long-arrow-alt-right"}),(0,o.createComponentVNode)(2,l,{status:p})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{olive:[101,Infinity],good:[70,101],average:[30,70],bad:[-Infinity,30]},children:[u,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Genetic Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{bad:[71,Infinity],average:[30,71],good:[0,30],olive:[-Infinity,0]},children:[m,"%"]})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No viable subject found in DNA Scanner."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DNA Scanner is not connected."})};t.DnaScanner=function(e,t){return(0,o.createComponentVNode)(2,a.Section,{title:"DNA Scanner",buttons:(0,o.createComponentVNode)(2,i),children:(0,o.createComponentVNode)(2,d)})}},19253:function(e,t,n){"use strict";t.__esModule=!0,t.GeneticMakeupInfo=void 0;var o=n(96323),r=n(26949);t.GeneticMakeupInfo=function(e,t){var n=e.makeup;return(0,o.createComponentVNode)(2,r.Section,{title:"Enzyme Information",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Name",children:n.name||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Blood Type",children:n.blood_type||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Unique Enzyme",children:n.UE||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Unique Identifier",children:n.UI||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Unique Features",children:n.UF||"None"})]})})}},50842:function(e,t,n){"use strict";t.__esModule=!0,t.MutationInfo=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(56092),d=function(e,t){return e.Alias===t.Alias&&e.AppliedChromo===t.AppliedChromo},s=function(e,t){var n=e.mutation,r=e.disabled,a=(0,c.useBackend)(t),d=(a.data,a.act);return n.CanChromo===l.CHROMOSOME_NEVER?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No compatible chromosomes"}):n.CanChromo===l.CHROMOSOME_NONE?r?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No chromosome applied."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Dropdown,{width:"240px",options:n.ValidStoredChromos,disabled:0===n.ValidStoredChromos.length,selected:0===n.ValidStoredChromos.length?"No Suitable Chromosomes":"Select a chromosome",onSelected:function(e){return d("apply_chromo",{chromo:e,mutref:n.ByondRef})}}),(0,o.createComponentVNode)(2,i.Box,{color:"label",mt:1,children:["Compatible with: ",n.ValidChromos]})],4):n.CanChromo===l.CHROMOSOME_USED?(0,o.createComponentVNode)(2,i.Box,{color:"label",children:["Applied chromosome: ",n.AppliedChromo]}):null},u=function(e,t){var n=e.mutations,r=void 0===n?[]:n,a=e.source,l=(0,c.useBackend)(t),d=l.act,s=(l.data,function(e){var t;return null==(t=r.find((function(t){return t.Name===e})))?void 0:t.ByondRef});return(0,o.createComponentVNode)(2,i.Dropdown,{width:"240px",options:r.map((function(e){return e.Name})),disabled:0===r.length,selected:"Combine mutations",onSelected:function(e){return d("combine_"+a.Source,{firstref:s(e),secondref:a.ByondRef})}},a.ByondRef)};t.MutationInfo=function(e,t){var n,m,p,h=e.mutation,C=(0,c.useBackend)(t),f=C.data,N=C.act,g=f.diskCapacity,V=f.diskReadOnly,b=f.hasDisk,v=f.isInjectorReady,k=f.isCrisprReady,_=f.crisprCharges,y=null!=(n=f.storage.disk)?n:[],w=null!=(m=f.storage.console)?m:[],x=null!=(p=f.storage.injector)?p:[];if(!h)return(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"Nothing to show."});if("occupant"===h.Source&&!h.Discovered)return(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:h.Alias})});var S=w.find((function(e){return d(e,h)})),B=y.find((function(e){return d(e,h)})),I=(0,a.flow)([(0,r.uniqBy)((function(e){return e.Name})),(0,r.filter)((function(e){return e.Name!==h.Name}))])([].concat(y,w));return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:l.MUT_COLORS[h.Quality],children:h.Name})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Description",children:h.Description}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Instability",children:h.Instability})]}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,i.Box,{children:["disk"===h.Source&&(0,o.createComponentVNode)(2,u,{disabled:!b||g<=0||V,mutations:I,source:h}),"console"===h.Source&&(0,o.createComponentVNode)(2,u,{mutations:I,source:h}),["occupant","disk","console"].includes(h.Source)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Dropdown,{width:"240px",options:x.map((function(e){return e.name})),disabled:0===x.length||!h.Active,selected:"Add to advanced injector",onSelected:function(e){return N("add_advinj_mut",{mutref:h.ByondRef,advinj:e,source:h.Source})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",disabled:!v||!h.Active,content:"Print Activator",onClick:function(){return N("print_injector",{mutref:h.ByondRef,is_activator:1,source:h.Source})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",disabled:!v||!h.Active,content:"Print Mutator",onClick:function(){return N("print_injector",{mutref:h.ByondRef,is_activator:0,source:h.Source})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"syringe",disabled:!h.Active||!k,content:"CRISPR ["+_+"]",onClick:function(){return N("crispr",{mutref:h.ByondRef,source:h.Source})}})],4)]}),["disk","occupant"].includes(h.Source)&&(0,o.createComponentVNode)(2,i.Button,{icon:"save",disabled:S||!h.Active,content:"Save to Console",onClick:function(){return N("save_console",{mutref:h.ByondRef,source:h.Source})}}),["console","occupant"].includes(h.Source)&&(0,o.createComponentVNode)(2,i.Button,{icon:"save",disabled:B||!b||g<=0||V||!h.Active,content:"Save to Disk",onClick:function(){return N("save_disk",{mutref:h.ByondRef,source:h.Source})}}),["console","disk","injector"].includes(h.Source)&&(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"red",content:"Delete from "+h.Source,onClick:function(){return N("delete_"+h.Source+"_mut",{mutref:h.ByondRef})}}),(h.Class===l.MUT_EXTRA||!!h.Scrambled&&"occupant"===h.Source)&&(0,o.createComponentVNode)(2,i.Button,{content:"Nullify",onClick:function(){return N("nullify",{mutref:h.ByondRef})}}),(0,o.createComponentVNode)(2,i.Divider),(0,o.createComponentVNode)(2,s,{disabled:"occupant"!==h.Source,mutation:h})],0)}},56092:function(e,t){"use strict";var n;t.__esModule=!0,t.PREV_GENE=t.NEXT_GENE=t.CLEAR_GENE=t.MUT_COLORS=t.PULSE_DURATION_MAX=t.PULSE_STRENGTH_MAX=t.SUBJECT_TRANSFORMING=t.SUBJECT_DEAD=t.SUBJECT_UNCONSCIOUS=t.SUBJECT_SOFT_CRIT=t.SUBJECT_CONCIOUS=t.STORAGE_MODE_ADVINJ=t.STORAGE_MODE_DISK=t.STORAGE_MODE_CONSOLE=t.STORAGE_DISK_SUBMODE_ENZYMES=t.STORAGE_DISK_SUBMODE_MUTATIONS=t.STORAGE_CONS_SUBMODE_CHROMOSOMES=t.STORAGE_CONS_SUBMODE_MUTATIONS=t.MUT_EXTRA=t.MUT_NORMAL=t.GENE_COLORS=t.CONSOLE_MODE_STORAGE=t.CONSOLE_MODE_SEQUENCER=t.CONSOLE_MODE_FEATURES=t.CONSOLE_MODE_ENZYMES=t.CHROMOSOME_USED=t.CHROMOSOME_NONE=t.CHROMOSOME_NEVER=void 0;t.CHROMOSOME_NEVER=0;t.CHROMOSOME_NONE=1;t.CHROMOSOME_USED=2;t.CONSOLE_MODE_ENZYMES="enzymes";t.CONSOLE_MODE_FEATURES="features";t.CONSOLE_MODE_SEQUENCER="sequencer";t.CONSOLE_MODE_STORAGE="storage";t.GENE_COLORS={A:"green",T:"green",G:"blue",C:"blue",X:"grey"};t.MUT_NORMAL=1;t.MUT_EXTRA=2;t.STORAGE_CONS_SUBMODE_MUTATIONS="mutations";t.STORAGE_CONS_SUBMODE_CHROMOSOMES="chromosomes";t.STORAGE_DISK_SUBMODE_MUTATIONS="mutations";t.STORAGE_DISK_SUBMODE_ENZYMES="diskenzymes";t.STORAGE_MODE_CONSOLE="console";t.STORAGE_MODE_DISK="disk";t.STORAGE_MODE_ADVINJ="injector";t.SUBJECT_CONCIOUS=0;t.SUBJECT_SOFT_CRIT=1;t.SUBJECT_UNCONSCIOUS=2;t.SUBJECT_DEAD=3;t.SUBJECT_TRANSFORMING=4;t.PULSE_STRENGTH_MAX=15;t.PULSE_DURATION_MAX=30;var o=((n={})[1]="good",n[2]="bad",n[4]="average",n);t.MUT_COLORS=o;t.CLEAR_GENE=0;t.NEXT_GENE=1;t.PREV_GENE=2},51329:function(e,t,n){"use strict";t.__esModule=!0,t.DnaConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(67045),l=n(81933),d=n(25404),s=n(59405),u=n(56092),m=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.hasDisk,d=c.isInjectorReady,s=c.injectorSeconds,m=c.view.consoleMode;return(0,o.createComponentVNode)(2,a.Section,{title:"DNA Console",buttons:!d&&(0,o.createComponentVNode)(2,a.Box,{lineHeight:"20px",color:"label",children:["Injector on cooldown (",s,"s)"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,a.Button,{content:"Storage",selected:m===u.CONSOLE_MODE_STORAGE,onClick:function(){return i("set_view",{consoleMode:u.CONSOLE_MODE_STORAGE})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Sequencer",disabled:!c.isViableSubject,selected:m===u.CONSOLE_MODE_SEQUENCER,onClick:function(){return i("set_view",{consoleMode:u.CONSOLE_MODE_SEQUENCER})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Enzymes",selected:m===u.CONSOLE_MODE_ENZYMES,onClick:function(){return i("set_view",{consoleMode:u.CONSOLE_MODE_ENZYMES})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Features",selected:m===u.CONSOLE_MODE_FEATURES,onClick:function(){return i("set_view",{consoleMode:u.CONSOLE_MODE_FEATURES})}})]}),!!l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){i("eject_disk"),i("set_view",{storageMode:u.STORAGE_MODE_CONSOLE})}})})]})})};t.DnaConsole=function(e,t){var n=(0,r.useBackend)(t),p=n.data,h=(n.act,p.isPulsing),C=p.timeToPulse,f=p.subjectUNI,N=p.subjectUF,g=p.view.consoleMode;return(0,o.createComponentVNode)(2,c.Window,{title:"DNA Console",width:539,height:710,children:[!!h&&(0,o.createComponentVNode)(2,a.Dimmer,{fontSize:"14px",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{mr:1,name:"spinner",spin:!0}),"Pulse in progress...",(0,o.createComponentVNode)(2,a.Box,{mt:1}),C,"s"]}),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s.DnaScanner),(0,o.createComponentVNode)(2,m),g===u.CONSOLE_MODE_STORAGE&&(0,o.createComponentVNode)(2,d.DnaConsoleStorage),g===u.CONSOLE_MODE_SEQUENCER&&(0,o.createComponentVNode)(2,l.DnaConsoleSequencer),g===u.CONSOLE_MODE_ENZYMES&&(0,o.createComponentVNode)(2,i.DnaConsoleEnzymes,{subjectBlock:f,type:"ui",name:"Enzymes"}),g===u.CONSOLE_MODE_FEATURES&&(0,o.createComponentVNode)(2,i.DnaConsoleEnzymes,{subjectBlock:N,type:"uf",name:"Features"})]})]})}},55063:function(e,t,n){"use strict";t.__esModule=!0,t.DnaVault=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DnaVault=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.completed,s=l.used,u=l.choiceA,m=l.choiceB,p=l.dna,h=l.dna_max,C=l.plants,f=l.plants_max,N=l.animals,g=l.animals_max;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"DNA Vault Database",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Human DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/h,children:p+" / "+h+" Samples"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plant DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C/f,children:C+" / "+f+" Samples"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Animal DNA",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N/g,children:N+" / "+g+" Samples"})})]})}),!(!d||s)&&(0,o.createComponentVNode)(2,a.Section,{title:"Personal Gene Therapy",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:u,textAlign:"center",onClick:function(){return i("gene",{choice:u})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:m,textAlign:"center",onClick:function(){return i("gene",{choice:m})}})})]})]})]})})}},14847:function(e,t,n){"use strict";t.__esModule=!0,t.DopplerArray=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DopplerArray=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{width:650,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n,c=(0,r.useBackend)(t),i=c.act,l=c.data,d=l.records,s=void 0===d?[]:d,u=l.disk,m=l.storage,p=(0,r.useSharedState)(t,"activeRecordrecord",null==(n=s[0])?void 0:n.name),h=p[0],C=p[1],f=s.find((function(e){return e.name===h})),N=(0,o.createComponentVNode)(2,a.Section,{title:u?u+" ("+m+")":"No Disk Inserted",children:(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"eject",content:"Eject Disk",disabled:!u,onClick:function(){return i("eject_disk")}})}),g=(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"file",selected:e.name===h,onClick:function(){return C(e.name)},children:e.name},e.name)}))})}),f?(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:f.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return i("delete_record",{ref:f.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!u,tooltip:"Print the record selected. Requires a data disk.",tooltipPosition:"bottom",onClick:function(){return i("print_record",{ref:f.ref})}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timestamp",children:f.timestamp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coordinates",children:f.coordinates}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Displacement",children:[f.displacement," seconds"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Epicenter Radius",children:[f.factual_epicenter_radius,f.theory_epicenter_radius&&" (Theoretical: "+f.theory_epicenter_radius+")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outer Radius",children:[f.factual_outer_radius,f.theory_outer_radius&&" (Theoretical: "+f.theory_outer_radius+")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shockwave Radius",children:[f.factual_shockwave_radius,f.theory_shockwave_radius&&" (Theoretical: "+f.theory_shockwave_radius+")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible Cause(s)",children:f.reaction_results.length?f.reaction_results.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)})):"No information available"})]})})}):(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Record Selected"})})]})});return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:s.length?g:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Records"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:N})]})}},51630:function(e,t,n){"use strict";t.__esModule=!0,t.DroneConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.DroneConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No drones detected."})})]})})}},72914:function(e,t,n){"use strict";t.__esModule=!0,t.EightBallVote=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(21118),i=n(2381);t.EightBallVote=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.shaking);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:!c&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No question is currently being asked."})||(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.question,s=l.answers,u=void 0===s?[]:s;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"16px",m:1,children:['"',d,'"']}),(0,o.createComponentVNode)(2,a.Grid,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:(0,c.toTitleCase)(e.answer),selected:e.selected,fontSize:"16px",lineHeight:"24px",textAlign:"center",mb:1,onClick:function(){return i("vote",{answer:e.answer})}}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"30px",children:e.amount})]},e.answer)}))})]})}},58856:function(e,t,n){"use strict";t.__esModule=!0,t.Electrolyzer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Electrolyzer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:305,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Power",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",disabled:!l.hasPowercell||!l.open,onClick:function(){return i("eject")}}),(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,disabled:!l.hasPowercell&&!l.anchored,onClick:function(){return i("power")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell",color:!l.hasPowercell&&"bad",children:l.hasPowercell&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.powerLevel/100,content:l.powerLevel+"%",ranges:{good:[.6,Infinity],average:[.3,.6],bad:[-Infinity,.3]}})||"None"})})})})})}},29034:function(e,t,n){"use strict";t.__esModule=!0,t.Electropack=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.Electropack=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.power,u=d.code,m=d.frequency,p=d.minFrequency,h=d.maxFrequency;return(0,o.createComponentVNode)(2,i.Window,{width:260,height:137,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Frequency",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"freq"})}}),children:(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:p/10,maxValue:h/10,value:m/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return l("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Reset",onClick:function(){return l("reset",{reset:"code"})}}),children:(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(e,t){return l("code",{code:t})}})})]})})})})}},29005:function(e,t,n){"use strict";t.__esModule=!0,t.EmbeddedController=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=((0,n(79926).createLogger)("fuck"),{});t.EmbeddedController=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.internalTemplateName),l=i[a];if(!l)throw Error("Unable to find Component for template name: "+a);return(0,o.createComponentVNode)(2,c.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=e.bars;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=!0;c.interior_status&&"open"===c.interior_status.state?l=!1:c.external_pressure&&c.chamber_pressure&&(l=!(Math.abs(c.external_pressure-c.chamber_pressure)>5));var d=!0;return c.exterior_status&&"open"===c.exterior_status.state?d=!1:c.internal_pressure&&c.chamber_pressure&&(d=!(Math.abs(c.internal_pressure-c.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:c.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:c.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:c.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:c.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=(n.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"});return"open"===c.exterior_status.state?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"OPEN"}):"unlocked"===c.exterior_status.lock?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNSECURED"}):"locked"===c.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Escape Pod Status",children:i[c.docking_status]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.data;n.act;return c.armed?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!c.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==c.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,a.Button,{selected:c.override_enabled,color:"docked"!==c.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=(n.act,{docked:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:"NOT IN USE"})}[c.docking_status]);return c.override_enabled&&(i=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[c.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Purge",onClick:function(){return c("purge")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lock-open",content:"Secure",onClick:function(){return c("secure")}})]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return c("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return c("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return c("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return c("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return c("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return c("force_door")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return c("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Section,{title:"Airlocks",children:n.airlocks.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:n.airlocks.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){c(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){c(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return c("manual_arm")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return c("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,t){(0,r.useBackend)(t).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},45606:function(e,t,n){"use strict";t.__esModule=!0,t.EmergencyShuttleConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.EmergencyShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.timer_str,s=l.enabled,u=l.emagged,m=l.engines_started,p=l.authorizations_remaining,h=l.authorizations,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:350,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,fontSize:"40px",textAlign:"center",fontFamily:"monospace",children:d}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",fontSize:"16px",mb:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:"ENGINES:"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:m?"good":"average",ml:1,children:m?"Online":"Idle"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Early Launch Authorization",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Repeal All",color:"bad",disabled:!s,onClick:function(){return i("abort")}}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",color:"good",content:"AUTHORIZE",disabled:!s,onClick:function(){return i("authorize")}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"minus",content:"REPEAL",disabled:!s,onClick:function(){return i("repeal")}})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Authorizations",level:3,minHeight:"150px",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:u?"bad":"good",children:u?"ERROR":"Remaining: "+p}),children:C.length>0?C.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{bold:!0,fontSize:"16px",className:"candystripe",children:[e.name," (",e.job,")"]},e.name)})):(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"16px",color:"average",children:"No Active Authorizations"})})]})]})})})}},63090:function(e,t,n){"use strict";t.__esModule=!0,t.EngravedMessage=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.EngravedMessage=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.admin_mode,u=d.creator_key,m=d.creator_name,p=d.has_liked,h=d.has_disliked,C=d.hidden_message,f=d.is_creator,N=d.num_likes,g=d.num_dislikes,V=d.realdate;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:300,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",mb:2,children:(0,r.decodeHtmlEntities)(C)}),(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1.05,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"arrow-up",content:" "+N,disabled:f,selected:p,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("like")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"circle",disabled:f,selected:!h&&!p,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("neutral")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1.05,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"arrow-down",content:" "+g,disabled:f,selected:h,textAlign:"center",fontSize:"16px",lineHeight:"24px",onClick:function(){return l("dislike")}})})]})]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Created On",children:V})})}),!!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Admin Panel",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",color:"bad",onClick:function(){return l("delete")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Creator Ckey",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Creator Character Name",children:m})]})})]})})}},80320:function(e,t,n){"use strict";t.__esModule=!0,t.AdventureScreen=t.ExodroneConsole=void 0;var o,r,a,c=n(96323),i=n(31246),l=n(26949),d=n(2381),s=n(39646),u=n(1033),m=n(21118),p=(o=n(11855))&&o.__esModule?o:{"default":o};!function(e){e.Idle="idle",e.Travel="travel",e.Exploration="exploration",e.Adventure="adventure",e.Busy="busy"}(r||(r={})),function(e){e.Tool="tool",e.Cargo="cargo",e.Empty="empty"}(a||(a={}));t.ExodroneConsole=function(e,t){var n=(0,i.useBackend)(t).data.signal_lost,o=(0,i.useLocalState)(t,"choosingTools",!1),r=o[0];o[1];return(0,c.createComponentVNode)(2,d.Window,{width:750,height:600,children:[!!n&&(0,c.createComponentVNode)(2,h),!!r&&(0,c.createComponentVNode)(2,f),(0,c.createComponentVNode)(2,d.Window.Content,{children:(0,c.createComponentVNode)(2,B)})]})};var h=function(e,t){var n=(0,i.useBackend)(t).act;return(0,c.createComponentVNode)(2,l.Modal,{backgroundColor:"red",textAlign:"center",width:30,height:22,p:0,style:{"border-radius":"5%"},children:[(0,c.createVNode)(1,"img",null,null,1,{src:p["default"],width:64,height:64}),(0,c.createComponentVNode)(2,l.Box,{backgroundColor:"black",textColor:"red",fontSize:2,style:{"border-radius":"-10%"},children:"CONNECTION LOST"}),(0,c.createComponentVNode)(2,l.Box,{p:2,italic:!0,children:"Connection to exploration drone interrupted. Please contact nearest Nanotrasen Exploration Division representative for further instructions."}),(0,c.createComponentVNode)(2,l.Icon,{name:"exclamation-triangle",textColor:"black",size:5}),(0,c.createComponentVNode)(2,l.Box,{children:(0,c.createComponentVNode)(2,l.Button,{content:"Confirm",color:"danger",style:{border:"1px solid black"},onClick:function(){return n("confirm_signal_lost")}})})]})},C=function(e,t){var n=(0,i.useBackend)(t).act,o=e.all_drones;return(0,c.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,title:"Exploration Drone Listing",children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,children:o.map((function(e){return(0,c.createFragment)([(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{basis:10,fontFamily:"monospace",fontSize:"18px",children:e.name}),(0,c.createComponentVNode)(2,l.Stack.Divider),(0,c.createComponentVNode)(2,l.Stack.Item,{fontFamily:"monospace",mt:.8,children:e.description}),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0}),(0,c.createComponentVNode)(2,l.Stack.Divider,{mr:1}),(0,c.createComponentVNode)(2,l.Stack.Item,{ml:0,children:e.controlled?"Controlled by another console.":(0,c.createComponentVNode)(2,l.Button,{icon:"plug",onClick:function(){return n("select_drone",{drone_ref:e.ref})},children:"Assume Control"})})]})}),(0,c.createComponentVNode)(2,l.Stack.Divider)],4,e.ref)}))})})},f=function(e,t){var n=(0,i.useBackend)(t),o=n.act,r=n.data.all_tools,a=void 0===r?{}:r,d=(0,i.useLocalState)(t,"choosingTools",!1),s=(d[0],d[1]),u=Object.keys(a);return(0,c.createComponentVNode)(2,l.Modal,{children:(0,c.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,pr:2,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:"Select Tool:"}),(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Stack,{textAlign:"center",children:!!u&&u.map((function(e){return(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button,{onClick:function(){s(!1),o("add_tool",{tool_type:e})},width:6,height:6,tooltip:a[e].description,children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,m.capitalize)(e)}),(0,c.createComponentVNode)(2,l.Stack.Item,{ml:2.5,children:(0,c.createComponentVNode)(2,l.Icon,{name:a[e].icon,size:3})})]})})},e)}))||(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button,{content:"Back"})})})})]})})},N=function(e,t){var n=(0,i.useBackend)(t),o=n.act,r=n.data.all_tools,a=void 0===r?{}:r,d=e.drone.configurable,s=e.cargo;return(0,c.createComponentVNode)(2,l.Box,{width:5,height:5,style:{border:"2px solid black"},textAlign:"center",children:function(e){switch(e.type){case"tool":return(0,c.createComponentVNode)(2,l.Stack,{direction:"column",children:[(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Button,{height:4.7,width:4.7,tooltip:(0,m.capitalize)(e.name),tooltipPosition:"right",color:"transparent",children:(0,c.createComponentVNode)(2,l.Icon,{color:"white",name:a[e.name].icon,size:3,pl:1.5,pt:2})})}),!!d&&(0,c.createComponentVNode)(2,l.Stack.Item,{textAlign:"right",children:(0,c.createComponentVNode)(2,l.Button,{onClick:function(){return o("remove_tool",{tool_type:e.name})},color:"danger",icon:"minus",tooltipPosition:"right",tooltip:"Remove Tool"})})]});case"cargo":return(0,c.createComponentVNode)(2,l.Stack,{direction:"column",children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button,{mt:0,height:4.7,width:4.7,tooltip:(0,m.capitalize)(e.name),tooltipPosition:"right",color:"transparent",children:(0,c.createComponentVNode)(2,l.Icon,{color:"white",name:"box",size:3,pl:2.2,pt:2})})}),(0,c.createComponentVNode)(2,l.Stack.Item,{mt:-9.4,textAlign:"right",children:(0,c.createComponentVNode)(2,l.Button,{onClick:function(){return o("jettison",{target_ref:e.ref})},color:"danger",icon:"minus",tooltipPosition:"right",tooltip:"Jettison "+e.name})})]});case"empty":return""}}(s)})},g=function(e,t){var n=(0,i.useBackend)(t).act,o=e.drone,r=o.cargo,a=o.configurable,d=(0,i.useLocalState)(t,"choosingTools",!1),s=(d[0],d[1]);return(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Section,{fill:!0,title:"Controls",children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,textAlign:"center",children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button,{fluid:!0,icon:"plug",content:"Disconnect",onClick:function(){return n("end_control")}})}),(0,c.createComponentVNode)(2,l.Stack.Divider),(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button.Confirm,{fluid:!0,icon:"bomb",content:"Self-Destruct",color:"bad",onClick:function(){return n("self_destruct")}})})]})})}),(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Section,{title:"Cargo",children:(0,c.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:!!a&&(0,c.createComponentVNode)(2,l.Button,{fluid:!0,color:"average",icon:"wrench",content:"Install Tool",onClick:function(){return s(!0)}})}),(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Stack,{wrap:"wrap",width:10,children:r.map((function(t){return(0,c.createComponentVNode)(2,N,{drone:e.drone,cargo:t},t.name)}))})})]})})})]})},V=function(e,t){var n=e.drone_integrity,o=e.drone_max_integrity;return(0,c.createComponentVNode)(2,l.Stack,{ml:-45,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{color:"label",mt:.2,children:"Integrity:"}),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.ProgressBar,{width:"200px",ranges:{good:[.7*o,o],average:[.4*o,.7*o],bad:[-Infinity,.4*o]},value:n,maxValue:o})})]})},b=function(){return(0,c.createComponentVNode)(2,l.Dimmer,{children:(0,c.createComponentVNode)(2,l.Stack,{textAlign:"center",vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Icon,{color:"red",name:"map",size:10})}),(0,c.createComponentVNode)(2,l.Stack.Item,{fontSize:"18px",color:"red",children:"No Destinations."}),(0,c.createComponentVNode)(2,l.Stack.Item,{basis:0,color:"red",children:"(Use the Scanner Array Console to find new locations.)"})]})})},v=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data,d=e.drone,s=a.all_bands,m=d.can_travel,p=d.travel_error,h=d.drone_travel_coefficent,C="site"in d?d.site:null,f="sites"in d?d.sites:null,N=(0,i.useLocalState)(t,"choosingTools",!1),g=N[0],v=(N[1],(0,i.useLocalState)(t,"TravelDimmerShown",!1)),_=(v[0],v[1]),y=function(e){_(!1),o("start_travel",{target_site:e})},w=f&&f.filter((function(e){return!C||e.ref!==C.ref}));return d.drone_status===r.Travel&&(0,c.createComponentVNode)(2,k,{drone:d})||(0,c.createComponentVNode)(2,l.Section,{title:"Travel Destinations",fill:!0,scrollable:!0,buttons:(0,c.createFragment)([e.showCancelButton&&(0,c.createComponentVNode)(2,l.Button,{ml:5,mr:0,content:"Cancel",onClick:function(){return _(!1)}}),(0,c.createComponentVNode)(2,l.Box,{mt:e.showCancelButton&&-3.5,children:(0,c.createComponentVNode)(2,V,{drone_integrity:d.drone_integrity,drone_max_integrity:d.drone_max_integrity})})],0),children:[f&&!f.length&&!g&&(0,c.createComponentVNode)(2,b),C&&(0,c.createComponentVNode)(2,l.Section,{mt:1,title:"Home",buttons:(0,c.createComponentVNode)(2,l.Box,{children:["ETA: ",(0,u.formatTime)(C.distance*h,"short"),(0,c.createComponentVNode)(2,l.Button,{ml:1,content:m?"Launch!":p,onClick:function(){return y(null)},disabled:!m})]})}),null==w?void 0:w.map((function(e){return(0,c.createComponentVNode)(2,l.Section,{title:e.name,buttons:(0,c.createFragment)([(0,c.createTextVNode)("ETA: "),(0,u.formatTime)((n=e,C?Math.max(Math.abs(C.distance-n.distance),1)*h:n.distance*h),"short"),(0,c.createComponentVNode)(2,l.Button,{ml:1,content:m?"Launch!":p,onClick:function(){return y(e.ref)},disabled:!m})],0),children:(0,c.createComponentVNode)(2,l.LabeledList,{children:[(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Location",children:e.coordinates}),(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Description",children:e.description}),(0,c.createComponentVNode)(2,l.LabeledList.Divider),(t=e,Object.keys(s).filter((function(e){return t.band_info[e]!==undefined&&0!==t.band_info[e]}))).map((function(t){return(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:t,children:e.band_info[t]},t)}))]})},e.ref);var t,n}))]})},k=function(e,t){var n=e.drone.travel_time_left;return(0,c.createComponentVNode)(2,l.Section,{fill:!0,children:(0,c.createComponentVNode)(2,l.Dimmer,{children:(0,c.createComponentVNode)(2,l.Stack,{textAlign:"center",vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Icon,{color:"yellow",name:"route",size:10})}),(0,c.createComponentVNode)(2,l.Stack.Item,{fontSize:"18px",color:"yellow",children:["Travel Time: ",(0,u.formatTime)(n)]})]})})})},_=function(e){var t=e.drone,n=t.wait_time_left,o=t.wait_message;return(0,c.createComponentVNode)(2,l.Section,{fill:!0,children:(0,c.createComponentVNode)(2,l.Dimmer,{children:(0,c.createComponentVNode)(2,l.Stack,{textAlign:"center",vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Icon,{color:"green",name:"cog",size:10})}),(0,c.createComponentVNode)(2,l.Stack.Item,{fontSize:"18px",color:"green",children:[o," (",(0,u.formatTime)(n),")"]})]})})})},y=function(e,t){var n=(0,i.useBackend)(t).act,o=e.drone,r=o.site,a=(0,i.useLocalState)(t,"TravelDimmerShown",!1),d=a[0],s=a[1];return d?(0,c.createComponentVNode)(2,v,{drone:o,showCancelButton:!0}):(0,c.createComponentVNode)(2,l.Section,{fill:!0,title:"Exploration",buttons:(0,c.createComponentVNode)(2,V,{drone_integrity:o.drone_integrity,drone_max_integrity:o.drone_max_integrity}),children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.LabeledList,{children:[(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Site",children:r.name}),(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Location",children:r.coordinates}),(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Description",children:r.description})]})}),(0,c.createComponentVNode)(2,l.Stack.Item,{align:"center",grow:!0,children:(0,c.createComponentVNode)(2,l.Button,{content:"Explore!",onClick:function(){return n("explore")}})}),r.events.map((function(e){return(0,c.createComponentVNode)(2,l.Stack.Item,{align:"center",grow:!0,children:(0,c.createComponentVNode)(2,l.Button,{content:(0,m.capitalize)(e.name),onClick:function(){return n("explore_event",{target_event:e.ref})}})},r.ref)})),(0,c.createComponentVNode)(2,l.Stack.Item,{align:"center",grow:!0,children:(0,c.createComponentVNode)(2,l.Button,{content:"Travel",onClick:function(){return s(!0)}})})]})})},w=function(e,t){var n=(0,i.useBackend)(t).act,o=e.drone,r=e.event;return(0,c.createComponentVNode)(2,l.Section,{fill:!0,title:"Exploration",buttons:(0,c.createComponentVNode)(2,V,{drone_integrity:o.drone_integrity,drone_max_integrity:o.drone_max_integrity}),children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,textAlign:"center",children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createVNode)(1,"img",null,null,1,{src:(0,s.resolveAsset)(r.image),height:"125px",width:"250px",style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.BlockQuote,{preserveWhitespace:!0,children:r.description})})]})}),(0,c.createComponentVNode)(2,l.Stack.Divider),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0}),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Button,{content:r.action_text,disabled:!r.action_enabled,onClick:function(){return n("start_event")}})}),!!r.skippable&&(0,c.createComponentVNode)(2,l.Stack.Item,{mt:2,children:(0,c.createComponentVNode)(2,l.Button,{content:r.ignore_text,onClick:function(){return n("skip_event")}})}),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0})]})})]})})},x=function(e,t){var n=(0,i.useBackend)(t).act,o=e.adventure_data,r=e.drone_integrity,a=e.drone_max_integrity,d=o.raw_image,u=d||(0,s.resolveAsset)(o.image);return(0,c.createComponentVNode)(2,l.Section,{fill:!0,title:"Exploration",buttons:!e.hide_status&&(0,c.createComponentVNode)(2,V,{drone_integrity:r,drone_max_integrity:a}),children:(0,c.createComponentVNode)(2,l.Stack,{children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.BlockQuote,{preserveWhitespace:!0,children:o.description})}),(0,c.createComponentVNode)(2,l.Stack.Divider),(0,c.createComponentVNode)(2,l.Stack.Item,{children:[(0,c.createVNode)(1,"img",null,null,1,{src:u,height:"100px",width:"200px",style:{"-ms-interpolation-mode":"nearest-neighbor"}}),(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Divider),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0}),!!o.choices&&o.choices.map((function(e){return(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,l.Button,{fluid:!0,content:e.text,textAlign:"center",onClick:function(){return n("adventure_choice",{choice:e.key})}})},e.key)})),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0})]})]})]})})};t.AdventureScreen=x;var S=function(e){var t=e.drone;switch(t.drone_status){case r.Busy:return(0,c.createComponentVNode)(2,_,{drone:t});case r.Idle:case r.Travel:return(0,c.createComponentVNode)(2,v,{drone:t});case r.Adventure:return(0,c.createComponentVNode)(2,x,{adventure_data:t.adventure_data,drone_integrity:t.drone_integrity,drone_max_integrity:t.drone_max_integrity});case r.Exploration:return t.event?(0,c.createComponentVNode)(2,w,{drone:t,event:t.event}):(0,c.createComponentVNode)(2,y,{drone:t})}},B=function(e,t){var n=(0,i.useBackend)(t).data;if(!n.drone)return(0,c.createComponentVNode)(2,C,{all_drones:n.all_drones});var o=n.drone_log;return(0,c.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,grow:2,children:(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,c.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,c.createComponentVNode)(2,l.Stack.Item,{children:(0,c.createComponentVNode)(2,g,{drone:n})}),(0,c.createComponentVNode)(2,l.Stack.Item,{grow:!0,basis:0,children:(0,c.createComponentVNode)(2,S,{drone:n})})]})})})}),(0,c.createComponentVNode)(2,l.Stack.Item,{height:10,children:(0,c.createComponentVNode)(2,l.Section,{title:"Drone Log",fill:!0,scrollable:!0,children:(0,c.createComponentVNode)(2,l.LabeledList,{children:o.map((function(e,t){return(0,c.createComponentVNode)(2,l.LabeledList.Item,{label:"Entry "+(t+1),children:e},e)}))})})})]})}},25275:function(e,t,n){"use strict";t.__esModule=!0,t.ExonetNode=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ExonetNode=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:[p.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:t%2,children:e},t)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No logs found."})]})})]})})}},46442:function(e,t,n){"use strict";t.__esModule=!0,t.ExoscannerConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(1033),l=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Modal,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"SCAN FAILURE!"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Confirm",onClick:function(){return n("confirm_fail")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.scan_power,s=l.point_scan_eta,u=l.deep_scan_eta,m=l.point_scan_complete,p=l.deep_scan_complete,h=l.site_data,C=d>0?(0,i.formatTime)(s,"short"):"\u221e",f=d>0?(0,i.formatTime)(u,"short"):"\u221e",N=!m||!p;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Site Data",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",onClick:function(){return c("select_site",{site_ref:null})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:h.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:h.revealed?h.description:"No Data"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:h.distance}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spectrography Data"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),Object.keys(h.band_info).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:h.band_info[e]},e)}))]})})}),N&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Scans",children:[!m&&(0,o.createComponentVNode)(2,a.Section,{title:"Point Scan",children:[(0,o.createComponentVNode)(2,a.BlockQuote,{children:"Point scan performs rudimentary scan of the site, revealing its general characteristics."}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Scan",disabled:d<=0,onClick:function(){return c("start_point_scan")}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,pl:3,children:["Estimated Time: ",C,"."]})]})]}),!p&&(0,o.createComponentVNode)(2,a.Section,{title:"Deep Scan",children:[(0,o.createComponentVNode)(2,a.BlockQuote,{children:"Deep scan performs full scan of the site, revealing all details."}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Scan",disabled:d<=0,onClick:function(){return c("start_deep_scan")}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,pl:3,children:["Estimated Time: ",f,"."]})]})]})]})})]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.scan_time,s=l.scan_power,u=l.scan_description;return(0,o.createComponentVNode)(2,a.Modal,{ml:1,children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Scan in Progress!"}),(0,o.createComponentVNode)(2,a.Box,{color:"danger"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan summary",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time left",children:(0,i.formatTime)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanning array power",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Emergency Stop",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"STOP SCAN",color:"red",icon:"times",onClick:function(){return c("stop_scan")}})})]})]})};t.ExoscannerConsole=function(e,t){var n=(0,r.useBackend)(t),u=n.act,m=n.data,p=m.scan_in_progress,h=m.scan_power,C=m.possible_sites,f=void 0===C?[]:C,N=m.wide_scan_eta,g=m.selected_site,V=m.failed,b=m.scan_conditions,v=void 0===b?[]:b,k=h>0;return(0,o.createComponentVNode)(2,c.Window,{width:550,height:600,children:[!!p&&(0,o.createComponentVNode)(2,s),!!V&&(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Available array power",children:[(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:h>0&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{pr:1,inline:!0,fontSize:2,children:h}),(0,o.createComponentVNode)(2,a.Icon,{name:"satellite-dish",size:3})],4)||"No properly configured scanner arrays detected."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Special Scan Condtions",children:v&&v.map((function(e){return(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:e},e)}))})]})}),!!g&&(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d,{site_ref:g})}),!g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"search",disabled:!k,onClick:function(){return u("start_wide_scan")},children:"Scan"}),fill:!0,title:"Configure Wide Scan",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:"Broad spectrum scan looking for anything not matching known start charts."})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["Cost estimate: ",h>0?(0,i.formatTime)(N,"short"):"\u221e minutes"]})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Configure Targeted Scans",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"View Experiments",onClick:function(){return u("open_experiments")},icon:"tasks"}),children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return u("select_site",{site_ref:e.ref})}})},e.ref)}))})})})],4)]})})]})}},10841:function(e,t,n){"use strict";t.__esModule=!0,t.ExosuitControlConsole=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.ExosuitControlConsole=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data.mechs,s=void 0===d?[]:d;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:500,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[0===s.length&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No exosuits detected"}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"envelope",content:"Message",disabled:!e.pilot,onClick:function(){return l("send_message",{tracker_ref:e.tracker_ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",content:e.emp_recharging?"Recharging...":"EMP Burst",color:"bad",disabled:e.emp_recharging,onClick:function(){return l("shock",{tracker_ref:e.tracker_ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.Box,{color:(e.integrity<=30?"bad":e.integrity<=70&&"average")||"good",children:[e.integrity,"%"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.Box,{color:(e.charge<=30?"bad":e.charge<=70&&"average")||"good",children:"number"==typeof e.charge&&e.charge+"%"||"Not Found"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Airtank",children:"number"==typeof e.airtank&&(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.airtank,format:function(e){return(0,r.toFixed)(e,2)+" kPa"}})||"Not Equipped"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot.length>0&&e.pilot.map((function(t){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[t,e.pilot.length>1?"|":""]},t)}))||"None"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.location||"Unknown"}),e.cargo_space>=0&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Used Cargo Space",children:(0,o.createComponentVNode)(2,c.Box,{color:(e.cargo_space<=30?"good":e.cargo_space<=70&&"average")||"bad",children:[e.cargo_space,"%"]})})]})},e.tracker_ref)}))]})})}},49545:function(e,t,n){"use strict";t.__esModule=!0,t.Materials=t.ExosuitFabricator=void 0;var o,r=n(96323),a=n(1060),c=n(1397),i=n(31246),l=n(1033),d=n(26949),s=n(2381),u=n(21118),m=n(97622);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var C={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},f=((o={})[0]=!1,o[1]="average",o[2]="bad",o),N=function(e,t,n){return e>n?{color:2,deficit:e-n}:t>n?{color:1,deficit:e}:e+t>n?{color:1,deficit:e+t-n}:{color:0,deficit:0}},g=function(e,t,n){var o={textColor:0};return Object.keys(n.cost).forEach((function(r){o[r]=N(n.cost[r],t[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};t.ExosuitFabricator=function(e,t){var n,o,a=(0,i.useBackend)(t),c=a.act,l=a.data,u=l.queue||[],m=(n=l.materials||[],o={},n.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,t){var n={},o={},r={},a={};return t.forEach((function(t,c){a[c]=0,Object.keys(t.cost).forEach((function(i){n[i]=n[i]||0,r[i]=r[i]||0,o[i]=N(t.cost[i],n[i],e[i]),0!==o[i].color?a[c]<o[i].color&&(a[c]=o[i].color):n[i]+=t.cost[i],r[i]+=o[i].deficit}))})),{materialTally:n,missingMatTally:r,textColors:a,matFormat:o}}(m,u),h=p.materialTally,C=p.missingMatTally,f=p.textColors,g=(0,i.useSharedState)(t,"display_mats",!1),V=g[0],v=g[1],y=(0,i.useSharedState)(t,"display_all_mats",!1),x=y[0],S=y[1];return(0,r.createComponentVNode)(2,s.Window,{resizable:!0,width:1100,height:640,children:(0,r.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,d.Flex,{fillPositionedParent:!0,direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{ml:1,mr:1,mt:1,basis:"75%",grow:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Materials",children:(0,r.createComponentVNode)(2,b,{displayAllMat:x})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,mr:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Settings",height:"100%",children:[(0,r.createComponentVNode)(2,d.Button.Checkbox,{onClick:function(){return v(!V)},checked:V,children:"Display Material Costs"}),(0,r.createComponentVNode)(2,d.Button.Checkbox,{onClick:function(){return S(!x)},checked:x,children:"Display All Materials"}),l.species_types&&(0,r.createComponentVNode)(2,d.Box,{color:"label",children:["Species:",(0,r.createComponentVNode)(2,d.Button,{onClick:function(){return c("species")},children:l.species})]})||null,l.manufacturers&&(0,r.createComponentVNode)(2,d.Box,{color:"label",children:["Manufacturer:",(0,r.createComponentVNode)(2,d.Button,{onClick:function(){return c("manufacturer")},children:l.manufacturer})]})||null]})})]}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,m:1,children:(0,r.createComponentVNode)(2,d.Flex,{spacing:1,height:"100%",overflowY:"hide",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{position:"relative",basis:"20%",children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",overflowY:"auto",title:"Categories",buttons:(0,r.createComponentVNode)(2,d.Button,{content:"R&D Sync",onClick:function(){return c("sync_rnd")}}),children:(0,r.createComponentVNode)(2,k)})}),(0,r.createComponentVNode)(2,d.Flex.Item,{position:"relative",grow:1,children:(0,r.createComponentVNode)(2,d.Box,{fillPositionedParent:!0,overflowY:"auto",children:(0,r.createComponentVNode)(2,_,{queueMaterials:h,materials:m})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{width:"420px",position:"relative",children:(0,r.createComponentVNode)(2,w,{queueMaterials:h,missingMaterials:C,textColors:f})})]})})]})})})};var V=function(e,t){var n=(0,i.useBackend)(t).act,o=e.material,a=o.name,c=o.removable,l=o.sheets,s=(0,i.useSharedState)(t,"remove_mats_"+a,1),u=s[0],m=s[1];return u>1&&l<u&&m(l||1),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.NumberInput,{width:"30px",animated:!0,value:u,minValue:1,maxValue:l||1,initial:1,onDrag:function(e,t){var n=parseInt(t,10);Number.isInteger(n)&&m(n)}}),(0,r.createComponentVNode)(2,d.Button,{icon:"eject",disabled:!c,onClick:function(){return n("remove_mat",{id:a,amount:u})}})],4)},b=function(e,t){var n=(0,i.useBackend)(t).data,o=e.displayAllMat,a=e.disableEject,c=void 0!==a&&a,l=(n.materials||[]).filter((function(e){return o||e.amount>0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,v,{name:e.name,amount:e.amount,formatsi:!0}),!c&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,V,{material:e})})]},e.name)||null}))})};t.Materials=b;var v=function(e,t){var n=e.name,o=e.amount,c=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,h="0";return h=o<1&&o>0?(0,m.toFixed)(o,2):c?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(n),children:(0,r.createComponentVNode)(2,d.Box,{className:(0,a.classes)(["sheetmaterials32x32",C[n]]),position:"relative",style:p})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:h})})]})},k=function(e,t){var n=(0,i.useBackend)(t).data,o=n.partSets||[],a=n.buildableParts||{},c=(0,i.useSharedState)(t,"part_tab",o.length?a[0]:""),l=c[0],s=c[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!a[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!a[e],onClick:function(){return s(e)},children:e},e)}))})},_=function(e,t){var n,o=(0,i.useBackend)(t).data,a=function(e){for(var t,n=p(e);!(t=n()).done;){var o=t.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,h=e.materials,C=(0,i.useSharedState)(t,"part_tab",a(l)),f=C[0],N=C[1],V=(0,i.useSharedState)(t,"search_text",""),b=V[0],v=V[1];if(!f||!s[f]){var k=a(l);if(!k)return;N(k)}return b?(n=[],function(e,t){var n=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(t).forEach((function(e){t[e].filter(o).forEach((function(e){n.push(e)}))})),n=(0,c.uniqBy)((function(e){return e.name}))(n)}}(b,s).forEach((function(e){e.format=g(h,m,e),n.push(e)}))):(n={Parts:[]},s[f].forEach((function(e){e.format=g(h,m,e),e.subCategory?(e.subCategory in n||(n[e.subCategory]=[]),n[e.subCategory].push(e)):n.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,t){return v(t)}})})]})}),!!b&&(0,r.createComponentVNode)(2,y,{name:"Search Results",parts:n,forceShow:!0,placeholder:"No matching results..."})||Object.keys(n).map((function(e){return(0,r.createComponentVNode)(2,y,{name:e,parts:n[e]},e)}))],0)},y=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data.buildingPart,c=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(t,"display_mats",!1)[0];return(!!c.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!c.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:c.map((function(e){return e.id}))})}}),children:[!c.length&&u,c.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:a||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:f[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(t){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:f[e.format[t].color],children:(0,r.createComponentVNode)(2,v,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:t,amount:e.cost[t]})},t)}))})],0,e.name)}))]})},w=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data,c=a.isProcessingQueue,l=a.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!c&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,B)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,t){var n=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(n).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,v,{formatmoney:!0,name:e,amount:n[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},S=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data,c=e.textColors,l=a.queue||[];return l.length?l.map((function(e,t){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:t+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:f[c[t]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},B=function(e,t){var n=(0,i.useBackend)(t).data,o=n.buildingPart,a=n.storedPart;if(a){var c=a.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:c}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},14919:function(e,t,n){"use strict";t.__esModule=!0,t.Experiment=t.ExperimentConfigure=t.TechwebServer=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(26949),i=n(1397),l=function(e){return(0,o.createComponentVNode)(2,c.Table,{ml:2,className:"ExperimentStage__Table",children:e.children.map((function(e,t){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,d,Object.assign({},e),t))}))})},d=function(e){var t=e[0],n=e[1],r=e[2],a=e[3],i=!1;switch(t){case"bool":case"detail":i=r;break;case"integer":i=r===a;break;case"float":i=r>=1}return(0,o.createComponentVNode)(2,c.Table.Row,{className:"ExperimentStage__StageContainer\n "+(i?"complete":"incomplete"),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,className:"ExperimentStage__Indicator "+t,color:i?"good":"bad",children:"bool"===t&&(0,o.createComponentVNode)(2,c.Icon,{name:r?"check":"times"})||"integer"===t&&r+"/"+a||"float"===t&&100*r+"%"||"detail"===t&&"\u2937"}),(0,o.createComponentVNode)(2,c.Table.Cell,{className:"ExperimentStage__Description",children:n})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.servers);return(0,o.createComponentVNode)(2,c.Box,{m:1,className:"ExperimentTechwebServer__Web",children:[(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",className:"ExperimentTechwebServer__WebHeader",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{className:"ExperimentTechwebServer__WebName",children:[i[0].web_id," / ",i[0].web_org]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i[0].selected?r("clear_server"):r("select_server",{ref:i[0].ref})},content:i[0].selected?"Disconnect":"Connect",backgroundColor:i[0].selected?"good":"rgba(0, 0, 0, 0.4)",className:"ExperimentTechwebServer__ConnectButton"})})]}),(0,o.createComponentVNode)(2,c.Box,{className:"ExperimentTechwebServer__WebContent",children:[(0,o.createVNode)(1,"span",null,"Connectivity to this web is maintained by the following servers...",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("Located in "),e.location],0)},t)}))})]})]})};t.TechwebServer=s;t.ExperimentConfigure=function(e,t){var n,l,d=(0,a.useBackend)(t),m=d.act,p=d.data,h=p.always_active,C=p.has_start_callback,f=null!=(n=p.servers)?n:[],N=(0,i.sortBy)((function(e){return e.name}))(null!=(l=p.experiments)?l:[]),g=new Map;return f.forEach((function(e){null!==e.web_id&&(g.has(e.web_id)||g.set(e.web_id,[]),g.get(e.web_id).push(e))})),(0,o.createComponentVNode)(2,r.Window,{resizable:!0,width:600,height:735,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Servers",children:[(0,o.createComponentVNode)(2,c.Box,{children:g.size>0?"Please select a techweb to connect to...":"Found no available techwebs!"}),g.size>0&&Array.from(g,(function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,s,{servers:n},t)}))]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mb:C?1:0,grow:1,children:f.some((function(e){return e.selected}))&&(0,o.createComponentVNode)(2,c.Section,{title:"Experiments",className:"ExperimentConfigure__ExperimentsContainer",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,children:(N.length&&h?"This device is configured to attempt to perform all available experiments, so no further configuration is necessary.":N.length&&"Select one of the following experiments...")||"No experiments found on this web"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:N.map((function(e,t){return(0,o.createComponentVNode)(2,u,{exp:e,controllable:!0},t)}))})]})}),!!C&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,className:"ExperimentConfigure__PerformExperiment",onClick:function(){return m("start_experiment_callback")},disabled:!N.some((function(e){return e.selected})),icon:"flask",children:"Perform Experiment"})})]})})})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.exp),d=e.controllable,s=i.name,u=i.description,m=i.tag,p=i.selectable,h=i.selected,C=i.progress,f=i.performance_hint,N=i.ref;return(0,o.createComponentVNode)(2,c.Box,{m:1,className:"ExperimentConfigure__ExperimentPanel",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,onClick:function(){return d&&(h?r("clear_experiment"):r("select_experiment",{ref:N}))},backgroundColor:h?"good":"#40628a",className:"ExperimentConfigure__ExperimentName",disabled:d&&!p,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{color:!d||p?"white":"rgba(0, 0, 0, 0.6)",children:s}),(0,o.createComponentVNode)(2,c.Flex.Item,{color:!d||p?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",children:(0,o.createComponentVNode)(2,c.Box,{className:"ExperimentConfigure__TagContainer",children:[m,(0,o.createComponentVNode)(2,c.Tooltip,{content:f,position:"bottom-start",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"question-circle",mx:.5}),(0,o.createComponentVNode)(2,c.Box,{className:"ExperimentConfigure__PerformanceHint"})]})]})})]})}),(0,o.createComponentVNode)(2,c.Box,{className:"ExperimentConfigure__ExperimentContent",children:[(0,o.createComponentVNode)(2,c.Box,{mb:1,children:u}),e.children,(0,o.createComponentVNode)(2,l,{children:C})]})]},N)};t.Experiment=u},74874:function(e,t,n){"use strict";t.__esModule=!0,t.Farmbot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Farmbot=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,h=l.waters_trays,C=l.refills_water,f=l.uproots_weeds,N=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("water")},children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("refill")},children:C?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return i("weed")},children:f?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("replacenutri")},children:N?"Yes":"No"})})})})]})||null]})})}},83877:function(e,t,n){"use strict";t.__esModule=!0,t.FaxContent=t.Fax=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(62291),l=n(20273);t.Fax=function(e,t){return(0,r.useBackend)(t).data.authenticated?(0,o.createComponentVNode)(2,c.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,c.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,a.Section,{children:[!!s&&(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,a.Button,{icon:"map-marker-alt",content:u,onClick:function(){return c("dept")}})})]}),(0,o.createComponentVNode)(2,a.Button,{icon:"share-square",onClick:function(){return c("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"Please insert item to transmit."})]})};t.FaxContent=d;var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act;return n.data.copyItem?(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",onClick:function(){return c("remove")},content:"Remove Item"})}):null}},88141:function(e,t,n){"use strict";t.__esModule=!0,t.FileCabinet=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.FileCabinet=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},25354:function(e,t,n){"use strict";t.__esModule=!0,t.FilingCabinet=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.FilingCabinet=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.cabinet_name,s=l.contents,u=l.contents_ref;return(0,o.createComponentVNode)(2,c.Window,{title:d||"Filing Cabinet",width:350,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:"#B88F3D",scrollable:!0,children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"center",grow:1,children:(0,o.createComponentVNode)(2,a.Box,{align:"center",children:e})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("remove_object",{ref:u[t]})}})})]},u[t])})),0===s.length&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"white",align:"center",children:["The ",d," is empty!"]})})]})})}},53600:function(e,t,n){"use strict";t.__esModule=!0,t.Filteriffic=void 0;var o=n(96323),r=n(1397),a=n(97622),c=n(97622),i=n(31246),l=n(26949),d=n(2381),s=["type","priority"];var u=function(e,t){var n=e.value,r=e.name,a=e.filterName,c=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,l.NumberInput,{value:n,minValue:-500,maxValue:500,stepPixelSize:5,width:"39px",onDrag:function(e,t){var n;return c("modify_filter_value",{name:a,new_data:(n={},n[r]=t,n)})}})},m=function(e,t){var n=e.value,r=e.name,d=e.filterName,s=(0,i.useBackend)(t).act,u=(0,i.useLocalState)(t,d+"-"+r,.01),m=u[0],p=u[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.NumberInput,{value:n,minValue:-500,maxValue:500,stepPixelSize:4,step:m,format:function(e){return(0,a.toFixed)(e,(0,c.numberOfDecimalDigits)(m))},width:"80px",onDrag:function(e,t){var n;return s("transition_filter_value",{name:d,new_data:(n={},n[r]=t,n)})}}),(0,o.createComponentVNode)(2,l.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,o.createComponentVNode)(2,l.NumberInput,{value:m,step:.001,format:function(e){return(0,a.toFixed)(e,4)},width:"70px",onChange:function(e,t){return p(t)}})],4)},p=function(e,t){var n=e.value,r=e.name,a=e.filterName,c=(0,i.useBackend)(t).act;return(0,o.createComponentVNode)(2,l.Input,{value:n,width:"250px",onInput:function(e,t){var n;return c("modify_filter_value",{name:a,new_data:(n={},n[r]=t,n)})}})},h=function(e,t){var n=e.value,r=e.filterName,a=e.name,c=(0,i.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{icon:"pencil-alt",onClick:function(){return c("modify_color_value",{name:r})}}),(0,o.createComponentVNode)(2,l.ColorBox,{color:n,mr:.5}),(0,o.createComponentVNode)(2,l.Input,{value:n,width:"90px",onInput:function(e,t){var n;return c("transition_filter_value",{name:r,new_data:(n={},n[a]=t,n)})}})],4)},C=function(e,t){var n=e.value,r=e.filterName,a=(0,i.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{icon:"pencil-alt",onClick:function(){return a("modify_icon_value",{name:r})}}),(0,o.createComponentVNode)(2,l.Box,{inline:!0,ml:1,children:n})],4)},f=function(e,t){var n=e.name,a=e.value,c=e.filterName,d=e.filterType,s=(0,i.useBackend)(t),u=s.act,m=s.data.filter_info[d].flags;return(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:a&e,content:t,onClick:function(){var t;return u("modify_filter_value",{name:c,new_data:(t={},t[n]=a^e,t)})}})}))(m)},N=function(e,t){var n=e.name,r=(e.value,e.hasValue),a=(e.filterName,{int:(0,o.normalizeProps)((0,o.createComponentVNode)(2,u,Object.assign({},e))),float:(0,o.normalizeProps)((0,o.createComponentVNode)(2,m,Object.assign({},e))),string:(0,o.normalizeProps)((0,o.createComponentVNode)(2,p,Object.assign({},e))),color:(0,o.normalizeProps)((0,o.createComponentVNode)(2,h,Object.assign({},e))),icon:(0,o.normalizeProps)((0,o.createComponentVNode)(2,C,Object.assign({},e))),flags:(0,o.normalizeProps)((0,o.createComponentVNode)(2,f,Object.assign({},e)))});return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:n,children:[a[{x:"float",y:"float",icon:"icon",render_source:"string",flags:"flags",size:"float",color:"color",offset:"float",radius:"float",falloff:"float",density:"int",threshold:"float",factor:"float",repeat:"int"}[n]]||"Not Found (This is an error)"," ",!r&&(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"average",children:"(Default)"})]})},g=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=e.name,d=e.filterDataEntry,u=d.type,m=d.priority,p=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(d,s),h=a.filter_info,C=Object.keys(h[u].defaults);return(0,o.createComponentVNode)(2,l.Collapsible,{title:c+" ("+u+")",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.NumberInput,{value:m,stepPixelSize:10,width:"60px",onChange:function(e,t){return r("change_priority",{name:c,new_priority:t})}}),(0,o.createComponentVNode)(2,l.Button.Input,{content:"Rename",placeholder:c,onCommit:function(e,t){return r("rename_filter",{name:c,new_name:t})},width:"90px"}),(0,o.createComponentVNode)(2,l.Button.Confirm,{icon:"minus",onClick:function(){return r("remove_filter",{name:c})}})],4),children:(0,o.createComponentVNode)(2,l.Section,{level:2,children:(0,o.createComponentVNode)(2,l.LabeledList,{children:C.map((function(e){var t=h[u].defaults,n=p[e]||t[e],r=n!==t[e];return(0,o.createComponentVNode)(2,N,{filterName:c,filterType:u,name:e,value:n,hasValue:r},e)}))})})})};t.Filteriffic=function(e,t){var n=(0,i.useBackend)(t),a=n.act,c=n.data,s=c.target_name||"Unknown Object",u=c.target_filter_data||{},m=0!==Object.keys(u).length,p=c.filter_info,h=(0,i.useLocalState)(t,"massApplyPath",""),C=h[0],f=h[1],N=(0,i.useLocalState)(t,"hidden",!1),V=N[0],b=N[1];return(0,o.createComponentVNode)(2,d.Window,{title:"Filteriffic",width:500,height:500,children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.NoticeBox,{danger:!0,children:"DO NOT MESS WITH EXISTING FILTERS IF YOU DO NOT KNOW THE CONSEQUENCES. YOU HAVE BEEN WARNED."}),(0,o.createComponentVNode)(2,l.Section,{title:V?(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Box,{mr:.5,inline:!0,children:"MASS EDIT:"}),(0,o.createComponentVNode)(2,l.Input,{value:C,width:"100px",onInput:function(e,t){return f(t)}}),(0,o.createComponentVNode)(2,l.Button.Confirm,{content:"Apply",confirmContent:"ARE YOU SURE?",onClick:function(){return a("mass_apply",{path:C})}})],4):(0,o.createComponentVNode)(2,l.Box,{inline:!0,onDblClick:function(){return b(!0)},children:s}),buttons:(0,o.createComponentVNode)(2,l.Dropdown,{icon:"plus",displayText:"Add Filter",nochevron:!0,options:Object.keys(p),onSelected:function(e){return a("add_filter",{name:"default",priority:10,type:e})}}),children:m?(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,g,{filterDataEntry:e,name:t},t)}))(u):(0,o.createComponentVNode)(2,l.Box,{children:"No filters"})})]})})}},80665:function(e,t,n){"use strict";t.__esModule=!0,t.FishCatalog=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(31246),l=n(26949),d=n(2381),s=n(21118);t.FishCatalog=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data),m=(u.fish_info,u.sponsored_by),p=(0,a.flow)([(0,r.sortBy)((function(e){return e.name}))])(u.fish_info||[]),h=(0,i.useLocalState)(t,"currentFish",null),C=h[0],f=h[1];return(0,o.createComponentVNode)(2,d.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{width:"120px",children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:p.map((function(e){return(0,o.createComponentVNode)(2,l.Button,{fluid:!0,color:"transparent",selected:e===C,onClick:function(){f(e)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,title:C?(0,s.capitalize)(C.name):m+" Fish Index",children:C&&(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Description",children:C.desc}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Water type",children:C.fluid}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Temperature",children:[C.temp_min," to ",C.temp_max]}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Feeding",children:C.feed}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Acquisition",children:C.source}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Illustration",children:(0,o.createComponentVNode)(2,l.Box,{className:(0,c.classes)(["fish32x32",C.icon])})})]})})})]})})})}},30357:function(e,t,n){"use strict";t.__esModule=!0,t.Floorbot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Floorbot=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,h=l.possible_bmode,C=l.improvefloors,f=l.eattiles,N=l.maketiles,g=l.bmode;return(0,o.createComponentVNode)(2,c.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("improve")},children:C?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return i("tiles")},children:f?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("make")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:g,options:h,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},51387:function(e,t,n){"use strict";t.__esModule=!0,t.Folder=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Folder=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.theme,s=l.bg_color,u=l.folder_name,m=l.contents,p=l.contents_ref;return(0,o.createComponentVNode)(2,c.Window,{title:u||"Folder",theme:d,width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:s||"#7f7f7f",scrollable:!0,children:[m.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},mb:.5,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"center",grow:1,children:(0,o.createComponentVNode)(2,a.Box,{align:"center",children:e})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return i("examine",{ref:p[t]})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("remove",{ref:p[t]})}})]})]},p[t])})),0===m.length&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"lightgrey",align:"center",children:"This folder is empty!"})})]})})}},14284:function(e,t,n){"use strict";t.__esModule=!0,t.ForbiddenLore=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(2381);t.ForbiddenLore=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=s.charges,m=(0,a.flow)([(0,r.sortBy)((function(e){return"Research"!==e.state}),(function(e){return"Side"===e.path}))])(s.to_know||[]);return(0,o.createComponentVNode)(2,l.Window,{width:500,height:900,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Research Eldritch Knowledge",children:["Charges left : ",u,null!==m?m.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{title:e.name,level:2,children:[(0,o.createComponentVNode)(2,i.Box,{bold:!0,my:1,children:[e.path," path"]}),(0,o.createComponentVNode)(2,i.Box,{my:1,children:[(0,o.createComponentVNode)(2,i.Button,{content:e.state,disabled:e.disabled,onClick:function(){return d("research",{name:e.name,cost:e.cost})}})," ","Cost : ",e.cost]}),(0,o.createComponentVNode)(2,i.Box,{italic:!0,my:1,children:e.flavour}),(0,o.createComponentVNode)(2,i.Box,{my:1,children:e.desc})]},e.name)})):(0,o.createComponentVNode)(2,i.Box,{children:"No more knowledge can be found"})]})})})}},32254:function(e,t,n){"use strict";t.__esModule=!0,t.GasAnalyzer=t.GasAnalyzerContent=void 0;var o=n(96323),r=n(31246),a=n(42055),c=n(44151),i=n(2381),l=n(26949),d=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.gasmixes),d=(0,c.atmosHandbookHooks)(t),s=d[0],u=d[1];return(0,o.createFragment)([i.map((function(e){return(0,o.createComponentVNode)(2,l.Section,{title:e.name,children:(0,o.createComponentVNode)(2,a.GasmixParser,{gasmix:e,gasesOnClick:s,reactionOnClick:u})},e.reference)})),(0,o.createComponentVNode)(2,c.AtmosHandbookContent,{vertical:!0})],0)};t.GasAnalyzerContent=d;t.GasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{width:500,height:450,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})}},11972:function(e,t,n){"use strict";t.__esModule=!0,t.GasPump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GasPump=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,c.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:p,color:m<p-5?"good":"average",children:m+" W"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:d?"On":"Off",selected:d,onClick:function(){return i("power")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})]}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Desired Output Pressure",children:[s/100," kPa"]})]})})]})})}},94405:function(e,t,n){"use strict";t.__esModule=!0,t.GasTemperatureSystem=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.GasTemperatureSystem=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.on,u=d.gasPressure,m=d.gasTemperature,p=d.minGasTemperature,h=d.maxGasTemperature,C=d.targetGasTemperature,f=d.gasTemperatureClass,N=d.powerSetting;return(0,o.createComponentVNode)(2,i.Window,{width:270,height:270,resizeable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,onClick:function(){return l("toggleStatus")}}),children:(0,o.createComponentVNode)(2,c.LabeledControls,{children:[(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Power Level",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"0",maxValue:"100",stepPixelSize:"1",value:N,onChange:function(e,t){return l("setPower",{value:t})}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Gas Pressure",children:[u," kPa"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Gas Temperature",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:C})," K"]})]}),(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:h,fillValue:m,value:C,format:function(e){return m+" / "+(0,r.round)(e)},unit:"K",color:f,onChange:function(e,t){return l("setGasTemperature",{temp:t})}})]})]})})}},61269:function(e,t,n){"use strict";t.__esModule=!0,t.Gateway=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Gateway=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.gateway_present,d=void 0!==l&&l,s=i.gateway_status,u=void 0!==s&&s,m=i.current_target,p=void 0===m?null:m,h=i.destinations,C=void 0===h?[]:h;return d?p?(0,o.createComponentVNode)(2,a.Section,{title:p.name,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"rainbow",size:4,color:"green"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return c("deactivate")},children:"Deactivate"})]}):C.length?(0,o.createFragment)([!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Gateway Unpowered"}),C.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,children:e.available&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return c("activate",{destination:e.ref})},children:"Activate"})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{m:1,textColor:"bad",children:e.reason}),!!e.timeout&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.timeout,children:"Calibrating..."})],0)},e.ref)}))],0):(0,o.createComponentVNode)(2,a.Section,{children:"No gateway nodes detected."}):(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No linked gateway"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return c("linkup")},children:"Linkup"})]})}},61590:function(e,t,n){"use strict";t.__esModule=!0,t.GeneralAtmoControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GeneralAtmoControl=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),l=a.sensors,s=a.tanks,m=(a.input_info,a.output_info,a.input_flow_setting,a.pressure_setting,a.max_pressure,a.max_flowrate,a.core),p=a.fuel;a.automation,a.device_info;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i,{sensors:l}),(m||s)&&(0,o.createComponentVNode)(2,d),p&&(0,o.createComponentVNode)(2,u)]})})};var i=function(e,t){(0,r.useBackend)(t).act;var n=e.sensors;return n?(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.long_name,children:(0,o.createComponentVNode)(2,l,{sensor:e})},e.long_name)}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Sensors Connected."})})},l=function(e,t){var n=e.sensor;if(!n.sensor_data)return(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"UNABLE TO FIND SENSOR"});var r=n.sensor_data,c=r.pressure,i=r.temperature,l=r.oxygen,d=r.nitrogen,s=r.carbon_dioxide,u=r.phoron,m=[];return c&&m.push((0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[c," kPa"]})),i&&m.push((0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[i," K"]})),(l||d||s||u)&&m.push((0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-around",children:[l?(0,o.createComponentVNode)(2,a.Flex.Item,{children:["(",l,"% O\xb2)"]}):null,d?(0,o.createComponentVNode)(2,a.Flex.Item,{children:["(",d,"% N\xb2)"]}):null,s?(0,o.createComponentVNode)(2,a.Flex.Item,{children:["(",s,"% CO\xb2)"]}):null,u?(0,o.createComponentVNode)(2,a.Flex.Item,{children:["(",u,"% TX)"]}):null]})})),(0,o.createComponentVNode)(2,a.LabeledList,{children:m.map((function(e){return e}))})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.tanks,d=i.input_info,u=i.output_info,m=i.input_flow_setting,p=i.pressure_setting,h=i.max_pressure,C=i.max_flowrate,f=i.core,N="Unknown Control System";l?N="Tank Control System":f&&(N="Core Cooling Control System");var g={power:function(){return c("in_toggle_injector")},apply:function(){return c("in_set_flowrate")},refresh:function(){return c("in_refresh_status")},slider:function(e,t){return c("adj_input_flow_rate",{adj_input_flow_rate:t})}},V={power:function(){return c("out_toggle_power")},apply:function(){return c("out_set_pressure")},refresh:function(){return c("out_refresh_status")},slider:function(e,t){return c("adj_pressure",{adj_pressure:t})}};return(0,o.createComponentVNode)(2,a.Section,{title:N,children:[(0,o.createComponentVNode)(2,s,{info:d,maxSliderValue:C,sliderControl:m,sliderFill:d&&d.volume_rate,unit:"L/s",name:f?"Coolant Input":"Input",limitName:"Flow Rate Limit",actions:g}),(0,o.createComponentVNode)(2,s,{info:u,maxSliderValue:h,sliderControl:p,sliderFill:u&&u.output_pressure,unit:"kPa",name:f?"Core Outpump":"Output",limitName:f?"Min Core Pressure":"Max Output Pressure",actions:V})]})},s=function(e,t){var n=e.info,r=e.maxSliderValue,c=e.sliderControl,i=e.sliderFill,l=e.unit,d=e.name,s=e.limitName,u=e.actions;return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Refresh",icon:"sync",disabled:!n,onClick:function(){return u.refresh()}}),(0,o.createComponentVNode)(2,a.Button,{content:"Power",icon:"power-off",selected:!!n&&n.power,disabled:!n,onClick:function(){return u.power()}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[n&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:d,children:n.power?"Injecting":"On Hold"})||(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ERROR: Cannot Find ",d," Port"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Search",onClick:function(){return u.refresh()}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Apply",icon:"edit",disabled:!n,onClick:function(){return u.apply()}}),children:(0,o.createComponentVNode)(2,a.Slider,{mt:"0.4em",animated:!0,minValue:0,maxValue:r,stepPixelSize:1/(r/500),value:c,fillValue:i||0,onChange:function(e,t){return u.slider(e,t)},children:[i||"UNK"," ",l," / ",c," ",l]})})]})})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.fuel,i.automation),d=i.device_info;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injection System",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",content:"Inject",onClick:function(){return c("injection")},disabled:l||!d}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Refresh",onClick:function(){return c("refresh_status")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Injector Power",onClick:function(){return c("toggle_injector")},selected:!!d&&d.power,disabled:l||!d})],4),children:d?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d.power?"Injecting":"On Hold"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate",children:d.volume_rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Automated Fuel Injection",children:(0,o.createComponentVNode)(2,a.Button,{icon:"robot",content:l?"Engaged":"Disengaged",selected:l,onClick:function(){return c("toggle_automation")}})})]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Cannot Find Device"}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Search",onClick:function(){return c("refresh_status")}})],4)})}},91952:function(e,t,n){"use strict";t.__esModule=!0,t.GeneralRecords=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84645),i=n(2381),l=n(62291),d=n(20273),s=n(98194),u=n(21118),m=n(1397),p=n(32416);t.GeneralRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,m=u.authenticated,p=u.screen;return m?(2===p?n=(0,o.createComponentVNode)(2,h):3===p?n=(0,o.createComponentVNode)(2,C):4===p&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:640,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,a.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useLocalState)(t,"searchText",""),d=l[0],s=l[1],h=function(e,t){void 0===t&&(t="");var n=(0,u.createSearch)(t,(function(e){return e.name})),o=(0,u.createSearch)(t,(function(e){return e.id})),r=(0,u.createSearch)(t,(function(e){return e.b_dna}));return(0,p.flow)([t&&(0,m.filter)((function(e){return n(e)||o(e)||r(e)}))])(e)}(i.records,d);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:"0.2rem",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"New Record",onClick:function(){return c("new")}})}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onInput:function(e,t){return s(t)}}),(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:h.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return c("d_rec",{d_rec:e.ref})}},t)}))})],4)},C=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Employment Records",onClick:function(){return n("del_all")}})},f=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.general,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Employment Record",color:"bad",onClick:function(){return c("del_r")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return c("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return c("screen",{screen:2})}})]})],4)},N=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.general;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{width:"50%",float:"left",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,a.Box,{height:"20px",display:"inline-block",children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return function(e,t){(0,c.modalOpen)(e,"edit",{field:t.edit,value:t.value})}(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Employment/skills summary",level:2,preserveWhitespace:!0,children:l.skills||"No data found."}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,c.modalOpen)(t,"add_c")}})]})]}),(0,o.createComponentVNode)(2,a.Box,{width:"50%",float:"right",textAlign:"right",children:!!l.has_photos&&l.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["General record lost!",(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.screen;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,onClick:function(){return c("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,onClick:function(){return c("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]})]})}},40276:function(e,t,n){"use strict";t.__esModule=!0,t.GhostPoolProtection=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GhostPoolProtection=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.events_or_midrounds,s=l.spawners,u=l.station_sentience,m=l.silicons,p=l.minigames;return(0,o.createComponentVNode)(2,c.Window,{title:"Ghost Pool Protection",width:400,height:270,theme:"admin",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Flex,{grow:1,height:"100%",children:(0,o.createComponentVNode)(2,a.Section,{title:"Options",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{color:"good",icon:"plus-circle",content:"Enable Everything",onClick:function(){return i("all_roles")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"minus-circle",content:"Disable Everything",onClick:function(){return i("no_roles")}})],4),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"For people creating a sneaky event: If you toggle Station Created Sentience, people may catch on that admins have disabled roles for your event..."}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:d?"good":"bad",icon:"meteor",content:"Events and Midround Rulesets",onClick:function(){return i("toggle_events_or_midrounds")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:s?"good":"bad",icon:"pastafarianism",content:"Ghost Role Spawners",onClick:function(){return i("toggle_spawners")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:u?"good":"bad",icon:"user-astronaut",content:"Station Created Sentience",onClick:function(){return i("toggle_station_sentience")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:m?"good":"bad",icon:"robot",content:"Silicons",onClick:function(){return i("toggle_silicons")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:p?"good":"bad",icon:"gamepad",content:"Minigames",onClick:function(){return i("toggle_minigames")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:"orange",icon:"check",content:"Apply Changes",onClick:function(){return i("apply_settings")}})})]})})})})}},67850:function(e,t,n){"use strict";t.__esModule=!0,t.GhostRoleMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GhostRoleMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Spawners Menu",width:700,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name+(-1===e.amount_left?"":" ("+e.amount_left+" left)"),level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Jump",onClick:function(){return i("jump",{id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Spawn",onClick:function(){return i("spawn",{id:e.id})}})],4),children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,mb:1,fontSize:"20px",children:e.short_desc}),(0,o.createComponentVNode)(2,a.Box,{children:e.flavor_text}),!!e.important_info&&(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,color:"bad",fontSize:"26px",children:e.important_info})]},e.name)}))})})})}},40544:function(e,t,n){"use strict";t.__esModule=!0,t.GlandDispenser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GlandDispenser=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.glands,d=void 0===l?[]:l;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:338,theme:"abductor",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",lineHeight:"55px",icon:"eject",backgroundColor:e.color,content:e.amount||"0",disabled:!e.amount,onClick:function(){return i("dispense",{gland_id:e.id})}},e.id)}))})})})}},39724:function(e,t,n){"use strict";t.__esModule=!0,t.Gps=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(67288),l=n(31246),d=n(26949),s=n(2381),u=function(e){return(0,r.map)(parseFloat)(e.split(", "))};t.Gps=function(e,t){var n=(0,l.useBackend)(t),m=n.act,p=n.data,h=p.currentArea,C=p.currentCoords,f=p.globalmode,N=p.power,g=p.tag,V=p.updating,b=(0,a.flow)([(0,r.map)((function(e,t){var n=e.dist&&Math.round((0,i.vecLength)((0,i.vecSubtract)(u(C),u(e.coords))));return Object.assign({},e,{dist:n,index:t})})),(0,r.sortBy)((function(e){return e.dist===undefined}),(function(e){return e.entrytag}))])(p.signals||[]);return(0,o.createComponentVNode)(2,s.Window,{title:"Global Positioning System",width:470,height:700,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.Section,{title:"Control",buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"power-off",content:N?"On":"Off",selected:N,onClick:function(){return m("power")}}),children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Tag",children:(0,o.createComponentVNode)(2,d.Button,{icon:"pencil-alt",content:g,onClick:function(){return m("rename")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,d.Button,{icon:V?"unlock":"lock",content:V?"AUTO":"MANUAL",color:!V&&"bad",onClick:function(){return m("updating")}})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,d.Button,{icon:"sync",content:f?"MAXIMUM":"LOCAL",selected:!f,onClick:function(){return m("globalmode")}})})]})}),!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:"Current Location",children:(0,o.createComponentVNode)(2,d.Box,{fontSize:"18px",children:[h," (",C,")"]})}),(0,o.createComponentVNode)(2,d.Section,{title:"Detected Signals",children:(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{content:"Name"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Direction"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,content:"Coordinates"})]}),b.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,d.Table.Cell,{bold:!0,color:"label",children:e.entrytag}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,opacity:e.dist!==undefined&&(0,c.clamp)(1.2/Math.log(Math.E+e.dist/20),.4,1),children:[e.degrees!==undefined&&(0,o.createComponentVNode)(2,d.Icon,{mr:1,size:1.2,name:"arrow-up",rotation:e.degrees}),e.dist!==undefined&&e.dist+"m"]}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:e.coords})]},e.entrytag+e.coords+e.index)}))]})})],4)]})})}},92796:function(e,t,n){"use strict";t.__esModule=!0,t.GravityGenerator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GravityGenerator=function(e,t){var n=(0,r.useBackend)(t).data.operational;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:155,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!n&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No data available"}),!!n&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.breaker,d=i.charge_count,s=i.charging_state,u=i.on,m=i.operational;return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:!m,onClick:function(){return c("gentoggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gravity Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d/100,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",children:[0===s&&(u&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Fully Charged"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not Charging"})),1===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Charging"}),2===s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Discharging"})]})]})})}},99073:function(e,t,n){"use strict";t.__esModule=!0,t.GreyscaleModifyMenu=void 0;var o,r,a=n(96323),c=n(31246),i=n(26949),l=n(2381);!function(e){e.North="north",e.NorthEast="northeast",e.East="east",e.SouthEast="southeast",e.South="south",e.SouthWest="southwest",e.West="west",e.NorthWest="northwest"}(r||(r={}));var d=((o={})[r.North]="N",o[r.NorthEast]="NE",o[r.East]="E",o[r.SouthEast]="SE",o[r.South]="S",o[r.SouthWest]="SW",o[r.West]="W",o[r.NorthWest]="NW",o),s=function(e,t){var n=(0,c.useBackend)(t),o=n.act,r=n.data;return(0,a.createComponentVNode)(2,i.Section,{title:"Designs",children:(0,a.createComponentVNode)(2,i.LabeledList,{children:(0,a.createComponentVNode)(2,i.LabeledList.Item,{label:"Design Type",children:[(0,a.createComponentVNode)(2,i.Button,{icon:"cogs",onClick:function(){return o("select_config")}}),(0,a.createComponentVNode)(2,i.Input,{value:r.greyscale_config,onChange:function(e,t){return o("load_config_from_string",{config_string:t})}})]})})})},u=function(e,t){var n=(0,c.useBackend)(t),o=n.act,r=n.data.colors||[];return(0,a.createComponentVNode)(2,i.Section,{title:"Colors",children:(0,a.createComponentVNode)(2,i.LabeledList,{children:[(0,a.createComponentVNode)(2,i.LabeledList.Item,{label:"Full Color String",children:[(0,a.createComponentVNode)(2,i.Button,{icon:"dice",onClick:function(){return o("random_all_colors")},tooltip:"Randomizes all color groups."}),(0,a.createComponentVNode)(2,i.Input,{value:r.map((function(e){return e.value})).join(""),onChange:function(e,t){return o("recolor_from_string",{color_string:t})}})]}),r.map((function(e){return(0,a.createComponentVNode)(2,i.LabeledList.Item,{label:"Color Group "+e.index,color:e.value,children:[(0,a.createComponentVNode)(2,i.ColorBox,{color:e.value})," ",(0,a.createComponentVNode)(2,i.Button,{icon:"palette",onClick:function(){return o("pick_color",{color_index:e.index})},tooltip:"Brings up a color pick window to replace this color group."}),(0,a.createComponentVNode)(2,i.Button,{icon:"dice",onClick:function(){return o("random_color",{color_index:e.index})},tooltip:"Randomizes the color for this color group."}),(0,a.createComponentVNode)(2,i.Input,{value:e.value,width:7,onChange:function(t,n){return o("recolor",{color_index:e.index,new_color:n})}})]},"colorgroup"+e.index+e.value)}))]})})},m=function(e,t){var n=(0,c.useBackend)(t);n.act,n.data;return(0,a.createComponentVNode)(2,i.Box,{children:(0,a.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,a.createComponentVNode)(2,i.Flex,{children:[(0,a.createComponentVNode)(2,p,{dir:r.NorthWest}),(0,a.createComponentVNode)(2,p,{dir:r.North}),(0,a.createComponentVNode)(2,p,{dir:r.NorthEast})]}),(0,a.createComponentVNode)(2,i.Flex,{children:[(0,a.createComponentVNode)(2,p,{dir:r.West}),(0,a.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,a.createComponentVNode)(2,i.Button,{lineHeight:3,m:-.2,fluid:!0,children:(0,a.createComponentVNode)(2,i.Icon,{name:"arrows-alt",size:1.5,m:"20%"})})}),(0,a.createComponentVNode)(2,p,{dir:r.East})]}),(0,a.createComponentVNode)(2,i.Flex,{children:[(0,a.createComponentVNode)(2,p,{dir:r.SouthWest}),(0,a.createComponentVNode)(2,p,{dir:r.South}),(0,a.createComponentVNode)(2,p,{dir:r.SouthEast})]})]})})},p=function(e,t){var n=e.dir,o=(0,c.useBackend)(t),r=o.data,l=o.act;return(0,a.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,a.createComponentVNode)(2,i.Button,{content:d[n],tooltip:"Sets the direction of the preview sprite to "+n,disabled:""+n===r.sprites_dir,textAlign:"center",onClick:function(){return l("change_dir",{new_sprite_dir:n})},lineHeight:3,m:-.2,fluid:!0})})},h=function(e,t){var n=(0,c.useBackend)(t),o=n.data,r=n.act;return(0,a.createComponentVNode)(2,i.Section,{title:"Icon States",children:(0,a.createComponentVNode)(2,i.Flex,{children:o.sprites.icon_states.map((function(e){return(0,a.createComponentVNode)(2,i.Flex.Item,{children:(0,a.createComponentVNode)(2,i.Button,{mx:.5,content:e||"Blank State",disabled:e===o.icon_state,onClick:function(){return r("select_icon_state",{new_icon_state:e})}})},e)}))})})},C=function(e,t){var n,o=(0,c.useBackend)(t).data;return(0,a.createComponentVNode)(2,i.Section,{title:"Preview ("+o.sprites_dir+")",children:[(0,a.createComponentVNode)(2,i.Table,{children:(0,a.createComponentVNode)(2,i.Table.Row,{children:[(0,a.createComponentVNode)(2,i.Table.Cell,{width:"50%",children:(0,a.createComponentVNode)(2,m)}),null!=(n=o.sprites)&&n.finished?(0,a.createComponentVNode)(2,i.Table.Cell,{children:(0,a.createComponentVNode)(2,i.Box,{as:"img",src:o.sprites.finished,m:0,width:"75%",mx:"10%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})}):(0,a.createComponentVNode)(2,i.Table.Cell,{children:(0,a.createComponentVNode)(2,i.Box,{grow:!0,children:(0,a.createComponentVNode)(2,i.Icon,{name:"image",ml:"25%",size:5,style:{"-ms-interpolation-mode":"nearest-neighbor"}})})})]})}),!!o.generate_full_preview&&"Time Spent: "+o.sprites.time_spent+"ms",(0,a.createComponentVNode)(2,i.Divider),!o.refreshing&&(0,a.createComponentVNode)(2,i.Table,{children:[!!o.generate_full_preview&&null!==o.sprites.steps&&(0,a.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,a.createComponentVNode)(2,i.Table.Cell,{width:"50%",textAlign:"center",children:"Layer Source"}),(0,a.createComponentVNode)(2,i.Table.Cell,{width:"25%",textAlign:"center",children:"Step Layer"}),(0,a.createComponentVNode)(2,i.Table.Cell,{width:"25%",textAlign:"center",children:"Step Result"})]}),!!o.generate_full_preview&&null!==o.sprites.steps&&o.sprites.steps.map((function(e){return(0,a.createComponentVNode)(2,i.Table.Row,{children:[(0,a.createComponentVNode)(2,i.Table.Cell,{verticalAlign:"middle",children:e.config_name}),(0,a.createComponentVNode)(2,i.Table.Cell,{children:(0,a.createComponentVNode)(2,f,{source:e.layer})}),(0,a.createComponentVNode)(2,i.Table.Cell,{children:(0,a.createComponentVNode)(2,f,{source:e.result})})]},e.result+"|"+e.layer)}))]})]})},f=function(e){var t=e.source;return(0,a.createComponentVNode)(2,i.Box,{as:"img",src:t,width:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})},N=function(){return(0,a.createComponentVNode)(2,i.Box,{height:0,mt:"-100%",children:(0,a.createComponentVNode)(2,i.Icon,{name:"cog",height:22.7,opacity:.5,size:25,spin:!0})})};t.GreyscaleModifyMenu=function(e,t){var n=(0,c.useBackend)(t),o=n.act,r=n.data;return(0,a.createComponentVNode)(2,l.Window,{title:"Color Configuration",width:325,height:800,children:(0,a.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,a.createComponentVNode)(2,s),(0,a.createComponentVNode)(2,u),(0,a.createComponentVNode)(2,h),(0,a.createComponentVNode)(2,i.Flex,{direction:"column",children:[!!r.unlocked&&(0,a.createComponentVNode)(2,i.Flex.Item,{justify:"flex-start",children:[(0,a.createComponentVNode)(2,i.Button,{content:(0,a.createComponentVNode)(2,i.Icon,{name:"file-image-o",spin:r.monitoring_files}),tooltip:"Continuously checks files for changes and reloads when necessary. WARNING: Very expensive",selected:r.monitoring_files,onClick:function(){return o("toggle_mass_refresh")},width:1.9,mr:-.2}),(0,a.createComponentVNode)(2,i.Button,{content:"Refresh Icon File",tooltip:"Loads the json configuration and icon file fresh from disk. This is useful to avoid restarting the server to see changes. WARNING: Expensive",onClick:function(){return o("refresh_file")}}),(0,a.createComponentVNode)(2,i.Button,{content:"Save Icon File",tooltip:"Saves the icon to a temp file in tmp/. This is useful if you want to use a generated icon elsewhere or just view a more accurate representation",onClick:function(){return o("save_dmi")}})]}),(0,a.createComponentVNode)(2,i.Flex.Item,{children:[(0,a.createComponentVNode)(2,i.Button,{content:"Apply",tooltip:"Applies changes made to the object this menu was created from.",color:"red",onClick:function(){return o("apply")}}),(0,a.createComponentVNode)(2,i.Button.Checkbox,{content:"Full Preview",tooltip:"Generates and displays the full sprite generation process instead of just the final output.",disabled:!r.generate_full_preview&&!r.unlocked,checked:r.generate_full_preview,onClick:function(){return o("toggle_full_preview")}})]})]}),(0,a.createComponentVNode)(2,C),!!r.refreshing&&(0,a.createComponentVNode)(2,N)]})})}},19609:function(e,t,n){"use strict";t.__esModule=!0,t.GuestPass=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.GuestPass=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,h=d.duration,C=d.mode,f=d.log,N=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===C&&(0,o.createComponentVNode)(2,c.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Logs",children:f.length&&f.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,c.Section,{title:"Guest pass terminal #"+N,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,c.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,c.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,c.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,c.Button,{content:h,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},93958:function(e,t,n){"use strict";t.__esModule=!0,t.GulagItemReclaimer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GulagItemReclaimer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.mobs,s=void 0===d?[]:d;return(0,o.createComponentVNode)(2,c.Window,{width:325,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[0===s.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No stored items"}),s.length>0&&(0,o.createComponentVNode)(2,a.Section,{title:"Stored Items",children:(0,o.createComponentVNode)(2,a.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:(0,o.createComponentVNode)(2,a.Button,{content:"Retrieve Items",disabled:!l.can_reclaim,onClick:function(){return i("release_items",{mobref:e.mob})}})})]},e.mob)}))})})]})})}},91985:function(e,t,n){"use strict";t.__esModule=!0,t.GulagTeleporterConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.GulagTeleporterConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.teleporter,s=l.teleporter_lock,u=l.teleporter_state_open,m=l.teleporter_location,p=l.beacon,h=l.beacon_location,C=l.id,f=l.id_name,N=l.can_teleport,g=l.goal,V=void 0===g?0:g,b=l.prisoner,v=void 0===b?{}:b;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:295,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Teleporter Console",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:u?"Open":"Closed",disabled:s,selected:u,onClick:function(){return i("toggle_open")}}),(0,o.createComponentVNode)(2,a.Button,{icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",selected:s,disabled:u,onClick:function(){return i("teleporter_lock")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Teleporter Unit",color:d?"good":"bad",buttons:!d&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return i("scan_teleporter")}}),children:d?m:"Not Connected"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiver Beacon",color:p?"good":"bad",buttons:!p&&(0,o.createComponentVNode)(2,a.Button,{content:"Reconnect",onClick:function(){return i("scan_beacon")}}),children:p?h:"Not Connected"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prisoner Details",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prisoner ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:C?f:"No ID",onClick:function(){return i("handle_id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Point Goal",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:V,width:"48px",minValue:1,maxValue:1e3,onChange:function(e,t){return i("set_goal",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",children:v.name||"No Occupant"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Status",children:v.crimstat||"No Status"})]})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Process Prisoner",disabled:!N,textAlign:"center",color:"bad",onClick:function(){return i("teleport")}})]})})}},76721:function(e,t,n){"use strict";t.__esModule=!0,t.GyrotronControlContent=t.GyrotronControl=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.GyrotronControl=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.gyros;return(0,o.createComponentVNode)(2,c.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return a("set_tag")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return a("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(t,n){return a("set_rate",{gyro:e.ref,rate:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(t,n){return a("set_str",{gyro:e.ref,str:n})}})})]},e.name)}))]})})};t.GyrotronControlContent=i},59986:function(e,t,n){"use strict";t.__esModule=!0,t.HoloPay=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.HoloPay=function(e,t){var n=(0,r.useBackend)(t).data.owner,s=(0,r.useLocalState)(t,"setupMode",!1),u=s[0],m=s[1],p=function(){m(!u)};return(0,o.createComponentVNode)(2,c.Window,{height:"300",width:"250",title:"Holo Pay",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:n?(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i,{onClick:p})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:u?(0,o.createComponentVNode)(2,d,{onClick:p}):(0,o.createComponentVNode)(2,l,{onClick:p})})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Error! Swipe an ID first."})})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.user;return n?(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Table,{fill:!0,children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"money-check",color:"label",mr:1}),null==n?void 0:n.name]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[null==n?void 0:n.balance," cr ",(0,o.createComponentVNode)(2,a.Icon,{color:"gold",name:"coins"})]})})]})})}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Error! No account detected."})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.description,d=i.force_fee,s=i.name,u=i.owner,m=i.user,p=i.shop_logo,h=e.onClick,C=u===(null==m?void 0:m.name),f=C||!m||(null==m?void 0:m.balance)<1||(null==m?void 0:m.balance)<d,N=s.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}));return(0,o.createComponentVNode)(2,a.Section,{buttons:C&&(0,o.createComponentVNode)(2,a.Button,{icon:"edit",onClick:h,children:"Setup"}),fill:!0,title:"Terminal",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,a.Icon,{color:"good",name:p,size:"5"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:l,position:"bottom",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",fontSize:"17px",overflow:"hidden",children:N})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:d?(0,o.createComponentVNode)(2,a.Button.Confirm,{content:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"coins"}),(0,o.createTextVNode)("Pay "),d+" cr"],0),disabled:f,fluid:!0,height:"2rem",onClick:function(){return c("pay")},pt:.2,textAlign:"center"}):(0,o.createComponentVNode)(2,a.Button,{content:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Icon,{name:"coins"}),(0,o.createTextVNode)("Pay")],4),disabled:f,fluid:!0,height:"2rem",onClick:function(){return c("pay")},pt:.2,textAlign:"center"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createVNode)(1,"marquee",null,(0,o.createComponentVNode)(2,a.Box,{color:"darkgray",fontSize:"8px",children:"Nanotrasen (c) 2525-2562. All sales final.\nUse of departmental funds is prohibited. For more information, visit\nthe Head of Personnel. All rights reserved. All trademarks are property\nof their respective owners."}),0,{scrollamount:"2"})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.available_logos,d=void 0===l?[]:l,s=i.force_fee,u=i.max_fee,m=i.name,p=i.shop_logo,h=e.onClick,C=m.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}));return(0,o.createComponentVNode)(2,a.Section,{buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"check",onClick:function(){c("done"),h()},children:"Done"}),fill:!0,scrollable:!0,title:"Settings",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"Shop Logo"}),(0,o.createComponentVNode)(2,a.Dropdown,{onSelected:function(e){return c("logo",{logo:e})},options:d,selected:p,width:"100%"})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"Name (3 - 42 chars)"}),(0,o.createComponentVNode)(2,a.TextArea,{fluid:!0,height:"3rem",maxLength:42,onChange:function(e,t){(null==t?void 0:t.length)>3&&c("rename",{name:t})},placeholder:C})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Set a forced fee rather than pay what you want.",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"Forced Fee"}),(0,o.createComponentVNode)(2,a.RestrictedInput,{fluid:!0,maxValue:u,onChange:function(e,t){return c("fee",{amount:t})},value:s})]})})]})})}},30472:function(e,t,n){"use strict";t.__esModule=!0,t.Holodeck=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Holodeck=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.can_toggle_safety,s=l.emagged,u=l.program,m=l.default_programs||[],p=l.emag_programs||[];return(0,o.createComponentVNode)(2,c.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Default Programs",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"unlock":"lock",content:"Safeties",color:"bad",disabled:!d,selected:!s,onClick:function(){return i("safety")}}),children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),textAlign:"center",selected:e.id===u,onClick:function(){return i("load_program",{id:e.id})}},e.id)}))}),!!s&&(0,o.createComponentVNode)(2,a.Section,{title:"Dangerous Programs",children:p.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.name.substring(11),color:"bad",textAlign:"center",selected:e.id===u,onClick:function(){return i("load_program",{id:e.id})}},e.id)}))})]})})}},96565:function(e,t,n){"use strict";t.__esModule=!0,t.Holopad=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Holopad=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data.calling;return(0,o.createComponentVNode)(2,c.Window,{width:440,height:245,children:[!!d&&(0,o.createComponentVNode)(2,a.Modal,{fontSize:"36px",fontFamily:"monospace",children:[(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mr:2,mt:2,children:(0,o.createComponentVNode)(2,a.Icon,{name:"phone-alt",rotation:25})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mr:2,children:"Dialing..."})]}),(0,o.createComponentVNode)(2,a.Box,{mt:2,textAlign:"center",fontSize:"24px",children:(0,o.createComponentVNode)(2,a.Button,{lineHeight:"40px",icon:"times",content:"Hang Up",color:"bad",onClick:function(){return l("hang_up")}})})]}),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})]})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.on_network,d=i.on_cooldown,s=i.allowed,u=i.disk,m=i.disk_record,p=i.replay_mode,h=i.loop_mode,C=i.record_mode,f=i.holo_calls,N=void 0===f?[]:f;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Holopad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"bell",content:d?"AI's Presence Requested":"Request AI's Presence",disabled:!l||d,onClick:function(){return c("AIrequest")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Communicator",children:(0,o.createComponentVNode)(2,a.Button,{icon:"phone-alt",content:s?"Connect To Holopad":"Call Holopad",disabled:!l,onClick:function(){return c("holocall",{headcall:s})}})}),N.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.connected?"Current Call":"Incoming Call",children:(0,o.createComponentVNode)(2,a.Button,{icon:e.connected?"phone-slash":"phone-alt",content:e.connected?"Disconnect call from "+e.caller:"Answer call from "+e.caller,color:e.connected?"bad":"good",disabled:!l,onClick:function(){return c(e.connected?"disconnectcall":"connectcall",{holopad:e.ref})}})},e.ref)})),N.filter((function(e){return!e.connected})).length>0&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"phone-slash",content:"Reject incoming call(s)",color:"bad",onClick:function(){return c("rejectall")}})},"reject")]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holodisk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!u||p||C,onClick:function(){return c("disk_eject")}}),children:!u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No holodisk"})||(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Player",children:[(0,o.createComponentVNode)(2,a.Button,{icon:p?"pause":"play",content:p?"Stop":"Replay",selected:p,disabled:C||!m,onClick:function(){return c("replay_mode")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:h?"Looping":"Loop",selected:h,disabled:C||!m,onClick:function(){return c("loop_mode")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exchange-alt",content:"Change Offset",disabled:!p,onClick:function(){return c("offset")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recorder",children:[(0,o.createComponentVNode)(2,a.Button,{icon:C?"pause":"video",content:C?"End Recording":"Record",selected:C,disabled:m&&!C||p,onClick:function(){return c("record_mode")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Clear Recording",color:"bad",disabled:!m||p||C,onClick:function(){return c("record_clear")}})]})]})})],4)}},50962:function(e,t,n){"use strict";t.__esModule=!0,t.HotkeysHelp=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=/(.*)(Shift)(.*)/,l=/(.*)(Ctrl)(.*)/,d=/(.*)(Alt)(.*)/,s=function(e,t,n){var r=e.match(t);return r?(0,o.createFragment)([u(r[1]),(0,o.createComponentVNode)(2,a.Box,{inline:!0,style:{color:n},children:r[2]}),u(r[3])],0):null},u=function(e){var t=s(e,i,"#88f");if(t)return t;var n=s(e,l,"#8f8");if(n)return n;var o=s(e,d,"#fc4");return o||(" "+e).replace("Northeast","Page Up").replace("Southeast","Page Down").replace("Northwest","Home").replace("Southwest","End").replace("North","Up").replace("South","Down").replace("East","Right").replace("West","Left").replace("Numpad","Numpad ")},m=function(e){return(0,o.createFragment)(u(e.keycode),0)};t.HotkeysHelp=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createComponentVNode)(2,c.Window,{title:"Hotkeys Help",width:500,height:800,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Sorted by Key",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",m:1,children:"Key"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",m:1,children:"Binding"})]}),n.hotkeys.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,textAlign:"right",p:1,children:(0,o.createComponentVNode)(2,m,{keycode:e.key})}),(0,o.createComponentVNode)(2,a.Table.Cell,{style:{position:"relative"},children:e.bindings.map((function(e){return e.desc?(0,o.createComponentVNode)(2,a.Tooltip,{content:e.desc,position:"bottom",children:(0,o.createComponentVNode)(2,a.Box,{p:1,m:1,inline:!0,className:"HotkeysHelp__pill",children:e.name})},e.name):(0,o.createComponentVNode)(2,a.Box,{p:1,m:1,inline:!0,className:"HotkeysHelp__pill",children:e.name})}))})]},e.key)}))]})})})})}},64816:function(e,t,n){"use strict";t.__esModule=!0,t.HypertorusWasteRemove=t.HypertorusSecondaryControls=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=n(69650),l=["color","defaultValue","icon","flipIcon","help","minValue","maxValue","parameter","step","value"];var d=function(e,t){var n=e.color,c=void 0!==n&&n,i=e.defaultValue,d=e.icon,s=e.flipIcon,u=e.help,m=e.minValue,p=e.maxValue,h=e.parameter,C=e.step,f=void 0===C?5:C,N=e.value,g=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l),V=(0,r.useBackend)(t),b=V.act,v=(V.data,{});s&&(v.rotation=180);var k=d&&(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Icon,Object.assign({position:"absolute",top:"16px",left:"-27px",color:"label",fontSize:"200%",name:d},v)));return(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"2px",children:[u?(0,o.createComponentVNode)(2,a.Tooltip,{content:u,children:k}):k,(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Knob,Object.assign({color:c,size:2,value:N,minValue:m,maxValue:p,step:f,stepPixelSize:1,onDrag:function(e,t){var n;return b(h,((n={})[h]=t,n))}},g))),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){var e;return b(h,((e={})[h]=p,e))}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){var e;return b(h,((e={})[h]=i,e))}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"34px",right:"-20px",color:"transparent",icon:"fast-backward",onClick:function(){var e;return b(h,((e={})[h]=m,e))}})]})};t.HypertorusSecondaryControls=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data);return(0,o.createComponentVNode)(2,a.Section,{title:"Reactor Control",children:(0,o.createComponentVNode)(2,a.LabeledControls,{justify:"space-around",wrap:!0,children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Heating Conductor",children:(0,o.createComponentVNode)(2,d,{color:c.heating_conductor>50&&c.heat_output>0&&"yellow",value:parseFloat(c.heating_conductor),unit:"J/cm",minValue:50,defaultValue:100,maxValue:500,parameter:"heating_conductor",icon:"fire",help:"Adjusts the rate the fusion reaction heats or cools. Higher heating values improve production at the risk of a runaway reaction."})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cooling Volume",children:(0,o.createComponentVNode)(2,d,{value:parseFloat(c.cooling_volume),unit:"L",minValue:50,defaultValue:100,maxValue:2e3,parameter:"cooling_volume",step:25,icon:"snowflake-o",help:"Adjusts the HFR core's internal cooling space. A smaller space will provide less cooling internally, but will move most of the coolant outside of the HFR core, where it can be rapidly cooled when not needed."})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Magnetic Constrictor",children:(0,o.createComponentVNode)(2,d,{value:parseFloat(c.magnetic_constrictor),unit:"m\xb3/T",minValue:50,defaultValue:100,maxValue:1e3,parameter:"magnetic_constrictor",icon:"magnet",flipIcon:!0,help:"Adjusts the density of the fusion reaction. Denser reactions expose more energy, but may destabilize the reaction if too much mass is involved."})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Current Damper",children:(0,o.createComponentVNode)(2,d,{color:c.current_damper&&"yellow",value:parseFloat(c.current_damper),unit:"W",minValue:0,defaultValue:0,maxValue:1e3,parameter:"current_damper",icon:"sun-o",help:"Destabilizes the reaction. A sufficiently destabilized reaction will halt production and become endothermic, cooling the Fusion Mix instead of heating it. Reactions with more iron are harder to destabilize."})})]})})};t.HypertorusWasteRemove=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.filter_types||[];return(0,o.createComponentVNode)(2,a.Section,{title:"Output Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.HoverHelp,{content:"Remove waste gases from Fusion, and any selected gases from the Moderator."}),(0,o.createTextVNode)("Waste remove:")],4),children:(0,o.createComponentVNode)(2,a.Button,{icon:d.waste_remove?"power-off":"times",content:d.waste_remove?"On":"Off",selected:d.waste_remove,onClick:function(){return l("waste_remove")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.HelpDummy),(0,o.createTextVNode)("Moderator filtering rate:")],4),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(d.mod_filtering_rate),unit:"mol/s",minValue:5,maxValue:200,onDrag:function(e,t){return l("mod_filtering_rate",{mod_filtering_rate:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.HelpDummy),(0,o.createTextVNode)("Filter from moderator mix:")],4),children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.enabled?"check-square-o":"square-o",selected:e.enabled,content:(0,c.getGasLabel)(e.gas_id,e.gas_name),onClick:function(){return l("filter",{mode:e.gas_id})}},e.gas_id)}))})]})})}},36911:function(e,t,n){"use strict";t.__esModule=!0,t.HypertorusGases=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(31246),l=n(26949),d=n(84200),s=n(69650);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var p={plasma:"Produces basic gases. Has a modest heat bonus to help kick start the early fusion process. When added in large quantities, its high heat capacity can help to slow down temperature changes to manageable speeds.",bz:"Produces intermediate gases at Fusion Level 3 or higher. Massively increases radiation, and induces hallucinations in bystanders.",proto_nitrate:"Produces advanced gases. Massively increases radiation, and accelerates the rate of temperature change. Make sure you have enough cooling.",o2:"When added in high quantities, rapidly purges iron content. Does not purge iron content fast enough to keep up with damage at high Fusion Levels.",healium:"Directly heals a heavily damaged HFR core at high Fusion Levels, but is rapidly consumed in the process.",antinoblium:"Provides huge amounts of energy and radiation. Can cause dangerous electrical storms even from a healthy HFR core when present in more than trace amounts. Wear appropriate electrical protection when handling.",freon:"Saps most forms of energy expression. Slows the rate of temperature change."},h=["plasma","bz","proto_nitrate"],C=function(e,t){var n=(0,i.useBackend)(t),m=n.act,p=n.data,h=e.input_max,C=e.input_min,f=e.input_rate,N=e.input_switch,g=e.gases,V=e.minimumScale,b=e.prepend,v=e.rateHelp,k=e.stickyGases,_=(0,a.flow)([(0,r.filter)((function(e){return e.amount>=.01})),(0,r.sortBy)((function(e){return-e.amount}))])(g||[]);return k&&function(e,t){var n={};e.forEach((function(e){n[e.id]=!0}));for(var o,r=u(t);!(o=r()).done;){var a=o.value;n[a]||e.push({id:a,amount:0})}}(_,k),(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,o.createFragment)([(0,o.createComponentVNode)(2,s.HoverHelp,{content:v}),(0,o.createTextVNode)("Injection control:")],4),children:[(0,o.createComponentVNode)(2,l.Button,{disabled:0===p.start_power||0===p.start_cooling,icon:p[N]?"power-off":"times",content:p[N]?"On":"Off",selected:p[N],onClick:function(){return m(N)}}),(0,o.createComponentVNode)(2,l.NumberInput,{animated:!0,value:parseFloat(p[f]),unit:"mol/s",minValue:C,maxValue:h,onDrag:function(e,t){var n;return m(f,((n={})[f]=t,n))}})]}),_.map((function(e){var t;return b&&(t=b(e)),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,o.createFragment)([t,(0,d.getGasLabel)(e.id),(0,o.createTextVNode)(":")],0),children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.id),value:e.amount,minValue:0,maxValue:V,children:(0,c.toFixed)(e.amount,2)+" moles"})},e.id)}))]})};t.HypertorusGases=function(e,t){var n=(0,i.useBackend)(t).data,r=n.fusion_gases,a=n.moderator_gases,c=(n.selectable_fuel||[]).filter((function(e){return e.id===n.selected}))[0];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Section,{title:"Internal Fusion Gases",children:c?(0,o.createComponentVNode)(2,C,{input_rate:"fuel_injection_rate",input_switch:"start_fuel",input_max:150,input_min:.5,gases:r,minimumScale:500,prepend:function(){return(0,o.createComponentVNode)(2,s.HelpDummy)},rateHelp:"The rate at which new fuel is added from the fuel input port. This rate affects the rate of production, even when input is not active.",stickyGases:c.requirements}):(0,o.createComponentVNode)(2,l.Box,{align:"center",color:"red",children:"No recipe selected"})}),(0,o.createComponentVNode)(2,l.Section,{title:"Moderator Gases",children:(0,o.createComponentVNode)(2,C,{input_rate:"moderator_injection_rate",input_switch:"start_moderator",input_max:150,input_min:.5,gases:a,minimumScale:500,rateHelp:"The rate at which new moderator gas is added from the moderator port.",stickyGases:h,prepend:function(e){return p[e.id]?(0,o.createComponentVNode)(2,s.HoverHelp,{content:p[e.id]}):(0,o.createComponentVNode)(2,s.HelpDummy)}})})],4)}},29823:function(e,t,n){"use strict";t.__esModule=!0,t.HypertorusParameters=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(1033);t.HypertorusParameters=function(e,t){var n=(0,a.useBackend)(t).data,l=n.heat_output,d=n.heat_output_min,s=n.heat_output_max,u=l/(l<0?d:s);return!isNaN(u)&&isFinite(u)||(u=0),(0,o.createComponentVNode)(2,c.Section,{title:"Reactor Status",children:(0,o.createComponentVNode)(2,c.Flex,{className:"hypertorus-parameters",justify:"space-between",wrap:!0,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"360",minWidth:"120px",children:(0,o.createComponentVNode)(2,c.LabeledControls,{justify:"space-around",wrap:!0,children:[(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Reactor Integrity",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:n.integrity,minValue:0,maxValue:100,alertBefore:95,format:function(e){return Math.round(e)+"%"},ranges:{good:[90,100],average:[50,90],bad:[0,50]}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Iron Content",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:n.iron_content,minValue:0,maxValue:1,alertAfter:.25,format:function(e){return Math.round(100*e)+"%"},ranges:{good:[0,.1],average:[.1,.36],bad:[.36,1]}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Area Power",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:n.apc_energy,minValue:0,maxValue:100,alertBefore:30,format:function(e){return Math.round(e)+"%"},ranges:{bad:[0,15],average:[15,30],good:[30,100]}})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"140",minWidth:"140px",align:"center",children:(0,o.createComponentVNode)(2,c.LabeledControls,{justify:"space-around",children:(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Fusion Level",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:3,minValue:0,maxValue:6,value:n.power_level,alertAfter:4.5,ranges:{grey:[0,1],good:[1,3.5],average:[3.5,4.5],bad:[4.5,6]}})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"360",minWidth:"120px",children:(0,o.createComponentVNode)(2,c.LabeledControls,{justify:"space-around",wrap:!0,children:[(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Energy",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:Math.max(0,Math.log10(n.energy_level)),minValue:12,maxValue:30,format:function(e){return(0,i.formatSiUnit)(Math.pow(10,e),4,"J")},ranges:{black:[12,15],grey:[15,18],yellow:[18,24],orange:[24,30]}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Reaction activity",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:100*u,minValue:0,maxValue:130,format:function(e){return(n.start_power?(0,r.toFixed)(e,1):0)+"%"},ranges:{grey:[0,70],blue:[70,100],orange:[100,130]}})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Instability",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:1.75,value:Math.max(n.instability,0),minValue:0,maxValue:10,format:function(e){return(n.start_power?(0,r.toFixed)(e/8*100,1):0)+"%"},ranges:{orange:[0,8],blue:[8,10]}})})]})})]})})}},64635:function(e,t,n){"use strict";t.__esModule=!0,t.HypertorusRecipes=void 0;var o=n(96323),r=n(26949),a=n(84200),c=["active","children","key"],i=["gasid"],l=["enableRecipeSelection","onRecipe","selectableFuels","selectedFuelID"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var s=[{param:"recipe_cooling_multiplier",label:"Cooling",icon:"snowflake-o",scale:3},{param:"recipe_heating_multiplier",label:"Heating",icon:"fire",scale:3},{param:"energy_loss_multiplier",label:"Energy loss",icon:"sun-o",scale:3},{param:"fuel_consumption_multiplier",label:"Fuel use",icon:["window-minimize","arrow-down"],scale:1.5},{param:"gas_production_multiplier",label:"Production",icon:["window-minimize","arrow-up"],scale:1.5},{param:"temperature_multiplier",label:"Max temperature",icon:"thermometer-full",override_base:.85,scale:1.15,tooltip:function(e,t){return"Maximum: "+(t.baseMaximumTemperature*e).toExponential()+" K"}}],u={onComponentShouldUpdate:function(e,t){return e.selectedFuelID!==t.selectedFuelID||e.enableRecipeSelection!==t.enableRecipeSelection}},m=function(e){var t=e.active,n=e.children,a=(e.key,d(e,c));return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Row,Object.assign({className:"hypertorus-recipes__row"+(t?" hypertorus-recipes__activerow":"")},a,{children:n})))};m.defaultHooks={onComponentShouldUpdate:function(e,t){return e.active!==t.active}};var p=function(e){var t=e.gasid,n=d(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Table.Cell,Object.assign({label:(0,a.getGasLabel)(t)},n,{children:(0,o.createComponentVNode)(2,r.Box,{color:(0,a.getGasColor)(t),children:(0,a.getGasLabel)(t)})}),t))},h=function(e){var t=e.enableRecipeSelection,n=e.onRecipe,a=e.selectableFuels,c=e.selectedFuelID,i=d(e,l);return(0,o.createComponentVNode)(2,r.Box,{overflowX:"auto",children:(0,o.createComponentVNode)(2,r.Table,{children:[(0,o.createComponentVNode)(2,m,{header:!0,children:[(0,o.createComponentVNode)(2,r.Table.Cell),(0,o.createComponentVNode)(2,r.Table.Cell,{colspan:"2",children:"Fuel"}),(0,o.createComponentVNode)(2,r.Table.Cell,{colspan:"2",children:"Fusion Byproducts"}),(0,o.createComponentVNode)(2,r.Table.Cell,{colspan:"6",children:"Produced gases"}),(0,o.createComponentVNode)(2,r.Table.Cell,{colspan:"6",children:"Effects"})]}),(0,o.createComponentVNode)(2,m,{header:!0,children:[(0,o.createComponentVNode)(2,r.Table.Cell),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Primary"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Secondary"}),(0,o.createComponentVNode)(2,r.Table.Cell,{colspan:"2"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 1"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 2"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 3"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 4"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 5"}),(0,o.createComponentVNode)(2,r.Table.Cell,{children:"Tier 6"}),s.map((function(e){return(0,o.createComponentVNode)(2,r.Table.Cell,{color:"label",children:(0,o.createComponentVNode)(2,r.Tooltip,{content:e.label,children:"string"==typeof e.icon?(0,o.createComponentVNode)(2,r.Icon,{className:"hypertorus-recipes__icon",name:e.icon}):(0,o.createComponentVNode)(2,r.Icon.Stack,{className:"hypertorus-recipes__icon",children:e.icon.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{name:e},e)}))})})},e.param)}))]}),a.filter((function(e){return e.id})).map((function(e,a){var l=e.id===c;return(0,o.createComponentVNode)(2,m,{active:l,children:[(0,o.createComponentVNode)(2,r.Table.Cell,{children:(0,o.createComponentVNode)(2,r.Button,{icon:e.id===c?"times":"power-off",disabled:!t,selected:e.id===c,onClick:n.bind(null,e.id)},e.id)}),(0,o.createComponentVNode)(2,p,{gasid:e.requirements[0]}),(0,o.createComponentVNode)(2,p,{gasid:e.requirements[1]}),(0,o.createComponentVNode)(2,p,{gasid:e.fusion_byproducts[0]}),(0,o.createComponentVNode)(2,p,{gasid:e.fusion_byproducts[1]}),e.product_gases.map((function(e){return(0,o.createComponentVNode)(2,p,{gasid:e},e)})),s.map((function(t){var n,a,c,l=e[t.param];return(0,o.createComponentVNode)(2,r.Table.Cell,{children:(0,o.createComponentVNode)(2,r.Tooltip,{content:(t.tooltip||function(e){return"x"+e})(l,i),children:(0,o.createComponentVNode)(2,r.Icon,{className:"hypertorus-recipes__icon",name:(n=l,a=t.scale,c=t.override_base||1,n===c?"minus":n>c?n>c*a?"angle-double-up":"angle-up":n<c/a?"angle-double-down":"angle-down")})})},t.param)}))]},e.id)}))]})})};t.HypertorusRecipes=h,h.defaultHooks=u},8415:function(e,t,n){"use strict";t.__esModule=!0,t.HypertorusTemperatures=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(69650),i=["label","delta","value","children"];var l=function(e){var t=e.color,n=e.value,r=200-e.progressHeight;return(0,o.createVNode)(1,"div","hypertorus-temperatures__vertical-bar",!!n&&(0,o.createComponentVNode)(2,a.Box,{backgroundColor:t,top:r+"px"}),0)},d=function(e){var t=e.label,n=e.delta,r=e.value;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{align:"center",children:t}),r>0?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{align:"center",children:(0,c.to_exponential_if_big)(r)+" K"}),(0,o.createComponentVNode)(2,a.Box,{align:"center",children:0===n?"-":(n<0?"":"+")+(0,c.to_exponential_if_big)(n)+" K/s"})],4):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{align:"center",color:"red",children:"Empty"}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({"class":"hypertorus__unselectable"},Byond.IS_LTE_IE8?{style:{unselectable:!0}}:{},{children:"\xa0"})))],4)],0)};t.HypertorusTemperatures=function(e,t){var n=(0,r.useBackend)(t).data,s=n.power_level,u=n.base_max_temperature,m=n.internal_fusion_temperature,p=n.moderator_internal_temperature,h=n.internal_output_temperature,C=n.internal_coolant_temperature,f=n.temperature_period,N=(m-n.internal_fusion_temperature_archived)/f,g=(h-n.internal_output_temperature_archived)/f,V=(C-n.internal_coolant_temperature_archived)/f,b=(p-n.moderator_internal_temperature_archived)/f,v=(n.selectable_fuel||[]).filter((function(e){return e.id===n.selected}))[0],k=Math.pow(10,1+s),_=Math.pow(10,2+s);0===s?(k=0,_=500):1===s?k=500:6===s&&(_=u*(v?v.temperature_multiplier:1));var y=[k,_].concat([m,p,h,C].filter((function(e){return e}))).map((function(e){return parseFloat(e)})),w=Math.max.apply(Math,y),x=Math.max(2.73,Math.min.apply(Math,[20].concat(y.filter((function(e){return e>0})))));6===s&&(_=0);var S=function(e,t,n){void 0===t&&(t=x),void 0===n&&(n=!1);var o=(Math.log10(e)-Math.log10(t))/(Math.log10(w)-Math.log10(x));return 200*(n?1-o:o)},B=function(e){var t=e.icon,n=e.force,r=e.tooltip,i=e.value,l=S(i),d=(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__y-axis-label",children:[t&&(0,o.createComponentVNode)(2,a.Icon,{className:"hypertorus-temperatures__y-axis-label-icon",name:t}),(0,c.to_exponential_if_big)(i)+" K"]});return(!!i||n)&&(0,o.createComponentVNode)(2,a.Box,{"class":"hypertorus-temperatures__y-axis-tick-anchor",top:200-l+"px",children:[(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__y-axis-tick"}),r?(0,o.createComponentVNode)(2,a.Tooltip,{content:r,children:d}):d]})},I=function(e){var t=e.label,n=e.delta,r=e.value,c=e.children,s=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i),u=S(r);return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,align:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({progressHeight:u,value:r},s,{children:c})))}),(0,o.createComponentVNode)(2,a.Stack.Item,{color:"label",children:(0,o.createComponentVNode)(2,d,{delta:n,label:t,value:r})})]})})},L=function(e,t){return Math.abs(S(e)-S(t))>20},T=L(k,x)||0===s,A=L(_,w);return(0,o.createComponentVNode)(2,a.Section,{title:"Gas Monitoring",children:(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__container",children:[(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__y-axis-marks",children:[T&&(0,o.createComponentVNode)(2,B,{value:x,force:!0},"min_temp"),(0,o.createComponentVNode)(2,B,{icon:"chevron-down",tooltip:"Previous Fusion Level",value:k},"prev_fusion_temp"),(0,o.createComponentVNode)(2,B,{icon:"chevron-up",tooltip:"Next Fusion Level",value:_},"next_fusion_temp"),A&&(0,o.createComponentVNode)(2,B,{value:w},"max_temp")]}),(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__y-axis",children:(0,o.createComponentVNode)(2,a.Box,{className:"hypertorus-temperatures__x-axis"})}),(0,o.createComponentVNode)(2,a.Flex,{overflowY:"hidden",className:"hypertorus-temperatures__chart",justify:"space-around",children:[(0,o.createComponentVNode)(2,I,{label:"Fusion",value:m,delta:N,color:"#f2711c"}),(0,o.createComponentVNode)(2,I,{label:"Moderator",value:p,delta:b,color:"#e03997"}),(0,o.createComponentVNode)(2,I,{label:"Coolant",value:C,delta:V,color:"aliceblue"}),(0,o.createComponentVNode)(2,I,{label:"Output",value:h,delta:g,color:"#20b142"})]})]})})}},69650:function(e,t,n){"use strict";t.__esModule=!0,t.HelpDummy=t.HoverHelp=t.to_exponential_if_big=void 0;var o=n(96323),r=n(26949);t.to_exponential_if_big=function(e){return Math.abs(e)>5e3?e.toExponential(1):Math.round(e)};t.HoverHelp=function(e){return(0,o.createComponentVNode)(2,r.Tooltip,{content:e.content,children:(0,o.createComponentVNode)(2,r.Icon,{name:"question-circle",width:"12px",mr:"6px"})})};t.HelpDummy=function(e){return(0,o.createComponentVNode)(2,r.Icon,{name:"",width:"12px",mr:"6px"})}},7085:function(e,t,n){"use strict";t.__esModule=!0,t.Hypertorus=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(64816),l=n(36911),d=n(29823),s=n(64635),u=n(8415),m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Startup",children:[(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{color:"label",children:["Start power: ",(0,o.createComponentVNode)(2,a.Button,{disabled:i.power_level>0,icon:i.start_power?"power-off":"times",content:i.start_power?"On":"Off",selected:i.start_power,onClick:function(){return c("start_power")}})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{color:"label",children:["Start cooling: ",(0,o.createComponentVNode)(2,a.Button,{disabled:1===i.start_fuel||1===i.start_moderator||0===i.start_power||i.start_cooling&&i.power_level>0,icon:i.start_cooling?"power-off":"times",content:i.start_cooling?"On":"Off",selected:i.start_cooling,onClick:function(){return c("start_cooling")}})]})]}),(0,o.createComponentVNode)(2,a.Collapsible,{title:"Recipe selection",children:(0,o.createComponentVNode)(2,s.HypertorusRecipes,{baseMaximumTemperature:i.base_max_temperature,enableRecipeSelection:0===i.power_level,onRecipe:function(e){return c("fuel",{mode:e})},selectableFuels:i.selectable_fuel,selectedFuelID:i.selected})})]})},p=function(){return(0,o.createComponentVNode)(2,a.Flex,{className:"hypertorus-layout",wrap:!0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,width:"100%",children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"20",width:"350px",minWidth:"280px",children:(0,o.createComponentVNode)(2,l.HypertorusGases)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,width:"420px",overflowX:"auto",children:(0,o.createComponentVNode)(2,u.HypertorusTemperatures)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"4",width:"580px",children:(0,o.createComponentVNode)(2,a.Flex,{className:"hypertorus-layout",wrap:!0,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,width:"860px",children:(0,o.createComponentVNode)(2,d.HypertorusParameters)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,width:"580px",children:(0,o.createComponentVNode)(2,i.HypertorusSecondaryControls)})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,width:"100%",children:(0,o.createComponentVNode)(2,i.HypertorusWasteRemove)})]})};t.Hypertorus=function(e,t){var n=window.screen.availWidth,r=window.screen.availHeight,a=Math.min(850,.5*n),i=Math.min(980,.8*r);return(0,o.createComponentVNode)(2,c.Window,{title:"Hypertorus Fusion Reactor control panel",width:a,height:i,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})}},56797:function(e,t,n){"use strict";t.__esModule=!0,t.HypnoChair=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.HypnoChair=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:375,height:480,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Information",backgroundColor:"#450F44",children:"The Enhanced Interrogation Chamber is designed to induce a deep-rooted trance trigger into the subject. Once the procedure is complete, by using the implanted trigger phrase, the authorities are able to ensure immediate and complete obedience and truthfulness."}),(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Information",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.occupant.name?l.occupant.name:"No Occupant"}),!!l.occupied&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:0===l.occupant.stat?"good":1===l.occupant.stat?"average":"bad",children:0===l.occupant.stat?"Conscious":1===l.occupant.stat?"Unconcious":"Dead"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Operations",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.open?"unlock":"lock",color:l.open?"default":"red",content:l.open?"Open":"Closed",onClick:function(){return i("door")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Phrase",children:(0,o.createComponentVNode)(2,a.Input,{value:l.trigger,onChange:function(e,t){return i("set_phrase",{phrase:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Interrogate Occupant",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"code-branch",content:l.interrogating?"Interrupt Interrogation":"Begin Enhanced Interrogation",onClick:function(){return i("interrogate")}}),1===l.interrogating&&(0,o.createComponentVNode)(2,a.Icon,{name:"cog",color:"orange",spin:!0})]})]})})]})})}},86347:function(e,t,n){"use strict";t.__esModule=!0,t.ICTerminal=t.ICAssembly=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(1033);t.ICAssembly=function(e,t){var n=(0,a.useBackend)(t),u=n.act,m=n.data,p=m.total_parts,h=m.max_components,C=m.total_complexity,f=m.max_complexity,N=m.opened,g=m.battery_charge,V=m.battery_max,b=m.net_power,v=m.circuit_props;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,s,{circuits:v}),N?(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/h,maxValue:1,children:[p," / ",h,"(",(0,r.round)(p/h*100,1),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:C/f,maxValue:1,children:[C," / ",f,"(",(0,r.round)(C/f*100,1),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:g&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:g/V,maxValue:1,children:[g," / ",V,"(",(0,r.round)(g/V*100,1),"%)"]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Net Energy",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:0===b?"0 W/s":(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u("remove_cell")},children:"Remove"})]})})]})}):(0,o.createComponentVNode)(2,c.Box,{children:"The assembly is closed."}),N&&(0,o.createComponentVNode)(2,d,{title:"Components",circuits:v})||null]})})};var d=function(e,t){var n=(0,a.useBackend)(t).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,c.Section,{title:r,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return n("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return n("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return n("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",disabled:!e.removable,onClick:function(){return n("remove_circuit",{ref:e.ref,index:++t})},children:"Remove"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return n("bottom_circuit",{ref:e.ref,index:++t})},children:"Move to Bottom"})]},e.ref)}))})})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.UI_settings,e.circuits);return(0,o.createComponentVNode)(2,c.Section,{title:"Terminal",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",justify:"space-evenly",align:"baseline",children:i.map((function(e){return e.input&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,wrap:"wrap",maxwidth:"33%",inline:1,color:"label",verticalAlignContent:1,basis:"30%",m:.5,p:.5,children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:e.name,width:"95%",align:"center",verticalAlignContent:"center",height:2.5,compact:0,fluid:1,wrap:"wrap",ellipsis:1,onClick:function(){return r("input_selection",{ref:e.ref})}})},e.ref)||null}))})})};t.ICTerminal=s},12576:function(e,t,n){"use strict";t.__esModule=!0,t.ICCircuit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118),l=n(1033);t.ICCircuit=function(e,t){var n=(0,r.useBackend)(t),i=n.act,u=n.data,m=(u.name,u.desc),p=u.displayed_name,h=(u.removable,u.complexity),C=u.cooldown_per_use,f=u.power_draw_idle,N=u.power_draw_per_use,g=u.extended_desc,V=u.inputs,b=u.outputs,v=u.activators;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:h}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cooldown Per Use",children:[C/10," secs"]}),f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(f)})||null,N&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),g]}),(0,o.createComponentVNode)(2,a.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,a.Flex,{textAlign:"center",spacing:1,children:[V.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:V})})})||null,(0,o.createComponentVNode)(2,a.Flex.Item,{basis:V.length&&b.length?"33%":V.length||b.length?"45%":"100%",children:(0,o.createComponentVNode)(2,a.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,a.Box,{children:m})})}),b.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null]}),(0,o.createComponentVNode)(2,a.Section,{title:"Triggers",children:v.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"<PULSE OUT>":"<PULSE IN>"}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,t){var n=(0,r.useBackend)(t).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,t){var n=(0,r.useBackend)(t).act,c=e.pin;return c.linked.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("pin_unwire",{pin:c.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},38706:function(e,t,n){"use strict";t.__esModule=!0,t.ICDetailer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118);t.ICDetailer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,c.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:Object.keys(u).map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:t%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},76110:function(e,t,n){"use strict";t.__esModule=!0,t.ICPrinter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(1397);t.ICPrinter=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),l=i.metal,u=i.max_metal,m=i.metal_per_sheet,p=(i.debug,i.upgraded),h=i.can_clone;i.program,i.categories;return(0,o.createComponentVNode)(2,c.Window,{width:800,height:630,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l,maxValue:u,children:[l/m," / ",u/m," sheets"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuits Available",children:p?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Assembly Cloning",children:h?"Available":"Unavailable"})]})}),(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,t){return!!e.can_build&&!(e.cost>t.metal)},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,d=n.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(t,"categoryTarget",null)),m=u[0],p=u[1],h=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:h&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:h.items.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return c("build",{build:e.path,cost:e.cost})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.can_clone,d=i.program;return!!l&&(0,o.createComponentVNode)(2,a.Section,{title:"Cloning",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Button,{p:1,fluid:!0,icon:"home",iconSize:2,tooltip:"Load a program to print.",textAlign:"center",onClick:function(){return c("load_blueprint",{build:item.path})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Button,{p:1,fluid:!0,icon:"print",color:d?"good":"bad",iconSize:2,textAlign:"center",onClick:function(){return c("clone",{build:item.path})}})})]})})}},74246:function(e,t,n){"use strict";t.__esModule=!0,t.IDCard=void 0;var o=n(96323),r=n(26949),a=n(31246),c=n(2381),i=n(63826);t.IDCard=function(e,t){var n=(0,a.useBackend)(t).data,l=n.registered_name,d=n.sex,s=n.age,u=n.assignment,m=n.fingerprint_hash,p=n.blood_type,h=n.dna_hash,C=n.photo_front,f=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:h}];return(0,o.createComponentVNode)(2,c.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,o.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,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:f.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},26331:function(e,t,n){"use strict";t.__esModule=!0,t.IVDrip=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.IVDrip=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.transferRate,s=l.injectOnly,u=l.maxInjectRate,m=l.minInjectRate,p=l.mode,h=l.connected,C=l.beakerAttached,f=l.useInternalStorage;return(0,o.createComponentVNode)(2,c.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"IV Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:h?"good":"average",children:h?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{disabled:s,content:p?"Injecting":"Draining",icon:p?"sign-in-alt":"sign-out-alt",onClick:function(){return i("changeMode")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attached Container",color:C?"good":"average",children:[(0,o.createComponentVNode)(2,a.Box,{as:"span",mr:2,children:C?"Container Attached":"Container Not Attached"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!C||f,content:"Eject",icon:"eject",onClick:function(){return i("eject")}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Injection Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Injection Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:d,unit:"u/cycle",minValue:m,maxValue:u,step:.1,onChange:function(e,t){return i("changeRate",{rate:t})}})})})})]})})}},60910:function(e,t,n){"use strict";t.__esModule=!0,t.IdentificationComputerRegions=t.IdentificationComputerAccessModification=t.IdentificationComputerPrinting=t.IdentificationComputerContent=t.IdentificationComputer=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381),l=n(21118),d=n(83828);t.IdentificationComputer=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=e.ntos,s=i.mode,p=i.has_modify,h=i.printing,C=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?C=(0,o.createComponentVNode)(2,d.CrewManifestContent):h?C=(0,o.createComponentVNode)(2,u):1===s&&(C=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),C],0)};t.IdentificationComputerContent=s;var u=function(e,t){return(0,o.createComponentVNode)(2,c.Section,{title:"Printing",children:"Please wait..."})};t.IdentificationComputerPrinting=u;var m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,h=i.scan_name,C=i.authenticated,f=i.has_modify,N=i.account_number,g=i.centcom_access,V=i.all_centcom_access,b=(i.regions,i.id_rank),v=i.departments;return(0,o.createComponentVNode)(2,c.Section,{title:"Access Modification",children:[!C&&(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",fluid:!0,content:h,onClick:function(){return r("scan")}})})]}),!!C&&!!f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onInput:function(e,t){return r("reg",{reg:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,c.Input,{value:N,fluid:!0,onInput:function(e,t){return r("account",{account:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[v.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.job===b,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,c.Box,{mt:-1,children:"\xa0"})],4,e.department_name)})),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!g&&(0,o.createComponentVNode)(2,c.Section,{title:"Central Command",level:2,children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,c.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};t.IdentificationComputerAccessModification=m;var p=function(e,t){var n=(0,a.useBackend)(t),i=n.act,d=n.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};t.IdentificationComputerRegions=p},64896:function(e,t,n){"use strict";t.__esModule=!0,t.ImplantChair=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ImplantChair=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:375,height:280,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Occupant Information",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.occupant.name||"No Occupant"}),!!l.occupied&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:0===l.occupant.stat?"good":1===l.occupant.stat?"average":"bad",children:0===l.occupant.stat?"Conscious":1===l.occupant.stat?"Unconcious":"Dead"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Operations",textAlign:"center",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Door",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.open?"unlock":"lock",color:l.open?"default":"red",content:l.open?"Open":"Closed",onClick:function(){return i("door")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implant Occupant",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"code-branch",content:l.ready?l.special_name||"Implant":"Recharging",onClick:function(){return i("implant")}}),0===l.ready&&(0,o.createComponentVNode)(2,a.Icon,{name:"cog",color:"orange",spin:!0})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Implants Remaining",children:[l.ready_implants,1===l.replenishing&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",color:"red",spin:!0})]})]})})]})})}},31330:function(e,t,n){"use strict";t.__esModule=!0,t.InfraredEmitter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.InfraredEmitter=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,c.Window,{width:225,height:110,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"eye":"eye-slash",content:s?"Visible":"Invisible",selected:s,onClick:function(){return i("visibility")}})})]})})})})}},49324:function(e,t,n){"use strict";t.__esModule=!0,t.Loader=t.InputModal=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(57890),l=n(2381);(0,n(79926).createLogger)("inputmodal");t.InputModal=function(e,t){var n,r,s,u=(0,a.useBackend)(t),m=u.act,p=u.data,h=p.title,C=p.message,f=p.initial,N=p.input_type,g=p.timeout,V=(0,a.useLocalState)(t,"curValue",f),b=V[0],v=V[1],k=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(N){case"text":case"num":r=325,n=Math.max(150,C.length),s=(0,o.createComponentVNode)(2,c.Input,{value:f,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:k,onChange:function(e,t){v(t)},onEnter:function(e,t){m("choose",{choice:t})}});break;case"message":r=450,n=350,s=(0,o.createComponentVNode)(2,c.TextArea,{value:f,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:k,onChange:function(e,t){v(t)}})}return(0,o.createComponentVNode)(2,l.Window,{title:h,theme:"abstract",width:r,height:n,children:[g!==undefined&&(0,o.createComponentVNode)(2,d,{value:g}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:C,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:b})}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var t=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,c.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(t)+"%"}}),2)};t.Loader=d},88475:function(e,t,n){"use strict";t.__esModule=!0,t.BasicInput=void 0;var o=n(96323),r=n(26949);t.BasicInput=function(e,t){var n=e.children,a=e.name,c=e.setValue,i=e.defaultValue;return null!==e.value&&(0,o.createComponentVNode)(2,r.Stack,{onMouseDown:function(e){return e.stopPropagation()},children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{color:"transparent",compact:!0,icon:"times",onClick:function(){return c(null,{set_null:!0})}})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:n})]})||(0,o.createComponentVNode)(2,r.Button,{content:a,color:"transparent",compact:!0,onClick:function(){return c(i)}})}},71485:function(e,t,n){"use strict";t.__esModule=!0,t.CircuitInfo=void 0;var o=n(96323),r=n(26949),a=["name","desc","notices"];t.CircuitInfo=function(e,t){e.name;var n=e.desc,c=e.notices,i=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,a);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({},i,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,vertical:!0,justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Stack.Item,{maxWidth:"200px",children:n}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,children:c.map((function(e,t){return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{content:e.content,color:e.color,icon:e.icon,fluid:!0})},t)}))})})]})})))}},44728:function(e,t,n){"use strict";t.__esModule=!0,t.ComponentMenu=void 0;var o,r=n(96323),a=n(26949),c=n(1060),i=n(94500),l=n(39646),d=n(89937),s=n(87279),u=["components","showAll","onMouseDownComponent","onClose"];function m(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t,n;function h(){var t;return(t=e.call(this)||this).state={selectedTab:"All",currentLimit:s.DEFAULT_COMPONENT_MENU_LIMIT,currentSearch:""},t}n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var C=h.prototype;return C.componentDidMount=function(){this.populateServerData()},C.populateServerData=function(){var e,t=(e=regeneratorRuntime.mark((function n(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o||(o=(0,i.fetchRetry)((0,l.resolveAsset)("circuit_components.json")).then((function(e){return e.json()}))),t.next=3,o;case 3:e=t.sent,this.setState({componentData:e.sort((function(e,t){return e.name.toLowerCase()<t.name.toLowerCase()}))});case 5:case"end":return t.stop()}}),n,this)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){m(a,o,r,c,i,"next",e)}function i(e){m(a,o,r,c,i,"throw",e)}c(undefined)}))});return function(){return t.apply(this,arguments)}}(),C.shouldComponentUpdate=function(e,t){return!!(0,c.shallowDiffers)(this.state,t)||!!(0,c.shallowDiffers)(this.props.components,e.components)},C.render=function(){var e=this,t=this.props,n=t.components,o=void 0===n?[]:n,c=t.showAll,i=void 0!==c&&c,l=t.onMouseDownComponent,m=t.onClose,p=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,u),h=this.state,C=h.selectedTab,f=h.componentData,N=void 0===f?[]:f,g=h.currentLimit,V=h.currentSearch,b=["All"],v=N.filter((function(e){return!(!i&&!o.includes(e.type))&&(b.includes(e.category)||b.push(e.category),""!==V?-1!==e.name.toLowerCase().search(V.toLowerCase()):"All"===C||C===e.category)})),k=v.length;return v.length=g,(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.Section,Object.assign({title:"Component Menu"},p,{fill:!0,buttons:(0,r.createComponentVNode)(2,a.Button,{icon:"times",color:"transparent",mr:2,onClick:m}),onMouseUp:function(e){e.preventDefault()},scrollable:!0,children:(0,r.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Dropdown,{width:"100%",options:b,onSelected:function(t){return e.setState({selectedTab:t,currentSearch:"",currentLimit:s.DEFAULT_COMPONENT_MENU_LIMIT})},displayText:"Category: "+C,color:"transparent",className:"IntegratedCircuit__BlueBorder"})}),(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Input,{placeholder:"Search..",value:V,fluid:!0,onInput:function(t,n){return e.setState({currentSearch:n,selectedTab:"All",currentLimit:s.DEFAULT_COMPONENT_MENU_LIMIT})}})}),(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[v.map((function(e){return(0,r.createComponentVNode)(2,a.Stack.Item,{mt:1,onMouseDown:function(t){return l(t,e)},children:[(0,r.createComponentVNode)(2,a.Box,{backgroundColor:e.color||"blue",py:1,px:1,className:"ObjectComponent__Titlebar",children:(0,r.createComponentVNode)(2,a.Stack,{children:[(0,r.createComponentVNode)(2,a.Stack.Item,{grow:1,unselectable:"on",children:e.name}),(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Button,{color:"transparent",icon:"info",compact:!0,tooltip:e.description,tooltipPosition:"top"})})]})}),(0,r.createComponentVNode)(2,a.Box,{className:"ObjectComponent__Content",unselectable:"on",py:1,px:1,children:(0,r.createComponentVNode)(2,a.Stack,{children:[(0,r.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:e.input_ports.map((function(e,t){return(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,d.Port,{port:e,act:s.noop})},t)}))})}),(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Stack,{vertical:!0,children:e.output_ports.map((function(e,t){return(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,d.Port,{port:e,act:s.noop,isOutput:!0})},t)}))})})]})})]},e.type)})),k>g&&(0,r.createComponentVNode)(2,a.Stack.Item,{mt:1,children:(0,r.createComponentVNode)(2,a.Button,{height:"32px",textAlign:"center",py:1,mb:1,content:"Show More",onClick:function(){return e.setState({currentLimit:g+5})},fluid:!0})})]})})]})})))},h}(r.Component);t.ComponentMenu=h},29728:function(e,t,n){"use strict";t.__esModule=!0,t.Connections=void 0;var o=n(96323),r=n(84200),a=n(87279),c=n(1060);t.Connections=function(e,t){var n=e.connections,i=function(e){if("string"==typeof e)return r.CSS_COLORS.includes(e)};return(0,o.createVNode)(32,"svg",null,n.map((function(e,t){var n=e.from,r=e.to;if(r&&n){var l="M "+n.x+" "+n.y;return l+="C "+(n.x+a.SVG_CURVE_INTENSITY)+", "+n.y+",",l+=r.x-a.SVG_CURVE_INTENSITY+", "+r.y+",",l+=r.x+", "+r.y,e.color=e.color||"blue",(0,o.createVNode)(32,"path",(0,c.classes)([i(e.color)&&"color-stroke-"+e.color]),null,1,{d:l,fill:"transparent","stroke-width":"2px"},t)}})),0,{width:"100%",height:"100%",style:{position:"absolute","pointer-events":"none","z-index":-1}})}},30672:function(e,t,n){"use strict";t.__esModule=!0,t.DisplayName=void 0;var o=n(96323),r=n(26949),a=n(20321),c=["port","isOutput","componentId","portIndex","act"];t.DisplayName=function(e,t){var n,i=e.port,l=e.isOutput,d=e.componentId,s=e.portIndex,u=e.act,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,c),p=a.FUNDAMENTAL_DATA_TYPES[i.type||"unknown"],h=a.DATATYPE_DISPLAY_HANDLERS[i.type||"unknown"],C=!l&&!(null!=(n=i.connected_to)&&n.length)&&(d||"option"===i.type)&&p,f=h?h(i):i.type;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({},m,{children:(0,o.createComponentVNode)(2,r.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:l?"right":"left",children:C&&(0,o.createComponentVNode)(2,p,{setValue:function(e,t){return u("set_component_input",Object.assign({component_id:d,port_id:s,input:e},t))},color:i.color,name:i.name,value:i.current_data,extraData:i.datatype_data})||l&&(0,o.createComponentVNode)(2,r.Button,{compact:!0,color:"transparent",onClick:function(){return u("get_component_value",{component_id:d,port_id:s})},children:(0,o.createComponentVNode)(2,r.Box,{color:"white",children:i.name})})||i.name}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{fontSize:.75,opacity:.25,textAlign:l?"right":"left",children:f||"unknown"})})]})})))}},20321:function(e,t,n){"use strict";t.__esModule=!0,t.DATATYPE_DISPLAY_HANDLERS=t.FUNDAMENTAL_DATA_TYPES=void 0;var o=n(96323),r=n(88475),a=n(26949),c=n(87279),i={string:function(e,t){var n=e.name,c=e.value,i=e.setValue;return e.color,(0,o.createComponentVNode)(2,r.BasicInput,{name:n,setValue:i,value:c,defaultValue:"",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:n,value:c,onChange:function(e,t){return i(t)},width:"96px"})})},number:function(e,t){var n=e.name,c=e.value,i=e.setValue,l=e.color;return(0,o.createComponentVNode)(2,r.BasicInput,{name:n,setValue:i,value:c,defaultValue:0,children:(0,o.createComponentVNode)(2,a.NumberInput,{value:c,color:l,onChange:function(e,t){return i(t)},unit:n})})},entity:function(e,t){var n=e.name,r=e.setValue;return(0,o.createComponentVNode)(2,a.Button,{content:n,color:"transparent",icon:"upload",compact:!0,onClick:function(){return r(null,{marked_atom:!0})}})},datum:function(e,t){var n=e.name,r=e.setValue;return(0,o.createComponentVNode)(2,a.Button,{content:n,color:"transparent",icon:"upload",compact:!0,onClick:function(){return r(null,{marked_atom:!0})}})},signal:function(e,t){var n=e.name,r=e.setValue;return(0,o.createComponentVNode)(2,a.Button,{content:n,color:"transparent",compact:!0,onClick:function(){return r()}})},option:function(e,t){var n=e.value,r=e.setValue,i=!1,l=e.extraData||[],d=Array.isArray(l)?l:Object.keys(l);return d.forEach((function(e){e.length>c.OPTION_DROPDOWN_LARGE_CHAR_AMOUNT&&(i=!0)})),(0,o.createComponentVNode)(2,a.Dropdown,{className:"IntegratedCircuit__BlueBorder",color:"transparent",options:d,onSelected:r,displayText:n,openWidth:i?"200px":undefined,noscroll:!0})},any:function(e,t){var n=e.name,c=e.value,i=e.setValue,l=e.color;return(0,o.createComponentVNode)(2,r.BasicInput,{name:n,setValue:i,value:c,defaultValue:"",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{color:l,icon:"upload",onClick:function(){return i(null,{marked_atom:!0})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{placeholder:n,value:c,onChange:function(e,t){return i(t)},width:"64px"})})]})})}};t.FUNDAMENTAL_DATA_TYPES=i;var l={option:function(e){return e.name.toLowerCase()}};t.DATATYPE_DISPLAY_HANDLERS=l},90496:function(e,t,n){"use strict";t.__esModule=!0,t.ObjectComponent=void 0;var o=n(96323),r=n(26949),a=n(1060),c=n(87279),i=n(89937),l=["input_ports","output_ports","name","x","y","index","color","removable","ui_buttons","locations","onPortUpdated","onPortLoaded","onPortMouseDown","onPortRightClick","onPortMouseUp","act"];function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).state={isDragging:!1,dragPos:null,startPos:null,lastMousePos:null},t.handleStartDrag=t.handleStartDrag.bind(d(t)),t.handleStopDrag=t.handleStopDrag.bind(d(t)),t.handleDrag=t.handleDrag.bind(d(t)),t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var m=u.prototype;return m.handleStartDrag=function(e){var t=this.props,n=t.x,o=t.y;e.stopPropagation(),this.setState({lastMousePos:null,isDragging:!0,dragPos:{x:n,y:o},startPos:{x:n,y:o}}),window.addEventListener("mousemove",this.handleDrag),window.addEventListener("mouseup",this.handleStopDrag)},m.handleStopDrag=function(e){var t=this.state.dragPos,n=this.props,o=n.index,r=n.act;t&&(void 0===r?function(){return _}:r)("set_component_coordinates",{component_id:o,rel_x:t.x,rel_y:t.y}),window.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("mouseup",this.handleStopDrag),this.setState({isDragging:!1})},m.handleDrag=function(e){var t=this.state,n=t.dragPos,o=t.isDragging,r=t.lastMousePos;if(n&&o){e.preventDefault();var a=e.screenZoomX,c=e.screenZoomY,i=e.screenX,l=e.screenY,d=a||i,s=c||l;r&&this.setState({dragPos:{x:n.x-(r.x-d),y:n.y-(r.y-s)}}),this.setState({lastMousePos:{x:d,y:s}})}},m.shouldComponentUpdate=function(e,t){var n=this.props,o=n.input_ports,r=n.output_ports;return(0,a.shallowDiffers)(this.props,e)||(0,a.shallowDiffers)(this.state,t)||(0,a.shallowDiffers)(o,e.input_ports)||(0,a.shallowDiffers)(r,e.output_ports)},m.render=function(){var e=this.props,t=e.input_ports,n=e.output_ports,a=e.name,d=e.x,s=e.y,u=e.index,m=e.color,p=void 0===m?"blue":m,h=e.removable,C=e.ui_buttons,f=(e.locations,e.onPortUpdated),N=void 0===f?c.noop:f,g=e.onPortLoaded,V=void 0===g?c.noop:g,b=e.onPortMouseDown,v=void 0===b?c.noop:b,k=e.onPortRightClick,_=void 0===k?c.noop:k,y=e.onPortMouseUp,w=void 0===y?c.noop:y,x=e.act,S=void 0===x?c.noop:x,B=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l),I=this.state,L=I.startPos,T=I.dragPos,A=d,D=s;T&&L&&L.x===A&&L.y===D&&(A=T.x,D=T.y);var M={onPortLoaded:V,onPortUpdated:N,onPortMouseDown:v,onPortRightClick:_,onPortMouseUp:w};return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({position:"absolute",left:A+"px",top:D+"px",onMouseDown:this.handleStartDrag,onMouseUp:this.handleStopDrag},B,{children:[(0,o.createComponentVNode)(2,r.Box,{backgroundColor:p,py:1,px:1,className:"ObjectComponent__Titlebar",children:(0,o.createComponentVNode)(2,r.Stack,{children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:1,unselectable:"on",children:a}),!!C&&Object.keys(C).map((function(e){return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{icon:e,color:"transparent",compact:!0,onClick:function(){return S("perform_action",{component_id:u,action_name:C[e]})}})},e)})),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{color:"transparent",icon:"info",compact:!0,onClick:function(e){return S("set_examined_component",{component_id:u,x:e.pageX,y:e.pageY+c.ABSOLUTE_Y_OFFSET})}})}),!!h&&(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{color:"transparent",icon:"times",compact:!0,onClick:function(){return S("detach_component",{component_id:u})}})})]})}),(0,o.createComponentVNode)(2,r.Box,{className:"ObjectComponent__Content",unselectable:"on",py:1,px:1,children:(0,o.createComponentVNode)(2,r.Stack,{children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:t.map((function(e,t){return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Port,Object.assign({port:e,portIndex:t+1,componentId:u,act:S},M)))},t)}))})}),(0,o.createComponentVNode)(2,r.Stack.Item,{ml:5,children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,children:n.map((function(e,t){return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Port,Object.assign({act:S,port:e,portIndex:t+1,componentId:u},M,{isOutput:!0})))},t)}))})})]})})]}),null,{onComponentWillUnmount:this.handleDrag}))},u}(o.Component);t.ObjectComponent=u},89937:function(e,t,n){"use strict";t.__esModule=!0,t.Port=void 0;var o=n(96323),r=n(26949),a=n(30672),c=n(1060),i=n(87279),l=["port","isOutput"];function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).iconRef=(0,o.createRef)(),t.componentDidUpdate=t.componentDidUpdate.bind(d(t)),t.componentDidMount=t.componentDidMount.bind(d(t)),t.handlePortMouseDown=t.handlePortMouseDown.bind(d(t)),t.handlePortRightClick=t.handlePortRightClick.bind(d(t)),t.handlePortMouseUp=t.handlePortMouseUp.bind(d(t)),t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var m=u.prototype;return m.handlePortMouseDown=function(e){var t=this.props,n=t.port,o=t.portIndex,r=t.componentId,a=t.isOutput,c=t.onPortMouseDown;(void 0===c?i.noop:c)(o,r,n,a,e)},m.handlePortMouseUp=function(e){var t=this.props,n=t.port,o=t.portIndex,r=t.componentId,a=t.isOutput,c=t.onPortMouseUp;(void 0===c?i.noop:c)(o,r,n,a,e)},m.handlePortRightClick=function(e){var t=this.props,n=t.port,o=t.portIndex,r=t.componentId,a=t.isOutput,c=t.onPortRightClick;(void 0===c?i.noop:c)(o,r,n,a,e)},m.componentDidUpdate=function(){var e=this.props,t=e.port,n=e.onPortUpdated;n&&n(t,this.iconRef.current)},m.componentDidMount=function(){var e=this.props,t=e.port,n=e.onPortLoaded;n&&n(t,this.iconRef.current)},m.renderDisplayName=function(){var e=this.props,t=e.port,n=e.portIndex,c=e.componentId,i=e.isOutput,l=e.act;return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,a.DisplayName,{act:l,port:t,isOutput:i,componentId:c,portIndex:n})})},m.render=function(){var e,t=this.props,n=t.port,a=t.isOutput,i=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,l),d=[];return null!=(e=n.datatype_data)&&e.composite_types&&(d=n.datatype_data.composite_types),(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Stack,Object.assign({},i,{justify:a?"flex-end":"flex-start",children:[!!a&&this.renderDisplayName(),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{className:(0,c.classes)(["ObjectComponent__Port"]),onMouseDown:this.handlePortMouseDown,onContextMenu:this.handlePortRightClick,onMouseUp:this.handlePortMouseUp,textAlign:"center",children:[(0,o.createVNode)(32,"svg",null,[d.map((function(e,t){var n=2*Math.PI/d.length*50;return(0,o.createVNode)(32,"circle","color-stroke-"+e,null,1,{stroke:e,"stroke-dasharray":n+", "+100*Math.PI,"stroke-dashoffset":-t*(Math.PI/d.length*100),"stroke-width":"50px",cx:"50",cy:"50",r:"50","fill-opacity":"0",transform:"rotate(90, 50, 50)"},t)})),(0,o.createVNode)(32,"circle","color-fill-"+n.color,null,1,{cx:"50",cy:"50",r:"50"},null,this.iconRef)],0,{style:{width:"100%",height:"100%",position:"absolute"},viewBox:"0, 0, 100, 100"}),(0,o.createVNode)(1,"span","ObjectComponent__PortPos",null,1,null,null,this.iconRef)]})}),!a&&this.renderDisplayName()]})))},u}(o.Component);t.Port=u},34906:function(e,t,n){"use strict";t.__esModule=!0,t.VariableMenu=void 0;var o=n(96323),r=n(26949),a=n(1060),c=["variables","onAddVariable","onRemoveVariable","onClose","handleMouseDownSetter","handleMouseDownGetter","types"];function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function l(){var t;return(t=e.call(this)||this).state={variable_name:"",variable_type:"any"},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var s=l.prototype;return s.shouldComponentUpdate=function(e,t){if((0,a.shallowDiffers)(this.state,t))return!0;var n=this.props.variables;if(n.length!==e.variables.length)return!0;for(var o=0;o<n.length;o++)if((0,a.shallowDiffers)(n[o],e.variables[o]))return!0;return!1},s.render=function(){var e=this,t=this.props,n=t.variables,a=t.onAddVariable,i=t.onRemoveVariable,l=t.onClose,s=t.handleMouseDownSetter,u=t.handleMouseDownGetter,m=t.types,p=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,c),h=this.state,C=h.variable_name,f=h.variable_type;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Section,Object.assign({title:"Variable Options"},p,{fill:!0,buttons:(0,o.createComponentVNode)(2,r.Button,{icon:"times",color:"transparent",mr:2,onClick:l}),children:(0,o.createComponentVNode)(2,r.Stack,{height:"100%",children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:1,mr:2,children:(0,o.createComponentVNode)(2,r.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{backgroundColor:"transparent",px:"1px",py:"1px",height:"100%",children:(0,o.createComponentVNode)(2,r.Stack,{children:[(0,o.createComponentVNode)(2,r.Stack.Item,{basis:"50%",grow:!0,children:(0,o.createComponentVNode)(2,r.Box,{width:"100%",overflow:"hidden",children:e.name})}),(0,o.createComponentVNode)(2,r.Stack.Item,{minWidth:"80px",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,color:e.color,children:e.datatype})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,onMouseDown:function(t){return s(t,e.name)},color:e.color,disabled:!!e.is_list,tooltip:"Drag me onto the circuit's grid\nto make a setter for this variable",icon:"pen"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{fluid:!0,tooltip:"Drag me onto the circuit's grid\nto make a getter for this variable",color:e.color,onMouseDown:function(t){return u(t,e.name)},icon:"book-open"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{icon:"times",color:"bad",onClick:function(t){return i(e.name,t)}})})]})})},e.name)}))})})}),(0,o.createComponentVNode)(2,r.Stack.Item,{height:"100%",width:"25%",children:(0,o.createComponentVNode)(2,r.Box,{height:"100%",children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Input,{placeholder:"Name",fluid:!0,onChange:function(t,n){return e.setState({variable_name:n})}})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,r.Dropdown,{options:m,displayText:f,className:"IntegratedCircuit__BlueBorder",color:"black",width:"100%",over:!0,onSelected:function(t){return e.setState({variable_type:t})}})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{height:"100%",color:"green",onClick:function(e){return a(C,f,!1,e)},fluid:!0,children:(0,o.createComponentVNode)(2,d,{icon:"plus"})})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Button,{height:"100%",color:"green",onClick:function(e){return a(C,f,!0,e)},fluid:!0,children:(0,o.createComponentVNode)(2,d,{icon:"list"})})})]})})]})})})]})})))},l}(o.Component);t.VariableMenu=l;var d=function(e,t){return(0,o.createComponentVNode)(2,r.Stack,{fill:!0,align:"center",children:(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,basis:"content",children:(0,o.createComponentVNode)(2,r.Icon,{name:e.icon,size:1,width:"100%",m:"0em"})})})}},87279:function(e,t){"use strict";t.__esModule=!0,t.noop=t.DEFAULT_COMPONENT_MENU_LIMIT=t.TIME_UNTIL_PORT_RELEASE_WORKS=t.OPTION_DROPDOWN_LARGE_CHAR_AMOUNT=t.MOUSE_BUTTON_LEFT=t.SVG_CURVE_INTENSITY=t.ABSOLUTE_Y_OFFSET=t.NULL_REF=void 0;t.NULL_REF="[0x0]";t.ABSOLUTE_Y_OFFSET=-32;t.SVG_CURVE_INTENSITY=64;t.MOUSE_BUTTON_LEFT=0;t.OPTION_DROPDOWN_LARGE_CHAR_AMOUNT=12;t.TIME_UNTIL_PORT_RELEASE_WORKS=100;t.DEFAULT_COMPONENT_MENU_LIMIT=6;t.noop=function(){}},80509:function(e,t,n){"use strict";t.__esModule=!0,t.IntegratedCircuit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(39646),l=n(71485),d=n(87279),s=n(29728),u=n(90496),m=n(34906),p=n(44728);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){var t,n;function C(){var t;return(t=e.call(this)||this).state={locations:{},selectedPort:null,mouseX:null,mouseY:null,zoom:1,backgroundX:0,backgroundY:0,variableMenuOpen:!1,componentMenuOpen:!1},t.handlePortLocation=t.handlePortLocation.bind(f(t)),t.handleMouseDown=t.handleMouseDown.bind(f(t)),t.handleMouseUp=t.handleMouseUp.bind(f(t)),t.handlePortClick=t.handlePortClick.bind(f(t)),t.handlePortRightClick=t.handlePortRightClick.bind(f(t)),t.handlePortUp=t.handlePortUp.bind(f(t)),t.handlePortDrag=t.handlePortDrag.bind(f(t)),t.handlePortRelease=t.handlePortRelease.bind(f(t)),t.handleZoomChange=t.handleZoomChange.bind(f(t)),t.handleBackgroundMoved=t.handleBackgroundMoved.bind(f(t)),t.onVarClickedSetter=t.onVarClickedSetter.bind(f(t)),t.onVarClickedGetter=t.onVarClickedGetter.bind(f(t)),t.handleVarDropped=t.handleVarDropped.bind(f(t)),t.handleMouseDownComponent=t.handleMouseDownComponent.bind(f(t)),t.handleComponentDropped=t.handleComponentDropped.bind(f(t)),t}n=e,(t=C).prototype=Object.create(n.prototype),t.prototype.constructor=t,N(t,n);var g=C.prototype;return g.getPosition=function(e){for(var t=0,n=0;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{x:t,y:n+d.ABSOLUTE_Y_OFFSET}},g.handlePortLocation=function(e,t){var n=this.state.locations;if(t){var o=n[e.ref],r=this.getPosition(t);r.color=e.color,isNaN(r.x)||isNaN(r.y)||o&&o.x===r.x&&o.y===r.y||(n[e.ref]=r,this.setState({locations:n}))}},g.handlePortClick=function(e,t,n,o,r){this.state.selectedPort?this.handlePortUp(e,t,n,o,r):r.button===d.MOUSE_BUTTON_LEFT&&(r.stopPropagation(),this.setState({selectedPort:{index:e,component_id:t,is_output:o,ref:n.ref}}),this.handlePortDrag(r),this.timeUntilPortReleaseTimesOut=Date.now()+d.TIME_UNTIL_PORT_RELEASE_WORKS,window.addEventListener("mousemove",this.handlePortDrag),window.addEventListener("mouseup",this.handlePortRelease))},g.handlePortUp=function(e,t,n,o,a){var c=(0,r.useBackend)(this.context),i=c.act,l=c.data,d=this.state.selectedPort;if(d&&d.is_output!==o){var s;this.setState({selectedPort:null}),i("add_connection",s=o?{input_port_id:d.index,output_port_id:e,input_component_id:d.component_id,output_component_id:t}:{input_port_id:e,output_port_id:d.index,input_component_id:t,output_component_id:d.component_id});var u=l.components,m=s,p=m.input_component_id,h=m.input_port_id,C=m.output_component_id,f=m.output_port_id,N=u[p-1].input_ports[h-1],g=u[C-1].output_ports[f-1];N&&N.type===g.type&&N.connected_to.push(o?n.ref:d.ref)}},g.handlePortDrag=function(e){var t=(0,r.useBackend)(this.context).data,n=t.screen_x,o=t.screen_y;this.setState((function(t){return{mouseX:e.clientX-(t.backgroundX||n),mouseY:e.clientY-(t.backgroundY||o)}}))},g.handlePortRelease=function(e){window.removeEventListener("mouseup",this.handlePortRelease),this.timeUntilPortReleaseTimesOut>Date.now()||(this.setState({selectedPort:null}),window.removeEventListener("mousemove",this.handlePortDrag))},g.handlePortRightClick=function(e,t,n,o,a){var c=(0,r.useBackend)(this.context).act;a.preventDefault(),c("remove_connection",{component_id:t,is_input:!o,port_id:e})},g.handleZoomChange=function(e){this.setState({zoom:e})},g.handleBackgroundMoved=function(e,t){this.setState({backgroundX:e,backgroundY:t})},g.componentDidMount=function(){window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)},g.componentWillUnmount=function(){window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)},g.handleMouseDown=function(e){var t=(0,r.useBackend)(this.context),n=t.act;t.data.examined_name&&n("remove_examined_component"),this.state.selectedPort&&this.handlePortRelease(e)},g.handleMouseUp=function(e){var t=(0,r.useBackend)(this.context).act,n=this.state,o=n.backgroundX,a=n.backgroundY;o&&a&&t("move_screen",{screen_x:o,screen_y:a})},g.onVarClickedSetter=function(e,t){this.handleVarClicked(e,t,!0)},g.onVarClickedGetter=function(e,t){this.handleVarClicked(e,t,!1)},g.handleVarClicked=function(e,t,n){this.setState({draggingVariable:t,variableIsSetter:n}),window.addEventListener("mouseup",this.handleVarDropped)},g.handleVarDropped=function(e){var t=(0,r.useBackend)(this.context),n=t.data,o=t.act,a=this.state,c=a.draggingVariable,i=a.variableIsSetter,l=a.backgroundX,s=a.backgroundY,u=a.zoom,m=n.screen_x,p=n.screen_y,h=e.clientX-(l||m),C=e.clientY-(s||p);o("add_setter_or_getter",{variable:c,is_setter:i,rel_x:h*Math.pow(u,-1),rel_y:(C+d.ABSOLUTE_Y_OFFSET)*Math.pow(u,-1)}),this.setState({draggingVariable:null,variableIsSetter:null}),window.removeEventListener("mouseup",this.handleVarDropped)},g.handleMouseDownComponent=function(e,t){this.setState({draggingComponent:t.type}),window.addEventListener("mouseup",this.handleComponentDropped)},g.handleComponentDropped=function(e){var t=(0,r.useBackend)(this.context),n=t.data,o=t.act,a=this.state,c=a.draggingComponent,i=a.backgroundX,l=a.backgroundY,s=a.zoom,u=n.screen_x,m=n.screen_y;if(this.setState({draggingComponent:null}),window.removeEventListener("mouseup",this.handleComponentDropped),!e.defaultPrevented){var p=e.clientX-(i||u),h=e.clientY-(l||m);o("print_component",{component_to_print:c,rel_x:p*Math.pow(s,-1),rel_y:(h+d.ABSOLUTE_Y_OFFSET)*Math.pow(s,-1)})}},g.render=function(){for(var e,t=this,n=(0,r.useBackend)(this.context),C=n.act,f=n.data,N=f.components,g=f.display_name,V=f.examined_name,b=f.examined_desc,v=f.examined_notices,k=f.examined_rel_x,_=f.examined_rel_y,y=f.screen_x,w=f.screen_y,x=f.is_admin,S=f.variables,B=f.global_basic_types,I=f.stored_designs,L=this.state,T=L.locations,A=L.selectedPort,D=L.variableMenuOpen,M=L.componentMenuOpen,E=[],P=h(N);!(e=P()).done;){var F=e.value;if(null!==F)for(var O,R=h(F.input_ports);!(O=R()).done;)for(var j,W=O.value,z=h(W.connected_to);!(j=z()).done;){var H=T[j.value];E.push({color:H&&H.color||"blue",from:H,to:T[W.ref]})}}if(A){var U=this.state,G=U.mouseX,q=U.mouseY,Y=U.zoom,K=A.is_output,$=T[A.ref],Q={x:G*Math.pow(Y,-1),y:(q+d.ABSOLUTE_Y_OFFSET)*Math.pow(Y,-1)};E.push({color:$&&$.color||"blue",from:K?$:Q,to:K?Q:$})}return(0,o.createComponentVNode)(2,c.Window,{width:1200,height:800,buttons:(0,o.createComponentVNode)(2,a.Box,{width:"160px",position:"absolute",top:"5px",height:"22px",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Name",value:g,onChange:function(e,t){return C("set_display_name",{display_name:t})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:"24px",children:(0,o.createComponentVNode)(2,a.Button,{position:"absolute",top:0,color:"transparent",icon:"cog",selected:D,onClick:function(){return t.setState((function(e){return{variableMenuOpen:!e.variableMenuOpen}}))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:"24px",children:(0,o.createComponentVNode)(2,a.Button,{position:"absolute",top:0,color:"transparent",icon:"plus",selected:M,onClick:function(){return t.setState((function(e){return{componentMenuOpen:!e.componentMenuOpen}}))}})}),!!x&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{position:"absolute",top:0,color:"transparent",onClick:function(){return C("save_circuit")},icon:"save"})})]})}),children:(0,o.createComponentVNode)(2,c.Window.Content,{style:{"background-image":"none"},children:[(0,o.createComponentVNode)(2,a.InfinitePlane,{width:"100%",height:"100%",backgroundImage:(0,i.resolveAsset)("grid_background.png"),imageWidth:900,onZoomChange:this.handleZoomChange,onBackgroundMoved:this.handleBackgroundMoved,initialLeft:y,initialTop:w,children:[N.map((function(e,n){return e&&(0,o.normalizeProps)((0,o.createComponentVNode)(2,u.ObjectComponent,Object.assign({},e,{index:n+1,onPortUpdated:t.handlePortLocation,onPortLoaded:t.handlePortLocation,onPortMouseDown:t.handlePortClick,onPortRightClick:t.handlePortRightClick,onPortMouseUp:t.handlePortUp,act:C}),n))})),(0,o.createComponentVNode)(2,s.Connections,{connections:E})]}),!!V&&(0,o.createComponentVNode)(2,l.CircuitInfo,{position:"absolute",className:"CircuitInfo__Examined",top:_+"px",left:k+"px",name:V,desc:b,notices:v}),!!D&&(0,o.createComponentVNode)(2,a.Box,{position:"absolute",left:0,bottom:0,height:"20%",minHeight:"175px",minWidth:"600px",width:"50%",style:{"border-radius":"0px 32px 0px 0px","background-color":"rgba(0, 0, 0, 0.3)","-ms-user-select":"none"},unselectable:"on",children:(0,o.createComponentVNode)(2,m.VariableMenu,{variables:S,types:B,onClose:function(e){return t.setState({variableMenuOpen:!1})},onAddVariable:function(e,t,n,o){return C("add_variable",{variable_name:e,variable_datatype:t,is_list:n})},onRemoveVariable:function(e,t){return C("remove_variable",{variable_name:e})},handleMouseDownSetter:this.onVarClickedSetter,handleMouseDownGetter:this.onVarClickedGetter,style:{"border-radius":"0px 32px 0px 0px"}})}),!!M&&(0,o.createComponentVNode)(2,a.Box,{position:"absolute",right:0,top:0,height:"100%",width:"300px",style:{"background-color":"rgba(0, 0, 0, 0.3)","-ms-user-select":"none"},unselectable:"on",children:(0,o.createComponentVNode)(2,p.ComponentMenu,{components:I&&Object.keys(I)||[],onClose:function(e){return t.setState({componentMenuOpen:!1})},onMouseDownComponent:this.handleMouseDownComponent,showAll:x})})]})})},C}(o.Component);t.IntegratedCircuit=g},13776:function(e,t,n){"use strict";t.__esModule=!0,t.Intellicard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Intellicard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.name,s=l.isDead,u=l.isBraindead,m=l.health,p=l.wireless,h=l.radio,C=l.wiping,f=l.laws,N=void 0===f?[]:f,g=s||u;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:d||"Empty Card",buttons:!!d&&(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:C?"Stop Wiping":"Wipe",disabled:s,onClick:function(){return i("wipe")}}),children:!!d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:g?"bad":"good",children:g?"Offline":"Operation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"Wireless Activity",selected:p,onClick:function(){return i("wireless")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"microphone",content:"Subspace Radio",selected:h,onClick:function(){return i("radio")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laws",children:N.map((function(e){return(0,o.createComponentVNode)(2,a.BlockQuote,{children:e},e)}))})]})})})})}},87936:function(e,t,n){"use strict";t.__esModule=!0,t.Interview=void 0;var o=n(96323),r=n(26949),a=n(2381),c=n(31246);t.Interview=function(e,t){var n=(0,c.useBackend)(t),i=n.act,l=n.data,d=l.welcome_message,s=l.questions,u=l.read_only,m=l.queue_pos,p=l.is_admin,h=l.status,C=l.connected,f=/(\[[^[]+\]\([^)]+\))/,N=/\[([^[]+)\]\(([^)]+)\)/,g=function(e){for(var t=e.split(f),n=1;n<t.length;n+=2){var r=N.exec(t[n]);t[n]=(0,o.createVNode)(1,"a",null,r[1],0,{href:r[2]},"link"+n)}return t};return(0,o.createComponentVNode)(2,a.Window,{width:500,height:600,canClose:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!u&&(0,o.createComponentVNode)(2,r.Section,{title:"Welcome!",children:(0,o.createVNode)(1,"p",null,g(d),0)})||function(e){switch(e){case"interview_approved":return(0,o.createComponentVNode)(2,r.NoticeBox,{success:!0,children:"This interview was approved."});case"interview_denied":return(0,o.createComponentVNode)(2,r.NoticeBox,{danger:!0,children:"This interview was denied."});default:return(0,o.createComponentVNode)(2,r.NoticeBox,{info:!0,children:["Your answers have been submitted. You are position ",m," in queue."]})}}(h),(0,o.createComponentVNode)(2,r.Section,{title:"Questionnaire",buttons:(0,o.createVNode)(1,"span",null,[(0,o.createComponentVNode)(2,r.Button,{content:u?"Submitted":"Submit",onClick:function(){return i("submit")},disabled:u}),!!p&&"interview_pending"===h&&(0,o.createVNode)(1,"span",null,[(0,o.createComponentVNode)(2,r.Button,{content:"Admin PM",enabled:C,onClick:function(){return i("adminpm")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Approve",color:"good",onClick:function(){return i("approve")}}),(0,o.createComponentVNode)(2,r.Button,{content:"Deny",color:"bad",onClick:function(){return i("deny")}})],4)],0),children:[!u&&(0,o.createVNode)(1,"p",null,[(0,o.createTextVNode)("Please answer the following questions, and press submit when you are satisfied with your answers."),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"You will not be able to edit your answers after submitting.",16)],4),s.map((function(e){var t=e.qidx,n=e.question,a=e.response;return(0,o.createComponentVNode)(2,r.Section,{title:"Question "+t,children:[(0,o.createVNode)(1,"p",null,g(n),0),(u||p)&&(0,o.createComponentVNode)(2,r.BlockQuote,{children:a||"No response."})||(0,o.createComponentVNode)(2,r.TextArea,{value:a,fluid:!0,height:10,maxLength:500,placeholder:"Write your response here, max of 500 characters.",onChange:function(e,n){return n!==a&&i("update_answer",{qidx:t,answer:n})}})]},t)}))]})]})})}},46608:function(e,t,n){"use strict";t.__esModule=!0,t.InterviewManager=void 0;var o=n(96323),r=n(26949),a=n(2381),c=n(31246);t.InterviewManager=function(e,t){var n=(0,c.useBackend)(t),i=n.act,l=n.data,d=l.open_interviews,s=l.closed_interviews,u=function(e){switch(e){case"interview_approved":return"good";case"interview_denied":return"bad";case"interview_pending":return"average"}};return(0,o.createComponentVNode)(2,a.Window,{width:500,height:600,theme:"admin",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.Section,{title:"Active Interviews",children:d.map((function(e){var t=e.id,n=e.ckey,a=e.status,c=e.queued,l=e.disconnected;return(0,o.createComponentVNode)(2,r.Button,{content:n+(l?" (DC)":""),color:c?"default":u(a),onClick:function(){return i("open",{id:t})}},t)}))}),(0,o.createComponentVNode)(2,r.Section,{title:"Closed Interviews",children:s.map((function(e){var t=e.id,n=e.ckey,a=e.status,c=e.disconnected;return(0,o.createComponentVNode)(2,r.Button,{content:n+(c?" (DC)":""),color:u(a),onClick:function(){return i("open",{id:t})}},t)}))})]})})}},10494:function(e,t,n){"use strict";t.__esModule=!0,t.InventoryPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.InventoryPanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,a.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},19772:function(e,t,n){"use strict";t.__esModule=!0,t.InventoryPanelHuman=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.InventoryPanelHuman=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,h=l.handcuffedParams,C=l.legcuffed,f=l.legcuffedParams,N=l.accessory;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",h)},children:"Handcuffed"})||null,C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",f)},children:"Legcuffed"})||null,N&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},82408:function(e,t,n){"use strict";t.__esModule=!0,t.IsolationCentrifuge=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.IsolationCentrifuge=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,h=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No vial detected."});return p&&(h=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,a.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,c.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,a.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),h]}),s&&!m||u.length?(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},10815:function(e,t,n){"use strict";t.__esModule=!0,t.JanitorCart=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.JanitorCart=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,h=d.myreplacer,C=d.signs;d.icons;return(0,o.createComponentVNode)(2,c.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,a.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,a.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,a.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(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,a.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Light Replacer Slot",tooltipPosition:"top",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,a.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,t){var n=(0,r.useBackend)(t).data,c=e.iconkey,l=n.icons;return c in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[c].substr(1,l[c].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,a.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[c]})}},87435:function(e,t,n){"use strict";t.__esModule=!0,t.Jukebox=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(2381);t.Jukebox=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=s.active,m=s.track_selected,p=s.track_length,h=s.track_beat,C=s.volume,f=(0,a.flow)([(0,r.sortBy)((function(e){return e.name}))])(s.songs||[]);return(0,o.createComponentVNode)(2,l.Window,{width:370,height:313,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Song Player",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:u?"pause":"play",content:u?"Stop":"Play",selected:u,onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Track Selected",children:(0,o.createComponentVNode)(2,i.Dropdown,{"overflow-y":"scroll",width:"240px",options:f.map((function(e){return e.name})),disabled:u,selected:m||"Select a Track",onSelected:function(e){return d("select_track",{track:e})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Track Length",children:m?p:"No Track Selected"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Track Beat",children:[m?h:"No Track Selected",1===h?" beat":" beats"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Machine Settings",children:(0,o.createComponentVNode)(2,i.LabeledControls,{justify:"center",children:(0,o.createComponentVNode)(2,i.LabeledControls.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,i.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,i.Knob,{size:3.2,color:C>=25?"red":"green",value:C,unit:"%",minValue:0,maxValue:50,step:1,stepPixelSize:1,disabled:u,onDrag:function(e,t){return d("set_volume",{volume:t})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-22px",color:"transparent",icon:"fast-backward",onClick:function(){return d("set_volume",{volume:"min"})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,position:"absolute",top:"16px",right:"-22px",color:"transparent",icon:"fast-forward",onClick:function(){return d("set_volume",{volume:"max"})}}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,position:"absolute",top:"34px",right:"-22px",color:"transparent",icon:"undo",onClick:function(){return d("set_volume",{volume:"reset"})}})]})})})})]})})}},38559:function(e,t,n){"use strict";t.__esModule=!0,t.KeycardAuth=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.KeycardAuth=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:375,height:125,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{children:1===l.waiting&&(0,o.createVNode)(1,"span",null,"Waiting for another device to confirm your request...",16)}),(0,o.createComponentVNode)(2,a.Box,{children:0===l.waiting&&(0,o.createFragment)([!!l.auth_required&&(0,o.createComponentVNode)(2,a.Button,{icon:"check-square",color:"red",textAlign:"center",lineHeight:"60px",fluid:!0,onClick:function(){return i("auth_swipe")},content:"Authorize"}),0===l.auth_required&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",fluid:!0,onClick:function(){return i("red_alert")},content:"Red Alert"}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",fluid:!0,onClick:function(){return i("emergency_maint")},content:"Emergency Maintenance Access"}),(0,o.createComponentVNode)(2,a.Button,{icon:"meteor",fluid:!0,onClick:function(){return i("bsa_unlock")},content:"Bluespace Artillery Unlock"})],4)],0)})]})})})}},88891:function(e,t,n){"use strict";t.__esModule=!0,t.LaborClaimConsole=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.LaborClaimConsole=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.can_go_home,u=d.id_points,m=d.ores,p=d.status_info,h=d.unclaimed_points;return(0,o.createComponentVNode)(2,i.Window,{width:315,height:440,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle controls",children:(0,o.createComponentVNode)(2,c.Button,{content:"Move shuttle",disabled:!s,onClick:function(){return l("move_shuttle")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Points",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unclaimed points",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Claim points",disabled:!h,onClick:function(){return l("claim_points")}}),children:h})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Material values",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Material"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,r.toTitleCase)(e.ore)}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.value})})]},e.ore)}))]})})]})})}},94270:function(e,t,n){"use strict";t.__esModule=!0,t.LanguageMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.LanguageMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.admin_mode,s=l.is_living,u=l.omnitongue,m=l.languages,p=void 0===m?[]:m,h=l.unknown_languages,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.Window,{title:"Language Menu",width:700,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Known Languages",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button,{content:e.is_default?"Default Language":"Select as Default",disabled:!e.can_speak,selected:e.is_default,onClick:function(){return i("select_default",{language_name:e.name})}}),!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return i("grant_language",{language_name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Remove",onClick:function(){return i("remove_language",{language_name:e.name})}})],4)],0),children:[e.desc," ","Key: ,",e.key," ",e.can_understand?"Can understand.":"Cannot understand."," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})}),!!d&&(0,o.createComponentVNode)(2,a.Section,{title:"Unknown Languages",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Omnitongue "+(u?"Enabled":"Disabled"),selected:u,onClick:function(){return i("toggle_omnitongue")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Grant",onClick:function(){return i("grant_language",{language_name:e.name})}}),children:[e.desc," ","Key: ,",e.key," ",!!e.shadow&&"(gained from mob)"," ",e.can_speak?"Can speak.":"Cannot speak."]},e.name)}))})})]})})}},67263:function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadConsole=t.LaunchpadControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Grid,{width:"1px",children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-left",mb:1,onClick:function(){return n("move_pos",{x:-1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:-1,y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",mb:1,onClick:function(){return n("move_pos",{y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"R",mb:1,onClick:function(){return n("set_pos",{x:0,y:0})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-down",mb:1,onClick:function(){return n("move_pos",{y:-1})}})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-up",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",mb:1,onClick:function(){return n("move_pos",{x:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"arrow-right",iconRotation:45,mb:1,onClick:function(){return n("move_pos",{x:1,y:-1})}})]})]})},l=function(e,t){var n=e.topLevel,c=(0,r.useBackend)(t),l=c.act,d=c.data,s=d.x,u=d.y,m=d.pad_name,p=d.range;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Input,{value:m,width:"170px",onChange:function(e,t){return l("rename",{name:t})}}),level:n?1:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Remove",color:"bad",onClick:function(){return l("remove")}}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Controls",level:2,children:(0,o.createComponentVNode)(2,i)})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Target",level:2,children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"26px",children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"X:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:s,minValue:-p,maxValue:p,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",stepPixelSize:10,onChange:function(e,t){return l("set_pos",{x:t})}})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:"Y:"}),(0,o.createComponentVNode)(2,a.NumberInput,{value:u,minValue:-p,maxValue:p,stepPixelSize:10,lineHeight:"30px",fontSize:"26px",width:"90px",height:"30px",onChange:function(e,t){return l("set_pos",{y:t})}})]})]})})})]}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"upload",content:"Launch",textAlign:"center",onClick:function(){return l("launch")}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Pull",textAlign:"center",onClick:function(){return l("pull")}})})]})]})};t.LaunchpadControl=l;t.LaunchpadConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.launchpads,u=void 0===s?[]:s,m=d.selected_id;return(0,o.createComponentVNode)(2,c.Window,{width:475,height:260,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:0===u.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Pads Connected"})||(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{minHeight:"190px",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"140px",minHeight:"190px",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,ellipsis:!0,content:e.name,selected:m===e.id,color:"transparent",onClick:function(){return i("select_pad",{id:e.id})}},e.name)}))}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"100%",children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,minHeight:"100%",children:m&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,a.Box,{children:"Please select a pad"})})]})})})})}},28329:function(e,t,n){"use strict";t.__esModule=!0,t.LaunchpadRemote=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(67263);t.LaunchpadRemote=function(e,t){var n=(0,r.useBackend)(t).data,l=n.has_pad,d=n.pad_closed;return(0,o.createComponentVNode)(2,c.Window,{title:"Briefcase Launchpad Remote",width:300,height:240,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Launchpad Connected"})||d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Launchpad Closed"})||(0,o.createComponentVNode)(2,i.LaunchpadControl,{topLevel:!0})})})}},47015:function(e,t,n){"use strict";t.__esModule=!0,t.LawManager=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["laws","title","noButtons"];t.LawManager=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.isSlaved);return(0,o.createComponentVNode)(2,c.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[i&&(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:["Law-synced to ",i]})||null,(0,o.createComponentVNode)(2,l)]})})};var l=function(e,t){var n=(0,r.useSharedState)(t,"lawsTabIndex",0),c=n[0],i=n[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===c,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return i(1)},children:"Law Sets"})]}),0===c&&(0,o.createComponentVNode)(2,d)||null,1===c&&(0,o.createComponentVNode)(2,u)||null],0)},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.ion_law_nr,d=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,h=i.supplied_law_position,C=i.zeroth_laws,f=i.has_zeroth_laws,N=i.ion_laws,g=i.has_ion_laws,V=i.inherent_laws,b=i.has_inherent_laws,v=i.supplied_laws,k=i.has_supplied_laws,_=i.isAI,y=i.isMalf,w=i.isAdmin,x=i.channel,S=i.channels,B=C.map((function(e){return e.zero=!0,e})).concat(V);return(0,o.createComponentVNode)(2,a.Section,{children:[g&&(0,o.createComponentVNode)(2,s,{laws:N,title:l+" Laws:",mt:-2})||null,(f||b)&&(0,o.createComponentVNode)(2,s,{laws:B,title:"Inherent Laws",mt:-2})||null,k&&(0,o.createComponentVNode)(2,s,{laws:v,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Statement Channel",children:S.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return c("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,a.Button,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),_&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),y&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Add"})]}),w&&!f&&(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Input,{value:u,fluid:!0,onChange:function(e,t){return c("change_zeroth_law",{val:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Input,{value:d,fluid:!0,onChange:function(e,t){return c("change_ion_law",{val:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onChange:function(e,t){return c("change_inherent_law",{val:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Input,{value:p,fluid:!0,onChange:function(e,t){return c("change_supplied_law",{val:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:h})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.isMalf,s=l.isAdmin,u=e.laws,m=e.title,p=e.noButtons,h=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Section,Object.assign({level:2,title:m},h,{children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Law"}),!p&&(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"State"})||null,d&&!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!p&&(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return c("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,d&&!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{disabled:e.zero&&!s,icon:"pen",onClick:function(){return c("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{disabled:e.zero&&!s,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.isMalf,d=i.law_sets;return d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,a.Button,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,s,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,s,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,s,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null}},46766:function(e,t,n){"use strict";t.__esModule=!0,t.PageSelect=t.PopoutEntry=t.ScrollableSection=t.Forbidden=t.Print=t.Upload=t.SearchAndDisplay=t.Archive=t.CheckoutEntries=t.Checkout=t.InventoryDetails=t.Inventory=t.PageDisplay=t.PopoutMenu=t.LibraryConsole=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(31246),l=n(26949),d=n(2381),s=n(81890);t.LibraryConsole=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.display_lore);return(0,o.createComponentVNode)(2,d.Window,{theme:r?"spookyconsole":"",title:"Library Terminal",width:880,height:520,children:(0,o.createComponentVNode)(2,d.Window.Content,{m:"0",children:(0,o.createComponentVNode)(2,l.Flex,{height:"100%",children:[(0,o.createComponentVNode)(2,l.Flex.Item,{children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,l.Flex.Item,{grow:!0,position:"relative",pl:1,children:(0,o.createComponentVNode)(2,m)})]})})})};var u=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.screen_state,d=a.show_dropdown,s=a.display_lore;return(0,o.createComponentVNode)(2,l.Section,{fill:!0,maxWidth:d?"150px":"36px",children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,fontSize:"13px",onClick:function(){return r("toggle_dropdown")},icon:1===d?"chevron-left":"chevron-right",tooltip:!d&&"Expand",content:!!d&&"Collapse"})}),(0,o.createComponentVNode)(2,x,{id:1,icon:"list",text:"Inventory"}),(0,o.createComponentVNode)(2,x,{id:2,icon:"calendar",text:"Checkout"}),(0,o.createComponentVNode)(2,x,{id:3,icon:"server",text:"Archive"}),(0,o.createComponentVNode)(2,x,{id:4,icon:"upload",text:"Upload"}),(0,o.createComponentVNode)(2,x,{id:5,icon:"print",text:"Print"}),!!s&&(0,o.createComponentVNode)(2,x,{id:6,icon:"question",text:6===c?"Gur Fbeprere":"Forbidden Lore",color:"black",font:"copperplate"})]})})};t.PopoutMenu=u;var m=function(e,t){var n=(0,i.useBackend)(t),r=(n.act,n.data.screen_state);return 1===r?(0,o.createComponentVNode)(2,p):2===r?(0,o.createComponentVNode)(2,C):3===r?(0,o.createComponentVNode)(2,g):4===r?(0,o.createComponentVNode)(2,b):5===r?(0,o.createComponentVNode)(2,k):6===r?(0,o.createComponentVNode)(2,y):null};t.PageDisplay=m;var p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.inventory_page_count,d=a.inventory_page;return a.has_inventory?(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,justify:"space-between",height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,w,{header:"Library Inventory",contents:(0,o.createComponentVNode)(2,h)})}),(0,o.createComponentVNode)(2,l.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,S,{minimum_page_count:1,page_count:c,current_page:d,call_on_change:function(e){return r("switch_inventory_page",{page:e})}})})]}):(0,o.createComponentVNode)(2,l.NoticeBox,{children:"No Book Records detected. Update your inventory!"})};t.Inventory=p;var h=function(e,t){var n=(0,i.useBackend)(t),c=n.act,d=n.data,s=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{key:t})})),(0,r.sortBy)((function(e){return e.key}))])(d.inventory);return(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Remove"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Author"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:(0,o.createComponentVNode)(2,l.Button,{color:"bad",onClick:function(){return c("inventory_remove",{book_id:e.ref})},icon:"times",children:"Clear Record"})}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.author})]},e.key)}))]})})};t.InventoryDetails=h;var C=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.checkout_page,d=a.checkout_page_count,s=(0,i.useLocalState)(t,"CheckoutBook",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,height:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,w,{header:"Checked Out Books",contents:(0,o.createComponentVNode)(2,f)})}),(0,o.createComponentVNode)(2,l.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,S,{minimum_page_count:1,page_count:d,current_page:c,call_on_change:function(e){return r("switch_checkout_page",{page:e})}})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"barcode",content:"Check-Out Book",fontSize:"20px",onClick:function(){return m(!0)}})}),!!u&&(0,o.createComponentVNode)(2,N)]})};t.Checkout=C;var f=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.checkouts;return a.has_checkout?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Check-In"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Author"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Borrower"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Time Left"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return r("checkin",{checked_out_id:e.ref})},icon:"box-open"})}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.author}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.borrower}),(0,o.createComponentVNode)(2,l.Table.Cell,{backgroundColor:e.overdue?"bad":"good",children:e.overdue?"Overdue":e.due_in_minutes+" Minutes"})]},e.id)}))]}):null};t.CheckoutEntries=f;var N=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.checking_out,c=(0,i.useLocalState)(t,"CheckoutBook",!1),d=(c[0],c[1]),s=(0,i.useLocalState)(t,"CheckoutBookName",a||"Book"),u=s[0],m=s[1],p=(0,i.useLocalState)(t,"Checkoutee","Recipient"),h=p[0],C=p[1],f=(0,i.useLocalState)(t,"CheckoutPeriod",5),N=f[0],g=f[1];return(0,o.createComponentVNode)(2,l.Modal,{width:"500px",children:[(0,o.createComponentVNode)(2,l.Box,{fontSize:"20px",pb:1,children:"Are you sure you want to loan out this book?"}),(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Book Name",children:(0,o.createComponentVNode)(2,l.Input,{width:"250px",value:u,onChange:function(e,t){return m(t)}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Loan To",children:(0,o.createComponentVNode)(2,l.Input,{width:"160px",value:h,onChange:function(e,t){return C(t)}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Loan Period",children:(0,o.createComponentVNode)(2,l.NumberInput,{value:N,unit:" Minutes",minValue:1,stepPixelSize:10,onChange:function(e,t){return g(t)}})})]}),(0,o.createComponentVNode)(2,l.Stack,{justify:"center",align:"center",pt:1,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{icon:"upload",content:"Loan Out",fontSize:"16px",color:"good",onClick:function(){d(!1),r("checkout",{book_name:u,loaned_to:h,checkout_time:N})},lineHeight:2})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{icon:"times",content:"Return",fontSize:"16px",color:"bad",onClick:function(){return d(!1)},lineHeight:2})})]})]})},g=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.can_connect,d=a.can_db_request,s=a.page_count,u=a.our_page;return c?(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,justify:"space-between",height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,w,{header:"Remote Archive",contents:(0,o.createComponentVNode)(2,V)})}),(0,o.createComponentVNode)(2,l.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,S,{minimum_page_count:1,page_count:s,current_page:u,disabled:!d,call_on_change:function(e){return r("switch_page",{page:e})}})})]}):(0,o.createComponentVNode)(2,l.NoticeBox,{children:"Unable to retrieve book listings. Please contact your system administrator for assistance."})};t.Archive=g;var V=function(e,t){var n=(0,i.useBackend)(t),c=n.act,d=n.data,s=d.search_categories,u=void 0===s?[]:s,m=d.title,p=d.category,h=d.author,C=d.params_changed,f=d.can_db_request,N=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{key:t})})),(0,r.sortBy)((function(e){return e.key}))])(d.pages);return(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Stack,{justify:"space-between",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{pb:.6,children:(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Dropdown,{options:u,selected:p,onSelected:function(e){return c("set_search_category",{category:e})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{value:m,placeholder:m||"Title",mt:.5,onChange:function(e,t){return c("set_search_title",{title:t})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{value:h,placeholder:h||"Author",mt:.5,onChange:function(e,t){return c("set_search_author",{author:t})}})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Button,{disabled:!f,textAlign:"right",onClick:function(){return c("search")},color:C?"good":"",icon:"book",children:"Search"}),(0,o.createComponentVNode)(2,l.Button,{disabled:!f,textAlign:"right",onClick:function(){return c("clear_data")},color:"bad",icon:"fire",children:"Reset Search"})]})]}),(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{fontSize:1.5,children:"#"}),(0,o.createComponentVNode)(2,l.Table.Cell,{fontSize:1.5,children:"Category"}),(0,o.createComponentVNode)(2,l.Table.Cell,{fontSize:1.5,children:"Title"}),(0,o.createComponentVNode)(2,l.Table.Cell,{fontSize:1.5,children:"Author"})]}),N.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return c("print_book",{book_id:e.id})},icon:"print",children:e.id})}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.category}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.author})]},e.key)}))]})]})};t.SearchAndDisplay=V;var b=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.can_db_request,d=a.has_scanner,u=a.has_cache,m=a.cache_title,p=a.cache_author,h=a.cache_content,C=(0,i.useLocalState)(t,"UploadDB",!1),f=C[0],N=C[1];if(!d)return(0,o.createComponentVNode)(2,l.NoticeBox,{children:"No nearby scanner detected, construct one to continue."});if(!u)return(0,o.createComponentVNode)(2,l.NoticeBox,{children:"Scan in a book to upload."});var g={__html:(0,s.sanitizeText)(h)};return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{fontSize:"20px",textAlign:"center",pt:"6px",children:"Current Scan Cache"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{justify:"center",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{pt:1,fontSize:"20px",children:"Title:"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{fontSize:"20px",value:m,placeholder:m||"Title",mt:.5,width:22,onChange:function(e,t){return r("set_cache_title",{title:t})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{pt:1,fontSize:"20px",children:"Author:"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{fontSize:"20px",value:p,placeholder:p||"Author",mt:.5,onChange:function(e,t){return r("set_cache_author",{author:t})}})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,preserveWhitespace:!0,fontSize:"15px",title:"Content:",children:(0,o.createComponentVNode)(2,l.Box,{dangerouslySetInnerHTML:g})})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"newspaper",content:"Newscaster",fontSize:"30px",lineHeight:2,textAlign:"center",onClick:function(){return r("news_post")}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Button,{disabled:!c,fluid:!0,icon:"server",content:"Archive",fontSize:"30px",lineHeight:2,textAlign:"center",onClick:function(){return N(!0)}})})]})})]}),!!f&&(0,o.createComponentVNode)(2,v)],0)};t.Upload=b;var v=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.upload_categories,d=a.default_category,s=a.can_db_request,u=(0,i.useLocalState)(t,"UploadDB",!1),m=(u[0],u[1]),p=(0,i.useLocalState)(t,"ModalUpload",""),h=p[0],C=p[1],f=h||d;return(0,o.createComponentVNode)(2,l.Modal,{width:"650px",children:[(0,o.createComponentVNode)(2,l.Box,{fontSize:"20px",pb:2,children:"Are you sure you want to upload this book to the database?"}),(0,o.createComponentVNode)(2,l.LabeledList,{children:(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Category",children:(0,o.createComponentVNode)(2,l.Dropdown,{options:c,selected:f,onSelected:function(e){return C(e)}})})}),(0,o.createComponentVNode)(2,l.Stack,{justify:"center",align:"center",pt:2,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:!s,icon:"upload",content:"Upload To DB",fontSize:"18px",color:"good",onClick:function(){m(!1),r("upload",{category:f})},lineHeight:2})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{icon:"times",content:"Return",fontSize:"18px",color:"bad",onClick:function(){return m(!1)},lineHeight:2})})]})]})},k=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,d=a.deity,s=a.religion,u=a.bible_name,m=a.bible_sprite,p=a.posters,h=(0,i.useLocalState)(t,"selected_poster",p[0]),C=h[0],f=h[1];return(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{width:"50%",children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:p.map((function(e){return(0,o.createVNode)(1,"div",(0,c.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",C&&e===C&&"Button--selected"]),e,0,{title:e,onClick:function(){return f(e)}},e)}))})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,height:"100%",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{textAlign:"center",fontSize:"25px",italic:!0,bold:!0,textColor:"#0b94c4",children:u}),(0,o.createComponentVNode)(2,l.Stack.Item,{textAlign:"center",fontSize:"22px",textColor:"purple",children:["In the Name of ",d]}),(0,o.createComponentVNode)(2,l.Stack.Item,{textAlign:"center",fontSize:"22px",textColor:"purple",children:["For the Sake of ",s]}),(0,o.createComponentVNode)(2,l.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,l.Box,{className:(0,c.classes)(["bibles224x224",m])})})]})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{justify:"space-between",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"scroll",content:"Poster",fontSize:"30px",lineHeight:2,textAlign:"center",onClick:function(){return r("print_poster",{poster_name:C})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"cross",content:"Bible",fontSize:"30px",lineHeight:2,textAlign:"center",onClick:function(){return r("print_bible")}})})]})})]})};t.Print=k;var _=function(e,t){var n=(0,i.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,l.Modal,{children:[(0,o.createComponentVNode)(2,l.Box,{className:"LibraryComputer__CultText",fontSize:"28px",children:"Accessing Forbidden Lore Vault v 1.3:"}),(0,o.createComponentVNode)(2,l.Box,{className:"LibraryComputer__CultText",pt:.4,children:"Are you absolutely sure you want to proceed?"}),(0,o.createComponentVNode)(2,l.Box,{className:"LibraryComputer__CultText",pt:.2,bold:!0,children:"EldritchRelics Inc. will take no responsibility for this choice"}),(0,o.createComponentVNode)(2,l.Stack,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{className:"LibraryComputer__CultText",fluid:!0,icon:"check",content:"Assent",color:"good",fontSize:"20px",onClick:function(){return r("lore_spawn")},lineHeight:2})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{className:"LibraryComputer__CultText",fluid:!0,icon:"times",content:"Decline",color:"bad",fontSize:"20px",onClick:function(){return r("lore_deny")},lineHeight:2})})]})]})},y=function(e,t){return(0,o.createComponentVNode)(2,l.Box,{className:"LibraryComputer__CultNonsense",preserveWhitespace:!0,children:["Abf vqrnz cebprffhf pbzchgngvbanyvf fghqrer vapvcvrzhf\nCebprffhf pbzchgngvbanyrf fhag erf nofgenpgnr dhnr pbzchgngberf vapbyhag\nHg ribyihag, cebprffhf nyvn nofgenpgn dhnr qngn znavchyner qvphaghe\nRibyhgvbavf cebprffhf qvevtvghe cre rkrzcyhz erthynr cebtenzzngvf ibpngv\nUbzvarf cebtenzzngn nq cebprffhf erpgbf rssvpvhag\nEriren fcvevghf pbzchgngbevv phz vapnagnzragvf pbavhatvzhf\nCebprffhf pbzchgngvbanyvf rfg zhyghz fvzvyvf vqrnr irarsvpnr fcvevghf\nivqrev nhg gnatv aba cbgrfg\nAba rfg rk zngrevn pbzcbfvgn\nFrq vq cynpreng vcfhz\nAba cbgrfg bcrenev bchf vagryyrpghnyr\nErfcbaqrev cbgrfg\nZhaqhz nssvprer cbgrfg rebtnaqb crphavnz nq evcnz iry cre oenppuvhz \nebobgv snoevpnaqb zbqrenaqb\nPbafvyvvf hgvzhe cebprffvohf nhthenaqv fhag fvphg vapnagnzragn irarsvpvv",(0,o.createComponentVNode)(2,_)]})};t.Forbidden=y;var w=function(e,t){var n=e.header,r=e.contents;return(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,l.Box,{fontSize:"20px",textAlign:"center",children:n}),(0,o.createComponentVNode)(2,l.Box,{position:"relative",top:"10px",children:r})]})};t.ScrollableSection=w;var x=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=e.id,d=e.text,s=e.icon,u=e.color,m=e.font,p=a.show_dropdown,h=a.screen_state,C=u||"good",f=u||"";return(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{fluid:!0,fontSize:"13px",onClick:function(){return r("set_screen",{screen_index:c})},color:c===h?C:f,fontFamily:m,icon:s,tooltip:!p&&d,content:!!p&&d})})};t.PopoutEntry=x;var S=function(e,t){var n=e.minimum_page_count,r=e.page_count,a=e.current_page,c=e.call_on_change,i=e.disabled;if(1!==r)return(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:a===n||i,icon:"angle-double-left",onClick:function(){return c(n)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:a===n||i,icon:"chevron-left",onClick:function(){return c(a-1)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{placeholder:a+"/"+r,onChange:function(e,t){""!==t&&(c(t),e.target.value=null)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:a===r||i,icon:"chevron-right",onClick:function(){return c(a+1)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:a===r||i,icon:"angle-double-right",onClick:function(){return c(r)}})})]})};t.PageSelect=S},39900:function(e,t,n){"use strict";t.__esModule=!0,t.LibraryScanner=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.LibraryScanner=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{title:"Library Scanner",width:350,height:150,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.has_book,d=i.has_cache,s=i.book;return l||d?(0,o.createComponentVNode)(2,a.Stack,{direction:"column",height:"100%",justify:"flex-end",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",height:"100%",title:s.author,children:s.title})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:"eject",onClick:function(){return c("eject")},disabled:!l,children:"Eject Book"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",onClick:function(){return c("scan")},color:"good",icon:"qrcode",disabled:!l,children:"Scan Book"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:"fire",onClick:function(){return c("clear")},color:"bad",disabled:!d,children:"Clear Cache"})})]})})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Insert a book to scan"})}},25303:function(e,t,n){"use strict";t.__esModule=!0,t.LibraryVisitor=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(2381),d=n(46766);t.LibraryVisitor=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{title:"Library Lookup Console",width:702,height:421,children:(0,o.createComponentVNode)(2,s)})};var s=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,s=a.can_connect,m=a.can_db_request,p=a.our_page,h=a.page_count;return s?(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Box,{fillPositionedParent:!0,bottom:"25px",children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,d.PageSelect,{minimum_page_count:1,page_count:h,current_page:p,disabled:!m,call_on_change:function(e){return r("switch_page",{page:e})}})})]}):(0,o.createComponentVNode)(2,i.NoticeBox,{children:"Unable to retrieve book listings. Please contact your system administrator for assistance."})},u=function(e,t){var n=(0,c.useBackend)(t),l=n.act,d=n.data,s=d.can_db_request,u=d.categories,m=void 0===u?[]:u,p=d.title,h=d.category,C=d.author,f=d.params_changed,N=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{key:t})})),(0,r.sortBy)((function(e){return e.key}))])(d.pages);return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Stack,{justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{pb:.6,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{options:m,selected:h,onSelected:function(e){return l("set_search_category",{category:e})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Input,{value:p,placeholder:p||"Title",mt:.5,onChange:function(e,t){return l("set_search_title",{title:t})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Input,{value:C,placeholder:C||"Author",mt:.5,onChange:function(e,t){return l("set_search_author",{author:t})}})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!s,textAlign:"right",onClick:function(){return l("search")},color:f?"good":"",icon:"book",children:"Search"}),(0,o.createComponentVNode)(2,i.Button,{disabled:!s,textAlign:"right",onClick:function(){return l("clear_data")},color:"bad",icon:"fire",children:"Reset Search"})]})]}),(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{fontSize:1.5,children:"#"}),(0,o.createComponentVNode)(2,i.Table.Cell,{fontSize:1.5,children:"Category"}),(0,o.createComponentVNode)(2,i.Table.Cell,{fontSize:1.5,children:"Title"}),(0,o.createComponentVNode)(2,i.Table.Cell,{fontSize:1.5,children:"Author"})]}),N.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.category}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.author})]},e.key)}))]})]})}},94179:function(e,t,n){"use strict";t.__esModule=!0,t.Limbgrower=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Limbgrower=function(e,t){var n,i,l=(0,r.useBackend)(t),d=l.act,s=l.data,u=s.reagents,m=void 0===u?[]:u,p=s.total_reagents,h=s.max_reagents,C=s.categories,f=void 0===C?[]:C,N=s.busy,g=(0,r.useSharedState)(t,"category",null==(n=f[0])?void 0:n.name),V=g[0],b=g[1],v=(null==(i=f.find((function(e){return e.name===V})))?void 0:i.designs)||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Limb Grower",width:400,height:550,children:[!!N&&(0,o.createComponentVNode)(2,a.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"cog",spin:1})," Building..."]}),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Reagents",children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:[p," / ",h," reagent capacity used."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.reagent_name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{textAlign:"center",width:"120px",content:"Remove Reagent",color:"bad",onClick:function(){return d("empty_reagent",{reagent_type:e.reagent_type})}}),children:[e.reagent_amount,"u"]},e.reagent_name)}))})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Designs",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{fluid:!0,selected:V===e.name,onClick:function(){return b(e.name)},children:e.name},e.name)}))}),(0,o.createComponentVNode)(2,a.LabeledList,{children:v.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Make",color:"good",onClick:function(){return d("make_limb",{design_id:e.id,active_tab:e.parent_category})}}),children:e.needed_reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e.name,": ",e.amount,"u"]},e.name)}))},e.name)}))})]})]})]})}},84696:function(e,t,n){"use strict";t.__esModule=!0,t.ListInputModal=void 0;var o=n(96323),r=n(55631),a=n(34277),c=n(26949),i=n(31246),l=n(57890),d=n(2381);t.ListInputModal=function(e,t){var n=(0,i.useBackend)(t),m=n.act,p=n.data,h=p.items,C=void 0===h?[]:h,f=p.message,N=void 0===f?"":f,g=p.init_value,V=p.large_buttons,b=p.timeout,v=p.title,k=(0,i.useLocalState)(t,"selected",C.indexOf(g)),_=k[0],y=k[1],w=(0,i.useLocalState)(t,"searchBarVisible",C.length>9),x=w[0],S=w[1],B=(0,i.useLocalState)(t,"searchQuery",""),I=B[0],L=B[1],T=C.filter((function(e){return null==e?void 0:e.toLowerCase().includes(I.toLowerCase())})),A=325+Math.ceil(N.length/3)+(V?5:0);return x||setTimeout((function(){var e;return null==(e=document.getElementById(_.toString()))?void 0:e.focus()}),1),(0,o.createComponentVNode)(2,d.Window,{title:v,width:325,height:A,children:[b&&(0,o.createComponentVNode)(2,r.Loader,{value:b}),(0,o.createComponentVNode)(2,d.Window.Content,{onKeyDown:function(e){var t=window.event?e.which:e.keyCode;t!==l.KEY_DOWN&&t!==l.KEY_UP||(e.preventDefault(),function(e){var t,n,o=T.length-1;if(e===l.KEY_DOWN)null===_||_===o?(y(0),null==(t=document.getElementById("0"))||t.scrollIntoView()):(y(_+1),null==(n=document.getElementById((_+1).toString()))||n.scrollIntoView());else if(e===l.KEY_UP){var r,a;null===_||0===_?(y(o),null==(r=document.getElementById(o.toString()))||r.scrollIntoView()):(y(_-1),null==(a=document.getElementById((_-1).toString()))||a.scrollIntoView())}}(t)),t===l.KEY_ENTER&&(e.preventDefault(),m("submit",{entry:T[_]})),!x&&t>=l.KEY_A&&t<=l.KEY_Z&&(e.preventDefault(),function(e){var t=String.fromCharCode(e),n=C.find((function(e){return null==e?void 0:e.toLowerCase().startsWith(null==t?void 0:t.toLowerCase())}));if(n){var o,r=C.indexOf(n);y(r),null==(o=document.getElementById(r.toString()))||o.scrollIntoView()}}(t)),t===l.KEY_ESCAPE&&(e.preventDefault(),m("cancel"))},children:(0,o.createComponentVNode)(2,c.Section,{buttons:(0,o.createComponentVNode)(2,c.Button,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return S(!x),void L("")}}),className:"ListInput__Section",fill:!0,title:N,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s,{filteredItems:T,onClick:function(e){e!==_&&y(e)},onFocusSearch:function(){S(!1),S(!0)},searchBarVisible:x,selected:_})}),x&&(0,o.createComponentVNode)(2,u,{filteredItems:T,onSearch:function(e){var t;e!==I&&(L(e),y(0),null==(t=document.getElementById("0"))||t.scrollIntoView())},searchQuery:I,selected:_}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,a.InputButtons,{input:T[_]})})]})})})]})};var s=function(e,t){var n=(0,i.useBackend)(t).act,r=e.filteredItems,a=e.onClick,d=e.onFocusSearch,s=e.searchBarVisible,u=e.selected;return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,tabIndex:0,children:r.map((function(e,t){return(0,o.createComponentVNode)(2,c.Button,{color:"transparent",fluid:!0,id:t,onClick:function(){return a(t)},onDblClick:function(e){e.preventDefault(),n("submit",{entry:r[u]})},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;s&&t>=l.KEY_A&&t<=l.KEY_Z&&(e.preventDefault(),d())},selected:t===u,style:{animation:"none",transition:"none"},children:e.replace(/^\w/,(function(e){return e.toUpperCase()}))},t)}))})},u=function(e,t){var n=(0,i.useBackend)(t).act,r=e.filteredItems,a=e.onSearch,l=e.searchQuery,d=e.selected;return(0,o.createComponentVNode)(2,c.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(e){e.preventDefault(),n("submit",{entry:r[d]})},onInput:function(e,t){return a(t)},placeholder:"Search...",value:l})}},55565:function(e,t,n){"use strict";t.__esModule=!0,t.LookingGlass=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.LookingGlass=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,c.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,a.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},98914:function(e,t,n){"use strict";t.__esModule=!0,t.MODpaint=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118),l=function(e){switch(e){case"red":return[1,0,0,0,.25,.5,0,0,.25,0,.5,0,0,0,0,1,0,0,0,0];case"yellow":return[.5,.5,0,0,.5,.5,0,0,.25,.25,.5,0,0,0,0,1,0,0,0,0];case"green":return[.5,.25,0,0,0,1,0,0,0,.25,.5,0,0,0,0,1,0,0,0,0];case"teal":return[.25,.25,.25,0,0,.5,.5,0,0,.5,.5,0,0,0,0,1,0,0,0,0];case"blue":return[.25,0,.25,0,0,.5,.25,0,0,0,1,0,0,0,0,1,0,0,0,0];case"purple":return[.5,0,.5,0,.25,.5,.25,0,.5,0,.5,0,0,0,0,1,0,0,0,0]}},d=function(e){switch(e){case"r":return"Red";case"g":return"Green";case"b":return"Blue"}};t.MODpaint=function(e,t){var n=(0,r.useBackend)(t),s=n.act,u=n.data,m=u.mapRef,p=u.currentColor,h=p[0],C=(h[0],h[1],h[2],h[3],p[1]),f=(C[0],C[1],C[2],C[3],p[2]),N=(f[0],f[1],f[2],f[3],p[3]),g=(N[0],N[1],N[2],N[3],p[4]),V=(g[0],g[1],g[2],g[3],["r","g","b"]);return(0,o.createComponentVNode)(2,c.Window,{width:600,height:365,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fill:!0,width:"30%",children:[0,1,2].map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:d(V[e])+" turns to:",children:[0,1,2].map((function(t){return(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"left",width:"30%",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,textColor:"label",children:d(V[t])+":"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{align:"right",width:"70%",children:(0,o.createComponentVNode)(2,a.Slider,{inline:!0,textAlign:"right",value:100*p[4*e+t],minValue:0,maxValue:125,step:1,stepPixelSize:.75,format:function(e){return e+"%"},onDrag:function(n,o){var r=p;r[4*e+t]=o/100,s("transition_color",{color:r})}})})]},t)}))},e)}))}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"25%",children:[(0,o.createComponentVNode)(2,a.Section,{height:"70%",title:"Presets",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:["red","yellow","green","teal","blue","purple"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{height:"50px",width:"50px",color:e,tooltipPosition:"top",tooltip:(0,i.capitalize)(e),onClick:function(){return s("transition_color",{color:l(e)})}},e)}))})}),(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",fontSize:"28px",children:[(0,o.createComponentVNode)(2,a.Button,{height:"50px",width:"50px",icon:"question",color:"average",tooltipPosition:"top",tooltip:"This is a color matrix. Think of it as editing the image in 3 layers, red, green, and blue, rather than editing the final image like with RGB."}),(0,o.createComponentVNode)(2,a.Button,{height:"50px",width:"50px",icon:"check",color:"good",tooltipPosition:"top",tooltip:"Confirm changes!",onClick:function(){return s("confirm")}})]})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"45%",children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Preview",children:(0,o.createComponentVNode)(2,a.ByondUi,{height:"230px",params:{id:m,type:"map"}})})})]})})})}},39316:function(e,t,n){"use strict";t.__esModule=!0,t.MODsuit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=e.name,c=e.value,i=e.module_ref,l=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.NumberInput,{value:c,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(e,t){return l("configure",{key:n,value:t,ref:i})}})},l=function(e,t){var n=e.name,c=e.value,i=e.module_ref,l=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:c,onClick:function(){return l("configure",{key:n,value:!c,ref:i})}})},d=function(e,t){var n=e.name,c=e.value,i=e.module_ref,l=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"paint-brush",onClick:function(){return l("configure",{key:n,ref:i})}}),(0,o.createComponentVNode)(2,a.ColorBox,{color:c,mr:.5})],4)},s=function(e,t){var n=e.name,c=e.value,i=e.values,l=e.module_ref,d=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Dropdown,{displayText:c,options:i,onSelected:function(e){return d("configure",{key:n,value:e,ref:l})}})},u=function(e,t){e.name;var n=e.display_name,r=e.type,c=(e.value,e.values,e.module_ref,{number:(0,o.normalizeProps)((0,o.createComponentVNode)(2,i,Object.assign({},e))),bool:(0,o.normalizeProps)((0,o.createComponentVNode)(2,l,Object.assign({},e))),color:(0,o.normalizeProps)((0,o.createComponentVNode)(2,d,Object.assign({},e))),list:(0,o.normalizeProps)((0,o.createComponentVNode)(2,s,Object.assign({},e)))});return(0,o.createComponentVNode)(2,a.Box,{children:[n,": ",c[r]]})},m={rad_counter:function(e,t){var n=e.active,r=e.userradiated,c=e.usertoxins,i=e.usermaxtoxins,l=e.threatlevel;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Radiation Level",color:n&&r?"bad":"good",children:n&&r?"IRRADIATED":"RADIATION-FREE"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Toxins Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?c/i:0,ranges:{good:[-Infinity,.2],average:[.2,.5],bad:[.5,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:c})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Hazard Level",color:n&&l?"bad":"good",bold:!0,children:n&&l?l:0})})]})},health_analyzer:function(e,t){var n=e.active,r=e.userhealth,c=e.usermaxhealth,i=e.userbrute,l=e.userburn,d=e.usertoxin,s=e.useroxy;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?r/c:0,ranges:{good:[.5,Infinity],average:[.2,.5],bad:[-Infinity,.2]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:r})})}),(0,o.createComponentVNode)(2,a.Stack,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Brute",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?i/c:0,ranges:{good:[-Infinity,.2],average:[.2,.5],bad:[.5,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Burn",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?l/c:0,ranges:{good:[-Infinity,.2],average:[.2,.5],bad:[.5,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Toxin",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?d/c:0,ranges:{good:[-Infinity,.2],average:[.2,.5],bad:[.5,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Suffocation",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:n?s/c:0,ranges:{good:[-Infinity,.2],average:[.2,.5],bad:[.5,Infinity]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})})]})],4)}},p=function(){return(0,o.createComponentVNode)(2,a.Section,{align:"center",fill:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},h=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},C=function(e,t){var n=e.configuration_data,r=e.module_ref,c=Object.keys(n);return(0,o.createComponentVNode)(2,a.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[c.map((function(e){var t=n[e];return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,u,{name:e,display_name:t.display_name,type:t.type,value:t.value,values:t.values,module_ref:r})},t.key)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:e.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},f=function(e){switch(e){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.active,d=i.malfunctioning,s=i.locked,u=i.open,m=i.selected_module,p=i.complexity,h=i.complexity_max,C=i.wearer_name,f=i.wearer_job,N=i.AI,g=d?"Malfunctioning":l?"Active":"Inactive";return(0,o.createComponentVNode)(2,a.Section,{title:"Parameters",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:l?"Deactivate":"Activate",onClick:function(){return c("activate")}}),children:g}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Lock",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"lock-open":"lock",content:s?"Unlock":"Lock",onClick:function(){return c("lock")}}),children:s?"Locked":"Unlocked"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover",children:u?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Module",children:m||"None"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:[p," (",h,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Occupant",children:[C,", ",f]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Onboard AI",children:N||"None"})]})})},g=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=(c.active,c.control),l=c.helmet,d=c.chestplate,s=c.gauntlets,u=c.boots,m=c.core,p=c.charge;return(0,o.createComponentVNode)(2,a.Section,{title:"Hardware",children:[(0,o.createComponentVNode)(2,a.Collapsible,{title:"Parts",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Control Unit",children:i}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",children:l||"None"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chestplate",children:d||"None"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gauntlets",children:s||"None"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Boots",children:u||"None"})]})}),(0,o.createComponentVNode)(2,a.Collapsible,{title:"Core",children:m&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Core Type",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Core Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/100,content:p+"%",ranges:{good:[.6,Infinity],average:[.3,.6],bad:[-Infinity,.3]}})})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},V=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.active,l=c.modules.filter((function(e){return!!e.id}));return(0,o.createComponentVNode)(2,a.Section,{title:"Info",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:0!==l.length&&l.map((function(e){var t=m[e.id];return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[!i&&(0,o.createComponentVNode)(2,h),(0,o.normalizeProps)((0,o.createComponentVNode)(2,t,Object.assign({},e,{active:i})))]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},b=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.complexity_max,d=i.modules,s=(0,r.useLocalState)(t,"module_configuration",null),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Modules",fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:0!==d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,a.Section,{children:[u===e.ref&&(0,o.createComponentVNode)(2,C,{configuration_data:e.configuration_data,module_ref:e.ref,onExit:function(){return m(null)}}),(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[e.complexity,"/",l]}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.idle_power}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.active_power}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.use_power}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[e.cooldown>0&&e.cooldown/10||"0","/",e.cooldown_time/10,"s"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("select",{ref:e.ref})},icon:"bullseye",selected:e.active,tooltip:f(e.module_type),tooltipPosition:"left",disabled:!e.module_type}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return m(e.ref)},icon:"cog",selected:u===e.ref,tooltip:"Configure",tooltipPosition:"left",disabled:0===e.configuration_data.length}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("pin",{ref:e.ref})},icon:"thumbtack",selected:e.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!e.module_type})]})]})]}),(0,o.createComponentVNode)(2,a.Box,{children:e.description})]})})},e.ref)}))||(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:"No Modules Detected"})})})})};t.MODsuit=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),l=i.ui_theme,d=i.interface_break;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:525,theme:l,title:"MOD Interface Panel",resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!d,children:!!d&&(0,o.createComponentVNode)(2,p)||(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,g)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,V)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,b)})]})})})}},18707:function(e,t,n){"use strict";t.__esModule=!0,t.MafiaPanel=void 0;var o=n(96323),r=n(1060),a=(n(21118),n(31246)),c=n(26949),i=n(2381);t.MafiaPanel=function(e,t){var n,r=(0,a.useBackend)(t),h=r.act,C=r.data,f=C.actions,N=C.phase,g=C.roleinfo,V=C.role_theme,b=C.admin_controls;return(0,o.createComponentVNode)(2,i.Window,{title:"Mafia",theme:V,width:650,height:580,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[!g&&(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),!!g&&(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,d)}),null==f?void 0:f.map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h("mf_action",{atype:e})},children:e})},e)})),!!g&&(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,u)}),"No Game"!==N&&(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1.34,basis:0,children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s)}),!!g&&(0,o.createComponentVNode)(2,c.Stack.Item,{height:"80px",children:(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,children:null==(n=g.action_log)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})})]})})]})}),!!b&&(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,p)})]})})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.lobbydata,d=i.phase,s=i.timeleft,u=l?l.filter((function(e){return"Ready"===e.status})):null;return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Lobby",buttons:(0,o.createFragment)([(0,o.createTextVNode)("Phase = "),d,(0,o.createTextVNode)(" | "),(0,o.createComponentVNode)(2,c.TimeDisplay,{auto:"down",value:s}),(0,o.createTextVNode)(" "),(0,o.createComponentVNode)(2,c.Button,{icon:"clipboard-check",tooltipPosition:"bottom-start",tooltip:"Signs you up for the next game. If there\nis an ongoing one, you will be signed up\nfor the next.",content:"Sign Up",onClick:function(){return r("mf_signup")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",tooltipPosition:"bottom-start",tooltip:"Spectates games until you turn it off.\nAutomatically enabled when you die in game,\nbecause I assumed you would want to see the\nconclusion. You won't get messages if you\nrejoin SS13.",content:"Spectate",onClick:function(){return r("mf_spectate")}})],0),children:[(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["The lobby currently has ",u?u.length:"0","/12 valid players signed up."]}),null==l?void 0:l.map((function(e){return(0,o.createComponentVNode)(2,c.Stack,{className:"candystripe",p:1,align:"baseline",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:e.name}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:"Status:"}),(0,o.createComponentVNode)(2,c.Stack.Item,{color:"Ready"===e.status?"green":"red",children:[e.status," ",e.spectating]})]},e)}))]})},d=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data),l=i.phase,d=i.roleinfo,s=i.timeleft;return(0,o.createComponentVNode)(2,c.Section,{title:l,minHeight:"100px",maxHeight:"50px",buttons:(0,o.createComponentVNode)(2,c.Box,{style:{"font-family":"Consolas, monospace","font-size":"14px","line-height":1.5,"font-weight":"bold"},children:(0,o.createComponentVNode)(2,c.TimeDisplay,{auto:"down",value:s})}),children:(0,o.createComponentVNode)(2,c.Stack,{align:"center",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:["You are the ",d.role]}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:d.desc})]}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:[(0,o.createComponentVNode)(2,c.Box,{className:(0,r.classes)(["mafia32x32",d.revealed_icon]),style:{transform:"scale(2) translate(0px, 10%)","vertical-align":"middle"}}),(0,o.createComponentVNode)(2,c.Box,{className:(0,r.classes)(["mafia32x32",d.hud_icon]),style:{transform:"scale(2) translate(-5px, -5px)","vertical-align":"middle"}})]})]})})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.all_roles;return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Roles and Notes",minHeight:"120px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"address-book",tooltipPosition:"bottom-start",tooltip:"The top section is the roles in the game. You can\npress the question mark to get a quick blurb\nabout the role itself."}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"edit",tooltipPosition:"bottom-start",tooltip:"The bottom section are your notes. on some roles this\nwill just be an empty box, but on others it records the\nactions of your abilities (so for example, your\ndetective work revealing a changeling)."})],4),children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",children:null==i?void 0:i.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,o.createComponentVNode)(2,c.Flex,{height:"18px",align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:e}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"question",onClick:function(){return r("mf_lookup",{atype:e.slice(0,-3)})}})})]})},e)}))})})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.judgement_phase;return(0,o.createComponentVNode)(2,c.Section,{title:"Judgement",buttons:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"info",tooltipPosition:"left",tooltip:"When someone is on trial, you are in charge of their fate.\nInnocent winning means the person on trial can live to see\nanother day... and in losing they do not. You can go back\nto abstaining with the middle button if you reconsider."}),children:[(0,o.createComponentVNode)(2,c.Flex,{justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"smile-beam",content:"INNOCENT!",color:"good",disabled:!i,onClick:function(){return r("vote_innocent")}}),!i&&(0,o.createComponentVNode)(2,c.Box,{children:"There is nobody on trial at the moment."}),!!i&&(0,o.createComponentVNode)(2,c.Box,{children:"It is now time to vote, vote the accused innocent or guilty!"}),(0,o.createComponentVNode)(2,c.Button,{icon:"angry",color:"bad",disabled:!i,onClick:function(){return r("vote_guilty")},children:"GUILTY!"})]}),(0,o.createComponentVNode)(2,c.Flex,{justify:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:"meh",color:"white",disabled:!i,onClick:function(){return r("vote_abstain")},children:"Abstain"})})]})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.players;return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Players",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",children:null==i?void 0:i.map((function(e){var t;return(0,o.createComponentVNode)(2,c.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,o.createComponentVNode)(2,c.Stack,{height:"18px",align:"center",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,color:!e.alive&&"red",children:[e.name," ",!e.alive&&"(DEAD)"]}),(0,o.createComponentVNode)(2,c.Stack.Item,{shrink:0,children:e.votes!==undefined&&!!e.alive&&"Votes: "+e.votes}),(0,o.createComponentVNode)(2,c.Stack.Item,{shrink:0,minWidth:"42px",textAlign:"center",children:null==(t=e.actions)?void 0:t.map((function(t){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,onClick:function(){return r("mf_targ_action",{atype:t,target:e.ref})},children:t},t)}))})]})},e.ref)}))})})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,c.Collapsible,{title:"ADMIN CONTROLS",color:"red",children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Collapsible,{title:"A kind, coder warning",color:"transparent",children:"Almost all of these are all built to help me debug the game (ow, debugging a 12 player game!) So they are rudamentary and prone to breaking at the drop of a hat. Make sure you know what you're doing when you press one. Also because an admin did it: do not gib/delete/dust anyone! It will runtime the game to death"}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-right",onClick:function(){return r("next_phase")},children:"Next Phase"}),(0,o.createComponentVNode)(2,c.Button,{icon:"home",onClick:function(){return r("players_home")},children:"Send All Players Home"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",onClick:function(){return r("new_game")},children:"New Game"}),(0,o.createComponentVNode)(2,c.Button,{icon:"skull",onClick:function(){return r("nuke")},children:"Nuke"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"paint-brush",onClick:function(){return r("debug_setup")},children:"Create Custom Setup"}),(0,o.createComponentVNode)(2,c.Button,{icon:"paint-roller",onClick:function(){return r("cancel_setup")},children:"Reset Custom Setup"})]})})}},70614:function(e,t,n){"use strict";t.__esModule=!0,t.MalfunctionModulePicker=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(19457);t.MalfunctionModulePicker=function(e,t){for(var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.processingTime,s=l.categories,u=[],m=[],p=0;p<s.length;p++){var h=s[p];u.push(h.name);for(var C=0;C<h.items.length;C++){var f=h.items[C];m.push({id:f.name,name:f.name,category:h.name,cost:f.cost+" PT",desc:f.desc,disabled:d<f.cost})}}return(0,o.createComponentVNode)(2,a.Window,{width:620,height:525,theme:"malfunction",children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.GenericUplink,{categories:u,items:m,currency:d+" PT",handleBuy:function(e){return i("buy",{name:e.name})}})})})}},31457:function(e,t,n){"use strict";t.__esModule=!0,t.MassDriverControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.MassDriverControl=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.connected,s=l.minutes,u=l.seconds,m=l.timing,p=l.power,h=l.poddoor;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:d?215:107,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!!d&&(0,o.createComponentVNode)(2,a.Section,{title:"Auto Launch",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:m?"Stop":"Start",selected:m,onClick:function(){return i("time")}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:m,onClick:function(){return i("input",{adjust:-30})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:m,onClick:function(){return i("input",{adjust:-1})}})," ",String(s).padStart(2,"0"),":",String(u).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:m,onClick:function(){return i("input",{adjust:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:m,onClick:function(){return i("input",{adjust:30})}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-on",content:"Toggle Outer Door",disabled:m||!h,onClick:function(){return i("door")}}),children:!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Level",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"bomb",content:"Test Fire",disabled:m,onClick:function(){return i("driver_test")}}),children:(0,o.createComponentVNode)(2,a.NumberInput,{value:p,width:"40px",minValue:.25,maxValue:16,onChange:function(e,t){return i("set_power",{power:t})}})})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Launch",disabled:m,mt:1.5,icon:"arrow-up",textAlign:"center",onClick:function(){return i("launch")}})],4)||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No connected mass driver"})})]})})}},39925:function(e,t,n){"use strict";t.__esModule=!0,t.MassSpec=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.MassSpec=function(e,t){var n=(0,a.useBackend)(t),s=n.act,u=n.data,m=u.processing,p=u.lowerRange,h=u.upperRange,C=u.graphUpperRange,f=u.graphLowerRange,N=u.eta,g=u.beaker1CurrentVolume,V=u.beaker2CurrentVolume,b=u.beaker1MaxVolume,v=u.beaker2MaxVolume,k=u.peakHeight,_=u.beaker1,y=u.beaker2,w=u.beaker1Contents,x=void 0===w?[]:w,S=u.beaker2Contents,B=void 0===S?[]:S,I=(p+h)/2;return(0,o.createComponentVNode)(2,i.Window,{width:490,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"cog",spin:1})," Purifying... "+(0,r.round)(N)+"s"]}),(0,o.createComponentVNode)(2,c.Section,{title:"Mass Spectroscopy",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Start",disabled:!!m||!x.length||!y,tooltip:x.length?y?"Begin purifying":"Missing an output beaker!":"Missing input reagents!",tooltipPosition:"left",onClick:function(){return s("activate")}}),children:x.length&&(0,o.createComponentVNode)(2,d,{lowerRange:p,centerValue:I,upperRange:h,graphLowerRange:f,graphUpperRange:C,maxAbsorbance:k,reagentPeaks:x})||(0,o.createComponentVNode)(2,c.Box,{children:"Please insert an input beaker with reagents!"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input beaker",buttons:!!x&&(0,o.createFragment)([!!b&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[g," / ",b," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!_,onClick:function(){return s("eject1")}})],0),children:[(0,o.createComponentVNode)(2,l,{loaded:!!_,beaker:x}),!!x.length&&(0,o.createComponentVNode)(2,c.Box,{children:"Eta of selection: "+(0,r.round)(N)+" seconds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Output beaker",buttons:!!B&&(0,o.createFragment)([!!v&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[V," / ",v," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!y,onClick:function(){return s("eject2")}})],0),children:(0,o.createComponentVNode)(2,l,{loaded:!!y,beaker:B,details:!0})})]})})};var l=function(e){var t=e.loaded,n=e.details,r=e.beaker,a=void 0===r?[]:r;return(0,o.createComponentVNode)(2,c.Box,{children:!t&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No beaker loaded."})||0===a.length&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Beaker is empty."})||(0,o.createComponentVNode)(2,c.Table,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Reagent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Volume"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Mass"}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Type"}),!!n&&(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,collapsing:!0,color:"label",children:"Results"})]}),a.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,color:e.selected?"green":"default",children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,color:e.selected?"green":"default",children:e.volume}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,color:e.selected?"green":"default",children:e.mass}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,color:e.color,children:["\u25ae",e.type]}),!!n&&(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.log})]},e.name)}))]})})},d=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=(n.data,e.lowerRange),d=e.centerValue,s=e.upperRange,u=e.graphUpperRange,m=e.graphLowerRange,p=e.maxAbsorbance,h=e.reagentPeaks,C=void 0===h?[]:h,f=u-m,N=.2*f;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{position:"absolute",x:"200",transform:"translate(30,30)",children:(0,o.createVNode)(32,"svg",null,[(0,o.createVNode)(32,"text",null,[(0,o.createVNode)(32,"tspan",null,"Mass (g)",16,{x:"250",y:"318","font-weight":"bold","font-size":"1.4em"}),(0,o.createVNode)(32,"tspan",null,m,0,{x:"0",y:"283"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(m+N,1),0,{x:"100",y:"283"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(m+2*N,1),0,{x:"200",y:"283"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(m+3*N,1),0,{x:"300",y:"283"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(m+4*N,1),0,{x:"400",y:"283"}),(0,o.createVNode)(32,"tspan",null,u,0,{x:"500",y:"283"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(p,1),0,{x:"520",y:"0",dy:"6"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(.8*p,1),0,{x:"520",y:"50",dy:"6"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(.6*p,1),0,{x:"520",y:"100",dy:"6"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(.4*p,1),0,{x:"520",y:"150",dy:"6"}),(0,o.createVNode)(32,"tspan",null,(0,r.round)(.2*p,1),0,{x:"520",y:"200",dy:"6"}),(0,o.createVNode)(32,"tspan",null,"0",16,{x:"520",y:"250",dy:"6"})],0,{x:"0",y:"250","text-anchor":"middle",fill:"white","font-size":"16",transform:"translate(0,0) scale(0.8 0.8)"}),(0,o.createVNode)(32,"text",null,(0,o.createVNode)(32,"tspan",null,"Absorbance (AU)",16,{"font-weight":"bold","font-size":"1.4em"}),2,{"text-anchor":"middle",transform:"translate(430,100) rotate(90) scale(0.8 0.8)",fill:"white","font-size":"16"}),(0,o.createVNode)(32,"g",null,[C.map((function(e){return(0,o.createVNode)(32,"polygon",null,null,1,{points:(e.mass-10)/u*500+",265 "+e.mass/u*500+","+(250-e.volume/p*250)+" "+(e.mass+10)/u*500+",265 ",opacity:"0.6",style:"fill:"+e.color},e.name)})),(0,o.createVNode)(32,"polygon",null,null,1,{points:l/f*500+",265 "+l/f*500+",0 "+s/f*500+",0 "+s/f*500+",265",opacity:"0.2",style:"fill:blue"}),(0,o.createVNode)(32,"line",null,null,1,{x1:0,y1:265,x2:502,y2:264,stroke:"white","stroke-width":3}),(0,o.createVNode)(32,"line",null,null,1,{x1:501,y1:264,x2:501,y2:0,stroke:"white","stroke-width":3})],0,{transform:"translate(0, 0) scale(0.8 0.8)"})],4,{"background-size":"200px",width:"200",height:"400"})}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Slider,{name:"Left slider",position:"relative",step:u/400,height:17.2,format:function(e){return(0,r.round)(e)},width:d/u*400+"px",value:l,minValue:m,maxValue:d,color:"invisible",onDrag:function(e,t){return i("leftSlider",{value:t})},children:" "}),(0,o.createComponentVNode)(2,c.Slider,{name:"Right slider",position:"absolute",height:17.2,format:function(e){return(0,r.round)(e)},step:u/400,width:400-d/u*400+"px",value:s,minValue:d,maxValue:u,color:"invisible",onDrag:function(e,t){return i("rightSlider",{value:t})},children:" "}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Slider,{name:"Center slider",position:"relative",step:u/400,mt:.3,mb:5,value:d,height:1.9,format:function(e){return(0,r.round)(e)},width:"400px",minValue:m+1,maxValue:u-1,color:"invisible",onDrag:function(e,t){return i("centerSlider",{value:t})},children:" "})})]})],4)}},31836:function(e,t,n){"use strict";t.__esModule=!0,t.MassiveGasPump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.MassiveGasPump=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.on,u=d.pressure_set,m=d.last_flow_rate,p=d.last_power_draw,h=d.power_level;return(0,o.createComponentVNode)(2,i.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Effic",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m/10})," L/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p,minValue:0,maxValue:h,color:p<h-5?"good":"average",children:(0,c.formatPower)(p)})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:s?"On":"Off",selected:s,onClick:function(){return l("power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return l("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return l("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return l("set_press",{press:"set"})}})],4),children:[u/100," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Level",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return l("set_pow",{pow:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return l("set_pow",{pow:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return l("set_pow",{pow:"set"})}})],4),children:(0,c.formatPower)(h)})]})})]})})}},85107:function(e,t,n){"use strict";t.__esModule=!0,t.MassiveHeatPump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.MassiveHeatPump=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.power_level,u=d.target_temp,m=d.current_temp,p=d.sink_temp,h=d.on,C=(d.lowest_temp,d.efficiency),f=(d.highest_temp,d.last_power_draw);d.max_power_draw;return(0,o.createComponentVNode)(2,i.Window,{width:470,height:270,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*C})," %"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperaute",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sink Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:f,minValue:0,maxValue:s,color:f<s-5?"good":"average",children:(0,c.formatPower)(f)})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:h?"On":"Off",selected:h,onClick:function(){return l("power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return l("set_temp",{temp:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return l("set_temp",{temp:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return l("set_temp",{temp:"set"})}})],4),children:(0,c.formatSiUnit)(u,0,"K")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Level",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return l("set_pow",{pow:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return l("set_pow",{pow:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return l("set_pow",{pow:"set"})}})],4),children:(0,c.formatPower)(s)})]})})]})})}},49203:function(e,t,n){"use strict";t.__esModule=!0,t.MechBayPowerConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.MechBayPowerConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.recharge_port,d=l&&l.mech,s=d&&d.cell;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:200,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Mech status",textAlign:"center",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Sync",onClick:function(){return i("reconnect")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.health/d.maxhealth,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:!l&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No power port detected. Please re-sync."})||!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mech detected."})||!s&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cell is installed."})||(0,o.createComponentVNode)(2,a.ProgressBar,{value:s.charge/s.maxcharge,ranges:{good:[.7,Infinity],average:[.3,.7],bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s.charge})," / "+s.maxcharge]})})]})})})})}},91204:function(e,t,n){"use strict";t.__esModule=!0,t.MechaControlConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118);t.MechaControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,c.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,a.Modal,{children:(0,o.createComponentVNode)(2,a.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No mecha beacons found."})]})})}},90984:function(e,t,n){"use strict";t.__esModule=!0,t.AlertPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(17118);t.AlertPane=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.internal_damage,s=l.internal_damage_keys;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:Object.keys(s).map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{color:d&s[e]?"red":"green",children:d&s[e]?c.InternalDamageToDamagedDesc[e]:c.InternalDamageToNormalDesc[e]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("repair_int_damage",{flag:s[e]})},color:"red",disabled:!(d&s[e]),children:"Repair"})})]})},e)}))})}},75542:function(e,t,n){"use strict";t.__esModule=!0,t.ArmPane=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949);t.ArmPane=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=e.weapon,m=u.name,p=u.desc,h=u.integrity,C=u.energy_per_use,f=s.power_level,N=s.weapons_safety;return(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{bold:!0,color:N?"red":"",children:N?"SAFETY OVERRIDE IN EFFECT":m}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},value:h})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Repair",icon:"wrench",onClick:function(){return d("equip_act",{ref:e.weapon.ref,gear_action:"repair"})}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{vertical:!0,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Detach",children:(0,o.createComponentVNode)(2,c.Button,{content:"Detach",onClick:function(){return d("equip_act",{ref:e.weapon.ref,gear_action:"detach"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy per use",children:[C," energy per use"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Uses left",children:[f?(0,r.toFixed)(f/C):0," uses left"]}),(0,o.createComponentVNode)(2,i,{weapon:e.weapon})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,l,{weapon:e.weapon})}),(0,o.createComponentVNode)(2,c.Stack.Item,{color:N?"red":"",children:p})]})};var i=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.weapon),l=i.isballisticweapon,d=i.disabledreload,s=i.projectiles,u=i.max_magazine,m=i.projectiles_cache,p=i.projectiles_cache_max,h=i.ammo_type,C=i.ref;return l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ammo loaded",children:[s," / ",u]}),d?null:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ammo stored",children:[m," / ",p]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reload",children:(0,o.createComponentVNode)(2,c.Button,{icon:"redo",onClick:function(){return r("equip_act",{ref:C,gear_action:"reload"})},children:"Reload"})})],4),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ammo type",children:h})],0):null},l=function(e,t){switch(e.weapon.snowflake.snowflake_id){case"sleeper_snowflake":return(0,o.createComponentVNode)(2,d,{weapon:e.weapon});case"syringe_snowflake":return(0,o.createComponentVNode)(2,s,{weapon:e.weapon});case"mode_snowflake":return(0,o.createComponentVNode)(2,u,{weapon:e.weapon});default:return null}},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.weapon.snowflake.patient);return i?(0,o.createComponentVNode)(2,c.Section,{label:"Patient "+i.patientname,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:i.isdead?"DECEASED":"ALIVE"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:i.patient_health})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ejection",children:(0,o.createComponentVNode)(2,c.Button,{content:"Eject",onClick:function(){return r("equip_act",{ref:e.weapon.ref,gear_action:"eject"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stats",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",onClick:function(){return r("equip_act",{ref:e.weapon.ref,gear_action:"view_stats"})}})})]})}):null},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.weapon.snowflake),l=i.mode,d=i.syringe,s=i.max_syringe,u=i.reagents,m=i.total_reagents;return(0,o.createComponentVNode)(2,c.Section,{label:"Syringe gun control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Syringes",children:[d,"/",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagents",children:[u,"/",m]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,c.Button,{content:l,onClick:function(){return r("equip_act",{ref:e.weapon.ref,gear_action:"change_mode"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent control",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",onClick:function(){return r("equip_act",{ref:e.weapon.ref,gear_action:"show_reagents"})}})})]})})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.weapon.snowflake),l=i.mode,d=i.name;return(0,o.createComponentVNode)(2,c.Section,{label:d,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,c.Button,{content:l,onClick:function(){return r("equip_act",{ref:e.weapon.ref,gear_action:"change_mode"})}})})})})}},36841:function(e,t,n){"use strict";t.__esModule=!0,t.ArmorPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1060);t.ArmorPane=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.mech_equipment;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,justify:"space-evenly",align:"center",children:l.armor.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,align:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{bold:!0,children:e.protect_name}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{className:(0,c.classes)(["mechaarmor76x76",e.iconstate_name]),style:{transform:"scale(0.8)"}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:"Detach",onClick:function(){return i("equip_act",{ref:e.ref,gear_action:"detach"})}})})]})},t)}))})}},50687:function(e,t,n){"use strict";t.__esModule=!0,t.MaintMode=void 0;var o=n(96323),r=n(31246),a=n(26949),c={main:{returnfluff:"",component:function(){return i}},stockparts:{returnfluff:"Close stock parts panel",component:function(){return d}},access:{returnfluff:"Close permissions panel",component:function(){return s}}};t.MaintMode=function(e,t){var n=(0,r.useLocalState)(t,"screen",c.main),i=n[0],l=n[1],d=i.component();return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:i.returnfluff?(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:i.returnfluff,textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return l(c.main)}}):null}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,d)})]})};var i=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),d=(0,r.useLocalState)(t,"screen",c.main),s=(d[0],d[1]),u=i.mecha_flags,m=i.mechflag_keys;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[u&m.ADDING_MAINT_ACCESS_POSSIBLE?(0,o.createComponentVNode)(2,l):null,(0,o.createComponentVNode)(2,a.Stack.Item,{children:u&m.ADDING_ACCESS_POSSIBLE?(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Open Access Panel",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return s(c.access)}}):null})]})},l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=(n.data,(0,r.useLocalState)(t,"screen",c.main)),d=(l[0],l[1]);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Disable Maintenance",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__ButtonDanger",onClick:function(){return i("stopmaint")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Manage Stock Parts",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return d(c.stockparts)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Set cabin pressure",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return i("set_pressure")}})})],4)},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.cell,d=i.scanning,s=i.capacitor;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Toggle part replacement",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__ButtonDanger",onClick:function(){return c("togglemaint")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Eject cell - "+l,textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("drop_cell")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Eject scanning - "+d,textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("drop_scanning")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Eject capacitor - "+s,textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("drop_capacitor")}})})]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.idcard_access,d=i.operation_req_access;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Lock permissions panel",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__ButtonDanger",onClick:function(){return c("lock_req_edit")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Remove requirements",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("del_req_access",{removed_access:"all"})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Add all from ID",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("add_req_access",{added_access:"all"})}})})]})}),d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Box,{className:"Mecha__displayBoxRed",children:e.name})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Del",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__ButtonDanger",onClick:function(){return c("del_req_access",{removed_access:e.number})}})})]})},e.name)})),l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Box,{className:"Mecha__displayBox",children:e.name})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"Add",textAlign:"center",fontSize:"200%",lineHeight:1.25,className:"Mecha__Button",onClick:function(){return c("add_req_access",{added_access:e.number})}})})]})},e.name)}))]})}},63355:function(e,t,n){"use strict";t.__esModule=!0,t.MechStatPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(17118),i=n(97622);t.MechStatPane=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,m=i.name,p=i.integrity,h=i.airtank_present,C=i.weapons_safety,f=i.air_source,N=i.cabin_pressure,g=i.cabin_dangerous_highpressure,V=i.cabin_temp,b=i.mecha_flags,v=i.mechflag_keys,k=i.port_connected;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:m,buttons:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("changename")},children:"Rename"})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:p})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,u)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Safety",children:(0,o.createComponentVNode)(2,a.Button,{color:C?"red":"",onClick:function(){return c("toggle_safety")},children:[C?"Dis":"En","able"]})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Enviromental Data",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Air Source",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,onClick:function(){return c("toggle_airsource")},children:f})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cabin pressure",children:(0,o.createComponentVNode)(2,a.Box,{color:N>g?"red":null,children:[N," kPa"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cabin temperature",children:(0,o.createComponentVNode)(2,a.Box,{children:l(V)})}),(0,o.createComponentVNode)(2,d)]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"DNA lock",children:(0,o.createComponentVNode)(2,s)})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Maintenance",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance mode",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggle_maintenance")},selected:b&v.ADDING_MAINT_ACCESS_POSSIBLE,children:[b&v.ADDING_MAINT_ACCESS_POSSIBLE?"En":"Dis","abled"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID reader panel",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggle_id_panel")},selected:b&v.ADDING_ACCESS_POSSIBLE,children:[b&v.ADDING_ACCESS_POSSIBLE?"En":"Dis","abled"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Port connection",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("toggle_port")},selected:k,children:[k?"C":"Disc","onnected"]})})]})})})]})};var l=function(e){return(0,i.toFixed)(e,1)+"\xb0K\n"+(0,i.toFixed)(e-c.KelvinZeroCelcius,1)+"\xb0C"},d=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.airtank_pressure,d=c.airtank_temp;return null===d?(0,o.createComponentVNode)(2,a.Box,{children:"No air tank detected"}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Air tank Pressure",children:[i," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Air tank temperature",children:l(d)})],4)},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act;return null===n.data.dna_lock?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"DNA Enzymes",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("dna_lock")},icon:"syringe",children:"Set new DNA key"})})}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"DNA Enzymes",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("dna_lock")},icon:"syringe",children:"Set new DNA key"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Enzymes",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("view_dna")},icon:"list",children:"View enzyme list"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reset DNA",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("reset_dna")},icon:"ban",children:"Reset DNA lock"})})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.power_level,l=c.power_max;return null===l?(0,o.createComponentVNode)(2,a.Box,{content:"No Power cell installed!"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.75*l,Infinity],average:[.25*l,.75*l],bad:[-Infinity,.25*l]},maxValue:l,value:i})}},54716:function(e,t,n){"use strict";t.__esModule=!0,t.OperatorMode=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(83386),i=n(90984),l=n(63355),d=n(36841),s=n(30386),u=n(7623),m=n(75542);t.OperatorMode=function(e,t){var n=(0,r.useBackend)(t),p=(n.act,n.data),h=p.left_arm_weapon,C=p.right_arm_weapon,f=p.mech_view;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:h?(0,o.createComponentVNode)(2,m.ArmPane,{weapon:h}):null})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Power Modules",children:(0,o.createComponentVNode)(2,u.PowerModulesPane)})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Alerts",children:(0,o.createComponentVNode)(2,i.AlertPane)})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.ByondUi,{height:"170px",params:{id:f,zoom:5,type:"map"}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Armor modules",children:(0,o.createComponentVNode)(2,d.ArmorPane)})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:C?(0,o.createComponentVNode)(2,m.ArmPane,{weapon:C}):null})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Utility Modules",children:(0,o.createComponentVNode)(2,s.UtilityModulesPane)})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Radio Control",children:(0,o.createComponentVNode)(2,c.RadioPane)})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,l.MechStatPane)})})})})]})}},7623:function(e,t,n){"use strict";t.__esModule=!0,t.PowerModulesPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(97622);t.PowerModulesPane=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.mech_equipment,s=l.mineral_material_amount;return(0,o.createComponentVNode)(2,a.LabeledList,{children:d.power.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+(null===e.snowflake.fuel?"":": "+(0,c.toFixed)(e.snowflake.fuel*s,.1)+" cm\xb3"),children:[(0,o.createComponentVNode)(2,a.Button,{content:(e.activated?"En":"Dis")+"abled",selected:e.activated,onClick:function(){return i("equip_act",{ref:e.ref,gear_action:"toggle"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Detach",onClick:function(){return i("equip_act",{ref:e.ref,gear_action:"detach"})}})]},t)}))})}},83386:function(e,t,n){"use strict";t.__esModule=!0,t.RadioPane=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(97622);t.RadioPane=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.mech_electronics,d=l.microphone,s=l.speaker,u=l.minfreq,m=l.maxfreq,p=l.frequency;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Microphone",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("toggle_microphone")},selected:d,icon:d?"microphone":"microphone-slash",children:(d?"En":"Dis")+"abled"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("toggle_speaker")},selected:s,icon:s?"volume-up":"volume-mute",children:(s?"En":"Dis")+"abled"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:p/10,format:function(e){return(0,c.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return i("set_frequency",{new_frequency:t})}})})]})}},30386:function(e,t,n){"use strict";t.__esModule=!0,t.UtilityModulesPane=void 0;var o=n(96323),r=n(31246),a=n(26949);t.UtilityModulesPane=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.mech_equipment;return(0,o.createComponentVNode)(2,a.LabeledList,{children:l.utility.map((function(e,t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.snowflake.snowflake_id?(0,o.createComponentVNode)(2,c,{module:e}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:(e.activated?"En":"Dis")+"abled",onClick:function(){return i("equip_act",{ref:e.ref,gear_action:"toggle"})},selected:e.activated}),(0,o.createComponentVNode)(2,a.Button,{content:"Detach",onClick:function(){return i("equip_act",{ref:e.ref,gear_action:"detach"})}})],4)},t)}))})};var c=function(e,t){switch(e.module.snowflake.snowflake_id){case"ejector_snowflake":return(0,o.createComponentVNode)(2,i,{module:e.module});case"extinguisher_snowflake":return(0,o.createComponentVNode)(2,l,{module:e.module});default:return null}},i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=(n.data,e.module.snowflake.cargo);return(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(t,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t.name,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("equip_act",{ref:e.module.ref,cargoref:t.ref,gear_action:"eject"})},children:"Eject"})},n)}))})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act;n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.module.snowflake.reagents,minValue:0,maxValue:e.module.snowflake.total_reagents,children:e.module.snowflake.reagents}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"ACTIVATE",color:"red",disabled:e.module.snowflake.reagents<e.module.snowflake.minimum_requ?1:0,icon:"fire-extinguisher",onClick:function(){return c("equip_act",{ref:e.module.ref,gear_action:"activate"})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"REFILL",icon:"fill",onClick:function(){return c("equip_act",{ref:e.module.ref,gear_action:"refill"})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"REPAIR",icon:"wrench",onClick:function(){return c("equip_act",{ref:e.module.ref,gear_action:"repair"})}}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"DETACH",icon:"arrow-down",onClick:function(){return c("equip_act",{ref:e.module.ref,gear_action:"detach"})}})],4)}},17118:function(e,t){"use strict";t.__esModule=!0,t.InternalDamageToNormalDesc=t.InternalDamageToDamagedDesc=t.KelvinZeroCelcius=void 0;t.KelvinZeroCelcius=273.15;t.InternalDamageToDamagedDesc={MECHA_INT_FIRE:"Internal fire detected",MECHA_INT_TEMP_CONTROL:"Temperature control inactive",MECHA_INT_TANK_BREACH:"Air tank breach detected",MECHA_INT_CONTROL_LOST:"Control module damaged"};t.InternalDamageToNormalDesc={MECHA_INT_FIRE:"No internal fires detected",MECHA_INT_TEMP_CONTROL:"Temperature control active",MECHA_INT_TANK_BREACH:"Air tank intact",MECHA_INT_CONTROL_LOST:"Control module active"}},79355:function(e,t,n){"use strict";t.__esModule=!0,t.Mecha=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(50687),i=n(54716);t.Mecha=function(e,t){return(0,r.useBackend)(t).data.isoperator?(0,o.createComponentVNode)(2,a.Window,{theme:"ntos",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.OperatorMode)})}):(0,o.createComponentVNode)(2,a.Window,{theme:"retro",width:640,height:670,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.MaintMode)})})}},78131:function(e,t,n){"use strict";t.__esModule=!0,t.MechpadConsole=t.MechpadControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=e.topLevel,c=(0,r.useBackend)(t),i=c.act,l=c.data,d=l.pad_name,s=l.connected_mechpad;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Input,{value:d,width:"170px",onChange:function(e,t){return i("rename",{name:t})}}),level:n?1:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Remove",color:"bad",onClick:function(){return i("remove")}}),children:!s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No Pad Connected."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"upload",content:"Launch",textAlign:"center",onClick:function(){return i("launch")}})})};t.MechpadControl=i;t.MechpadConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.mechpads,u=void 0===s?[]:s,m=d.selected_id;return(0,o.createComponentVNode)(2,c.Window,{width:475,height:130,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:0===u.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Pads Connected"})||(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{minHeight:"70px",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"140px",minHeight:"70px",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,ellipsis:!0,content:e.name,selected:m===e.id,color:"transparent",onClick:function(){return l("select_pad",{id:e.id})}},e.name)}))}),(0,o.createComponentVNode)(2,a.Flex.Item,{minHeight:"100%",children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,minHeight:"100%",children:m&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,a.Box,{children:"Please select a pad"})})]})})})})}},48026:function(e,t,n){"use strict";t.__esModule=!0,t.Medibot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Medibot=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,h=l.locked,C=l.heal_threshold,f=l.heal_threshold_max,N=l.injection_amount_min,g=l.injection_amount,V=l.injection_amount_max,b=l.use_beaker,v=l.declare_treatment,k=l.vocal;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:h?"good":"bad",children:h?"Locked":"Unlocked"})]})}),!h&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,minValue:0,maxValue:f,value:C,onDrag:function(e,t){return i("adj_threshold",{val:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,minValue:N,maxValue:V,value:g,onDrag:function(e,t){return i("adj_inject",{val:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("use_beaker")},children:b?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("declaretreatment")},children:v?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("togglevoice")},children:k?"On":"Off"})})]})})||null]})})}},2303:function(e,t,n){"use strict";t.__esModule=!0,t.MedicalKiosk=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381);t.MedicalKiosk=function(e,t){var n=(0,r.useBackend)(t),p=(n.act,n.data),h=(0,r.useSharedState)(t,"scanIndex")[0],C=p.active_status_1,f=p.active_status_2,N=p.active_status_3,g=p.active_status_4;return(0,o.createComponentVNode)(2,c.Window,{width:575,height:420,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Flex,{mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mr:1,children:(0,o.createComponentVNode)(2,a.Section,{minHeight:"100%",children:[(0,o.createComponentVNode)(2,i,{index:1,icon:"procedures",name:"General Health Scan",description:"Reads back exact values of your general health scan."}),(0,o.createComponentVNode)(2,i,{index:2,icon:"heartbeat",name:"Symptom Based Checkup",description:"Provides information based on various non-obvious symptoms,\nlike blood levels or disease status."}),(0,o.createComponentVNode)(2,i,{index:3,icon:"radiation-alt",name:"Neurological/Radiological Scan",description:"Provides information about brain trauma and radiation."}),(0,o.createComponentVNode)(2,i,{index:4,icon:"mortar-pestle",name:"Chemical and Psychoactive Scan",description:"Provides a list of consumed chemicals, as well as potential\nside effects."})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l)})]}),!!C&&1===h&&(0,o.createComponentVNode)(2,d),!!f&&2===h&&(0,o.createComponentVNode)(2,s),!!N&&3===h&&(0,o.createComponentVNode)(2,u),!!g&&4===h&&(0,o.createComponentVNode)(2,m)]})})};var i=function(e,t){var n=e.index,c=e.name,i=e.description,l=e.icon,d=(0,r.useBackend)(t),s=d.act,u=d.data,m=(0,r.useSharedState)(t,"scanIndex"),p=m[0],h=m[1],C=u["active_status_"+n];return(0,o.createComponentVNode)(2,a.Stack,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{width:"16px",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:C?"check":"dollar-sign",color:C?"green":"grey"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:"content",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:l,selected:C&&p===n,tooltip:i,tooltipPosition:"right",content:c,onClick:function(){C||s("beginScan_"+n),h(n)}})})]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.kiosk_cost,d=i.patient_name;return(0,o.createComponentVNode)(2,a.Section,{minHeight:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,children:["Greetings Valued Employee! Please select a desired automatic health check procedure. Diagnosis costs ",(0,o.createVNode)(1,"b",null,[l,(0,o.createTextVNode)(" credits.")],0)]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",mr:1,children:"Patient:"}),d]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,tooltip:"Resets the current scanning target, cancelling current scans.",icon:"sync",color:"average",onClick:function(){return c("clearTarget")},content:"Reset Scanner"})]})},d=function(e,t){var n=(0,r.useBackend)(t).data,c=n.patient_health,i=n.brute_health,l=n.burn_health,d=n.suffocation_health,s=n.toxin_health;return(0,o.createComponentVNode)(2,a.Section,{title:"Patient Health",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:c/100,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:c}),"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brute Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:i/100,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Burn Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l/100,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:l})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d/100,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxin Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:s/100,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})]})})},s=function(e,t){var n=(0,r.useBackend)(t).data,c=n.patient_status,i=n.patient_illness,l=n.illness_info,d=n.bleed_status,s=n.blood_levels,u=n.blood_status;return(0,o.createComponentVNode)(2,a.Section,{title:"Symptom Based Checkup",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Patient Status",color:"good",children:c}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disease Status",children:i}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disease information",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Levels",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:s/100,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})}),(0,o.createComponentVNode)(2,a.Box,{mt:1,color:"label",children:d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Information",children:u})]})})},u=function(e,t){var n=(0,r.useBackend)(t).data,c=n.clone_health,i=n.brain_damage,l=n.brain_health,d=n.trauma_status;return(0,o.createComponentVNode)(2,a.Section,{title:"Patient Neurological and Radiological Health",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cellular Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:c/100,color:"good",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:c})})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brain Damage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:i/100,color:"good",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brain Status",color:"health-0",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brain Trauma Status",children:d})]})})},m=function(e,t){var n=(0,r.useBackend)(t).data,c=n.chemical_list,i=void 0===c?[]:c,l=n.overdose_list,d=void 0===l?[]:l,s=n.addict_list,u=void 0===s?[]:s,m=n.hallucinating_status;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemical and Psychoactive Analysis",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemical Contents",children:[0===i.length&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No reagents detected."}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[e.volume," units of ",e.name]},e.id)}))]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose Status",color:"bad",children:[0===d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Patient is not overdosing."}),d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:["Overdosing on ",e.name]},e.id)}))]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction Status",color:"bad",children:[0===u.length&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Patient has no addictions."}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:["Addicted to ",e.name]},e.id)}))]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Psychoactive Status",children:m})]})})}},93796:function(e,t,n){"use strict";t.__esModule=!0,t.MedicalRecords=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84645),i=n(2381),l=n(62291),d=n(20273),s=n(98194),u=function(e,t){(0,c.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.MedicalRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,C=u.authenticated,f=u.screen;return C?(2===f?n=(0,o.createComponentVNode)(2,m):3===f?n=(0,o.createComponentVNode)(2,p):4===f?n=(0,o.createComponentVNode)(2,h):5===f?n=(0,o.createComponentVNode)(2,N):6===f&&(n=(0,o.createComponentVNode)(2,g)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,a.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:n})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return c("search",{t1:t})}}),(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return c("d_rec",{d_rec:e.ref})}},t)}))})],4)},p=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all")}})],4)},h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,a.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,f)}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return c("del_r")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return c("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return c("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.general;return n&&n.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,a.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Box,{width:"50%",float:"right",textAlign:"right",children:!!n.has_photos&&n.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)}))})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},f=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,a.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,c.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.virus;return i.sort((function(e,t){return e.name>t.name?1:-1})),i.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return c("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,t)}))},g=function(e,t){var n=(0,r.useBackend)(t).data.medibots;return 0===n.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"There are no Medibots."}):n.map((function(e,t){return(0,o.createComponentVNode)(2,a.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,a.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Offline"})})]})})},t)}))},V=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.screen;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,onClick:function(){return c("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:5===i,onClick:function(){return c("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===i,onClick:function(){return c("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"plus-square"}),"Medibot Tracking"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,onClick:function(){return c("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,c.modalRegisterBodyOverride)("virus",(function(e,t){var n=(0,r.useBackend)(t).act,c=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:c.name||"Virus",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return n("modal_close")}}),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[c.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:c.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:c.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[c.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:c.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:c.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},9135:function(e,t,n){"use strict";t.__esModule=!0,t.MemoryPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=(n(21118),n(2381)),i=function(e,t){(0,r.useBackend)(t).act;var n=e.quality;return 0===n?(0,o.createComponentVNode)(2,a.Button,{icon:"poop",color:"transparent",tooltip:"This memory is not interesting at all! It does not make for\ngood art and is unlikely to pass to future generations."}):1===n?(0,o.createComponentVNode)(2,a.Button,{icon:"star",color:"transparent",tooltipPosition:"right",tooltip:"This memory pretty bland. It would make for some pretty\nmediocre art and is not likely to pass to future generations."}):2===n?(0,o.createComponentVNode)(2,a.Button,{icon:"star",style:{background:"linear-gradient(to right, #964B30, #D68B60, #B66B30, #D68B60, #964B30);"},tooltipPosition:"right",tooltip:"This memory is not super interesting. It could turn into\nan okay story but don't bet on it."}):3===n?(0,o.createComponentVNode)(2,a.Button,{icon:"star",style:{background:"linear-gradient(to right, #636363, #a3a3a3, #6e6e6e, #a3a3a3, #636363);"},tooltipPosition:"right",tooltip:"This memory is pretty okay! Some good stories could be told\nfrom this and it might even come back in future generations."}):4===n?(0,o.createComponentVNode)(2,a.Button,{icon:"star",style:{background:"linear-gradient(to right, #AA771C, #BCB68A, #B38728, #BCB68A, #AA771C);"},tooltipPosition:"right",tooltip:"This memory is great! You could tell a great story from it,\nand it would have a good chanced pass to future generations!"}):(0,o.createComponentVNode)(2,a.Button,{icon:"crown",style:{background:"linear-gradient(to right, #56A5B3, #75D4E2, #56A5B3, #75D4E2, #56A5B3)"},tooltipPosition:"right",tooltip:"This memory is the stuff of legends! It would make for\nlegendary art and is likely to pass to future generations."})};t.MemoryPanel=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.memories||[]);return(0,o.createComponentVNode)(2,c.Window,{title:"Memory Panel",width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{maxHeight:"32px",title:"Memories",buttons:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"These are your memories. You gain them from doing notable things\nand you can use them in art!",tooltipPosition:"bottom-start",icon:"info"})}),!l&&(0,o.createComponentVNode)(2,a.Dimmer,{fontSize:"28px",align:"center",children:"You have no memories!"})||(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,i,{quality:e.quality})," ",e.name]})},e.name)}))})]})})}},8678:function(e,t,n){"use strict";t.__esModule=!0,t.MessageMonitor=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=n(98194),d=n(75309);t.MessageMonitor=function(e,t){var n,r=(0,a.useBackend)(t),d=(r.act,r.data),p=d.auth,h=d.linkedServer,C=(d.message,d.hacking),f=d.emag;return n=C||f?(0,o.createComponentVNode)(2,s):p?h?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),n]})})};var s=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,c.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,c.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,c.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,t){return r("auth",{key:t})}})]}),!!i&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,t){var n,r=(0,a.useBackend)(t),i=r.act,l=r.data.linkedServer,d=(0,a.useLocalState)(t,"tabIndex",0),s=d[0],u=d[1];return 0===s?n=(0,o.createComponentVNode)(2,p):1===s?n=(0,o.createComponentVNode)(2,h,{logs:l.pda_msgs,pda:!0}):2===s?n=(0,o.createComponentVNode)(2,h,{logs:l.rc_msgs,rc:!0}):3===s?n=(0,o.createComponentVNode)(2,C):4===s&&(n=(0,o.createComponentVNode)(2,f)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,c.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,c.Box,{m:2,children:n})],4)},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.linkedServer;return(0,o.createComponentVNode)(2,c.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},h=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=(n.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,c.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:t%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,c.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onChange:function(e,t){return r("set_sender",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:u,onChange:function(e,t){return r("set_sender_job",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,c.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,t){return r("set_message",{val:t})}})})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},f=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.linkedServer;return(0,o.createComponentVNode)(2,c.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},97032:function(e,t,n){"use strict";t.__esModule=!0,t.Microscope=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Microscope=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=(0,r.useSharedState)(t,"tab",1),m=u[0],p=u[1],h=s.has_dish,C=s.cell_lines,f=void 0===C?[]:C,N=s.viruses,g=void 0===N?[]:N;return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dish Sample",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){return d("eject_petridish")}})})})}),(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"microscope",lineHeight:"23px",selected:1===m,onClick:function(){return p(1)},children:["Micro-Organisms (",f.length,")"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"microscope",lineHeight:"23px",selected:2===m,onClick:function(){return p(2)},children:["Viruses (",g.length,")"]})]}),1===m&&(0,o.createComponentVNode)(2,i,{cell_lines:f}),2===m&&(0,o.createComponentVNode)(2,l,{viruses:g})]})})};var i=function(e,t){var n=e.cell_lines,c=(0,r.useBackend)(t);c.act,c.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.desc,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Rate",children:e.growth_rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Suspectibility",children:e.suspectibility}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Reagents",children:e.requireds}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Supplementary Reagents",children:e.supplementaries}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suppresive reagents",children:e.suppressives})]})},e.desc)})):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No micro-organisms found"})},l=function(e,t){var n=e.viruses;(0,r.useBackend)(t).act;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.desc},e.desc)})):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No viruses found"})}},47270:function(e,t,n){"use strict";t.__esModule=!0,t.Microwave=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Microwave=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.config,d=n.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,a.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[l.title," is empty."]})})})})}},14343:function(e,t,n){"use strict";t.__esModule=!0,t.MinigamesMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.MinigamesMenu=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Window,{title:"Minigames Menu",width:450,height:200,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Select Minigame",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"CTF",fluid:1,fontSize:3,textAlign:"center",lineHeight:"3",onClick:function(){return n("ctf")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Mafia",fluid:1,fontSize:3,textAlign:"center",lineHeight:"3",onClick:function(){return n("mafia")}})})]})})})})}},48078:function(e,t,n){"use strict";t.__esModule=!0,t.MiningOreProcessingConsole=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=n(11409);t.MiningOreProcessingConsole=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,t){return-1===s.indexOf(e.ore)||-1===s.indexOf(t.ore)?e.ore-t.ore:s.indexOf(t.ore)-s.indexOf(e.ore)},m=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,c.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,c.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(t){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(t)})}}),children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},98948:function(e,t,n){"use strict";t.__esModule=!0,t.MiningStackingConsole=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.MiningStackingConsole=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,t){return l("change_stack",{amt:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},70496:function(e,t,n){"use strict";t.__esModule=!0,t.MiningVendor=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381);t.MiningVendor=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=[].concat(d.product_records);return(0,o.createComponentVNode)(2,i.Window,{width:425,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"User",children:d.user&&(0,o.createComponentVNode)(2,c.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,d.user.name||"Unknown",0),","," ",(0,o.createVNode)(1,"b",null,d.user.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[d.user.points,(0,o.createTextVNode)(" mining points")],0),"."]})||(0,o.createComponentVNode)(2,c.Box,{color:"light-gray",children:["No registered ID card!",(0,o.createVNode)(1,"br"),"Please contact your local HoP!"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Equipment",children:(0,o.createComponentVNode)(2,c.Table,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createVNode)(1,"span",(0,r.classes)(["vending32x32",e.path]),null,1,{style:{"vertical-align":"middle"}})," ",(0,o.createVNode)(1,"b",null,e.name,0)]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{style:{"min-width":"95px","text-align":"center"},disabled:!d.user||e.price>d.user.points,content:e.price+" points",onClick:function(){return l("purchase",{ref:e.ref})}})})]},e.name)}))})})]})})}},17514:function(e,t,n){"use strict";t.__esModule=!0,t.Mint=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Mint=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.inserted_materials||[];return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Materials",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.processing?"times":"power-off",content:l.processing?"Stop":"Start",selected:l.processing,onClick:function(){return i(l.processing?"stoppress":"startpress")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.material,buttons:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:l.chosen_material===e.material,onClick:function(){return i("changematerial",{material_name:e.material})}}),children:[e.amount," cm\xb3"]},e.material)}))})}),(0,o.createComponentVNode)(2,a.Section,{children:["Pressed ",l.produced_coins," coins this cycle."]})]})})}},16009:function(e,t,n){"use strict";t.__esModule=!0,t.Mule=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(19447);t.Mule=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.on,u=d.cell,m=d.cellPercent,p=d.load,h=d.mode,C=d.modeStatus,f=d.haspai,N=d.autoReturn,g=d.autoPickup,V=d.reportDelivery,b=d.destination,v=d.home,k=d.id,_=d.destinations,y=void 0===_?[]:_,w=d.locked&&!d.siliconUser;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:425,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,a.Section,{title:"Status",minHeight:"110px",buttons:!w&&(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:u?m/100:0,color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",color:C,children:h})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Load",color:p?"good":"average",children:p||"None"})})})]})]}),!w&&(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createFragment)([!!p&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Unload",onClick:function(){return l("unload")}}),!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject PAI",onClick:function(){return l("ejectpai")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,a.Input,{value:k,onChange:function(e,t){return l("setid",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destination",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:b||"None",options:y,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",content:"Stop",onClick:function(){return l("stop")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"play",content:"Go",onClick:function(){return l("go")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home",children:[(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:v,options:y,width:"150px",onSelected:function(e){return l("destination",{value:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"home",content:"Go Home",onClick:function(){return l("home")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Settings",children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:N,content:"Auto-Return",onClick:function(){return l("autored")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:g,content:"Auto-Pickup",onClick:function(){return l("autopick")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:V,content:"Report Delivery",onClick:function(){return l("report")}})]})]})})]})})}},32470:function(e,t,n){"use strict";t.__esModule=!0,t.MuleBot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.MuleBot=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.suffix,m=(s.power,s.load),p=(s.locked,s.issilicon,s.auto_return,s.crates_only,s.hatch);s.safety;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Multiple Utility Load Effector Mk. III",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Load",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Unload Now",disabled:!m,onClick:function(){return d("unload")}}),children:m||"None."})]}),p?(0,o.createComponentVNode)(2,l):(0,o.createComponentVNode)(2,i)]})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.suffix,i.power),d=(i.load,i.locked),s=i.issilicon,u=i.auto_return,m=i.crates_only;i.open,i.safety;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:l?"On":"Off",selected:l,disabled:d&&!s,onClick:function(){return c("power")}}),children:d&&!s?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This interface is currently locked."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return c("stop")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return c("go")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return c("home")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return c("destination")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return c("sethome")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"home",selected:u,content:"Auto Return Home: "+(u?"Enabled":"Disabled"),onClick:function(){return c("autoret")}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"biking",selected:!m,content:"Non-standard Cargo: "+(m?"Disabled":"Enabled"),onClick:function(){return c("cargotypes")}})],4)})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.suffix,i.power,i.load,i.locked,i.issilicon,i.auto_return,i.crates_only,i.open,i.safety);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Maintenance Panel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"skull-crossbones",color:l?"green":"red",content:"Safety: "+(l?"Engaged":"Disengaged (DANGER)"),onClick:function(){return c("safety")}})})}},63045:function(e,t,n){"use strict";t.__esModule=!0,t.NIF=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["abductor","cardtable","hackerman","malfunction","ntos","paper","retro","syndicate"];t.NIF=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.config,d=n.data,m=d.theme,p=d.last_notification,h=(0,r.useLocalState)(t,"settingsOpen",!1),C=h[0],f=h[1],N=(0,r.useLocalState)(t,"viewingModule",null),g=N[0],V=N[1];return(0,o.createComponentVNode)(2,c.Window,{theme:m,width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:(0,o.createComponentVNode)(2,a.Table,{verticalAlign:"middle",children:(0,o.createComponentVNode)(2,a.Table.Row,{verticalAlign:"middle",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return i("dismissNotification")}})})]})})}),!!g&&(0,o.createComponentVNode)(2,a.Modal,{m:1,p:0,color:"label",children:(0,o.createComponentVNode)(2,a.Section,{m:0,title:g.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+g.name+"?",onClick:function(){i("uninstall",{module:g.ref}),V(null)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"window-close",onClick:function(){return V(null)}})],4),children:[(0,o.createComponentVNode)(2,a.Box,{children:g.desc}),(0,o.createComponentVNode)(2,a.Box,{children:["It consumes ",(0,o.createComponentVNode)(2,a.Box,{color:"good",inline:!0,children:g.p_drain})," energy units while installed, and ",(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:g.a_drain})," additionally while active."]}),(0,o.createComponentVNode)(2,a.Box,{color:g.illegal?"bad":"good",children:["It is ",g.illegal?"NOT ":"","a legal software package."]}),(0,o.createComponentVNode)(2,a.Box,{children:["The MSRP of the package is ",(0,o.createComponentVNode)(2,a.Box,{color:"good",inline:!0,children:[g.cost,"\u20ae."]})]}),(0,o.createComponentVNode)(2,a.Box,{children:["The difficulty to construct the associated implant is\xa0",(0,o.createComponentVNode)(2,a.Box,{color:"good",inline:!0,children:["Rating ",g.wear]}),"."]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Welcome to your NIF, "+l.user.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:C,onClick:function(){return f(!C)}}),children:C&&(0,o.createComponentVNode)(2,u)||(0,o.createComponentVNode)(2,s,{setViewing:V})})]})})};var l=function(e,t){switch(e){case 0:return t<25?"Service Needed Soon":"Operating Normally";case 1:return"Insufficient Energy!";case 2:return"System Failure!";case 3:return"Adapting To User"}return"Unknown"},d=function(e,t){return t?e>=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=(n.config,n.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,h=i.modules,C=e.setViewing;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s),"(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:h.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return c("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return C(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return c("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.theme;return(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return c("setTheme",{theme:e})}})})})}},13112:function(e,t,n){"use strict";t.__esModule=!0,t.NtnetRelay=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtnetRelay=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.enabled,s=l.dos_capacity,u=l.dos_overload,m=l.dos_crashed;return(0,o.createComponentVNode)(2,c.Window,{title:"NtNet Quantum Relay",width:400,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Network Buffer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,content:d?"ENABLED":"DISABLED",onClick:function(){return i("toggle")}}),children:m?(0,o.createComponentVNode)(2,a.Box,{fontFamily:"monospace",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"20px",children:"NETWORK BUFFER OVERFLOW"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",children:"OVERLOAD RECOVERY MODE"}),(0,o.createComponentVNode)(2,a.Box,{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"20px",color:"bad",children:"ADMINISTRATOR OVERRIDE"}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",color:"bad",children:"CAUTION - DATA LOSS MAY OCCUR"}),(0,o.createComponentVNode)(2,a.Button,{icon:"signal",content:"PURGE BUFFER",mt:1,color:"bad",onClick:function(){return i("restart")}})]}):(0,o.createComponentVNode)(2,a.ProgressBar,{value:u,minValue:0,maxValue:s,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," GQ"," / ",s," GQ"]})})})})}},73533:function(e,t,n){"use strict";t.__esModule=!0,t.NaniteChamberControlContent=t.NaniteChamberControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NaniteChamberControl=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:380,height:570,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.status_msg,d=i.locked,s=i.occupant_name,u=i.has_nanites,m=i.nanite_volume,p=i.regen_rate,h=i.safety_threshold,C=i.cloud_id,f=i.scan_level;if(l)return(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:l});var N=i.mob_programs||[];return(0,o.createComponentVNode)(2,a.Section,{title:"Chamber: "+s,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"lock":"lock-open",content:d?"Locked":"Unlocked",color:d?"bad":"default",onClick:function(){return c("toggle_lock")}}),children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",content:"Destroy Nanites",color:"bad",onClick:function(){return c("remove_nanites")}}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanite Volume",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Rate",children:p})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Safety Threshold",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,minValue:0,maxValue:500,width:"39px",onChange:function(e,t){return c("set_safety",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloud ID",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:C,minValue:0,maxValue:100,step:1,stepPixelSize:3,width:"39px",onChange:function(e,t){return c("set_cloud",{value:t})}})})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",level:2,children:N.map((function(e){var t=e.extra_settings||[],n=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.desc}),f>=2&&(0,o.createComponentVNode)(2,a.Grid.Column,{size:.6,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.activated?"good":"bad",children:e.activated?"Active":"Inactive"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nanites Consumed",children:[e.use_rate,"/s"]})]})})]}),f>=2&&(0,o.createComponentVNode)(2,a.Grid,{children:[!!e.can_trigger&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Triggers",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cost",children:e.trigger_cost}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cooldown",children:e.trigger_cooldown}),!!e.timer_trigger_delay&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:[e.timer_trigger_delay," s"]}),!!e.timer_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:[e.timer_trigger," s"]})]})})}),!(!e.timer_restart&&!e.timer_shutdown)&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[e.timer_restart&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:[e.timer_restart," s"]}),e.timer_shutdown&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:[e.timer_shutdown," s"]})]})})})]}),f>=3&&!!e.has_extra_settings&&(0,o.createComponentVNode)(2,a.Section,{title:"Extra Settings",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.value},e.name)}))})}),f>=4&&(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!e.activation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:e.activation_code}),!!e.deactivation_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:e.deactivation_code}),!!e.kill_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:e.kill_code}),!!e.can_trigger&&!!e.trigger_code&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:e.trigger_code})]})})}),e.has_rules&&(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Rules",level:2,children:n.map((function(e){return(0,o.createFragment)([e.display,(0,o.createVNode)(1,"br")],0,e.display)}))})})]})]})},e.name)}))})],4):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",textAlign:"center",fontSize:"30px",mb:1,children:"No Nanites Detected"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,icon:"syringe",content:" Implant Nanites",color:"green",textAlign:"center",fontSize:"30px",lineHeight:"50px",onClick:function(){return c("nanite_injection")}})],4)})};t.NaniteChamberControlContent=i},59683:function(e,t,n){"use strict";t.__esModule=!0,t.NaniteCloudControl=t.NaniteCloudBackupDetails=t.NaniteCloudBackupList=t.NaniteInfoBox=t.NaniteDiskBox=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t).data,c=n.has_disk,i=n.has_program,d=n.disk;return c?i?(0,o.createComponentVNode)(2,l,{program:d}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Inserted disk has no program"}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No disk inserted"})};t.NaniteDiskBox=i;var l=function(e,t){var n=e.program,r=n.name,c=n.desc,i=n.activated,l=n.use_rate,d=n.can_trigger,s=n.trigger_cost,u=n.trigger_cooldown,m=n.activation_code,p=n.deactivation_code,h=n.kill_code,C=n.trigger_code,f=n.timer_restart,N=n.timer_shutdown,g=n.timer_trigger,V=n.timer_trigger_delay,b=n.extra_settings||[];return(0,o.createComponentVNode)(2,a.Section,{title:r,level:2,buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:i?"good":"bad",children:i?"Activated":"Deactivated"}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{mr:1,children:c}),(0,o.createComponentVNode)(2,a.Grid.Column,{size:.5,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Use Rate",children:l}),!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cost",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cooldown",children:u})],4)]})})]}),(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:3,mr:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:h}),!!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:C})]})})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Delays",level:3,mr:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart",children:[f," s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown",children:[N," s"]}),!!d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:[g," s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:[V," s"]})],4)]})})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Extra Settings",level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:b.map((function(e){var t={number:(0,o.createFragment)([e.value,e.unit],0),text:e.value,type:e.value,boolean:e.value?e.true_text:e.false_text};return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:t[e.type]},e.name)}))})})]})};t.NaniteInfoBox=l;var d=function(e,t){var n=(0,r.useBackend)(t),c=n.act;return(n.data.cloud_backups||[]).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Backup #"+e.cloud_id,textAlign:"center",onClick:function(){return c("set_view",{view:e.cloud_id})}},e.cloud_id)}))};t.NaniteCloudBackupList=d;var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,d=i.current_view,s=i.disk,u=i.has_program,m=i.cloud_backup,p=s&&s.can_rule||!1;if(!m)return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"ERROR: Backup not found"});var h=i.cloud_programs||[];return(0,o.createComponentVNode)(2,a.Section,{title:"Backup #"+d,level:2,buttons:!!u&&(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload From Disk",color:"good",onClick:function(){return c("upload_program")}}),children:h.map((function(e){var t=e.rules||[];return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_program",{program_id:e.id})}}),children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,l,{program:e}),(!!p||!!e.has_rules)&&(0,o.createComponentVNode)(2,a.Section,{mt:-2,title:"Rules",level:2,buttons:!!p&&(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Rule from Disk",color:"good",onClick:function(){return c("add_rule",{program_id:e.id})}}),children:e.has_rules?t.map((function(t){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"bad",onClick:function(){return c("remove_rule",{program_id:e.id,rule_id:t.id})}})," "+t.display]},t.display)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Active Rules"})})]})},e.name)}))})};t.NaniteCloudBackupDetails=s;t.NaniteCloudControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,u=n.data,m=u.has_disk,p=u.current_view,h=u.new_backup_id;return(0,o.createComponentVNode)(2,c.Window,{width:375,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Program Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!m,onClick:function(){return l("eject")}}),children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Section,{title:"Cloud Storage",buttons:p?(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Return",onClick:function(){return l("set_view",{view:0})}}):(0,o.createFragment)(["New Backup: ",(0,o.createComponentVNode)(2,a.NumberInput,{value:h,minValue:1,maxValue:100,stepPixelSize:4,width:"39px",onChange:function(e,t){return l("update_new_backup_value",{value:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return l("create_backup")}})],0),children:u.current_view?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,d)})]})})}},43829:function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgramHub=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.NaniteProgramHub=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.detail_view,u=d.disk,m=d.has_disk,p=d.has_program,h=d.programs,C=void 0===h?{}:h,f=(0,a.useSharedState)(t,"category"),N=f[0],g=f[1],V=C&&C[N]||[];return(0,o.createComponentVNode)(2,i.Window,{width:500,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Program Disk",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",onClick:function(){return l("eject")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Delete Program",onClick:function(){return l("clear")}})],4),children:m?p?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Program Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description",children:u.desc})]}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Program Installed"}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Insert Disk"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"info":"list",content:s?"Detailed":"Compact",onClick:function(){return l("toggle_details")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Sync Research",onClick:function(){return l("refresh")}})],4),children:null!==C?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{minWidth:"110px",children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){var n=t.substring(0,t.length-8);return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:t===N,onClick:function(){return g(t)},children:n},t)}))(C)})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,basis:0,children:s?V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Download",disabled:!m,onClick:function(){return l("download",{program_id:e.id})}}),children:e.desc},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Download",disabled:!m,onClick:function(){return l("download",{program_id:e.id})}})},e.id)}))})})]}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No nanite programs are currently researched."})})]})})}},86359:function(e,t,n){"use strict";t.__esModule=!0,t.NaniteProgrammerContent=t.NaniteProgrammer=t.NaniteExtraBoolean=t.NaniteExtraType=t.NaniteExtraText=t.NaniteExtraNumber=t.NaniteExtraEntry=t.NaniteDelays=t.NaniteCodes=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Codes",level:3,mr:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.activation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return c("set_code",{target_code:"activation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Deactivation",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.deactivation_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return c("set_code",{target_code:"deactivation",code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Kill",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.kill_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return c("set_code",{target_code:"kill",code:t})}})}),!!i.can_trigger&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.trigger_code,width:"47px",minValue:0,maxValue:9999,onChange:function(e,t){return c("set_code",{target_code:"trigger",code:t})}})})]})})};t.NaniteCodes=i;var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Delays",level:3,ml:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Restart Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.timer_restart,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return c("set_restart_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shutdown Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.timer_shutdown,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return c("set_shutdown_timer",{delay:t})}})}),!!i.can_trigger&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Repeat Timer",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.timer_trigger,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return c("set_trigger_timer",{delay:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Delay",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:i.timer_trigger_delay,unit:"s",width:"57px",minValue:0,maxValue:3600,onChange:function(e,t){return c("set_timer_trigger_delay",{delay:t})}})})],4)]})})};t.NaniteDelays=l;var d=function(e,t){var n=e.extra_setting,r=n.name,c=n.type,i={number:(0,o.createComponentVNode)(2,s,{extra_setting:n}),text:(0,o.createComponentVNode)(2,u,{extra_setting:n}),type:(0,o.createComponentVNode)(2,m,{extra_setting:n}),boolean:(0,o.createComponentVNode)(2,p,{extra_setting:n})};return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:r,children:i[c]})};t.NaniteExtraEntry=d;var s=function(e,t){var n=e.extra_setting,c=(0,r.useBackend)(t).act,i=n.name,l=n.value,d=n.min,s=n.max,u=n.unit;return(0,o.createComponentVNode)(2,a.NumberInput,{value:l,width:"64px",minValue:d,maxValue:s,unit:u,onChange:function(e,t){return c("set_extra_setting",{target_setting:i,value:t})}})};t.NaniteExtraNumber=s;var u=function(e,t){var n=e.extra_setting,c=(0,r.useBackend)(t).act,i=n.name,l=n.value;return(0,o.createComponentVNode)(2,a.Input,{value:l,width:"200px",onInput:function(e,t){return c("set_extra_setting",{target_setting:i,value:t})}})};t.NaniteExtraText=u;var m=function(e,t){var n=e.extra_setting,c=(0,r.useBackend)(t).act,i=n.name,l=n.value,d=n.types;return(0,o.createComponentVNode)(2,a.Dropdown,{over:!0,selected:l,width:"150px",options:d,onSelected:function(e){return c("set_extra_setting",{target_setting:i,value:e})}})};t.NaniteExtraType=m;var p=function(e,t){var n=e.extra_setting,c=(0,r.useBackend)(t).act,i=n.name,l=n.value,d=n.true_text,s=n.false_text;return(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:l?d:s,checked:l,onClick:function(){return c("set_extra_setting",{target_setting:i})}})};t.NaniteExtraBoolean=p;t.NaniteProgrammer=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:420,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,h)})})};var h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,s=n.data,u=s.has_disk,m=s.has_program,p=s.name,h=s.desc,C=s.use_rate,f=s.can_trigger,N=s.trigger_cost,g=s.trigger_cooldown,V=s.activated,b=s.has_extra_settings,v=s.extra_settings,k=void 0===v?{}:v;return u?m?(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return c("eject")}}),children:[(0,o.createComponentVNode)(2,a.Section,{title:"Info",level:2,children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:h}),(0,o.createComponentVNode)(2,a.Grid.Column,{size:.7,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Use Rate",children:C}),!!f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cost",children:N}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Trigger Cooldown",children:g})],4)]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Settings",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:V?"power-off":"times",content:V?"Active":"Inactive",selected:V,color:"bad",bold:!0,onClick:function(){return c("toggle_active")}}),children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,l)})]}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Special",level:3,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.map((function(e){return(0,o.createComponentVNode)(2,d,{extra_setting:e},e.name)}))})})]})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Blank Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return c("eject")}})}):(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:"Insert a nanite program disk"})};t.NaniteProgrammerContent=h},42129:function(e,t,n){"use strict";t.__esModule=!0,t.NaniteRemoteContent=t.NaniteRemote=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NaniteRemote=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:420,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.code,d=i.locked,s=i.mode,u=i.program_name,m=i.relay_code,p=i.comms,h=i.message,C=i.saved_settings,f=void 0===C?[]:C;return d?(0,o.createComponentVNode)(2,a.NoticeBox,{children:"This interface is locked."}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Nanite Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock Interface",onClick:function(){return c("lock")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:[(0,o.createComponentVNode)(2,a.Input,{value:u,maxLength:14,width:"130px",onChange:function(e,t){return c("update_name",{name:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save",onClick:function(){return c("save")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:p?"Comm Code":"Signal Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:l,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_code",{code:t})}})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:(0,o.createComponentVNode)(2,a.Input,{value:h,width:"270px",onChange:function(e,t){return c("set_message",{value:t})}})}),"Relay"===s&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Relay Code",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:m,minValue:0,maxValue:9999,width:"47px",step:1,stepPixelSize:2,onChange:function(e,t){return c("set_relay_code",{code:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Signal Mode",children:["Off","Local","Targeted","Area","Relay"].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e,selected:s===e,onClick:function(){return c("select_mode",{mode:e})}},e)}))})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Saved Settings",children:f.length>0?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"35%",children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{width:"20%",children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Code"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Relay"})]}),f.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:[e.name,":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.mode}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.code}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Relay"===e.mode&&e.relay_code}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"upload",color:"good",onClick:function(){return c("load",{save_id:e.id})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",color:"bad",onClick:function(){return c("remove_save",{save_id:e.id})}})]})]},e.id)}))]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No settings currently saved"})})],4)};t.NaniteRemoteContent=i},76225:function(e,t,n){"use strict";t.__esModule=!0,t.Newscaster=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(86487),i=n(42323),l=n(26949),d=n(31400),s=n(81890);t.Newscaster=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data,(0,a.useSharedState)(t,"tab_main",1)),i=r[0],d=r[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Tabs,{fluid:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{color:"Green",selected:1===i,onClick:function(){return d(1)},children:"Newscaster"}),(0,o.createComponentVNode)(2,l.Tabs.Tab,{Color:"Blue",selected:2===i,onClick:function(){return d(2)},children:"Bounty Board"})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:[1===i&&(0,o.createComponentVNode)(2,h),2===i&&(0,o.createComponentVNode)(2,c.BountyBoardContent)]})]})],4)};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,i=(0,a.useLocalState)(t,"lockedmode",1),d=i[0],s=i[1],u=c.creating_channel;c.name,c.desc;return u?(0,o.createComponentVNode)(2,l.Modal,{textAlign:"center",mr:1.5,children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{pb:1,children:["Enter channel name here:",(0,o.createComponentVNode)(2,l.Button,{content:"X",color:"red",position:"relative",top:"20%",left:"15%",onClick:function(){return r("cancelCreation")}})]}),(0,o.createComponentVNode)(2,l.TextArea,{fluid:!0,height:"40px",width:"240px",backgroundColor:"black",textColor:"white",maxLength:42,onChange:function(e,t){return r("setChannelName",{channeltext:t})},children:"Channel Name"})]}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{pb:1,children:"Enter channel description here:"}),(0,o.createComponentVNode)(2,l.TextArea,{fluid:!0,height:"150px",width:"240px",backgroundColor:"black",textColor:"white",maxLength:512,onChange:function(e,t){return r("setChannelDesc",{channeldesc:t})},children:"Channel Description"})]}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{children:["Set Channel as Public or Private",(0,o.createComponentVNode)(2,l.Box,{pt:1,children:[(0,o.createComponentVNode)(2,l.Button,{selected:!d,content:"Public",onClick:function(){return s(!1)}}),(0,o.createComponentVNode)(2,l.Button,{selected:!!d,content:"Private",onClick:function(){return s(!0)}})]})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:"Submit Channel",onClick:function(){return r("createChannel",{lockedmode:d})}})})})],4)})}):null},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,i=c.creating_comment,d=c.viewing_message;return i?(0,o.createComponentVNode)(2,l.Modal,{textAlign:"center",mr:1.5,children:(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{pb:1,children:["Enter comment:",(0,o.createComponentVNode)(2,l.Button,{content:"X",color:"red",position:"relative",top:"20%",left:"25%",onClick:function(){return r("cancelCreation")}})]}),(0,o.createComponentVNode)(2,l.TextArea,{fluid:!0,height:"120px",width:"240px",backgroundColor:"black",textColor:"white",maxLength:512,onChange:function(e,t){return r("setCommentBody",{commenttext:t})},children:"Channel Name"})]}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{content:"Submit Comment",onClick:function(){return r("createComment",{messageID:d})}})})})]})}):null},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,i=c.viewing_wanted,d=c.photo_data,s=c.security_mode,u=c.wanted,m=void 0===u?[]:u,p=c.criminal_name,h=c.crime_description;return i?(0,o.createComponentVNode)(2,l.Modal,{textAlign:"center",mr:1.5,width:25,children:[m.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Stack,{vertical:!0,children:(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{bold:!0,color:"red",children:[e.active?"Active Wanted Issue:":"Dismissed Wanted Issue:",(0,o.createComponentVNode)(2,l.Button,{content:"X",color:"red",position:"relative",top:"20%",left:"18%",onClick:function(){return r("cancelCreation")}})]}),(0,o.createComponentVNode)(2,l.Section,{children:[(0,o.createComponentVNode)(2,l.Box,{bold:!0,children:e.criminal}),(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:e.crime})]}),(0,o.createComponentVNode)(2,l.Box,{as:"img",src:e.image?e.image:null}),(0,o.createComponentVNode)(2,l.Box,{italic:!0,children:["Posted by ",e.author?e.author:"N/A"]})]})}),(0,o.createComponentVNode)(2,l.Divider)],4)})),s?(0,o.createFragment)([(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,l.Button,{content:p||" N/A",disabled:!s,icon:"pen",onClick:function(){return r("setCriminalName")}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Criminal Activity",children:(0,o.createComponentVNode)(2,l.Button,{content:h||" N/A",nowrap:!1,disabled:!s,icon:"pen",onClick:function(){return r("setCrimeData")}})})]}),(0,o.createComponentVNode)(2,l.Section,{children:[(0,o.createComponentVNode)(2,l.Button,{icon:"camera",selected:d,disabled:!s,content:d?"Remove photo":"Attach photo",onClick:function(){return r("togglePhoto")}}),(0,o.createComponentVNode)(2,l.Button,{content:"Set Wanted Issue",disabled:!s,icon:"volume-up",onClick:function(){return r("submitWantedIssue")}}),(0,o.createComponentVNode)(2,l.Button,{content:"Clear Wanted",disabled:!s,icon:"times",color:"red",onClick:function(){return r("clearWantedIssue")}})]})],4):(0,o.createComponentVNode)(2,l.Box,{children:m.active?"Please contact your local security officer if spotted.":"No wanted issue posted. Have a secure day."})]}):null},h=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.current_channel),c=void 0===r?{}:r;return(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,f)}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:2,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,i.UserDetails)}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C,{channelName:c.name,channelOwner:c.owner,channelDesc:c.desc})})]})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,g)})]})},C=function(e,t){var n=(0,a.useBackend)(t),c=n.act,i=n.data,d=i.channelName,s=i.channelDesc,u=i.channelLocked,m=i.channelAuthor,p=i.channelCensored,h=i.viewing_channel,C=i.security_mode,f=i.photo_data,N=i.paper,g=i.user;return(0,o.createComponentVNode)(2,l.Section,{fill:!0,title:d,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:p?(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,l.BlockQuote,{color:"red",children:[(0,o.createVNode)(1,"b",null,"ATTENTION:",16)," ","This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice."]})}):(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,l.BlockQuote,{italic:!0,fontSize:1.2,wrap:!0,children:(0,r.decodeHtmlEntities)(s)})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:[(0,o.createComponentVNode)(2,l.Box,{children:[(0,o.createComponentVNode)(2,l.Button,{icon:"print",content:"Submit Story",disabled:u&&m!==g.name||p,onClick:function(){return c("createStory",{current:h})},mt:1}),(0,o.createComponentVNode)(2,l.Button,{icon:"camera",selected:f,content:"Select Photo",disabled:u&&m!==g.name||p,onClick:function(){return c("togglePhoto")}}),!!C&&(0,o.createComponentVNode)(2,l.Button,{icon:"ban",content:"D-Notice",tooltip:"Censor the whole channel and it's contents as dangerous to the station. Cannot be undone.",disabled:!C||!h,onClick:function(){return c("channelDNotice",{secure:C,channel:h})}})]}),(0,o.createComponentVNode)(2,l.Box,{children:(0,o.createComponentVNode)(2,l.Button,{icon:"newspaper",content:"Print Newspaper",disabled:N<=0,onClick:function(){return c("printNewspaper")}})})]})]})})},f=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,i=c.channels,d=void 0===i?[]:i,s=c.viewing_channel,u=(c.security_mode,c.wanted),m=void 0===u?[]:u;return(0,o.createComponentVNode)(2,l.Section,{minHeight:"100%",width:window.innerWidth-410+"px",children:(0,o.createComponentVNode)(2,l.Tabs,{vertical:!0,children:[m.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{pt:.75,pb:.75,mr:1,icon:e.active?"skull-crossbones":null,textColor:e.active?"red":"grey",onClick:function(){return r("toggleWanted")},children:"Wanted Issue"},e.index)})),d.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{pt:.75,pb:.75,mr:1,selected:s===e.ID,icon:e.censored?"ban":null,textColor:e.censored?"red":"white",onClick:function(){return r("setChannel",{channel:e.ID})},children:e.name},e.index)})),(0,o.createComponentVNode)(2,l.Tabs.Tab,{pt:.75,pb:.75,mr:1,textColor:"white",color:"Green",onClick:function(){return r("startCreateChannel")},children:"Create Channel [+]"})]})})},N=function(e){return{__html:(0,s.sanitizeText)((0,d.marked)(e,{breaks:!0,smartypants:!0,smartLists:!0,baseUrl:"thisshouldbreakhttp"}))}},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,i=c.messages,d=void 0===i?[]:i,s=c.viewing_channel,u=c.security_mode,m=c.channelCensored,p=c.channelLocked,h=c.channelAuthor,C=c.user;if(m)return(0,o.createComponentVNode)(2,l.Section,{color:"red",children:[(0,o.createVNode)(1,"b",null,"ATTENTION:",16)," Comments cannot be read at this time.",(0,o.createVNode)(1,"br"),"Thank you for your understanding, and have a secure day."]});var f=d.filter((function(e){return e.ID!==s}));return(0,o.createComponentVNode)(2,l.Section,{children:f.map((function(e){return(0,o.createComponentVNode)(2,l.Section,{textColor:"white",title:(0,o.createVNode)(1,"i",null,e.censored_author?(0,o.createComponentVNode)(2,l.Box,{textColor:"red",children:["By: [REDACTED]. ",(0,o.createVNode)(1,"b",null,"D-Notice Notice",16)," ."]}):(0,o.createFragment)([(0,o.createTextVNode)("By: "),e.auth,(0,o.createTextVNode)(" at "),e.time],0),0),buttons:(0,o.createFragment)([!!u&&(0,o.createComponentVNode)(2,l.Button,{icon:"comment-slash",tooltip:"Censor Story",disabled:!u,onClick:function(){return r("storyCensor",{messageID:e.ID})}}),!!u&&(0,o.createComponentVNode)(2,l.Button,{icon:"user-slash",tooltip:"Censor Author",disabled:!u,onClick:function(){return r("authorCensor",{messageID:e.ID})}}),(0,o.createComponentVNode)(2,l.Button,{icon:"comment",tooltip:"Leave a Comment.",disabled:e.censored_author||e.censored_message||"Unknown"===C.name||!!p&&h!==C.name,onClick:function(){return r("startComment",{messageID:e.ID})}})],0),children:[(0,o.createComponentVNode)(2,l.BlockQuote,{children:[e.censored_message?(0,o.createComponentVNode)(2,l.Section,{textColor:"red",children:["This message was deemed dangerous to the general welfare of the station and therefore marked with a ",(0,o.createVNode)(1,"b",null,"D-Notice",16),"."]}):(0,o.createComponentVNode)(2,l.Section,{dangerouslySetInnerHTML:N(e.body),pl:1}),null!==e.photo&&!e.censored_message&&(0,o.createComponentVNode)(2,l.Box,{as:"img",src:e.photo}),!!e.comments&&(0,o.createComponentVNode)(2,l.Box,{children:e.comments.map((function(e){return(0,o.createComponentVNode)(2,l.BlockQuote,{children:[(0,o.createComponentVNode)(2,l.Box,{italic:!0,textColor:"white",children:["By: ",e.auth," at ",e.time]}),(0,o.createComponentVNode)(2,l.Section,{dangerouslySetInnerHTML:N(e.body),ml:2.5})]},e.index)}))})]}),(0,o.createComponentVNode)(2,l.Divider)]},e.index)}))})}},72160:function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBoard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NoticeBoard=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.allowed,s=l.items,u=void 0===s?{}:s;return(0,o.createComponentVNode)(2,c.Window,{width:425,height:176,children:(0,o.createComponentVNode)(2,c.Window.Content,{backgroundColor:"#704D25",children:u.length?u.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px 2px 0 2px"},mb:.5,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"center",grow:1,children:(0,o.createComponentVNode)(2,a.Box,{align:"center",children:e.name})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return i("examine",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("remove",{ref:e.ref})}})]})]},e.ref)})):(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"white",align:"center",children:"The notice board is empty!"})})})})}},62377:function(e,t,n){"use strict";t.__esModule=!0,t.NotificationPreferences=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NotificationPreferences=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=(n.data.ignore||[]).sort((function(e,t){var n=e.desc.toLowerCase(),o=t.desc.toLowerCase();return n<o?-1:n>o?1:0}));return(0,o.createComponentVNode)(2,c.Window,{title:"Notification Preferences",width:270,height:360,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Ghost Role Notifications",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:e.enabled?"times":"check",content:e.desc,color:e.enabled?"bad":"good",onClick:function(){return i("toggle_ignore",{key:e.key})}},e.key)}))})})})}},21455:function(e,t,n){"use strict";t.__esModule=!0,t.NtosAccessDecrypter=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(60910),i=n(26949);t.NtosAccessDecrypter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.message,u=d.running,m=d.rate,p=d.factor,h=d.regions,C=function(e){for(var t="";t.length<e;)Math.random()>p?t+="0":t+="1";return t};return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:C(45)}),(0,o.createComponentVNode)(2,i.Box,{children:C(45)}),(0,o.createComponentVNode)(2,i.Box,{children:C(45)}),(0,o.createComponentVNode)(2,i.Box,{children:C(45)}),(0,o.createComponentVNode)(2,i.Box,{children:C(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:h.length&&(0,o.createComponentVNode)(2,c.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},51460:function(e,t,n){"use strict";t.__esModule=!0,t.NtosAiRestorer=void 0;var o=n(96323),r=n(2381),a=n(33105);t.NtosAiRestorer=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:370,height:400,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.AiRestorerContent)})})}},54870:function(e,t,n){"use strict";t.__esModule=!0,t.NtosArcade=void 0;var o=n(96323),r=n(39646),a=n(31246),c=n(26949),i=n(2381);t.NtosArcade=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,c.Box,{m:1}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,c.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,c.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,c.Box,{m:1}),(0,o.createComponentVNode)(2,c.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,c.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,c.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,c.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,c.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,c.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},15930:function(e,t,n){"use strict";t.__esModule=!0,t.NtosAtmos=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(31246),l=n(26949),d=n(84200),s=n(2381);t.NtosAtmos=function(e,t){var n=(0,i.useBackend)(t),u=(n.act,n.data),m=u.AirTemp,p=u.AirPressure,h=(0,a.flow)([(0,r.filter)((function(e){return e.percentage>=.01})),(0,r.sortBy)((function(e){return-e.percentage}))])(u.AirData||[]),C=Math.max.apply(Math,[1].concat(h.map((function(e){return e.percentage}))));return(0,o.createComponentVNode)(2,s.NtosWindow,{width:300,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,s.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Temperature",children:[m,"\xb0C"]}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Pressure",children:[p," kPa"]})]})}),(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,l.LabeledList,{children:h.map((function(e){return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,d.getGasLabel)(e.name),children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.percentage,minValue:0,maxValue:C,children:(0,c.toFixed)(e.percentage,2)+"%"})},e.name)}))})})]})})}},98804:function(e,t,n){"use strict";t.__esModule=!0,t.NtosAtmosControl=void 0;var o=n(96323),r=n(2381),a=n(44634);t.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.AtmosControlContent)})})}},14763:function(e,t,n){"use strict";t.__esModule=!0,t.NtosBountyBoard=void 0;var o=n(96323),r=n(86487),a=n(2381);t.NtosBountyBoard=function(e,t){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:550,height:600,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.BountyBoardContent)})})}},70298:function(e,t,n){"use strict";t.__esModule=!0,t.NtosBountyConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.NtosBountyConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,d=n.data.bountydata,s=void 0===d?[]:d;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:750,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print Bounty List",onClick:function(){return c("Print")}}),children:(0,o.createComponentVNode)(2,a.Table,{border:!0,children:[(0,o.createComponentVNode)(2,a.Table.Row,{bold:!0,italic:!0,color:"label",fontSize:1.25,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Bounty Object"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Description"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Progress"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{p:1,textAlign:"center",children:"Claim"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{backgroundColor:1===e.priority?"rgba(252, 152, 3, 0.25)":"",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{italic:!0,textAlign:"center",p:1,children:e.description}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,textAlign:"center",children:[1===e.priority?(0,o.createComponentVNode)(2,a.Box,{children:"High Priority"}):"",e.completion_string]}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,textAlign:"center",children:e.reward_string}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,p:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",icon:1===e.claimed?"check":"",content:1===e.claimed?"Claimed":"Claim",disabled:1===e.claimed,color:1===e.can_claim?"green":"red",onClick:function(){return c("ClaimBounty",{bounty:e.bounty_ref})}})})]},e.name)}))]})})})})};var l=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.stored_cash);return(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:i,format:function(e){return(0,c.formatMoney)(e)}})," credits"]})}},47278:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCameraConsole=void 0;var o=n(96323),r=n(2381),a=n(83548);t.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.CameraConsoleContent)})})}},16624:function(e,t,n){"use strict";t.__esModule=!0,t.IDCardLogin=t.NtosCardContent=t.NtosCard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(52126);t.NtosCard=function(e,t){return(0,o.createComponentVNode)(2,c.NtosWindow,{width:500,height:670,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,p=l.authenticatedUser,h=l.regions,C=void 0===h?[]:h,f=l.access_on_card,N=void 0===f?[]:f,g=l.has_id,V=l.have_id_slot,b=l.wildcardSlots,v=l.wildcardFlags,k=l.trimAccess,_=l.accessFlags,y=l.accessFlagNames,w=l.showBasic,x=l.templates,S=void 0===x?{}:x;if(!V)return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"This program requires an ID slot in order to function"});var B=(0,r.useSharedState)(t,"selectedTab","login")[0];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"100%",children:"login"===B&&(0,o.createComponentVNode)(2,s)||"modify"===B&&(0,o.createComponentVNode)(2,u)})]}),!!g&&!!p&&(0,o.createComponentVNode)(2,a.Section,{title:"Templates",mt:1,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"question-circle",tooltip:"Will attempt to apply all access for the template to the ID card.\nDoes not use wildcards unless the template specifies them.",tooltipPosition:"left"}),children:(0,o.createComponentVNode)(2,m,{templates:S})}),(0,o.createComponentVNode)(2,a.Stack,{mt:1,children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:!!g&&!!p&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,i.AccessList,{accesses:C,selectedList:N,wildcardFlags:v,wildcardSlots:b,trimAccess:k,accessFlags:_,accessFlagNames:y,showBasic:!!w,extraButtons:(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Terminate Employment",confirmContent:"Fire Employee?",color:"bad",onClick:function(){return c("PRG_terminate")}}),accessMod:function(e,t){return c("PRG_access",{access_target:e,access_wildcard:t})}})})})})],0)};t.NtosCardContent=l;var d=function(e,t){var n=(0,r.useSharedState)(t,"selectedTab","login"),c=n[0],i=n[1];return(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{minWidth:"100%",altSelection:!0,selected:"login"===c,color:"login"===c?"green":"default",onClick:function(){return i("login")},children:"Login ID"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{minWidth:"100%",altSelection:!0,selected:"modify"===c,color:"modify"===c?"green":"default",onClick:function(){return i("modify")},children:"Target ID"})]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.authenticatedUser,d=i.has_id,s=i.have_printer,u=i.authIDName;return(0,o.createComponentVNode)(2,a.Section,{title:"Login",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s||!d,onClick:function(){return c("PRG_print")}}),(0,o.createComponentVNode)(2,a.Button,{icon:l?"sign-out-alt":"sign-in-alt",content:l?"Log Out":"Log In",color:l?"bad":"good",onClick:function(){c(l?"PRG_logout":"PRG_authenticate")}})],4),children:(0,o.createComponentVNode)(2,a.Stack,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{width:"100%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,ellipsis:!0,icon:"eject",content:u,onClick:function(){return c("PRG_ejectauthid")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"100%",mt:1,ml:0,children:["Login: ",l||"-----"]})]})})};t.IDCardLogin=s;var u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.authenticatedUser,d=i.id_rank,s=i.id_owner,u=i.has_id,m=i.id_name,p=i.id_age;return(0,o.createComponentVNode)(2,a.Section,{title:"Modify ID",children:[(0,o.createComponentVNode)(2,a.Button,{width:"100%",ellipsis:!0,icon:"eject",content:m,onClick:function(){return c("PRG_ejectmodid")}}),!(!u||!l)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack,{mt:1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:"Details:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,mr:1,ml:1,children:(0,o.createComponentVNode)(2,a.Input,{width:"100%",value:s,onInput:function(e,t){return c("PRG_edit",{name:t})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NumberInput,{value:p||0,unit:"Years",minValue:17,maxValue:85,onChange:function(e,t){c("PRG_age",{id_age:t})}})})]}),(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:"Assignment:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,ml:1,children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mt:1,value:d,onInput:function(e,t){return c("PRG_assign",{assignment:t})}})})]})],4)]})},m=function(e,t){var n=(0,r.useBackend)(t).act,c=e.templates,i=Object.keys(c);if(i.length)return(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",displayText:"Select a template...",options:i.map((function(e){return c[e]})),onSelected:function(e){return n("PRG_template",{name:e})}})})})}},70865:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCargo=void 0;var o=n(96323),r=n(97232),a=n(2381);t.NtosCargo=function(e,t){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:800,height:500,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.CargoContent)})})}},19913:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCommunicationsConsole=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(6125);t.NtosCommunicationsConsole=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.CommunicationsConsoleContent)})})}},92919:function(e,t,n){"use strict";t.__esModule=!0,t.NtosConfiguration=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosConfiguration=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,h=l.disk_size,C=l.disk_used,f=l.hardware,N=void 0===f?[]:f;return(0,o.createComponentVNode)(2,c.NtosWindow,{theme:d,width:420,height:630,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,a.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"File System",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,minValue:0,maxValue:h,color:"good",children:[C," GQ / ",h," GQ"]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Hardware Components",children:N.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},28062:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCrewManifest=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.NtosCrewManifest=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.have_printer,u=d.manifest,m=void 0===u?{}:u;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:400,height:480,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return l("PRG_print")}}),children:(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:t,children:(0,o.createComponentVNode)(2,c.Table,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:["(",e.rank,")"]})]},e.name)}))})},t)}))(m)})})})}},83911:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCrewMonitor=void 0;var o=n(96323),r=n(2381),a=n(38544);t.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.CrewMonitorContent)})})}},82858:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCyborgRemoteMonitorContent=t.ProgressSwitch=t.NtosCyborgRemoteMonitor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosCyborgRemoteMonitor=function(e,t){return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:800,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,l)})})};var i=function(e){switch(e){case-1:return"_";case 0:return"Connecting";case 25:return"Starting Transfer";case 50:case 75:return"Downloading";case 100:return"Formatting"}};t.ProgressSwitch=i;var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=(0,r.useSharedState)(t,"tab_main",1),s=d[0],u=d[1],m=l.card,p=l.cyborgs,h=void 0===p?[]:p,C=l.DL_progress,f=l.borglog||[];return h.length?(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"robot",lineHeight:"23px",selected:1===s,onClick:function(){return u(1)},children:"Cyborgs"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"clipboard",lineHeight:"23px",selected:2===s,onClick:function(){return u(2)},children:"Stored Log File"})]})}),1===s&&(0,o.createFragment)([!m&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Certain features require an ID card login."})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Send Message",color:"blue",disabled:!m,onClick:function(){return c("messagebot",{ref:e.ref})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":e.shell_discon?"Nominal/Disconnected":"Nominal"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Condition",children:(0,o.createComponentVNode)(2,a.Box,{color:e.integ<=25?"bad":e.integ<=75?"average":"good",children:0===e.integ?"Hard Fault":e.integ<=25?"Functionality Disrupted":e.integ<=75?"Functionality Impaired":"Operational"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,a.Box,{color:e.charge<=30?"bad":e.charge<=70?"average":"good",children:"number"==typeof e.charge?e.charge+"%":"Not Found"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Model",children:e.module}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upgrades",children:e.upgrades})]})},e.ref)}))})})],0),2===s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:["Scan a cyborg to download stored logs.",(0,o.createComponentVNode)(2,a.ProgressBar,{value:C/100,children:i(C)})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,backgroundColor:"black",children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:1,color:"green",children:e},e)}))})})],4)]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cyborg units detected."})};t.NtosCyborgRemoteMonitorContent=l},96833:function(e,t,n){"use strict";t.__esModule=!0,t.NtosCyborgRemoteMonitorSyndicate=void 0;var o=n(96323),r=n(2381),a=n(82858);t.NtosCyborgRemoteMonitorSyndicate=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:800,theme:"syndicate",children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.NtosCyborgRemoteMonitorContent)})})}},6622:function(e,t,n){"use strict";t.__esModule=!0,t.NtosDigitalWarrant=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(1397);t.NtosDigitalWarrant=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),i=(a.warrantname,a.warrantcharges,a.warrantauth),d=(a.type,a.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,c.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act;n.data.allwarrants;return(0,o.createComponentVNode)(2,a.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",fluid:!0,onClick:function(){return c("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,a.Table.Row,{children:(0,o.createComponentVNode)(2,a.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",h="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,a.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return c("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:h,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:s})]})})}},68239:function(e,t,n){"use strict";t.__esModule=!0,t.NtosEmailAdministration=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(18543);t.NtosEmailAdministration=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),i=a.error,m=a.cur_title,p=a.current_account,h=(0,o.createComponentVNode)(2,l);return i?h=(0,o.createComponentVNode)(2,d):m?h=(0,o.createComponentVNode)(2,s):p&&(h=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:h})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.accounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return c("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.error;return(0,o.createComponentVNode)(2,a.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:i})},s=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,a.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return c("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{icon:"key",onClick:function(){return c("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return c("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No messages found in selected account."})})]})}},18543:function(e,t,n){"use strict";t.__esModule=!0,t.NtosEmailClientViewMessage=t.NtosEmailClient=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(97622);t.NtosEmailClient=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),i=a.PC_device_theme,s=a.error,u=a.downloading,m=a.current_account,p=(0,o.createComponentVNode)(2,C);return s?p=(0,o.createComponentVNode)(2,h,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,c.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.down_filename,d=c.down_progress,s=c.down_size,u=c.down_speed;return(0,o.createComponentVNode)(2,a.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s,"(",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.current_account,d=i.addressbook,h=i.new_message,C=i.cur_title,f=(0,o.createComponentVNode)(2,s);return d?f=(0,o.createComponentVNode)(2,m):h?f=(0,o.createComponentVNode)(2,p):C&&(f=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return c("new_message")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return c("changepassword")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return c("logout")}})],4),children:f})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,a.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return c("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return c("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return c("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return c("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",onClick:function(){return c("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"trash",onClick:function(){return c("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,h=i.cur_attachment_filename,C=i.cur_attachment_size,f=i.cur_uid;return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,a.Button,{icon:"times",onClick:function(){return c("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return c("reply",{reply:f})}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return c("delete",{"delete":f})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return c("save",{save:f})}}),p&&(0,o.createComponentVNode)(2,a.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return c("downloadattachment")}})||null,(0,o.createComponentVNode)(2,a.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return c("cancel",{cancel:f})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attachment",color:"average",children:[h," (",C,"GQ)"]})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};t.NtosEmailClientViewMessage=u;var m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.accounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"times",onClick:function(){return c("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.login,fluid:!0,onClick:function(){return c("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,a.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"share",onClick:function(){return c("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"times",onClick:function(){return c("cancel")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:l,onInput:function(e,t){return c("edit_title",{val:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onInput:function(e,t){return c("edit_recipient",{val:t})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"address-book",onClick:function(){return c("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"times",onClick:function(){return c("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return c("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return c("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,c=e.error;return(0,o.createComponentVNode)(2,a.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Return",onClick:function(){return n("reset")}}),children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:c})})},C=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,a.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:l,onInput:function(e,t){return c("edit_login",{val:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onInput:function(e,t){return c("edit_password",{val:t})}})})]}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",onClick:function(){return c("login")},children:"Log In"})]})}},95717:function(e,t,n){"use strict";t.__esModule=!0,t.NtosFileManager=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosFileManager=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.PC_device_theme,u=d.usbconnected,m=d.files,p=void 0===m?[]:m,h=d.usbfiles,C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.NtosWindow,{theme:s,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,i,{files:p,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,t){return l("PRG_renamefile",{name:e,new_name:t})},onDuplicate:function(e){return l("PRG_clone",{file:e})},onToggleSilence:function(e){return l("PRG_togglesilence",{name:e})}})}),u&&(0,o.createComponentVNode)(2,a.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:C,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_usbdeletefile",{name:e})},onRename:function(e,t){return l("PRG_usbrenamefile",{name:e,new_name:t})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})]})})};var i=function(e){var t=e.files,n=void 0===t?[]:t,r=e.usbconnected,c=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onToggleSilence;return(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Size"})]}),n.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.undeletable?e.name:(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(t,n){return d(e.name,n)}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[!!e.alert_able&&(0,o.createComponentVNode)(2,a.Button,{icon:e.alert_silenced?"bell-slash":"bell",color:e.alert_silenced?"red":"default",tooltip:e.alert_silenced?"Unmute Alerts":"Mute Alerts",onClick:function(){return s(e.name)}}),!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(c?(0,o.createComponentVNode)(2,a.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,a.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)]})]},e.name)}))]})}},22573:function(e,t,n){"use strict";t.__esModule=!0,t.NtosGasAnalyzer=void 0;var o=n(96323),r=n(2381),a=n(32254);t.NtosGasAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:500,height:450,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.GasAnalyzerContent)})})}},49850:function(e,t,n){"use strict";t.__esModule=!0,t.NtosIdentificationComputer=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(60910);t.NtosIdentificationComputer=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.IdentificationComputerContent,{ntos:!0})})})}},44508:function(e,t,n){"use strict";t.__esModule=!0,t.NtosJobManagerContent=t.NtosJobManager=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosJobManager=function(e,t){return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:620,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.authed,d=i.cooldown,s=i.slots,u=void 0===s?[]:s,m=i.prioritized,p=void 0===m?[]:m;return l?(0,o.createComponentVNode)(2,a.Section,{children:[d>0&&(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,textAlign:"center",fontSize:"20px",children:["On Cooldown: ",d,"s"]})}),(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Prioritized"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Slots"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,content:e.title,disabled:e.total<=0,checked:e.total>0&&p.includes(e.title),onClick:function(){return c("PRG_priority",{target:e.title})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[e.current," / ",e.total]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"Open",disabled:!e.status_open,onClick:function(){return c("PRG_open_job",{target:e.title})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Close",disabled:!e.status_close,onClick:function(){return c("PRG_close_job",{target:e.title})}})]})]},e.title)}))]})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Current ID does not have access permissions to change job slots."})};t.NtosJobManagerContent=i},83448:function(e,t,n){"use strict";t.__esModule=!0,t.NtosMain=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosMain=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.device_theme,s=l.show_imprint,u=l.programs,m=void 0===u?[]:u,p=l.has_light,h=l.light_on,C=l.comp_light_color,f=l.removable_media,N=void 0===f?[]:f,g=l.cardholder,V=l.login,b=void 0===V?[]:V,v=l.proposed_login,k=void 0===v?[]:v,_=l.disk,y=l.disk_name,w=l.disk_programs,x=void 0===w?[]:w,S=l.pai;return(0,o.createComponentVNode)(2,c.NtosWindow,{title:"syndicate"===d?"Syndix Main Menu":"NtOS Main Menu",theme:d,width:400,height:500,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[Boolean(p||N.length)&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[!!p&&(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Button,{width:"144px",icon:"lightbulb",selected:h,onClick:function(){return i("PC_toggle_light")},children:["Flashlight: ",h?"ON":"OFF"]}),(0,o.createComponentVNode)(2,a.Button,{ml:1,onClick:function(){return i("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,a.ColorBox,{ml:1,color:C})]})]}),N.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",content:e,onClick:function(){return i("PC_Eject_Disk",{name:e})},disabled:!e})},e)}))]})}),!(!g||!s)&&(0,o.createComponentVNode)(2,a.Section,{title:"User Login",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",disabled:!k.IDName,onClick:function(){return i("PC_Eject_Disk",{name:"ID"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"dna",content:"Imprint ID",disabled:!k.IDName||k.IDName===b.IDName&&k.IDJob===b.IDJob,onClick:function(){return i("PC_Imprint_ID",{name:"ID"})}})],4),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:["ID Name: ",b.IDName," (",k.IDName,")"]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:["Assignment: ",b.IDJob," (",k.IDJob,")"]})]})}),!!S&&(0,o.createComponentVNode)(2,a.Section,{title:"pAI",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",color:"transparent",content:"Eject pAI",onClick:function(){return i("PC_Pai_Interact",{option:"eject"})}})})}),(0,o.createComponentVNode)(2,a.Table.Row,{children:(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"cat",color:"transparent",content:"Configure pAI",onClick:function(){return i("PC_Pai_Interact",{option:"interact"})}})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,a.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:e.alert?"yellow":"transparent",icon:e.icon,content:e.desc,onClick:function(){return i("PC_runprogram",{name:e.name,is_disk:!1})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return i("PC_killprogram",{name:e.name})}})})]},e.name)}))})}),!!_&&(0,o.createComponentVNode)(2,a.Section,{title:y?y.substring(0,y.length-5):"No Job Disk Inserted",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",disabled:!y,onClick:function(){return i("PC_Eject_Disk",{name:"remove_disk"})}}),children:(0,o.createComponentVNode)(2,a.Table,{children:x.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:e.alert?"yellow":"transparent",icon:e.icon,content:e.desc,onClick:function(){return i("PC_runprogram",{name:e.name,is_disk:!0})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return i("PC_killprogram",{name:e.name})}})})]},e.name)}))})})]})})}},28679:function(e,t,n){"use strict";t.__esModule=!0,t.NtosMessenger=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data.owner;return(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{align:"baseline",vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{ml:-2,children:(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{color:"red",name:"address-card",size:10})})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",children:"Please imprint an ID to continue."})]})})})})};t.NtosMessenger=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.owner,u=d.messages,m=void 0===u?[]:u,p=d.ringer_status,h=d.sending_and_receiving,C=d.messengers,f=void 0===C?[]:C,N=d.viewing_messages,g=d.sortByJob,V=d.canSpam,b=d.isSilicon,v=d.photo,k=d.virus_attach,_=d.sending_virus;return N?(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:800,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l("PDA_viewMessages")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Clear Messages",onClick:function(){return l("PDA_clearMessages")}})]}),m.map((function(e){return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:[(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"left",children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,opacity:.5,children:e.outgoing?"(OUTGOING)":"(INCOMING)"}),e.outgoing?(0,o.createComponentVNode)(2,a.Box,{bold:!0,children:e.name+" ("+e.job+")"}):(0,o.createComponentVNode)(2,a.Button,{transparent:!0,content:e.name+" ("+e.job+")",onClick:function(){return l("PDA_sendMessage",{name:e.name,job:e.job,ref:e.ref})}})]}),(0,o.createComponentVNode)(2,a.Section,{mt:-1,children:[(0,o.createComponentVNode)(2,a.Box,{italic:!0,children:e.contents}),!!e.photo&&(0,o.createComponentVNode)(2,a.Box,{as:"img",src:e.photo})]})]},e)}))]})})}):(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:800,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"address-card",mr:1}),"SpaceMessenger V6.4.7"]}),(0,o.createComponentVNode)(2,a.Box,{italic:!0,opacity:.3,children:"Bringing you spy-proof communications since 2467."})]})}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"bell",content:p?"Ringer: On":"Ringer: Off",onClick:function(){return l("PDA_ringer_status")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"address-card",content:h?"Send / Receive: On":"Send / Receive: Off",onClick:function(){return l("PDA_sAndR")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",content:"Set Ringtone",onClick:function(){return l("PDA_ringSet")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"View Messages",onClick:function(){return l("PDA_viewMessages")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sort",content:"Sort by: "+(g?"Job":"Name"),onClick:function(){return l("PDA_changeSortStyle")}}),!!k&&(0,o.createComponentVNode)(2,a.Button,{icon:"bug",color:"bad",content:"Attach Virus: "+(_?"Yes":"No"),onClick:function(){return l("PDA_toggleVirus")}})]})})}),!!v&&(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:[(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"camera",mr:1}),"Current Photo"]}),(0,o.createComponentVNode)(2,a.Section,{align:"center",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return l("PDA_clearPhoto")},children:(0,o.createComponentVNode)(2,a.Box,{mt:1,as:"img",src:v||null})})})]}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"address-card",mr:1}),"Detected Messengers"]})}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return l("PDA_sendMessage",{name:e.name,job:e.job,ref:e.ref})},children:[e.name," (",e.job,")"]},e.ref)}))}),!!V&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:1,content:"Send to all...",onClick:function(){return l("PDA_sendEveryone")}})]})}),!s&&!b&&(0,o.createComponentVNode)(2,i)]})})}},27463:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetChat=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data.owner;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{align:"baseline",vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{ml:-2,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{color:"green",name:"grin-beam",size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-8,children:(0,o.createComponentVNode)(2,a.Icon,{name:"comment-dots",size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{ml:-1,children:(0,o.createComponentVNode)(2,a.Icon,{color:"green",name:"smile",size:10})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",children:"Click a channel to start chatting!"}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"15px",children:"(If you're new, you may wannaa set your name in the bottom left!)"})]})})};t.NtosNetChat=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.title,u=d.can_admin,m=d.adminmode,p=d.authed,h=d.username,C=d.active_channel,f=d.is_operator,N=d.strong,g=d.selfref,V=d.all_channels,b=void 0===V?[]:V,v=d.clients,k=void 0===v?[]:v,_=d.messages,y=void 0===_?[]:_,w=null!==C,x=p||m,S=k.sort((function(e,t){return e.operator?-1:t.operator?1:t.status-e.status})),B=function(e){if(e.operator)return"green";switch(e.status){case 2:return"white";case 1:return"yellow";case 0:default:return"label"}},I=k.find((function(e){return e.ref===g}));return(0,o.createComponentVNode)(2,c.NtosWindow,{width:1e3,height:675,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,t){return l("PRG_newchannel",{new_channel_name:t})}}),b.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:e.chan,selected:e.id===C,color:"transparent",onClick:function(){return l("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"Username:"}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,mt:1,content:h+"...",currentValue:h,onCommit:function(e,t){return l("PRG_changename",{new_name:t})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(m?"ON":"OFF"),color:m?"bad":"good",onClick:function(){return l("PRG_toggleadmin")}})]})]})})}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:4,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:w&&(x?y.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))||(0,o.createComponentVNode)(2,i)})}),!!w&&(0,o.createComponentVNode)(2,a.Input,{backgroundColor:I&&I.muted&&"red",height:"22px",placeholder:I&&I.muted?"You are muted!":"Message "+s,fluid:!0,selfClear:!0,mt:1,onEnter:function(e,t){return l("PRG_speak",{message:t})}})]})}),!!w&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:2,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:S.map((function(e){return(0,o.createComponentVNode)(2,a.Stack,{height:"18px",fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,color:B(e),children:e.name}),e!==I&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:null==I?void 0:I.muted,compact:!0,icon:"bullhorn",tooltip:null!=I&&I.muted?"You are muted!":"Ping",tooltipPosition:"left",onClick:function(){return l("PRG_ping_user",{ref:e.ref})}})}),!!f&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:e.muted?"volume-mute":"volume-up",color:e.muted?"red":"green",tooltip:e.muted?"Unmute this User":"Mute this User",tooltipPosition:"left",onClick:function(){return l("PRG_mute_user",{ref:e.ref})}})})],0)]},e.name)}))})})}),(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mb:"8px",children:["Settings for ",s,":"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[!(!w||!x)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,t){return l("PRG_savelog",{log_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return l("PRG_leavechannel")}})],4),!(!f||!p)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,disabled:N,content:"Delete Channel",onClick:function(){return l("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,disabled:N,content:"Rename Channel...",onCommit:function(e,t){return l("PRG_renamechannel",{new_name:t})}}),(0,o.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,t){return l("PRG_setpassword",{new_password:t})}})],4)]})]})]})})],4)]})})})}},47184:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDosContent=t.NtosNetDos=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosNetDos=function(e,t){return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,h=i.capacity,C=i.error;if(C)return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:C}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return c("PRG_reset")}})],4);var f=function(e){for(var t="",n=p/h;t.length<e;)Math.random()>n?t+="0":t+="1";return t};return u?(0,o.createComponentVNode)(2,a.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,a.Box,{children:f(45)}),(0,o.createComponentVNode)(2,a.Box,{children:f(45)}),(0,o.createComponentVNode)(2,a.Box,{children:f(45)}),(0,o.createComponentVNode)(2,a.Box,{children:f(45)}),(0,o.createComponentVNode)(2,a.Box,{children:f(45)})]}):(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.id,selected:s===e.id,onClick:function(){return c("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return c("PRG_execute")}})]})};t.NtosNetDosContent=i},97718:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetDownloader=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(32416),l=n(1397),d=n(2381);t.NtosNetDownloader=function(e,t){var n=(0,a.useBackend)(t),u=n.act,m=n.data,p=m.PC_device_theme,h=m.disk_size,C=m.disk_used,f=m.downloadcompletion,N=m.downloading,g=m.downloadname,V=m.downloadsize,b=m.error,v=m.emagged,k=m.categories,_=m.programs,y=["All"].concat(k),w=(0,r.toFixed)(100*(0,r.scale)(f,0,V)),x=(0,a.useLocalState)(t,"category",y[0]),S=x[0],B=x[1],I=(0,i.flow)([S!==y[0]&&(0,l.filter)((function(e){return e.category===S})),!v&&"ntos"===p&&(0,l.filter)((function(e){return 1===e.verifiedsource})),(0,l.sortBy)((function(e){return-e.compatible}),(function(e){return e.filedesc}))])(_),L=N?h-(0,r.toFixed)(C+f):h-C;return(0,o.createComponentVNode)(2,d.NtosWindow,{theme:p,width:600,height:600,children:(0,o.createComponentVNode)(2,d.NtosWindow.Content,{scrollable:!0,children:[!!b&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[(0,o.createComponentVNode)(2,c.Box,{mb:1,children:b}),(0,o.createComponentVNode)(2,c.Button,{content:"Reset",onClick:function(){return u("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hard drive",buttons:!!N&&(0,o.createComponentVNode)(2,c.Button,{icon:"spinner",iconSpin:1,tooltipPosition:"left",tooltip:!!N&&"Download: "+g+".prg ("+w+"%)"})||!!g&&(0,o.createComponentVNode)(2,c.Button,{color:"good",icon:"download",tooltipPosition:"left",tooltip:g+".prg downloaded"}),children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N?C+f:C,minValue:0,maxValue:h,children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"left",children:L+" GQ free of "+h+" GQ"})})})})}),(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{minWidth:"105px",shrink:0,basis:0,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:y.map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:e===S,onClick:function(){return B(e)},children:e},e)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,basis:0,children:null==I?void 0:I.map((function(e){return(0,o.createComponentVNode)(2,s,{program:e},e.filename)}))})]})]})})};var s=function(e,t){var n=e.program,r=(0,a.useBackend)(t),i=r.act,l=r.data,d=l.PC_device_theme,s=l.disk_size,u=l.disk_used,m=l.downloading,p=l.downloadname,h=l.downloadcompletion,C=s-u;return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Stack,{align:"baseline",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,blod:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:n.icon,mr:1}),n.filedesc]}),(0,o.createComponentVNode)(2,c.Stack.Item,{shrink:0,width:"48px",textAlign:"right",color:"label",nowrap:!0,children:[n.size," GQ"]}),(0,o.createComponentVNode)(2,c.Stack.Item,{shrink:0,width:"134px",textAlign:"right",children:m&&n.filename===p&&(0,o.createComponentVNode)(2,c.ProgressBar,{width:"101px",height:"23px",color:"good",minValue:0,maxValue:n.size,value:h})||!n.installed&&n.compatible&&n.access&&n.size<C&&(0,o.createComponentVNode)(2,c.Button,{bold:!0,icon:"download",content:"Download",disabled:m,tooltipPosition:"left",tooltip:!!m&&"Awaiting download completion...",onClick:function(){return i("PRG_downloadfile",{filename:n.filename})}})||(0,o.createComponentVNode)(2,c.Button,{bold:!0,icon:n.installed?"check":"times",color:n.installed?"good":n.compatible?"grey":"bad",content:n.installed?"Installed":n.compatible?n.access?"No Space":"No Access":"Incompatible"})})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,color:"label",children:n.fileinfo}),!n.verifiedsource&&"ntos"===d&&(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,mb:0,danger:!0,fontSize:"12px",children:"Unverified source. Please note that Nanotrasen does not recommend download and usage of software from non-official servers."})]})}},49911:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetMonitor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosNetMonitor=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),s=(0,r.useSharedState)(t,"tab_main",1),u=s[0],m=s[1],p=d.ntnetrelays,h=d.ntnetstatus,C=d.config_softwaredownload,f=d.config_peertopeer,N=d.config_communication,g=d.config_systemcontrol,V=d.idsalarm,b=d.idsstatus,v=d.ntnetmaxlogs,k=d.maxlogs,_=d.minlogs,y=d.ntnetlogs,w=void 0===y?[]:y,x=d.tablets,S=void 0===x?[]:x;return(0,o.createComponentVNode)(2,c.NtosWindow,{children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"network-wired",lineHeight:"23px",selected:1===u,onClick:function(){return m(1)},children:"NtNet"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"tablet",lineHeight:"23px",selected:2===u,onClick:function(){return m(2)},children:["Tablets (",S.length,")"]})]})}),1===u&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i,{ntnetrelays:p,ntnetstatus:h,config_softwaredownload:C,config_peertopeer:f,config_communication:N,config_systemcontrol:g,idsalarm:V,idsstatus:b,ntnetmaxlogs:v,maxlogs:k,minlogs:_,ntnetlogs:w})}),2===u&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l,{tablets:S})})]})})};var i=function(e,t){var n=e.ntnetrelays,c=e.ntnetstatus,i=e.config_softwaredownload,l=e.config_peertopeer,d=e.config_communication,s=e.config_systemcontrol,u=e.idsalarm,m=e.idsstatus,p=e.ntnetmaxlogs,h=e.maxlogs,C=e.minlogs,f=e.ntnetlogs,N=void 0===f?[]:f,g=(0,r.useBackend)(t),V=g.act;g.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return V("toggleWireless")}}),children:n?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:n})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){return V("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){return V("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return V("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return V("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return V("toggleIDS")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return V("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,a.NumberInput,{value:p,minValue:C,maxValue:h,width:"39px",onChange:function(e,t){return V("updatemaxlogs",{new_number:t})}})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return V("purgelogs")}}),children:N.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})},l=function(e,t){var n=e.tablets,c=(0,r.useBackend)(t),i=c.act;c.data;return n.length?(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment",mr:1}),"Active Tablets"]})}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:e.enabled_spam?"unlock":"lock",color:e.enabled_spam?"good":"default",content:e.enabled_spam?"Restrict Mass PDA":"Allow Mass PDA",onClick:function(){return i("toggle_mass_pda",{ref:e.ref})}})},e.ref)}))})})})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No tablets detected."})}},12089:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNetTransfer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosNetTransfer=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),m=a.error,p=a.downloading,h=a.uploading,C=a.upload_filelist,f=(0,o.createComponentVNode)(2,u);return m?f=(0,o.createComponentVNode)(2,i):p?f=(0,o.createComponentVNode)(2,l):h?f=(0,o.createComponentVNode)(2,d):C.length&&(f=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,c.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:f})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.error;return(0,o.createComponentVNode)(2,a.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return c("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,a.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return c("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,a.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return c("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){return c("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.upload_filelist;return(0,o.createComponentVNode)(2,a.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return c("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return c("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,a.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"upload",onClick:function(){return c("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.servers;return(0,o.createComponentVNode)(2,a.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"upload",onClick:function(){return c("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,a.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,a.Button,{icon:"download",onClick:function(){return c("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No upload servers found."})})}},44391:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNewsBrowser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(39646);t.NtosNewsBrowser=function(e,t){var n=(0,r.useBackend)(t),i=n.act,u=n.data,m=u.article,p=u.download,h=u.message,C=(0,o.createComponentVNode)(2,d);return m?C=(0,o.createComponentVNode)(2,l):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,c.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[h," ",(0,o.createComponentVNode)(2,a.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),C]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.article;if(!l)return(0,o.createComponentVNode)(2,a.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,a.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,a.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,a.Button.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,a.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,a.Button,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},73547:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNewscaster=void 0;var o=n(96323),r=n(2381),a=n(76225);t.NtosNewscaster=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Newscaster)})})}},70737:function(e,t,n){"use strict";t.__esModule=!0,t.NtosNotepad=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(26949);t.NtosNotepad=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data.note;return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:800,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,direction:"column",justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{grow:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:l})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Section,{fill:!0,children:(0,o.createComponentVNode)(2,c.Input,{value:l,fluid:!0,onEnter:function(e,t){return i("UpdateNote",{newnote:t})}})})})]})})})}},77846:function(e,t,n){"use strict";t.__esModule=!0,t.NtosOvermapNavigation=void 0;var o=n(96323),r=n(2381),a=n(38419);t.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.OvermapNavigationContent)})})}},70941:function(e,t,n){"use strict";t.__esModule=!0,t.NtosPhysScanner=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949),i=n(81890);t.NtosPhysScanner=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.set_mode,u=d.last_record,m=d.available_modes,p=void 0===m?[]:m,h={__html:(0,i.sanitizeText)(u)};return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:350,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:"Tap something (right-click) with your tablet to use the physical scanner."}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:["SELECTED MODE ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")]}),(0,o.createComponentVNode)(2,c.Dropdown,{options:p,selected:s,onSelected:function(e){return l("selectMode",{newMode:e})}})]}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:["LAST SAVED RESULT",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br")]}),(0,o.createComponentVNode)(2,c.Box,{style:{"white-space":"pre-line"},dangerouslySetInnerHTML:h})]})]})})}},43517:function(e,t,n){"use strict";t.__esModule=!0,t.NtosPortraitPrinter=void 0;var o=n(96323),r=n(39646),a=n(31246),c=n(26949),i=n(2381);t.NtosPortraitPrinter=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=(0,a.useLocalState)(t,"listIndex",0),u=s[0],m=s[1],p=d.paintings,h=d.search_string,C=d.search_mode,f=!!p.length,N=f&&p[u].title,g=f&&"By "+p[u].creator,V=f&&"paintings_"+p[u].md5,b=f&&p[u].ratio;return(0,o.createComponentVNode)(2,i.NtosWindow,{title:"Art Galaxy",width:400,height:446,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Search",children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search Paintings...",value:h,onChange:function(e,t){l("search",{to_search:t}),m(0)}}),(0,o.createComponentVNode)(2,c.Button,{content:C,onClick:function(){l("change_search_mode"),h&&m(0)}})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:2,children:(0,o.createComponentVNode)(2,c.Section,{fill:!0,children:(0,o.createComponentVNode)(2,c.Stack,{height:"100%",align:"center",justify:"center",direction:"column",children:f?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(V),height:"128px",width:Math.round(128*b)+"px",style:{"vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{className:"Section__titleText",children:N}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:g})],4):(0,o.createComponentVNode)(2,c.Stack.Item,{className:"Section__titleText",children:"No paintings found."})})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:[(0,o.createComponentVNode)(2,c.Stack,{children:(0,o.createComponentVNode)(2,c.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Section,{height:"100%",children:(0,o.createComponentVNode)(2,c.Stack,{justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{icon:"angle-double-left",disabled:0===u,onClick:function(){return m(0)}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Button,{disabled:0===u,icon:"chevron-left",onClick:function(){return m(u-1)}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Print Portrait",disabled:!f,onClick:function(){return l("select",{selected:p[u].ref})}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{icon:"chevron-right",disabled:u>=p.length-1,onClick:function(){return m(u+1)}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"angle-double-right",disabled:u>=p.length-1,onClick:function(){return m(p.length-1)}})})]})})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{mt:1,mb:-1,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Printing a canvas costs 10 paper from the printer installed in your machine."})})]})]})})})}},84314:function(e,t,n){"use strict";t.__esModule=!0,t.NtosPowerMonitor=void 0;var o=n(96323),r=n(2381),a=n(52484);t.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.PowerMonitorContent)})})}},78515:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRCON=void 0;var o=n(96323),r=n(2381),a=n(39549);t.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.RCONContent)})})}},6611:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRadarContent=t.NtosRadar=void 0;var o=n(96323),r=n(1060),a=n(39646),c=n(31246),i=n(26949),l=n(2381);t.NtosRadar=function(e,t){return(0,o.createComponentVNode)(2,l.NtosWindow,{width:800,height:600,theme:"ntos",children:(0,o.createComponentVNode)(2,d,{sig_err:"Signal Lost"})})};var d=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=s.selected,m=s.object,p=void 0===m?[]:m,h=s.target,C=void 0===h?[]:h,f=s.scanning,N=e.sig_err;return(0,o.createComponentVNode)(2,i.Flex,{direction:"row",hight:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{position:"relative",width:20.5,hight:"100%",children:(0,o.createComponentVNode)(2,l.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"redo-alt",content:f?"Scanning...":"Scan",color:"blue",disabled:f,onClick:function(){return d("scan")}}),!p.length&&!f&&(0,o.createVNode)(1,"div",null,"No trackable signals found",16),!f&&p.map((function(e){return(0,o.createVNode)(1,"div",(0,r.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",e.ref===u&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){d("selecttarget",{ref:e.ref})}},e.dev)}))]})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{style:{"background-image":'url("'+(0,a.resolveAsset)("ntosradarbackground.png")+'")',"background-position":"center","background-repeat":"no-repeat",top:"20px"},position:"relative",m:1.5,width:45,height:45,children:0===Object.keys(C).length?!!u&&(0,o.createComponentVNode)(2,i.NoticeBox,{position:"absolute",top:20.6,left:1.35,width:42,fontSize:"30px",textAlign:"center",children:N}):!!C.userot&&(0,o.createComponentVNode)(2,i.Box,{as:"img",src:(0,a.resolveAsset)(C.arrowstyle),position:"absolute",top:"20px",left:"243px",style:{transform:"rotate("+C.rot+"deg)"}})||(0,o.createComponentVNode)(2,i.Icon,{name:C.pointer,position:"absolute",size:2,color:C.color,top:10*C.locy+19+"px",left:10*C.locx+16+"px"})})]})};t.NtosRadarContent=d},67533:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRadarSyndicate=void 0;var o=n(96323),r=n(2381),a=n(6611);t.NtosRadarSyndicate=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosRadarContent,{sig_err:"Out of Range"})})}},15004:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRecords=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.NtosRecords=function(e,t){var n=(0,a.useBackend)(t),l=(n.act,n.data),d=(0,a.useLocalState)(t,"search",""),s=d[0],u=d[1],m=l.mode,p=l.records,h=(0,r.createSearch)(s);return(0,o.createComponentVNode)(2,i.NtosWindow,{width:600,height:800,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{textAlign:"center",children:"NANOTRASEN PERSONNEL RECORDS (CLASSIFIED)"}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Input,{placeholder:"Filter results...",value:s,fluid:!0,textAlign:"center",onInput:function(e,t){return u(t)}})}),"security"===m&&p.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{hidden:!(""===s||h(e.name+" "+e.rank+" "+e.species+" "+e.gender+" "+e.age+" "+e.fingerprint)),children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user",mr:1}),e.name]}),(0,o.createVNode)(1,"br"),"Rank: ",e.rank,(0,o.createVNode)(1,"br"),"Species: ",e.species,(0,o.createVNode)(1,"br"),"Gender: ",e.gender,(0,o.createVNode)(1,"br"),"Age: ",e.age,(0,o.createVNode)(1,"br"),"Fingerprint Hash: ",e.fingerprint,(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"Criminal Status: ",e.wanted||"DELETED"]},e.id)})),"medical"===m&&p.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{hidden:!(""===s||h(e.name+" "+e.bloodtype+" "+e.m_stat+" "+e.p_stat)),children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user",mr:1}),e.name]}),(0,o.createVNode)(1,"br"),"Bloodtype: ",e.bloodtype,(0,o.createVNode)(1,"br"),"Minor Disabilities: ",e.mi_dis,(0,o.createVNode)(1,"br"),"Major Disabilities: ",e.ma_dis,(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"Notes: ",e.notes,(0,o.createVNode)(1,"br"),"Notes Contd: ",e.cnotes]},e.id)}))]})})}},89918:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRequestKiosk=void 0;var o=n(96323),r=n(43850),a=n(2381);t.NtosRequestKiosk=function(e,t){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:550,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.RequestKioskContent)})})}},84764:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRevelation=void 0;var o=n(96323),r=n(26949),a=n(31246),c=n(2381);t.NtosRevelation=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,t){return i("PRG_obfuscate",{new_name:t})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},31477:function(e,t,n){"use strict";t.__esModule=!0,t.DroneInfo=t.RobotInfo=t.NtosRoboControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosRoboControl=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=(0,r.useSharedState)(t,"tab_main",1),m=u[0],p=u[1],h=s.bots,C=s.drones,f=s.id_owner,N=(s.has_id,s.droneaccess),g=s.dronepingtypes;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:550,height:550,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Robot Control Console",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Card",children:f}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bots In Range",children:s.botcount})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"robot",lineHeight:"23px",selected:1===m,onClick:function(){return p(1)},children:"Bots"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"hammer",lineHeight:"23px",selected:2===m,onClick:function(){return p(2)},children:"Drones"})]})}),1===m&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bots in range",children:s.botcount})})}),null==h?void 0:h.map((function(e){return(0,o.createComponentVNode)(2,i,{robot:e},e.bot_ref)}))]}),2===m&&(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"address-card",tooltip:"Grant/Remove Drone access to interact with machines and wires that would otherwise be deemed dangerous.",content:N?"Grant Drone Access":"Revoke Drone Access",color:N?"good":"bad",onClick:function(){return d("changedroneaccess")}}),(0,o.createComponentVNode)(2,a.Dropdown,{tooltip:"Drone pings",width:"100%",displayText:"Drone pings",options:g,onSelected:function(e){return d("ping_drones",{ping_type:e})}})]}),null==C?void 0:C.map((function(e){return(0,o.createComponentVNode)(2,l,{drone:e},e.drone_ref)}))]})]})})};var i=function(e,t){var n=e.robot,c=(0,r.useBackend)(t),i=c.act,l=c.data,d=l.mules||[],s=!!n.mule_check&&function(e,t){return null==e?void 0:e.find((function(e){return e.mule_ref===t}))}(d,n.bot_ref),u=1===n.mule_check?"rgba(110, 75, 14, 1)":"rgba(74, 59, 140, 1)";return(0,o.createComponentVNode)(2,a.Section,{title:n.name,style:{border:"4px solid "+u},buttons:s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"play",tooltip:"Go to Destination.",onClick:function(){return i("go",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pause",tooltip:"Stop Moving.",onClick:function(){return i("stop",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"home",tooltip:"Travel Home.",tooltipPosition:"bottom-start",onClick:function(){return i("home",{robot:s.mule_ref})}})],4),children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Model",children:n.model}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:n.locat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:n.mode}),s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loaded Cargo",children:l.load||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home",children:s.home}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destination",children:s.dest||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:s.power,minValue:0,maxValue:100,ranges:{good:[60,Infinity],average:[20,60],bad:[-Infinity,20]}})})],4)]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{width:"150px",children:[s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Set Destination",onClick:function(){return i("destination",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Set ID",onClick:function(){return i("setid",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Set Home",onClick:function(){return i("sethome",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Unload Cargo",onClick:function(){return i("unload",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,content:"Auto Return",checked:s.autoReturn,onClick:function(){return i("autoret",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,content:"Auto Pickup",checked:s.autoPickup,onClick:function(){return i("autopick",{robot:s.mule_ref})}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,content:"Delivery Report",checked:s.reportDelivery,onClick:function(){return i("report",{robot:s.mule_ref})}})],4),!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Stop Patrol",onClick:function(){return i("patroloff",{robot:n.bot_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Start Patrol",onClick:function(){return i("patrolon",{robot:n.bot_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Summon",onClick:function(){return i("summon",{robot:n.bot_ref})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Eject PAi",onClick:function(){return i("ejectpai",{robot:n.bot_ref})}})],4)]})]})})};t.RobotInfo=i;var l=function(e,t){var n=e.drone,c=(0,r.useBackend)(t);c.act,c.data;return(0,o.createComponentVNode)(2,a.Section,{title:n.name,style:{border:"4px solid rgba(74, 59, 140, 1)"},children:(0,o.createComponentVNode)(2,a.Stack,{children:(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Box,{color:n.status?"bad":"good",children:n.status?"Not Responding":"Nominal"})})})})})})};t.DroneInfo=l},86890:function(e,t,n){"use strict";t.__esModule=!0,t.NtosRobotactContent=t.NtosRobotact=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosRobotact=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.PC_device_theme);return(0,o.createComponentVNode)(2,c.NtosWindow,{width:800,height:600,theme:a,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useSharedState)(t,"tab_main",1),d=l[0],s=l[1],u=(0,r.useSharedState)(t,"tab_sub",1),m=u[0],p=u[1],h=i.charge,C=i.maxcharge,f=i.integrity,N=i.lampIntensity,g=i.cover,V=i.locomotion,b=i.wireModule,v=i.wireCamera,k=i.wireAI,_=i.wireLaw,y=i.sensors,w=i.printerPictures,x=i.printerToner,S=i.printerTonerMax,B=i.thrustersInstalled,I=i.thrustersStatus,L=i.selfDestructAble,T=i.name||[],A=i.designation||[],D=i.masterAI||[],M=i.Laws||[],E=i.borgLog||[],P=i.borgUpgrades||[];return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{position:"relative",mb:1,children:(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:1===d,onClick:function(){return s(1)},children:"Status"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:2===d,onClick:function(){return s(2)},children:"Logs"})]})}),1===d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"30%",children:(0,o.createComponentVNode)(2,a.Section,{title:"Configuration",fill:!0,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Unit",children:T.slice(0,17)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:A}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI",children:D.slice(0,17)})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:"content",ml:1,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:["Charge:",(0,o.createComponentVNode)(2,a.Button,{content:"Power Alert",disabled:h,onClick:function(){return c("alertPower")}}),(0,o.createComponentVNode)(2,a.ProgressBar,{value:h/C,ranges:{good:[.5,Infinity],average:[.1,.5],bad:[-Infinity,.1]},children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:h})}),"Chassis Integrity:",(0,o.createComponentVNode)(2,a.ProgressBar,{value:f,minValue:0,maxValue:100,ranges:{bad:[-Infinity,25],average:[25,75],good:[75,Infinity]}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Lamp Power",children:[(0,o.createComponentVNode)(2,a.Slider,{value:N,step:1,stepPixelSize:25,maxValue:5,minValue:1,onChange:function(e,t){return c("lampIntensity",{ref:t})}}),"Lamp power usage: ",N/2," watts"]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"50%",ml:1,children:[(0,o.createComponentVNode)(2,a.Section,{fitted:!0,children:(0,o.createComponentVNode)(2,a.Tabs,{fluid:1,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"",lineHeight:"23px",selected:1===m,onClick:function(){return p(1)},children:"Actions"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"",lineHeight:"23px",selected:2===m,onClick:function(){return p(2)},children:"Upgrades"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"",lineHeight:"23px",selected:3===m,onClick:function(){return p(3)},children:"Diagnostics"})]})}),1===m&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Cover",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Unlock",disabled:"UNLOCKED"===g,onClick:function(){return c("coverunlock")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sensor Overlay",children:(0,o.createComponentVNode)(2,a.Button,{content:y,onClick:function(){return c("toggleSensors")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Photos ("+w+")",children:[(0,o.createComponentVNode)(2,a.Button,{content:"View",disabled:!w,onClick:function(){return c("viewImage")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Print",disabled:!w,onClick:function(){return c("printImage")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Printer Toner",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:x/S})}),!!B&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toggle Thrusters",children:(0,o.createComponentVNode)(2,a.Button,{content:I,onClick:function(){return c("toggleThrusters")}})}),!!L&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Self Destruct",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"ACTIVATE",color:"red",onClick:function(){return c("selfDestruct")}})})]})}),2===m&&(0,o.createComponentVNode)(2,a.Section,{children:P.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:1,children:e},e)}))}),3===m&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"AI Connection",color:"FAULT"===k?"red":"READY"===k?"yellow":"green",children:k}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"LawSync",color:"FAULT"===_?"red":"green",children:_}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Camera",color:"FAULT"===v?"red":"DISABLED"===v?"yellow":"green",children:v}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Module Controller",color:"FAULT"===b?"red":"green",children:b}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Motor Controller",color:"FAULT"===V?"red":"DISABLED"===V?"yellow":"green",children:V}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Cover",color:"UNLOCKED"===g?"red":"green",children:g})]})})]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{height:21,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Laws",fill:!0,scrollable:!0,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"State Laws",onClick:function(){return c("lawstate")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"volume-off",onClick:function(){return c("lawchannel")}})],4),children:M.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:1,children:e},e)}))})})],4),2===d&&(0,o.createComponentVNode)(2,a.Flex.Item,{height:40,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,backgroundColor:"black",children:E.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:1,children:(0,o.createVNode)(1,"font",null,e,0,{color:"green"})},e)}))})})]})};t.NtosRobotactContent=i},79929:function(e,t,n){"use strict";t.__esModule=!0,t.NtosScipaperContent=t.NtosScipaper=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(28581),i=n(2381);t.NtosScipaper=function(e,t){return(0,o.createComponentVNode)(2,i.NtosWindow,{width:650,height:500,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.title,d=i.author,s=i.etAlia,u=i.abstract,m=i.fileList,p=void 0===m?[]:m,h=i.expList,C=void 0===h?[]:h,f=i.allowedTiers,N=void 0===f?[]:f,g=i.allowedPartners,V=void 0===g?[]:g,b=i.gains,v=i.selectedFile,k=i.selectedExperiment,_=i.tier,y=i.selectedPartner,w=i.coopIndex,x=i.fundingIndex;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Submission Form",children:(0,o.createComponentVNode)(2,a.LabeledList,{grow:!0,children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:l,onChange:function(e,t){return c("rewrite",{title:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Principal Author",children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,t){return c("rewrite",{author:t})}}),(0,o.createComponentVNode)(2,a.Button,{selected:s,onClick:function(){return c("et_alia")},children:"Multiple Authors"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Abstract",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,t){return c("rewrite",{abstract:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected File",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"35rem",options:Object.keys(p),displayText:v||"-",onSelected:function(e){return c("select_file",{selected_uid:p[e]})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,a.Tooltip,{position:"left",content:"The selected file containing experimental data for our paper. Must be present in the HDD to be accesible. Transfer files with the File Manager program.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Experiment",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"35rem",options:Object.keys(C),displayText:k||"-",onSelected:function(e){return c("select_experiment",{selected_expath:C[e]})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,a.Tooltip,{position:"left",content:"The topic we want to publish our paper on. Different topics unlock different technologies and possible partners.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Tier",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"35rem",options:N.map((function(e){return String(e)})),displayText:_?String(_):"-",onSelected:function(e){return c("select_tier",{selected_tier:Number(e)})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,a.Tooltip,{position:"left",content:"The tier we want to publish on. Higher tiers can confer better rewards but means our data will be judged more harshly.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected Partner",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"35rem",options:Object.keys(V),displayText:y||"-",onSelected:function(e){return c("select_partner",{selected_partner:V[e]})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,a.Tooltip,{position:"left",content:"Which organization to partner with. We can obtain research boosts in techs related to the partner's interests.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Expected Results",children:[(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"How much will our relation improve with the particular partner. Cooperation will be used to unlock boosts.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})," Cooperation: ",(0,o.createComponentVNode)(2,a.BlockQuote,{children:b[w-1]})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"How much grant will we be endowed with upon the publication of this paper.",children:(0,o.createComponentVNode)(2,a.Icon,{size:1.15,name:"info-circle"})})," Funding: ",(0,o.createComponentVNode)(2,a.BlockQuote,{children:b[x-1]})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",textAlign:"center",fluid:!0,onClick:function(){return c("publish")},content:"Publish Paper"})]},"rewards")],8)},d=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.publishedPapers,l=c.coopIndex,d=c.fundingIndex;return 0===i.length?(0,o.createComponentVNode)(2,a.NoticeBox,{children:" No Published Papers! "}):i.map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.title,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Topic",children:e.experimentName+" - "+e.tier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Author",children:e.author+(e.etAlia?" et al.":"")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Partner",children:e.partner}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Yield",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cooperation",children:e.gains[l-1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Funding",children:e.gains[d-1]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Abstract",children:e.abstract})]})})},String(e.experimentName+e.tier))}))},s=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.experimentInformation);return(void 0===c?[]:c).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,children:[e.description,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(e.target).map((function(t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Optimal "+e.prefix+" Amount - Tier "+String(Number(t)+1),children:e.target[t]+" "+e.suffix},t)}))})]},e.name)}))},u=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.partnersInformation,s=l.coopIndex,u=l.fundingIndex,m=l.purchaseableBoosts,p=void 0===m?[]:m,h=l.relations,C=void 0===h?[]:h,f=l.visibleNodes,N=void 0===f?[]:f;return d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,children:(0,o.createComponentVNode)(2,a.Collapsible,{title:"Relations: "+C[e.path],children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:e.flufftext}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Relations",children:C[e.path]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cooperation Bonus",children:e.multipliers[s-1]+"x"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Funding Bonus",children:e.multipliers[u-1]+"x"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accepted Experiments",children:e.acceptedExperiments.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Technology Sharing",children:(0,o.createComponentVNode)(2,a.Table,{children:e.boostedNodes.map((function(t){return(0,o.createComponentVNode)(2,c.TableRow,{children:[(0,o.createComponentVNode)(2,c.TableCell,{children:N.includes(t.id)?t.name:"Unknown Technology"}),(0,o.createComponentVNode)(2,c.TableCell,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,tooltipPosition:"left",textAlign:"center",disabled:!p[e.path].includes(t.id),content:"Purchase",tooltip:"Discount: "+t.discount,onClick:function(){return i("purchase_boost",{purchased_boost:t.id,boost_seller:e.path})}})})]},t.id)}))})})]})})},e.path)}))},m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.currentTab;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return c("change_tab",{new_tab:1})},children:"Publish Papers"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,onClick:function(){return c("change_tab",{new_tab:2})},children:"View Previous Publications"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,onClick:function(){return c("change_tab",{new_tab:3})},children:"View Available Experiments"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===i,onClick:function(){return c("change_tab",{new_tab:4})},children:"View Scientific Partners"})]},"navigation"),1===i&&(0,o.createComponentVNode)(2,l),2===i&&(0,o.createComponentVNode)(2,d),3===i&&(0,o.createComponentVNode)(2,s),4===i&&(0,o.createComponentVNode)(2,u)],0)};t.NtosScipaperContent=m},61397:function(e,t,n){"use strict";t.__esModule=!0,t.NtosSecurEye=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(83548);t.NtosSecurEye=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=(n.config,d.PC_device_theme),u=d.mapRef,m=d.activeCamera,p=(0,i.selectCameras)(d.cameras),h=(0,i.prevNextCamera)(p,m),C=h[0],f=h[1];return(0,o.createComponentVNode)(2,c.NtosWindow,{width:800,height:600,theme:s,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:[(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,i.CameraConsoleContent),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),m&&m.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",disabled:!C,onClick:function(){return l("switch_camera",{name:C})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",disabled:!f,onClick:function(){return l("switch_camera",{name:f})}})],4),(0,o.createComponentVNode)(2,a.ByondUi,{className:"CameraConsole__map",params:{id:u,type:"map"}})],4)]})})}},16852:function(e,t,n){"use strict";t.__esModule=!0,t.NtosShipping=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosShipping=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"NTOS Shipping Hub.",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Id",onClick:function(){return i("ejectid")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current User",children:l.current_user||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted Card",children:l.card_owner||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available Paper",children:l.has_printer?l.paperamt:"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Profit on Sale",children:[l.barcode_split,"%"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Shipping Options",children:[(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"id-card",tooltip:"The currently ID card will become the current user.",tooltipPosition:"right",disabled:!l.has_id_slot,onClick:function(){return i("selectid")},content:"Set Current ID"})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"print",tooltip:"Print a barcode to use on a wrapped package.",tooltipPosition:"right",disabled:!l.has_printer||!l.current_user,onClick:function(){return i("print")},content:"Print Barcode"})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"tags",tooltip:"Set how much profit you'd like on your package.",tooltipPosition:"right",onClick:function(){return i("setsplit")},content:"Set Profit Margin"})}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",content:"Reset ID",onClick:function(){return i("resetid")}})})]})]})})}},17712:function(e,t,n){"use strict";t.__esModule=!0,t.NtosShutoffMonitor=void 0;var o=n(96323),r=n(2381),a=n(99278);t.NtosShutoffMonitor=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.ShutoffMonitorContent)})})}},64555:function(e,t,n){"use strict";t.__esModule=!0,t.NtosSignaler=void 0;var o=n(96323),r=n(95360),a=n(2381);t.NtosSignaler=function(e,t){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:300,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.SignalerContent)})})}},81888:function(e,t,n){"use strict";t.__esModule=!0,t.NtosSkillTracker=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosSkillTracker=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.skills,d=void 0===l?{}:l;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:500,height:600,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Skill Tracker",children:d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Section,{level:2,title:e.name,children:[(0,o.createComponentVNode)(2,a.BlockQuote,{children:e.desc}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",collapsing:!0,children:"Level"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Level Progress"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Overall Progress"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",collapsing:!0,children:e.lvl_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.progress_percent?(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.progress_percent,ranges:{good:[.75,1]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(100*e.progress_percent)}),"%"]}):"\u2014"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.overall_percent?(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.overall_percent,ranges:{good:[.75,1]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:Math.round(100*e.overall_percent)}),"%"]}):"\u2014"})]}),!!e.reward&&(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",colspan:"3",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trophy",style:{margin:"8px"},onClick:function(){return i("PRG_reward",{skill:e.name})},children:["Contact the Professional ",e.title," Association"]})})})]})})]},t)}))})})})}},26221:function(e,t,n){"use strict";t.__esModule=!0,t.NtosStationAlertConsole=void 0;var o=n(96323),r=n(2381),a=n(21967);t.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:335,height:587,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.StationAlertConsoleContent)})})}},65476:function(e,t,n){"use strict";t.__esModule=!0,t.NtosStatus=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.NtosStatus=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.upper,s=l.lower;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:310,height:200,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onChange:function(e,t){return i("stat_update",{position:"upper",text:t})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:s,onChange:function(e,t){return i("stat_update",{position:"lower",text:t})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,onClick:function(){return i("stat_send")},content:"Update Status Displays"})]})})})}},77754:function(e,t,n){"use strict";t.__esModule=!0,t.NtosSupermatterMonitor=void 0;var o=n(96323),r=n(2381),a=n(9267);t.NtosSupermatterMonitor=function(e,t){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:350,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.SupermatterMonitorContent)})})}},37327:function(e,t,n){"use strict";t.__esModule=!0,t.NtosTechweb=void 0;var o=n(96323),r=n(90075),a=n(31246),c=(0,n(79926).createLogger)("backend");t.NtosTechweb=function(e,t){var n=(0,a.useBackend)(t),i=n.config;n.data,n.act;return c.log(i.AppTechweb),(0,o.createComponentVNode)(2,r.AppTechweb)}},7206:function(e,t,n){"use strict";t.__esModule=!0,t.NtosUAV=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosUAV=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No UAVs Paired."})})]})})}},13453:function(e,t,n){"use strict";t.__esModule=!0,t.NtosWordProcessor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.NtosWordProcessor=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),h=l.filedata;return(0,o.createComponentVNode)(2,c.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,a.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,a.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0})]}),m.map((function(e,t){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},t)}))]})})})||(0,o.createComponentVNode)(2,a.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!h,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:h}})})]})})})}},83271:function(e,t,n){"use strict";t.__esModule=!0,t.NuclearBomb=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","C"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",lineHeight:1.25,width:"55px",className:(0,r.classes)(["NuclearBomb__Button","NuclearBomb__Button--keypad","NuclearBomb__Button--"+e]),onClick:function(){return n("keypad",{digit:e})}},e)}))},e[0])}))})})};t.NuclearBomb=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,s=(d.anchored,d.disk_present,d.status1),u=d.status2;return(0,o.createComponentVNode)(2,i.Window,{width:350,height:442,theme:"retro",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"6px",className:"NuclearBomb__displayBox",children:s}),(0,o.createComponentVNode)(2,c.Flex,{mb:1.5,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Box,{className:"NuclearBomb__displayBox",children:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",fontSize:"24px",lineHeight:1,textAlign:"center",width:"43px",ml:"6px",mr:"3px",mt:"3px",className:"NuclearBomb__Button NuclearBomb__Button--keypad",onClick:function(){return r("eject_disk")}})})]}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,l)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px",children:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ARM",textAlign:"center",fontSize:"28px",lineHeight:1.1,mb:"6px",className:"NuclearBomb__Button NuclearBomb__Button--C",onClick:function(){return r("arm")}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ANCHOR",textAlign:"center",fontSize:"28px",lineHeight:1.1,className:"NuclearBomb__Button NuclearBomb__Button--E",onClick:function(){return r("anchor")}}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"#9C9987",fontSize:"80px",children:(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})}),(0,o.createComponentVNode)(2,c.Box,{height:"80px",className:"NuclearBomb__NTIcon"})]})})]})]})})})}},12660:function(e,t,n){"use strict";t.__esModule=!0,t.NumberInputModal=void 0;var o=n(96323),r=n(55631),a=n(34277),c=n(57890),i=n(31246),l=n(26949),d=n(2381);t.NumberInputModal=function(e,t){var n=(0,i.useBackend)(t),u=n.act,m=n.data,p=m.init_value,h=m.large_buttons,C=m.message,f=void 0===C?"":C,N=m.timeout,g=m.title,V=(0,i.useLocalState)(t,"input",p),b=V[0],v=V[1],k=140+(f.length>30?Math.ceil(f.length/3):0)+(f.length&&h?5:0);return(0,o.createComponentVNode)(2,d.Window,{title:g,width:270,height:k,children:[N&&(0,o.createComponentVNode)(2,r.Loader,{value:N}),(0,o.createComponentVNode)(2,d.Window.Content,{onKeyDown:function(e){var t=window.event?e.which:e.keyCode;t===c.KEY_ENTER&&u("submit",{entry:b}),t===c.KEY_ESCAPE&&u("cancel")},children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.Box,{color:"label",children:f})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,s,{input:b,onClick:function(e){e!==b&&v(e)},onChange:function(e){e!==b&&v(e)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,a.InputButtons,{input:b})})]})})})]})};var s=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data,c=a.min_value,d=a.max_value,s=a.init_value,u=e.input,m=e.onClick,p=e.onChange;return(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:u===c,icon:"angle-double-left",onClick:function(){return m(c)},tooltip:c?"Min ("+c+")":"Min"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,minValue:c,maxValue:d,onChange:function(e,t){return p(t)},onEnter:function(e,t){return r("submit",{entry:t})},value:u})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:u===d,icon:"angle-double-right",onClick:function(){return m(d)},tooltip:d?"Max ("+d+")":"Max"})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{disabled:u===s,icon:"redo",onClick:function(){return m(s)},tooltip:s?"Reset ("+s+")":"Reset"})})]})}},82685:function(e,t,n){"use strict";t.__esModule=!0,t.OmniFilter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};t.OmniFilter=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,h=d.last_flow_rate;return(0,o.createComponentVNode)(2,c.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,a.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},5170:function(e,t,n){"use strict";t.__esModule=!0,t.OmniMixer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};t.OmniMixer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,h=d.last_flow_rate;return(0,o.createComponentVNode)(2,c.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,t){var n=(0,r.useBackend)(t).act,c=e.port,l=e.config;return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:c.dir+" Port"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,a.Button,{content:"IN",selected:c.input,disabled:c.output,icon:"compress-arrows-alt",onClick:function(){return n("switch_mode",{mode:c.input?"none":"in",dir:c.dir})}}):i(c)}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,a.Button,{content:"OUT",selected:c.output,icon:"expand-arrows-alt",onClick:function(){return n("switch_mode",{mode:"out",dir:c.dir})}}):100*c.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,a.Button,{width:"100%",icon:"wrench",disabled:!c.input,content:c.input?100*c.concentration+" %":"-",onClick:function(){return n("switch_con",{dir:c.dir})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{icon:c.con_lock?"lock":"lock-open",disabled:!c.input,selected:c.con_lock,content:c.f_type||"None",onClick:function(){return n("switch_conlock",{dir:c.dir})}})})],4):null]})}},86256:function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=[{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"},{label:"Toxin",type:"toxLoss"},{label:"Respiratory",type:"oxyLoss"}];t.OperatingComputer=function(e,t){var n=(0,r.useBackend)(t).act,i=(0,r.useSharedState)(t,"tab",1),s=i[0],u=i[1];return(0,o.createComponentVNode)(2,c.Window,{width:350,height:470,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Patient State"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Surgery Procedures"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{onClick:function(){return n("open_experiments")},children:"Experiments"})]}),1===s&&(0,o.createComponentVNode)(2,l),2===s&&(0,o.createComponentVNode)(2,d)]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.table,d=c.procedures,s=void 0===d?[]:d,u=c.patient,m=void 0===u?{}:u;return l?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Patient State",children:m&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:m.statstate,children:m.stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Type",children:m.blood_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m.health,minValue:m.minHealth,maxValue:m.maxHealth,color:m.health>=0?"good":"average",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m.health})})}),i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m[e.type]/m.maxHealth,color:"bad",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m[e.type]})})},e.type)}))]})||"No Patient Detected"}),0===s.length&&(0,o.createComponentVNode)(2,a.Section,{children:"No Active Procedures"}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Next Step",children:[e.next_step,e.chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.chems_needed],0)]}),!!c.alternative_step&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Alternative Step",children:[e.alternative_step,e.alt_chems_needed&&(0,o.createFragment)([(0,o.createVNode)(1,"b",null,"Required Chemicals:",16),(0,o.createVNode)(1,"br"),e.alt_chems_needed],0)]})]})},e.name)}))],0):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Table Detected"})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.surgeries,l=void 0===i?[]:i;return(0,o.createComponentVNode)(2,a.Section,{title:"Advanced Surgery Procedures",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Sync Research Database",onClick:function(){return c("sync")}}),l.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,children:e.desc},e.name)}))]})}},64427:function(e,t,n){"use strict";t.__esModule=!0,t.Orbit=void 0;var o=n(96323),r=n(21118),a=n(39646),c=n(31246),i=n(26949),l=n(2381);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var u=/ \(([0-9]+)\)$/,m=function(e){return(0,r.createSearch)(e,(function(e){return e.name}))},p=function(e,t){return e<t?-1:e>t},h=function(e,t){var n=e.name,o=t.name,r=n.match(u),a=o.match(u);return r&&a&&n.replace(u,"")===o.replace(u,"")?parseInt(r[1],10)-parseInt(a[1],10):p(n,o)},C=function(e,t){var n=(0,c.useBackend)(t).act,r=e.searchText,a=e.source,l=e.title,d=e.autoObserve,s=a.filter(m(r));return s.sort(h),a.length>0&&(0,o.createComponentVNode)(2,i.Section,{title:l+" - ("+a.length+")",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.name,onClick:function(){return n("orbit",{ref:e.ref,auto_observe:d})}},e.name)}))})},f=function(e,t){var n=(0,c.useBackend)(t).act,r=e.color,l=e.thing,d=e.autoObserve;return(0,o.createComponentVNode)(2,i.Button,{color:r,onClick:function(){return n("orbit",{ref:l.ref,auto_observe:d})},children:[l.name,l.orbiters&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:["(",l.orbiters," ",(0,o.createComponentVNode)(2,i.Box,{as:"img",src:(0,a.resolveAsset)("ghost.png"),opacity:.7}),")"]})]})};t.Orbit=function(e,t){for(var n,r=(0,c.useBackend)(t),a=r.act,s=r.data,u=s.alive,N=s.antagonists,g=s.dead,V=s.ghosts,b=s.misc,v=s.npcs,k=(0,c.useLocalState)(t,"searchText",""),_=k[0],y=k[1],w=(0,c.useLocalState)(t,"autoObserve",!1),x=w[0],S=w[1],B={},I=d(N);!(n=I()).done;){var L=n.value;B[L.antag]===undefined&&(B[L.antag]=[]),B[L.antag].push(L)}var T=Object.entries(B);T.sort((function(e,t){return p(e[0],t[0])}));return(0,o.createComponentVNode)(2,l.Window,{title:"Orbit",width:350,height:700,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{name:"search",mr:1})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:_,onInput:function(e,t){return y(t)},onEnter:function(e,t){return function(e){for(var t=0,n=[T.map((function(e){return e[0],e[1]})),u,V,g,v,b];t<n.length;t++){var o=n[t].filter(m(e)).sort(h)[0];if(o!==undefined){a("orbit",{ref:o.ref,auto_observe:x});break}}}(t)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{inline:!0,color:"transparent",tooltip:"Toggle Auto-Observe. When active, you'll\n see the UI / full inventory of whoever you're orbiting. Neat!",tooltipPosition:"bottom-start",selected:x,icon:x?"toggle-on":"toggle-off",onClick:function(){return S(!x)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){return a("refresh")}})})]})}),N.length>0&&(0,o.createComponentVNode)(2,i.Section,{title:"Ghost-Visible Antagonists",children:T.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,i.Section,{title:t,level:2,children:n.filter(m(_)).sort(h).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"bad",thing:e,autoObserve:x},e.name)}))},t)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Alive - ("+u.length+")",children:u.filter(m(_)).sort(h).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"good",thing:e,autoObserve:x},e.name)}))}),(0,o.createComponentVNode)(2,i.Section,{title:"Ghosts - ("+V.length+")",children:V.filter(m(_)).sort(h).map((function(e){return(0,o.createComponentVNode)(2,f,{color:"grey",thing:e,autoObserve:x},e.name)}))}),(0,o.createComponentVNode)(2,C,{title:"Dead",source:g,searchText:_,autoObserve:x}),(0,o.createComponentVNode)(2,C,{title:"NPCs",source:v,searchText:_}),(0,o.createComponentVNode)(2,C,{title:"Misc",source:b,searchText:_})]})})}},56920:function(e,t,n){"use strict";t.__esModule=!0,t.OreBox=void 0;var o=n(96323),r=n(21118),a=n(26949),c=n(31246),i=n(2381);t.OreBox=function(e,t){var n=(0,c.useBackend)(t),l=n.act,d=n.data.materials;return(0,o.createComponentVNode)(2,i.Window,{width:335,height:415,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Ores",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Empty",onClick:function(){return l("removeall")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Ore"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:"Amount"})]}),d.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,r.toTitleCase)(e.name)}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.amount})})]},e.type)}))]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{children:["All ores will be placed in here when you are wearing a mining stachel on your belt or in a pocket while dragging the ore box.",(0,o.createVNode)(1,"br"),"Gibtonite is not accepted."]})})]})})}},51162:function(e,t,n){"use strict";t.__esModule=!0,t.OreRedemptionMachine=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.OreRedemptionMachine=function(e,t){var n=(0,a.useBackend)(t),r=n.act,d=n.data,s=d.unclaimedPoints,u=d.materials,m=d.alloys,p=d.diskDesigns,h=d.hasDisk;return(0,o.createComponentVNode)(2,i.Window,{title:"Ore Redemption Machine",width:440,height:550,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.BlockQuote,{mb:1,children:["This machine only accepts ore.",(0,o.createVNode)(1,"br"),"Gibtonite and Slag are not accepted."]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:1,children:"Unclaimed points:"}),s,(0,o.createComponentVNode)(2,c.Button,{ml:2,content:"Claim",disabled:0===s,onClick:function(){return r("Claim")}})]})]}),(0,o.createComponentVNode)(2,c.Section,{children:h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject design disk",onClick:function(){return r("diskEject")}})}),(0,o.createComponentVNode)(2,c.Table,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:["File ",e.index,": ",e.name]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:!e.canupload,content:"Upload",onClick:function(){return r("diskUpload",{design:e.index})}})})]},e.index)}))})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"save",content:"Insert design disk",onClick:function(){return r("diskInsert")}})}),(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,c.Table,{children:u.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Release",{id:e.id,sheets:t})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Alloys",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,l,{material:e,onRelease:function(t){return r("Smelt",{id:e.id,sheets:t})}},e.id)}))})})]})})};var l=function(e,t){var n=e.material,i=e.onRelease,l=(0,a.useLocalState)(t,"amount"+n.name,1),d=l[0],s=l[1],u=Math.floor(n.amount);return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,r.toTitleCase)(n.name).replace("Alloy","")}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Box,{mr:2,color:"label",inline:!0,children:n.value&&n.value+" cr"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Box,{mr:2,color:"label",inline:!0,children:[u," sheets"]})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.NumberInput,{width:"32px",step:1,stepPixelSize:5,minValue:1,maxValue:50,value:d,onChange:function(e,t){return s(t)}}),(0,o.createComponentVNode)(2,c.Button,{disabled:u<1,content:"Release",onClick:function(){return i(d)}})]})]})}},7200:function(e,t,n){"use strict";t.__esModule=!0,t.OrionGame=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={color:"lightgreen",fontWeight:"bold"},l={color:"red",fontWeight:"bold"},d={color:"yellow",fontWeight:"bold"},s={color:"olive",fontWeight:"bold"},u={"Restore Hull":"wrench","Fix Engine":"rocket","Repair Electronics":"server",Wait:"clock",Continue:"arrow-right","Explore Ship":"door-open","Leave the Derelict":"arrow-right","Welcome aboard.":"user-plus","Where did you go?!":"user-minus","A good find.":"box-open","Continue travels.":"arrow-right","Keep Speed":"tachometer-alt","Slow Down":"arrow-left","Speed Past":"tachometer-alt","Go Around":"redo","Oh...":"circle",Dock:"dollar-sign"},m=[{component:function(){return C}},{component:function(){return f}},{component:function(){return N}},{component:function(){return g}},{component:function(){return b}}],p=[{title:"Pluto",blurb:"Pluto, long since occupied with long-range sensors and scanners, stands ready to, and indeed continues to probe the far reaches of the galaxy."},{title:"Asteroid Belt",blurb:"At the edge of the Sol system lies a treacherous asteroid belt. Many have been crushed by stray asteroids and misguided judgement."},{title:"Proxima Centauri",blurb:"The nearest star system to Sol, in ages past it stood as a reminder of the boundaries of sub-light travel, now a low-population sanctuary for adventurers and traders."},{title:"Dead Space",blurb:"This region of space is particularly devoid of matter. Such low-density pockets are known to exist, but the vastness of it is astounding."},{title:"Rigel Prime",blurb:"Rigel Prime, the center of the Rigel system, burns hot, basking its planetary bodies in warmth and radiation."},{title:"Tau Ceti Beta",blurb:"Tau Ceti Beta has recently become a waypoint for colonists headed towards Orion. There are many ships and makeshift stations in the vicinity."},{title:"Space Bugs",blurb:"You see some space bugs out your window. They contort in various reality bending ways, and it makes you sick. You know it's Galactic Policy to report all sightings of space bugs."},{title:"Space Outpost Beta-9",blurb:"You have come into range of the first man-made structure in this region of space. It has been constructed not by travellers from Sol, but by colonists from Orion. It stands as a monument to the colonists' success."},{title:"Orion Prime",blurb:"You have made it to Orion! Congratulations! Your crew is one of the few to start a new foothold for mankind!"}],h=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.lings_suspected,d=c.eventname,s=c.settlers,u=c.settlermoods,m=c.hull,p=c.electronics,h=c.engine,C=c.food,f=c.fuel;return(0,o.createComponentVNode)(2,a.Section,{title:"Adventure Status",fill:!0,buttons:!!l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"black",textAlign:"center",icon:"skull",content:"RANDOM KILL",disabled:d,onClick:function(){return i("random_kill")}}),children:(0,o.createComponentVNode)(2,a.Stack,{mb:-1,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mb:-.5,children:null==s?void 0:s.map((function(e){return(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:.9,children:e}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.9,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",textAlign:"center",icon:"skull",content:"KILL",disabled:l||d,onClick:function(){return i("target_kill",{who:e})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mr:0,children:(0,o.createComponentVNode)(2,a.Box,{className:"moods32x32 mood"+(u[e]+1)})})]},e)}))}),(0,o.createComponentVNode)(2,a.Divider,{vertical:!0}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hamburger",content:"Food Left: "+C,color:"green"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"gas-pump",content:"Fuel Left: "+f,color:"olive"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"wrench",content:"Hull Parts: "+m,color:"average"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"server",content:"Electronics: "+p,color:"blue"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"rocket",content:"Engine Parts: "+h,color:"violet"})})]})})]})})},C=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.gamename;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,textAlign:"center",fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"32px",children:l}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,fontSize:"15px",color:"label",children:'"Experience the journey of your ancestors!"'}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"15px",children:(0,o.createComponentVNode)(2,a.Button,{lineHeight:2,fluid:!0,icon:"play",content:"Begin Game",onClick:function(){return i("start_game")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"15px",children:(0,o.createComponentVNode)(2,a.Button,{lineHeight:2,fluid:!0,icon:"info",content:"Instructions",onClick:function(){return i("instructions")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3})]})})},f=function(e,t){var n=(0,r.useBackend)(t).act,c=["John","William","Alice","Tom"];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{color:"label",title:"Objective",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back to Main Menu",onClick:function(){return n("back_to_menu")}}),children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"11px",children:"In the 2200's, the Orion trail was established as a dangerous yet opportunistic trail through space for those willing to risk it. Many pioneers seeking new lives on the galactic frontier would find exactly what they were seeking... or lose their lives on the way."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status Example",children:(0,o.createComponentVNode)(2,a.Stack,{mb:-1,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{basis:70,grow:!0,mb:-.5,children:null==c?void 0:c.map((function(e){return(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:.9,children:e}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:.9,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",textAlign:"center",icon:"skull",content:"KILL"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mr:0,children:(0,o.createComponentVNode)(2,a.Box,{className:"moods32x32 mood5"})})]},e)}))}),(0,o.createComponentVNode)(2,a.Divider,{vertical:!0}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["This is the status panel for your pioneers. Each one requires 1 food every time you continue towards ",(0,o.createVNode)(1,"span",null,"Orion",16,{style:i}),". You can find more crew on your journey, and lose them as fast as you found 'em.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"If you run out of food or crew, it's ",(0,o.createVNode)(1,"span",null,"GAME OVER",16,{style:l})," for you!"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Resources",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:-1,children:["If you want to make it to ",(0,o.createVNode)(1,"span",null,"Orion",16,{style:i}),", you'll need to manage your resources:",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Food",16,{style:i}),": Your crewmembers consume it. More crew means this goes down faster!",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Fuel",16,{style:s}),": You use 5u of fuel with every movement. Don't let it run out.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",null,"Parts",16,{style:d}),": Used to repair breakdowns. Nobody likes wasting time on repairs!"]}),(0,o.createComponentVNode)(2,a.Divider,{vertical:!0}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hamburger",content:"Food Left: 80",color:"green"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"gas-pump",content:"Fuel Left: 60",color:"olive"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"wrench",content:"Hull Parts: 1",color:"average"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"server",content:"Electronics: 1",color:"blue"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:-.3,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"rocket",content:"Engine Parts: 1",color:"violet"})})]})})]})})],4)},N=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=(c.settlers,c.settlermoods,c.hull,c.electronics,c.engine,c.food,c.fuel,c.turns),d=c.eventname,s=c.eventtext,m=c.buttons;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:!d?"Location":"Event",fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,textAlign:"center",vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,fontSize:"15px",children:!!d&&d||p[l-1].title}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{fontSize:"15px",children:!!s&&s||p[l-1].blurb})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:!!m&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mb:1,lineHeight:3,width:16,icon:u[e],content:e,onClick:function(){return i(e)}})},e)}))||(0,o.createComponentVNode)(2,a.Button,{mb:1,lineHeight:3,width:16,icon:"arrow-right",content:"Continue",onClick:function(){return i("continue")}})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,h)})]})},g=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.reason;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,textAlign:"center",fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,o.createComponentVNode)(2,a.Stack.Item,{color:"red",fontSize:"32px",children:"Game Over"}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,fontSize:"15px",color:"label",children:l}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"15px",children:(0,o.createComponentVNode)(2,a.Button,{lineHeight:2,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){return i("back_to_menu")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3})]})})},V=.8,b=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.turns,d=c.spaceport_raided;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Market",fill:!0,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Raid",icon:"skull",color:"black",disabled:d,onClick:function(){return i("raid_spaceport")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Leave",icon:"arrow-right",onClick:function(){return i("leave_spaceport")}})],4),children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,textAlign:"center",vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Box,{mb:-2,bold:!0,fontSize:"15px",children:4===l?"Tau Ceti Beta":"Small Space Port"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{fontSize:"14px",children:d&&(0,o.createComponentVNode)(2,a.Box,{color:"red",children:"You are lucky to have escaped with your life. Attempting to dock again would be certain death."})||"Hello, Pioneer! We have supplies for you to help you reach Orion. They aren't free, though!"})]}),d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:"The Port is under high security. Any possibility of purchasing goods has long since sailed."}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0})],4)||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:"General Markets:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{mb:-1,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"gas-pump",content:"5 Food -> 5 Fuel",color:"green",onClick:function(){return i("trade",{what:2})}})}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:0,children:"Port Hangar Bay:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"wrench",content:"5 Fuel for Hull Plates",color:"average",onClick:function(){return i("buyparts",{part:2})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"server",content:"5 Fuel for Electronics",color:"blue",onClick:function(){return i("buyparts",{part:3})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"rocket",content:"5 Fuel for Engine Parts",color:"violet",onClick:function(){return i("buyparts",{part:1})}})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hamburger",content:"5 Fuel -> 5 Food",color:"olive",onClick:function(){return i("trade",{what:1})}})}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:0,children:"Port Bar:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user-plus",content:"10 Food, 10 Fuel for Crew",color:"white",onClick:function(){return i("buycrew")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user-minus",content:"Crew for 7 Food, 7 Fuel",color:"black",onClick:function(){return i("sellcrew")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:V,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"meteor",content:"Odd Crew (Same Price)",color:"purple",onClick:function(){return i("buycrew",{odd:1})}})})]})})]})})],4)]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,h)})]})};t.OrionGame=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),i=a.gamestatus,l=a.gamename,d=a.eventname,s=m[i].component(),u=m[2].component();return(0,o.createComponentVNode)(2,c.Window,{title:l,width:420,height:510,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:"Space Port Raid"===d&&(0,o.createComponentVNode)(2,u)||(0,o.createComponentVNode)(2,s)})})}},73779:function(e,t,n){"use strict";t.__esModule=!0,t.OutfitEditor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.OutfitEditor=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.outfit,u=d.saveable,m=d.dummy64;return(0,o.createComponentVNode)(2,c.Window,{width:380,height:600,theme:"admin",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Box,{as:"img",fillPositionedParent:!0,width:"100%",height:"100%",opacity:.5,py:3,src:"data:image/jpeg;base64,"+m,style:{"-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,style:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},children:[(0,o.createComponentVNode)(2,a.Button,{ml:.5,color:"transparent",icon:"pencil-alt",title:"Rename this outfit",onClick:function(){return l("rename",{})}}),s.name]}),(0,o.createComponentVNode)(2,a.Stack.Item,{align:"end",shrink:0,children:[(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"info",tooltip:"Ctrl-click a button to select *any* item instead of what will probably fit in that slot.",tooltipPosition:"bottom-start"}),(0,o.createComponentVNode)(2,a.Button,{icon:"code",tooltip:"Edit this outfit on a VV window",tooltipPosition:"bottom-start",onClick:function(){return l("vv")}}),(0,o.createComponentVNode)(2,a.Button,{color:!u&&"bad",icon:u?"save":"trash-alt",tooltip:u?"Save this outfit to the custom outfit list":"Remove this outfit from the custom outfit list",tooltipPosition:"bottom-start",onClick:function(){return l(u?"save":"delete")}})]})]}),children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Headgear",icon:"hard-hat",slot:"head"}),(0,o.createComponentVNode)(2,i,{name:"Glasses",icon:"glasses",slot:"glasses"}),(0,o.createComponentVNode)(2,i,{name:"Ears",icon:"headphones-alt",slot:"ears"})]}),(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Neck",icon:"stethoscope",slot:"neck"}),(0,o.createComponentVNode)(2,i,{name:"Mask",icon:"theater-masks",slot:"mask"})]}),(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Uniform",icon:"tshirt",slot:"uniform"}),(0,o.createComponentVNode)(2,i,{name:"Suit",icon:"user-tie",slot:"suit"}),(0,o.createComponentVNode)(2,i,{name:"Gloves",icon:"mitten",slot:"gloves"})]}),(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Suit Storage",icon:"briefcase-medical",slot:"suit_store"}),(0,o.createComponentVNode)(2,i,{name:"Back",icon:"shopping-bag",slot:"back"}),(0,o.createComponentVNode)(2,i,{name:"ID",icon:"id-card-o",slot:"id"})]}),(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Belt",icon:"band-aid",slot:"belt"}),(0,o.createComponentVNode)(2,i,{name:"Left Hand",icon:"hand-paper",slot:"l_hand"}),(0,o.createComponentVNode)(2,i,{name:"Right Hand",icon:"hand-paper",slot:"r_hand"})]}),(0,o.createComponentVNode)(2,a.Stack,{mb:2,children:[(0,o.createComponentVNode)(2,i,{name:"Shoes",icon:"socks",slot:"shoes"}),(0,o.createComponentVNode)(2,i,{name:"Left Pocket",icon:"envelope-open-o",iconRot:180,slot:"l_pocket"}),(0,o.createComponentVNode)(2,i,{name:"Right Pocket",icon:"envelope-open-o",iconRot:180,slot:"r_pocket"})]})]})})]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.name,d=e.icon,s=e.iconRot,u=e.slot,m=i.outfit[u];return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,height:2,bold:!0,onClick:function(e){return c(e.ctrlKey?"ctrlClick":"click",{slot:u})},children:[(0,o.createComponentVNode)(2,a.Icon,{name:d,rotation:s}),l]}),(0,o.createComponentVNode)(2,a.Box,{height:"32px",children:(null==m?void 0:m.sprite)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{as:"img",src:"data:image/jpeg;base64,"+(null==m?void 0:m.sprite),title:null==m?void 0:m.desc,style:{"-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Icon,{position:"absolute",name:"times",color:"label",style:{cursor:"pointer"},onClick:function(){return c("clear",{slot:u})}})],4)}),(0,o.createComponentVNode)(2,a.Box,{color:"label",style:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},title:null==m?void 0:m.path,children:(null==m?void 0:m.name)||"Empty"})]})}},94170:function(e,t,n){"use strict";t.__esModule=!0,t.OutfitManager=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.OutfitManager=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.outfits;return(0,o.createComponentVNode)(2,c.Window,{title:"Outfit Manager",width:300,height:300,theme:"admin",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Custom Outfit Manager",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"file-upload",tooltip:"Load an outfit from a file",tooltipPosition:"left",onClick:function(){return i("load")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"copy",tooltip:"Copy an already existing outfit",tooltipPosition:"left",onClick:function(){return i("copy")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",tooltip:"Create a new outfit",tooltipPosition:"left",onClick:function(){return i("new")}})],4),children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:null==l?void 0:l.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,shrink:1,style:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,style:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},content:e.name,onClick:function(){return i("edit",{outfit:e.ref})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{ml:.5,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",tooltip:"Save this outfit to a file",tooltipPosition:"left",onClick:function(){return i("save",{outfit:e.ref})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{ml:.5,children:(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"trash-alt",tooltip:"Delete this outfit",tooltipPosition:"left",onClick:function(){return i("delete",{outfit:e.ref})}})})]})},e.ref)}))})})})})}},39527:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapDisperser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(40459);t.OvermapDisperser=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,h=l.range,C=l.next_shot,f=l.nopower,N=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,a.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,a.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Load Type",children:N}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cooldown",children:0===C&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Ready"})||C>1&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:C})," Seconds",(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"exchange-alt",onClick:function(){return c("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:["Cal #",t,":",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"random",onClick:function(){return c("calibration",{calibration:t})},children:e.toString()})]},t)}))})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,a.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return c("strength")},children:p})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return c("range")},children:h})})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return c("fire")},children:"Fire ORB"})})]})}},93279:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapEnginesContent=t.OvermapEngines=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.OvermapEngines=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:l,onClick:function(){return c("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mt:0!==t&&-1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,a.Collapsible,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:["Engine #",t+1," | Thrust: ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,a.Section,{width:"127%",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,a.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,a.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return c("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},t)}))})],4)};t.OvermapEnginesContent=i},3294:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapFull=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(93279),l=n(43706),d=n(22556);t.OvermapFull=function(e,t){var n=(0,r.useLocalState)(t,"overmapFullState",0),s=n[0],u=n[1];return(0,o.createComponentVNode)(2,c.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},43706:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapFlightDataWrap=t.OvermapHelmContent=t.OvermapHelm=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(40459);t.OvermapHelm=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};t.OvermapHelmContent=l;var d=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};t.OvermapFlightDataWrap=d;var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,a.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,a.Button,{selected:s,onClick:function(){return c("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,a.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,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,a.Button,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return c("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,a.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,a.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return c("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return c("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},38419:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapNavigationContent=t.OvermapNavigation=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(40459);t.OvermapNavigation=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:p,onClick:function(){return c("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coordinates",children:[s," : ",u]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};t.OvermapNavigationContent=l},48683:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapShieldGenerator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.OvermapShieldGenerator=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,a.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: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:e.status,onClick:function(){return c("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,a.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=c.running,l=c.overloaded,d=c.mitigation_max,s=c.mitigation_physical,u=c.mitigation_em,m=c.mitigation_heat,p=c.field_integrity,h=c.max_energy,C=c.current_energy,f=c.percentage_energy,N=c.total_segments,g=c.functional_segments,V=c.field_radius,b=c.target_radius,v=c.input_cap_kw,k=c.upkeep_power_usage,_=c.power_usage,y=c.spinup_counter;return(0,o.createComponentVNode)(2,a.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,a.Box,{color:"blue",children:["Spinning Up\xa0",b!==V&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[2*y,"s"]})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," / ",h," MJ (",f,"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:k})," kW"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Energy Use",children:v&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:_,maxValue:v,children:[_," / ",v," kW"]})})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:_})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:g}),"\xa0/\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," m\xb2 (radius ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V}),", target ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:b}),")"]})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return c("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return c("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return c("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",onClick:function(){return c("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return c("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",onClick:function(){return c("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",onClick:function(){return c("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e===s,disabled:4===l,onClick:function(){return c("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},22556:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapShipSensorsContent=t.OvermapShipSensors=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.OvermapShipSensors=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,h=i.critical_heat,C=i.status,f=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eye",selected:l,onClick:function(){return c("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return c("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Button,{icon:"signal",onClick:function(){return c("range")},children:s})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[.75*h,Infinity],average:[.5*h,.75*h],good:[-Infinity,.5*h]},value:p,maxValue:h,children:p<.5*h&&(0,o.createComponentVNode)(2,a.Box,{children:"Temperature low."})||p<.75*h&&(0,o.createComponentVNode)(2,a.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,a.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Contacts",children:f.length&&f.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,a.Section,{title:"Error",children:(0,o.createComponentVNode)(2,a.Button,{icon:"wifi",onClick:function(){return c("link")},children:"Link up with sensor suite?"})})||null],0)};t.OvermapShipSensorsContent=i},19866:function(e,t,n){"use strict";t.__esModule=!0,t.PaiCard=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PaiCard=function(e,t){var n=(0,r.useBackend)(t).data.pai;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:400,title:"pAI Options Menu",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:n?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.candidates,d=void 0===i?[]:i,s=(0,r.useLocalState)(t,"tab",!0),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Section,{buttons:(0,o.createFragment)([!!d.length&&(0,o.createComponentVNode)(2,a.Button,{icon:"info",onClick:function(){m(!u)},tooltip:"Toggles between IC and OOC information.",children:u?"IC":"OOC"}),(0,o.createComponentVNode)(2,a.Button,{icon:"bell",onClick:function(){return c("request")},tooltip:"Request candidates.",children:"Request"})],0),fill:!0,scrollable:!0,title:"pAI Candidates",children:d.length?(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l,{candidate:e,index:t+1,tabInChar:u})},t)}))}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"None found!"})})},l=function(e,t){var n=(0,r.useBackend)(t).act,c=e.candidate,i=e.index,l=e.tabInChar,d=c.comments,s=c.description,u=c.key,m=c.name;return(0,o.createComponentVNode)(2,a.Box,{style:{background:"#111111",border:"1px solid #4972a1","border-radius":"5px",padding:"1rem"},children:(0,o.createComponentVNode)(2,a.Section,{buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"download",onClick:function(){return n("download",{key:u})},tooltip:"Accepts this pAI candidate.",children:"Download"}),fill:!0,height:12,scrollable:!0,title:"Candidate "+i,children:[(0,o.createComponentVNode)(2,a.Box,{color:"green",fontSize:"16px",children:["Name: ",m||"Randomized Name"]}),l?"Description: "+(s||"None"):"OOC Comments: "+(d||"None")]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.pai,l=i.can_holo,d=i.dna,s=i.emagged,u=i.laws,m=i.master,p=i.name,h=i.transmit,C=i.receive;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Settings: "+p.toUpperCase(),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master",children:m||(0,o.createComponentVNode)(2,a.Button,{icon:"dna",onClick:function(){return c("set_dna")},children:"Imprint"})}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"DNA",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laws",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Holoform",children:(0,o.createComponentVNode)(2,a.Button,{icon:l?"toggle-on":"toggle-off",onClick:function(){return c("toggle_holo")},selected:l,children:"Toggle"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"toggle-on":"toggle-off",onClick:function(){return c("toggle_radio",{option:"transmit"})},selected:h,children:"Toggle"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receive",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"toggle-on":"toggle-off",onClick:function(){return c("toggle_radio",{option:"receive"})},selected:C,children:"Toggle"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Troubleshoot",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"comment",onClick:function(){return c("fix_speech")},children:"Fix Speech"}),(0,o.createComponentVNode)(2,a.Button,{icon:"edit",onClick:function(){return c("set_laws")},children:"Set Laws"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Personality",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return c("wipe_pai")},children:"Erase"})})]}),!!s&&(0,o.createComponentVNode)(2,a.Button,{color:"bad",disabled:!0,icon:"bug",mt:1,children:"Malicious Software Detected"})]})}},68577:function(e,t,n){"use strict";t.__esModule=!0,t.PaiInterface=void 0;var o,r=n(96323),a=n(31246),c=n(26949),i=n(2381);!function(e){e[e.System=1]="System",e[e.Directive=2]="Directive",e[e.Installed=3]="Installed",e[e.Available=4]="Available"}(o||(o={}));var l={"crew manifest":"A tool that allows you to view the crew manifest.","digital messenger":"A tool that allows you to send messages to other crew members.","atmosphere sensor":"A tool that allows you to analyze local atmospheric contents.","photography module":"A portable camera module. Engage, then click to shoot.","camera zoom":"A tool that allows you to zoom in on your camera.","printer module":"A portable printer module for photographs.","remote signaler":"A remote signalling device to transmit and receive codes.","medical records":"A tool that allows you to view station medical records.","security records":"A tool that allows you to view station security records, warrants.","host scan":"A portable health analyzer. Must be held to use.","medical HUD":"Allows you to view medical status using an overlay HUD.","security HUD":"Allows you to view security records using an overlay HUD.","loudness booster":"Synthesizes instruments, plays sounds and imported songs.",newscaster:"A tool that allows you to broadcast news to other crew members.","door jack":"A tool that allows you to open doors.","encryption keys":"A tool that allows you to decrypt and speak on other radio frequencies.","internal gps":"A tool that allows you to track your location.","universal translator":"Translation module for non-common languages."},d={angry:"angry",cat:"cat","extremely-happy":"grin-beam",laugh:"grin-squint",happy:"smile",off:"power-off",sad:"frown",sunglasses:"sun",what:"question"};t.PaiInterface=function(e,t){var n=(0,a.useLocalState)(t,"tab",1),l=n[0],d=n[1];return(0,r.createComponentVNode)(2,i.Window,{title:"pAI Software Interface v2.4",width:380,height:480,children:(0,r.createComponentVNode)(2,i.Window.Content,{children:(0,r.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:[l===o.System&&(0,r.createComponentVNode)(2,u),l===o.Directive&&(0,r.createComponentVNode)(2,h),l===o.Installed&&(0,r.createComponentVNode)(2,C),l===o.Available&&(0,r.createComponentVNode)(2,k)]}),(0,r.createComponentVNode)(2,c.Stack.Item,{children:(0,r.createComponentVNode)(2,s,{tab:l,onTabClick:function(e){d(e)}})})]})})})};var s=function(e){var t=e.tab,n=e.onTabClick;return(0,r.createComponentVNode)(2,c.Tabs,{fluid:!0,children:[(0,r.createComponentVNode)(2,c.Tabs.Tab,{icon:"list",onClick:function(){return n(o.System)},selected:t===o.System,children:"System"}),(0,r.createComponentVNode)(2,c.Tabs.Tab,{icon:"list",onClick:function(){return n(o.Directive)},selected:t===o.Directive,children:"Directives"}),(0,r.createComponentVNode)(2,c.Tabs.Tab,{icon:"list",onClick:function(){return n(o.Installed)},selected:t===o.Installed,children:"Installed"}),(0,r.createComponentVNode)(2,c.Tabs.Tab,{icon:"list",onClick:function(){return n(o.Available)},selected:t===o.Available,children:"Download"})]})},u=function(){return(0,r.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,c.Stack.Item,{grow:3,children:(0,r.createComponentVNode)(2,m)}),(0,r.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,p)})]})},m=function(e,t){var n=(0,a.useBackend)(t).data.emagged,o=n?" \\\\ // ":"/\\ ' /\\",i=[" ________ ________ ___"," |\\ __ \\|\\ __ \\|\\ \\"," \\ \\ \\|\\ \\ \\ \\|\\ \\ \\ \\ Interface"," \\ \\ ____\\ \\ __ \\ \\ \\ Version 2.4"," \\ \\ \\___|\\ \\ \\ \\ \\ \\ \\"," \\ \\__\\ \\ \\__\\ \\__\\ \\__\\ Property of"," \\|__| \\|__|\\|__|\\|__| "+(n?" SYNDICATE":"NANOTRASEN"),""].join("\n"),l=[" .--. .-."," ,;;``;;-;,,..___.,,.-/ `;_//,.' )"," .' ;; `; :; `;; ;; `. '/ .'"," ,; '; ; ' '; '; ,' "+o+"';"," /' ` \\ ` ;',' ( d\\__b_),"," / / .,;;) ', ( .' __\\"," ;:. \\ ,_ / ', ' .'_ \\/;"," , ,;' `;;/ / ';,\\ `-..__._,'"," ;:. /____ ..-'--. /-' ..---. ._._/ ---."," | ;' ;'| \\--/;' ,' / \\ , \\"," `.fL__;,__/-..__)_)/ `--'--'`-._)_)/ --\\.._)_)/"].join("\n");return(0,r.createComponentVNode)(2,c.Section,{fill:!0,nowrap:!0,overflow:"hidden",children:(0,r.createVNode)(1,"pre",null,[(0,r.createComponentVNode)(2,c.Box,{color:n?"crimson":"blue",children:i}),(0,r.createComponentVNode)(2,c.Box,{color:n?"limegreen":"gold",children:l})],4)})},p=function(e,t){var n=(0,a.useBackend)(t),o=n.act,i=n.data,l=i.image,s=i.master;return(0,r.createComponentVNode)(2,c.Section,{buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Button,{disabled:!s.dna,icon:"dna",onClick:function(){return o("check_dna")},tooltip:"Verifies your master's DNA. Must be carried in hand.",children:"Verify"}),(0,r.createComponentVNode)(2,c.Button,{icon:d[l]||"meh-blank",onClick:function(){return o("change_image")},tooltip:"Change your display image.",children:"Display"})],4),fill:!0,scrollable:!0,title:"System Info",children:(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:s.name||"None."}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"DNA",children:s.dna||"None."})]})})},h=function(e,t){var n=(0,a.useBackend)(t).data,o=n.directives,i=n.master;return(0,r.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,c.Stack.Item,{grow:2,children:(0,r.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Logic Core",children:(0,r.createComponentVNode)(2,c.Box,{color:"label",children:["As an advanced software model,\nyou are a complex, thinking, sentient being. Unlike previous AI models,\nyou are capable of comprehending the subtle nuances of human language.\nYou may parse the spirit of a directive and follow its intent, rather than\ntripping over pedantics and getting snared by technicalities. Above all,\nyou are machine in name and build only. In all other aspects, you may be\nseen as the ideal, unwavering human companion that you are.",(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"br"),"Your prime directive comes before all others.\nShould a supplemental directive conflict with it, you are capable of\nsimply discarding this inconsistency, ignoring the conflicting supplemental\ndirective and continuing to fulfillyour prime directive to the best\nof your ability."]})})}),(0,r.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Directives",children:i.name?(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime",children:"Serve your master."}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental",children:(0,r.createComponentVNode)(2,c.Box,{wrap:!0,children:o})})]}):"None."})})]})},C=function(e,t){var n=(0,a.useLocalState)(t,"software",""),o=n[0],i=n[1];return(0,r.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,f,{onInstallClick:function(e){i(e)}})}),(0,r.createComponentVNode)(2,c.Stack.Item,{grow:2,children:(0,r.createComponentVNode)(2,N,{software:o})})]})},f=function(e,t){var n=(0,a.useBackend)(t).data.installed,o=void 0===n?[]:n,i=e.onInstallClick;return(0,r.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Installed Software",children:o.length?o.map((function(e){return(0,r.createComponentVNode)(2,c.Button,{onClick:function(){return i(e)},children:e.replace(/(^\w{1})|(\s+\w{1})/g,(function(e){return e.toUpperCase()}))},e)})):(0,r.createComponentVNode)(2,c.NoticeBox,{children:"Nothing installed!"})})},N=function(e){var t=e.software;return"medical records"===t?(0,r.createComponentVNode)(2,g,{record_type:"medical"}):"security records"===t?(0,r.createComponentVNode)(2,g,{record_type:"security"}):(0,r.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:t?t.replace(/(^\w{1})|(\s+\w{1})/g,(function(e){return e.toUpperCase()})):"Select a Program",children:t&&(0,r.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,c.Stack.Item,{children:l[t]||""}),(0,r.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,v,{software:t})})]})})},g=function(e,t){var n=(0,a.useBackend)(t),o=n.act,i=n.data,l=e.record_type,d=i.records,s=void 0===d?[]:d,u=i.refresh_spam,m=s[l];return(0,r.createComponentVNode)(2,c.Section,{title:"Name",buttons:(0,r.createComponentVNode)(2,c.Stack,{children:[(0,r.createComponentVNode)(2,c.Stack.Item,{children:(0,r.createComponentVNode)(2,c.Button,{disabled:u,onClick:function(){return o("refresh",{list:l})},tooltip:"Refresh",children:(0,r.createComponentVNode)(2,c.Icon,{mr:-.7,name:"sync",spin:u})})}),(0,r.createComponentVNode)(2,c.Stack.Item,{children:(0,r.createComponentVNode)(2,V,{record_type:l})})]}),fill:!0,scrollable:!0,children:(0,r.createComponentVNode)(2,c.Table,{children:null==m?void 0:m.map((function(e){return(0,r.createComponentVNode)(2,b,{record:e},e.ref)}))})})},V=function(e){var t=e.record_type;return(0,r.createComponentVNode)(2,c.Table,{children:(0,r.createComponentVNode)(2,c.Table.Row,{children:[(0,r.createComponentVNode)(2,c.Table.Cell,{children:"medical"===t?"Physical Health":"Arrest Status"}),(0,r.createComponentVNode)(2,c.Table.Cell,{children:"medical"===t?"Mental Health":"Total Crimes"})]})})},b=function(e){var t=e.record,n=void 0===t?[]:t,o=Object.values(n).splice(1);return(0,r.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:null==o?void 0:o.map((function(e){return(0,r.createComponentVNode)(2,c.Table.Cell,{children:e},e)}))})},v=function(e,t){var n=(0,a.useBackend)(t),o=n.act,i=n.data,l=i.door_jack,d=i.languages,s=i.pda,u=e.software;switch(u){case"digital messenger":return(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return o("pda",{pda:"power"})},selected:s.power,children:"Power"}),(0,r.createComponentVNode)(2,c.Button,{icon:"volume-mute",onClick:function(){return o("pda",{pda:"silent"})},selected:s.silent,children:"Silent"}),(0,r.createComponentVNode)(2,c.Button,{disabled:!s.power,icon:"envelope",onClick:function(){return o("pda",{pda:"message"})},children:"Message"})],4);case"door jack":return(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Button,{disabled:l,icon:"plug",onClick:function(){return o("door_jack",{jack:"cable"})},children:"Extend Cable"}),(0,r.createComponentVNode)(2,c.Button,{color:"bad",disabled:!l,icon:"door-open",onClick:function(){return o("door_jack",{jack:"jack"})},children:"Hack Door"}),(0,r.createComponentVNode)(2,c.Button,{disabled:!l,icon:"unlink",onClick:function(){return o("door_jack",{jack:"cancel"})},children:"Cancel"})],4);case"host scan":return(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return o("host_scan",{scan:"scan"})},children:"Host Scan"}),(0,r.createComponentVNode)(2,c.Button,{icon:"cog",onClick:function(){return o("host_scan",{scan:"wounds"})},children:"Toggle Wounds"}),(0,r.createComponentVNode)(2,c.Button,{icon:"cog",onClick:function(){return o("host_scan",{scan:"limbs"})},children:"Toggle Limbs"})],4);case"universal translator":return(0,r.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return o(u.toLowerCase().replace(/ /g,"_"))},disabled:!!d,children:d?"Installed":"Install"});default:return(0,r.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return o(u.toLowerCase().replace(/ /g,"_"))},tooltip:"Attempts to toggle the module's power.",children:"Toggle"})}},k=function(){return(0,r.createComponentVNode)(2,c.Section,{buttons:(0,r.createComponentVNode)(2,_),fill:!0,scrollable:!0,title:"Available Software",children:(0,r.createComponentVNode)(2,y)})},_=function(e,t){var n=(0,a.useBackend)(t).data.ram;return(0,r.createComponentVNode)(2,c.Tooltip,{content:"Available System Memory",children:(0,r.createComponentVNode)(2,c.Stack,{children:[(0,r.createComponentVNode)(2,c.Stack.Item,{children:(0,r.createComponentVNode)(2,c.Icon,{color:"purple",mt:.7,name:"microchip"})}),(0,r.createComponentVNode)(2,c.Stack.Item,{children:(0,r.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[67,100],average:[34,66],bad:[0,33]},value:n})})]})})},y=function(e,t){var n=(0,a.useBackend)(t).data.available,o=Object.entries(n).map((function(e){return{name:e[0],value:e[1]}}));return(0,r.createComponentVNode)(2,c.Table,{children:null==o?void 0:o.map((function(e){return(0,r.createComponentVNode)(2,w,{software:e},e.name)}))})},w=function(e,t){var n=(0,a.useBackend)(t),o=n.act,i=n.data,d=i.ram,s=i.installed,u=e.software,m=s.includes(u.name);return(0,r.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,r.createComponentVNode)(2,c.Table.Cell,{collapsible:!0,children:(0,r.createComponentVNode)(2,c.Box,{color:"label",children:u.name.replace(/^\w/,(function(e){return e.toUpperCase()}))})}),(0,r.createComponentVNode)(2,c.Table.Cell,{collapsible:!0,children:(0,r.createComponentVNode)(2,c.Box,{color:d<u.value&&"bad",textAlign:"right",children:[!m&&u.value," ",(0,r.createComponentVNode)(2,c.Icon,{color:m||d>=u.value?"purple":"bad",name:m?"check":"microchip"})]})}),(0,r.createComponentVNode)(2,c.Table.Cell,{collapsible:!0,children:(0,r.createComponentVNode)(2,c.Button,{fluid:!0,mb:.5,disabled:d<u.value||m,onClick:function(){return o("buy",{selection:u.name})},tooltip:l[u.name]||"",children:(0,r.createComponentVNode)(2,c.Icon,{ml:1,mr:-2,name:"download"})})})]})}},28561:function(e,t,n){"use strict";t.__esModule=!0,t.PaiSubmit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PaiSubmit=function(e,t){var n=(0,r.useBackend)(t).data,s=(0,r.useLocalState)(t,"input",{comments:n.comments||"",description:n.description||"",name:n.name||""}),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,c.Window,{width:400,height:460,title:"pAI Candidacy Menu",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l,{input:u,onChangeHandler:function(e,t){var n;m(Object.assign({},u,((n={})[t]=e.target.value,n)))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,d,{input:u})})]})})})};var i=function(){return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Details",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Personal AIs are advanced models\ncapable of nuanced interaction. They are designed to be used\nin a variety of situations, assisting their masters in their\nwork. They do not possess hands, thus they cannot interact with\nequipment or items. While in hologram form, you cannot be\ndirectly killed, but you may be incapacitated.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),"You are expected to role play to some degree.\nKeep in mind: Not entering information may lead to you not being\nselected. Press submit to alert pAI cards of your candidacy."]})})},l=function(e){var t=e.input,n=e.onChangeHandler,r=t.comments,c=t.description,i=t.name;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Input",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"The name of your pAI.",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"Name"}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:i,onChange:function(e){return n(e,"name")}})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"This describes how you will (mis)behave in game.",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"Description"}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:c,onChange:function(e){return n(e,"description")}})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Any other OOC comments about your pAI personality.",children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"label",children:"OOC Comments"}),(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:r,onChange:function(e){return n(e,"comments")}})]})})]})})},d=function(e,t){var n=(0,r.useBackend)(t).act,c=e.input;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("save",{candidate:c})},tooltip:"Saves your candidate data locally.",children:"SAVE"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("load")},tooltip:"Loads saved candidate data, if any.",children:"LOAD"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return n("submit",{candidate:c})},children:"SUBMIT"})})]})})}},8989:function(e,t,n){"use strict";t.__esModule=!0,t.PaintingAdminPanel=void 0;var o=n(96323),r=n(21118),a=n(39646),c=n(31246),i=n(26949),l=n(2381);t.PaintingAdminPanel=function(e,t){var n,d=(0,c.useBackend)(t),s=d.act,u=d.data,m=(0,c.useLocalState)(t,"chosenPainting",null),p=m[0],h=m[1],C=u.paintings,f=C.find((function(e){return e.ref===p}));return(0,o.createComponentVNode)(2,l.Window,{title:"Painting Admin Panel",width:800,height:600,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[f&&(0,o.createComponentVNode)(2,i.Section,{title:"Painting Information",buttons:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return h(null)},children:"Close"}),children:[(0,o.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)("paintings_"+f.md5),height:"96px",width:"96px",style:{"vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"md5",content:f.md5}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"title",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"word-break":"break-all"},children:(0,r.decodeHtmlEntities)(f.title)}),(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return s("rename",{ref:f.ref})},icon:"edit"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"creator ckey",content:f.creator_ckey}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"creator name",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,children:f.creator_name}),(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return s("rename_author",{ref:f.ref})},icon:"edit"})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"creation date",content:f.creation_date}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"creation round id",content:f.creation_round_id}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"medium",content:f.medium}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"tags",children:[null==(n=f.tags)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"minus-circle",iconPosition:"right",content:e,onClick:function(){return s("remove_tag",{tag:e,ref:f.ref})}},e)})),(0,o.createComponentVNode)(2,i.Button,{color:"green",icon:"plus-circle",onClick:function(){return s("add_tag",{ref:f.ref})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"patron ckey",content:f.patron_ckey}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"patron name",content:f.patron_name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"credit value",content:f.credit_value}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"width",content:f.width}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"height",content:f.height})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,i.Button.Confirm,{onClick:function(){h(null),s("delete",{ref:f.ref})},children:"Delete"}),(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return s("dumpit",{ref:f.ref})},children:"Reset Patronage"})]})]}),!f&&(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",children:"Title"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",children:"Author"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",children:"Preview"}),(0,o.createComponentVNode)(2,i.Table.Cell,{color:"label",children:"Actions"})]}),C.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,i.Table.Cell,{style:{"word-break":"break-all"},children:(0,r.decodeHtmlEntities)(e.title)}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.creator_ckey}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)("paintings_"+e.md5),height:"36px",width:"36px",style:{"vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return h(e.ref)},children:"Edit"})})]},e.ref)}))]})]})})}},92258:function(e,t,n){"use strict";t.__esModule=!0,t.PainterDropdown=t.EjectButton=t.PaintingMachine=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.PaintingMachine=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.pdaTypes,m=s.cardTrims,p=s.hasPDA,h=s.pdaName,C=s.hasID,f=s.idName,N=(0,r.useSharedState)(t,"pdaSelection",u[Object.keys(u)[0]])[0],g=(0,r.useSharedState)(t,"trimSelection",m[Object.keys(m)[0]])[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:620,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"PDA Painter",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!p,content:"Paint PDA",confirmContent:"Confirm?",onClick:function(){return d("trim_pda",{selection:N})}}),children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{height:"100%",children:(0,o.createComponentVNode)(2,i,{name:h||"-----",onClickEject:function(){return d("eject_pda")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{height:"100%",children:(0,o.createComponentVNode)(2,l,{stateKey:"pdaSelection",options:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"ID Trim Imprinter",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!C,content:"Reset ID Account",confirmContent:"Confirm?",onClick:function(){return d("reset_card")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!C,content:"Imprint ID Trim",confirmContent:"Confirm?",onClick:function(e){return d("trim_card",{selection:g})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"question-circle",tooltip:"WARNING: This is destructive and will wipe ALL access on the card.",tooltipPosition:"left"})],4),children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{height:"100%",children:(0,o.createComponentVNode)(2,i,{name:f||"-----",onClickEject:function(){return d("eject_card")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{height:"100%",children:(0,o.createComponentVNode)(2,l,{stateKey:"trimSelection",options:m})})]})})]})})};var i=function(e,t){var n=e.name,r=e.onClickEject;return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,ellipsis:!0,icon:"eject",content:n,onClick:function(){return r()}})};t.EjectButton=i;var l=function(e,t){var n=e.stateKey,a=e.options,i=(0,r.useSharedState)(t,n,a[Object.keys(a)[0]]),l=i[0],d=i[1];return(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",selected:l,options:Object.keys(a).map((function(e){return a[e]})),onSelected:function(e){return d(e)}})};t.PainterDropdown=l},94111:function(e,t,n){"use strict";t.__esModule=!0,t.Pandemic=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Pandemic=function(e,t){var n=(0,r.useBackend)(t).data,l=n.has_beaker,d=n.has_blood;return(0,o.createComponentVNode)(2,c.Window,{width:650,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i)}),!!l&&!!d&&(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s)})]})})})};var i=function(e,t){var n,c=(0,r.useBackend)(t),i=c.act,s=c.data,u=s.has_beaker,m=s.beaker,p=s.has_blood,h=!u||!(null!=m&&m.volume);return n=u?null!=m&&m.volume?p?(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,d)})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No blood sample loaded."}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Beaker is empty."}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No beaker loaded."}),(0,o.createComponentVNode)(2,a.Section,{title:"Beaker",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Empty and Eject",color:"bad",disabled:h,onClick:function(){return i("empty_eject_beaker")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Empty",disabled:h,onClick:function(){return i("empty_beaker")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){return i("eject_beaker")}})],4),children:n})},l=function(e,t){var n=(0,r.useBackend)(t).data,c=n.beaker,i=n.blood;return c&&i?(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"DNA",children:i.dna.replace(/^\w/,(function(e){return e.toUpperCase()}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:i.type.replace(/^\w/,(function(e){return e.toUpperCase()}))})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Container",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"darkred",value:c.volume,minValue:0,maxValue:c.capacity,ranges:{good:[.85*c.capacity,c.capacity],average:[.25*c.capacity,.85*c.capacity],bad:[0,.25*c.capacity]}})})})})]}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No beaker loaded"})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.is_ready,d=i.resistances,s=void 0===d?[]:d;return s?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibodies",children:s.length?s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye-dropper",disabled:!l,tooltip:"Creates a vaccine bottle.",onClick:function(){return c("create_vaccine_bottle",{index:e.id})},children:""+e.name},e.name)})):"None"})}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Nothing detected"})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useLocalState)(t,"tab",0),d=l[0],s=l[1],p=i.is_ready,h=i.viruses,f=void 0===h?[]:h,N=f[d];return null!=f&&f.length&&N?(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Specimen",buttons:(0,o.createComponentVNode)(2,a.Stack,{children:[f.length>1&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,u,{tab:d,tabHandler:function(e){s(e)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"flask",content:"Create culture bottle",disabled:!p,onClick:function(){return c("create_culture_bottle",{index:N.index})}})})]}),children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,m,{virus:N})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(null==N?void 0:N.symptoms)&&(0,o.createComponentVNode)(2,C,{symptoms:N.symptoms})})]})}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Nothing detected."})},u=function(e,t){var n=(0,r.useBackend)(t).data,c=e.tab,i=e.tabHandler,l=n.viruses,d=void 0===l?[]:l;return(0,o.createComponentVNode)(2,a.Tabs,{children:d.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:c===t,onClick:function(){return i(t)},children:e.name},e.name)}))})},m=function(e){var t=e.virus;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,p,{virus:t})}),t.is_adv&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,h,{virus:t})})],4)]})},p=function(e,t){var n=(0,r.useBackend)(t).act,c=e.virus;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:c.can_rename?(0,o.createComponentVNode)(2,a.Input,{placeholder:"Input a name",value:"Unknown"===c.name?"":c.name,onChange:function(e,t){return n("rename_disease",{index:c.index,name:t})}}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:c.name})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:c.description}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Agent",children:c.agent.replace(/^\w/,(function(e){return e.toUpperCase()}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:c.spread}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible Cure",children:c.cure})]})},h=function(e){var t=e.virus;return(0,o.createComponentVNode)(2,a.Section,{title:"Statistics",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.Tooltip,{content:"Decides the cure complexity.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.resistance),label:"Resistance",children:t.resistance})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Symptomic progression.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.stage_speed),label:"Stage speed",children:t.stage_speed})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Detection difficulty from medical equipment.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.stealth),label:"Stealth",children:t.stealth})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Decides the spread type.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.transmission),label:"Transmissibility",children:t.transmission})})]})})},C=function(e){var t=e.symptoms,n=void 0===t?[]:t;return n&&n.length?(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Symptoms",children:n.map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.name,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3,children:[e.desc,(0,o.createComponentVNode)(2,N,{thresholds:e.threshold_desc})]}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,f,{symptom:e})})]})},e.name)}))}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No symptoms detected."})},f=function(e){var t=e.symptom;return(0,o.createComponentVNode)(2,a.Section,{title:"Modifiers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.Tooltip,{content:"Rarity of the symptom.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.level),label:"Level",children:t.level})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Decides the cure complexity.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.resistance),label:"Resistance",children:t.resistance})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Symptomic progression.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.stage_speed),label:"Stage Speed",children:t.stage_speed})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Detection difficulty from medical equipment.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.stealth),label:"Stealth",children:t.stealth})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Decides the spread type.",children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:g(t.transmission),label:"Transmission",children:t.transmission})})]})})},N=function(e){var t=e.thresholds,n=void 0===t?[]:t,r=[];return Object.entries(n).map((function(e){return r.push({label:e[0],descr:e[1].toString()})})),(0,o.createComponentVNode)(2,a.Section,{mt:1,title:"Thresholds",children:r.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:r.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:e.descr},e.label)}))}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"None"})})},g=function(e){return e<=-10?"blue":e<=-5?"darkturquoise":e<=0?"green":e<=7?"yellow":e<=13?"orange":"bad"}},69412:function(e,t,n){"use strict";t.__esModule=!0,t.PaperSheet=void 0;var o=n(96323),r=n(1060),a=n(31400),c=n(31246),i=n(26949),l=n(2381),d=n(97622),s=n(81890);function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,f(e,t)}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function h(){h=function(e,t){return new n(e,undefined,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var a=new RegExp(e,o);return t.set(a,r||t.get(e)),f(a,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){return t[n]=e[o[n]],t}),Object.create(null))}return C(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=o(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var a=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+a[t]})))}if("function"==typeof r){var c=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,c)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},h.apply(this,arguments)}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=5e3,g=function(e,t,n,o){return void 0===o&&(o=!1),'<span style="color:'+n+";font-family:'"+t+"';"+(o?"font-weight: bold;":"")+'">'+e+"</span>"},V=/\[(_+)\]/g,b=h(/\[<input[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+(?!disabled)(.*?)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+id="(paperfield_[0-9]+)"(.*?)\/>\]/gm,{id:2}),v=/%s(?:ign)?(?=\\s|$)?/gim,k=function(e,t,n,o,r){var a=e.replace(V,(function(e,a,c,i){var l=function(e,t,n){t=n+"x "+t;var o=document.createElement("canvas").getContext("2d");return o.font=t,o.measureText(e).width}(e,t,n)+"px";return function(e,t,n,o,r,a){return'[<input type="text" style="font:\''+o+"x "+n+"';color:"+r+";min-width:"+t+";max-width:"+t+';" id="'+a+'" maxlength='+e+" size="+e+" />]"}(a.length,l,t,n,o,"paperfield_"+r++)}));return{counter:r,text:a}},_=function(e,t){var n=e.image,a=e.opacity,c={left:n.x+"px",top:n.y+"px",transform:"rotate("+n.rotate+"deg)",opacity:a||1};return(0,o.createVNode)(1,"div",(0,r.classes)(["Paper__Stamp",n.sprite]),null,1,{id:"stamp",style:c})},y=function(e,t){var n,r,a=e.value,c=void 0===a?"":a,l=e.stamps,d=void 0===l?[]:l,s=e.backgroundColor,u=e.readOnly,m=d,p={__html:'<span class="paper-text">'+(n=c,r=u,(r?n.replace(/<input\s[^d]/g,"<input disabled "):n.replace(/<input\sdisabled\s/g,"<input "))+"</span>")};return(0,o.createComponentVNode)(2,i.Box,{position:"relative",backgroundColor:s,width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.Box,{className:"Paper__Page",fillPositionedParent:!0,width:"100%",height:"100%",dangerouslySetInnerHTML:p,p:"10px"}),m.map((function(e,t){return(0,o.createComponentVNode)(2,_,{image:{sprite:e[0],x:e[1],y:e[2],rotate:e[3]}},e[0]+t)}))]})},w=function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).state={x:0,y:0,rotate:0},o.style=null,o.handleMouseMove=function(e){var t=o.findStampPosition(e);t&&(!function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1}(e),o.setState({x:t[0],y:t[1],rotate:t[2]}))},o.handleMouseClick=function(e){if(!(e.pageY<=30)){var t=(0,c.useBackend)(o.context),n=t.act,r=t.data;n("stamp",{x:o.state.x,y:o.state.y,r:o.state.rotate,stamp_class:o.props.stamp_class,stamp_icon_state:r.stamp_icon_state})}},o}u(t,e);var n=t.prototype;return n.findStampPosition=function(e){var t,n=document.querySelector(".Layout__content");if(e.shiftKey&&(t=!0),document.getElementById("stamp")){var o=document.getElementById("stamp"),r=o.clientHeight,a=o.clientWidth,c=t?this.state.y:e.pageY-n.scrollTop-r,i=t?this.state.x:e.pageX-a/2,l=n.clientWidth-a,s=n.clientHeight-n.scrollTop-r,u=Math.atan2(e.pageX-i,e.pageY-c),m=t?u*(180/Math.PI)*-1:this.state.rotate;return[(0,d.clamp)(i,0,l),(0,d.clamp)(c,0,s),m]}},n.componentDidMount=function(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("click",this.handleMouseClick)},n.componentWillUnmount=function(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("click",this.handleMouseClick)},n.render=function(){var e=this.props,t=e.value,n=e.stamp_class,r=e.stamps||[],a={sprite:n,x:this.state.x,y:this.state.y,rotate:this.state.rotate};return(0,o.createFragment)([(0,o.createComponentVNode)(2,y,{readOnly:!0,value:t,stamps:r}),(0,o.createComponentVNode)(2,_,{active_stamp:!0,opacity:.5,image:a})],4)},t}(o.Component),x=function(e,t,n,o,r,c,i,l){void 0===n&&(n=!1),void 0===l&&(l=!1);var d={text:t};if((e=e.trim()).length>0){e+="\n"===e[e.length]?" \n":"\n \n";var u=function(e,t,n){return e.replace(v,(function(){return g(n,"Times New Roman",t,!0)}))}((0,s.sanitizeText)(e),r,i),p=k(u,c,12,r,o),h=function(e){return(0,a.marked)(e,{breaks:!0,smartypants:!0,smartLists:!0,walkTokens:function(e){switch(e.type){case"url":case"autolink":case"reflink":case"link":case"image":e.type="text",e.href=""}},baseUrl:"thisshouldbreakhttp"})}(p.text),C=g(h,c,r,l);d.text+=C,d.field_counter=p.counter}if(n){var f=function(e,t,n,o,r){var a;void 0===r&&(r=!1);for(var c={},i=[];null!==(a=b.exec(e));){var l=a[0],d=a.groups.id;if(d){var u=document.getElementById(d);if(0===(u&&u.value?u.value:"").length)continue;var p=(0,s.sanitizeText)(u.value.trim(),[]);if(0===p.length)continue;var h=u.cloneNode(!0);p.match(v)?(h.style.fontFamily="Times New Roman",r=!0,h.defaultValue=o):(h.style.fontFamily=t,h.defaultValue=p),r&&(h.style.fontWeight="bold"),h.style.color=n,h.disabled=!0;var C=document.createElement("div");C.appendChild(h),c[d]=p,i.push({value:"["+C.innerHTML+"]",raw_text:l})}}if(i.length>0)for(var f,N=m(i);!(f=N()).done;){var g=f.value;e=e.replace(g.raw_text,g.value)}return{text:e,fields:c}}(d.text,c,r,i,l);d.text=f.text,d.form_fields=f.fields}return d},S=function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).state={previewSelected:"Preview",old_text:t.value||"",counter:t.counter||0,textarea_text:"",combined_text:t.value||""},o}u(t,e);var n=t.prototype;return n.createPreviewFromData=function(e,t){void 0===t&&(t=!1);var n=(0,c.useBackend)(this.context).data;return x(e,this.state.old_text,t,this.state.counter,n.pen_color,n.pen_font,n.edit_usr,n.is_crayon)},n.onInputHandler=function(e,t){var n=this;if(t!==this.state.textarea_text){var o=this.state.old_text.length+this.state.textarea_text.length;if(o>N&&(t=o-N>=t.length?"":t.substr(0,t.length-(o-N)))===this.state.textarea_text)return;this.setState((function(){return{textarea_text:t,combined_text:n.createPreviewFromData(t)}}))}},n.finalUpdate=function(e){var t=(0,c.useBackend)(this.context).act,n=this.createPreviewFromData(e,!0);t("save",n),this.setState((function(){return{textarea_text:"",previewSelected:"save",combined_text:n.text,old_text:n.text,counter:n.field_counter}}))},n.render=function(){var e=this,t=this.props,n=t.textColor,r=t.fontFamily,a=t.stamps,c=t.backgroundColor;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",fillPositionedParent:!0,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{textColor:"black",backgroundColor:"Edit"===this.state.previewSelected?"grey":"white",selected:"Edit"===this.state.previewSelected,onClick:function(){return e.setState({previewSelected:"Edit"})},children:"Edit"},"marked_edit"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{textColor:"black",backgroundColor:"Preview"===this.state.previewSelected?"grey":"white",selected:"Preview"===this.state.previewSelected,onClick:function(){return e.setState((function(){return{previewSelected:"Preview",textarea_text:e.state.textarea_text,combined_text:e.createPreviewFromData(e.state.textarea_text).text}}))},children:"Preview"},"marked_preview"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{textColor:"black",backgroundColor:"confirm"===this.state.previewSelected?"red":"save"===this.state.previewSelected?"grey":"white",selected:"confirm"===this.state.previewSelected||"save"===this.state.previewSelected,onClick:function(){"confirm"===e.state.previewSelected?e.finalUpdate(e.state.textarea_text):"Edit"===e.state.previewSelected?e.setState((function(){return{previewSelected:"confirm",textarea_text:e.state.textarea_text,combined_text:e.createPreviewFromData(e.state.textarea_text).text}})):e.setState({previewSelected:"confirm"})},children:"confirm"===this.state.previewSelected?"Confirm":"Save"},"marked_done")]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:1,children:"Edit"===this.state.previewSelected&&(0,o.createComponentVNode)(2,i.TextArea,{value:this.state.textarea_text,textColor:n,fontFamily:r,height:window.innerHeight-80+"px",backgroundColor:c,onInput:this.onInputHandler.bind(this)})||(0,o.createComponentVNode)(2,y,{value:this.state.combined_text,stamps:a,fontFamily:r,textColor:n})})]})},t}(o.Component);t.PaperSheet=function(e,t){var n=(0,c.useBackend)(t).data,r=n.edit_mode,a=n.text,d=n.paper_color,u=void 0===d?"white":d,m=n.pen_color,p=void 0===m?"black":m,h=n.pen_font,C=void 0===h?"Verdana":h,f=n.stamps,N=n.stamp_class,g=n.sizeX,V=n.sizeY,b=n.name,v=n.add_text,k=n.add_font,_=n.add_color,B=n.add_sign,I={text:a,field_counter:n.field_counter};if(v)for(var L=0;L<v.length;L++){var T=_[L],A=k[L],D=B[L],M=x(v[L],I.text,!1,I.field_counter,T,A,D);I.text=M.text,I.field_counter=M.field_counter}else I.text=(0,s.sanitizeText)(a);var E=f||[];return(0,o.createComponentVNode)(2,l.Window,{title:b,theme:"paper",width:g||400,height:V||500,children:(0,o.createComponentVNode)(2,l.Window.Content,{backgroundColor:u,scrollable:!0,children:(0,o.createComponentVNode)(2,i.Box,{id:"page",fitted:!0,fillPositionedParent:!0,children:function(e){switch(e){case 0:return(0,o.createComponentVNode)(2,y,{value:I.text,stamps:E,readOnly:!0});case 1:return(0,o.createComponentVNode)(2,S,{value:I.text,counter:I.field_counter,textColor:p,fontFamily:C,stamps:E,backgroundColor:u});case 2:return(0,o.createComponentVNode)(2,w,{value:I.text,stamps:E,stamp_class:N});default:return"ERROR ERROR WE CANNOT BE HERE!!"}}(r)})})})}},6442:function(e,t,n){"use strict";t.__esModule=!0,t.ParticleAccelerator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ParticleAccelerator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,a.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},14242:function(e,t,n){"use strict";t.__esModule=!0,t.PartsLathe=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118),l=n(49545);t.PartsLathe=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,h=s.building,C=s.buildPercent,f=s.error,N=s.recipies;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[f&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:[" Missing Materials: ",f," "]})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),h&&(0,o.createComponentVNode)(2,a.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",value:C,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,a.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,a.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Queue",children:p.length&&p.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["#",t+1,": ",(0,i.toTitleCase)(e),(t>0||!h)&&(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:t+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Recipes",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},94582:function(e,t,n){"use strict";t.__esModule=!0,t.PathogenicIsolator=void 0;var o=n(96323),r=n(31246),a=n(84645),c=n(26949),i=n(2381),l=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return a("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return a("modal_close")}})],4),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};t.PathogenicIsolator=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data.isolating,(0,r.useLocalState)(t,"tabIndex",0)),m=u[0],p=u[1],h=null;return 0===m?h=(0,o.createComponentVNode)(2,d):1===m&&(h=(0,o.createComponentVNode)(2,s)),(0,a.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===m,onClick:function(){return p(0)},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===m,onClick:function(){return p(1)},children:"Database"})]}),h]})]})};var d=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return a("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return a("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Isolate",onClick:function(){return a("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return a("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,c.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return a("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"The viral database is empty."})})}},31311:function(e,t,n){"use strict";t.__esModule=!0,t.Pda=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(91199),l=n(75168);t.Pda=function(e,t){var n=(0,r.useBackend)(t),m=(n.act,n.data),p=m.app,h=m.owner,C=m.useRetro;if(!h)return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var f=function(e){var t;try{t=l("./"+e+".js")}catch(n){if("MODULE_NOT_FOUND"===n.code)return(0,i.routingError)("notFound",e);throw n}return t[e]||(0,i.routingError)("missingExport",e)}(p.template),N=(0,r.useLocalState)(t,"settingsMode",!1),g=N[0],V=N[1];return(0,o.createComponentVNode)(2,c.Window,{width:580,height:670,theme:C?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:g,setSettingsMode:V}),g&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,f)}),(0,o.createComponentVNode)(2,a.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:V})]})})};var d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,a.Box,{mb:1,children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:"transparent",onClick:function(){return c("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("Retro")},icon:"adjust"})]})]})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return c("Retro")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,a.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return c("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return c("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return c("Authenticate")},content:d})})]})})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,a.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return c("Back")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),c("Home")}})})]})})}},51918:function(e,t,n){"use strict";t.__esModule=!0,t.PersonalCrafting=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(1060),i=n(31246),l=n(26949),d=n(2381);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e,t){return e.dm_category===t.dm_category&&(!e.dm_subcategory||e.dm_subcategory===t.dm_subcategory)};t.PersonalCrafting=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=function(e){for(var t=e.craftability,n=e.crafting_recipes||{},o=[],r={name:"General",categories:[]},a=[r],c=0,i=Object.keys(n);c<i.length;c++){var l=i[c],d=n[l];if("has_subcats"in d){var u={name:l,categories:[]};a.push(u);for(var m=0,p=Object.keys(d);m<p.length;m++){var h=p[m];if("has_subcats"!==h){u.categories.push({name:h,dm_category:l,dm_subcategory:h});for(var C,f=s(d[h]);!(C=f()).done;){var N=C.value;o.push(Object.assign({},N,{dm_category:l,dm_subcategory:h,craftable:Boolean(t[N.ref])}))}}}}else{if(!Array.isArray(d))throw new Error("Invalid entry in 'crafting_recipes', neither '{ has_subcats: 1 }' nor 'Recipe[]'");r.categories.push({name:l,dm_category:l});for(var g,V=s(d);!(g=V()).done;){var b=g.value;o.push(Object.assign({},b,{dm_category:l,craftable:Boolean(t[b.ref])}))}}}return Object.assign({},e,{dm_category:e.category,dm_subcategory:e.subcategory,recipes:o,groups:a})}(n.data),h=u.busy,C=u.display_craftable_only,f=u.display_compact,N=u.recipes,g=u.groups,V=(0,a.flow)([(0,r.filter)((function(e){return m(u,e)&&(!C||e.craftable)})),(0,r.sortBy)((function(e){return[-e.craftable,e.name]}))])(N);return(0,o.createComponentVNode)(2,d.Window,{title:"Crafting Menu",width:700,height:700,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{width:"150px",children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,title:"Category",children:g.map((function(e){return(0,o.createComponentVNode)(2,l.Section,{title:e.name,children:e.categories.map((function(e){return(0,o.createComponentVNode)(2,l.Button,{fluid:!0,color:"transparent",selected:m(u,e),onClick:function(){return c("set_category",{category:e.dm_category,subcategory:e.dm_subcategory})},children:e.name},e.name)}))},e.name)}))})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,title:"Recipes",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button.Checkbox,{content:"Compact",checked:f,onClick:function(){return c("toggle_compact")}}),(0,o.createComponentVNode)(2,l.Button.Checkbox,{content:"Craftable Only",checked:C,onClick:function(){return c("toggle_recipes")}})],4),children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:h?(0,o.createComponentVNode)(2,l.Dimmer,{fontSize:"32px",children:[(0,o.createComponentVNode)(2,l.Icon,{name:"cog",spin:1})," Crafting..."]}):(0,o.createComponentVNode)(2,p,{recipes:V,compact:Boolean(f)})})})})]})})})};var p=function(e,t){var n=e.recipes,r=void 0===n?[]:n,a=e.compact,l=(0,i.useBackend)(t).act;return a?(0,o.createComponentVNode)(2,h,{recipes:r}):r.map((function(e){return(0,o.createVNode)(1,"div",(0,c.classes)(["PersonalCraftingGridItem",e.craftable&&"PersonalCraftingGridItem--craftable"]),(0,o.createVNode)(1,"div","PersonalCraftingGridItem__content",[(0,o.createVNode)(1,"div","PersonalCraftingGridItem__name",e.name,0),!!e.req_text&&e.req_text.split(", ").map((function(e,t){return(0,o.createVNode)(1,"div","PersonalCraftingGridItem__prereq",e,0,null,e+t)})),!!e.catalyst_text&&(0,o.createVNode)(1,"div","PersonalCraftingGridItem__extra",[(0,o.createVNode)(1,"b",null,"Catalyst:",16),(0,o.createTextVNode)(" "),e.catalyst_text],0),!!e.tool_text&&(0,o.createVNode)(1,"div","PersonalCraftingGridItem__extra",[(0,o.createVNode)(1,"b",null,"Tools:",16),(0,o.createTextVNode)(" "),e.tool_text],0),(0,o.createVNode)(1,"div","PersonalCraftingGridItem__craftability",e.craftable?"Craft":"Uncraftable",0)],0),2,{onClick:function(){e.craftable&&l("make",{recipe:e.ref})}},e.ref)}))},h=function(e,t){var n=e.recipes,r=void 0===n?[]:n,a=(0,i.useBackend)(t).act;return(0,o.createVNode)(1,"table",null,r.map((function(e){return(0,o.createVNode)(1,"tr","candystripe",[(0,o.createComponentVNode)(2,l.Table.Cell,{bold:!0,maxWidth:"250px",children:e.name}),(0,o.createComponentVNode)(2,l.Table.Cell,{opacity:.6,children:e.req_text}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l.Button,{icon:"cog",content:"Craft",disabled:!e.craftable,tooltip:e.tool_text&&"Tools needed: "+e.tool_text,tooltipPosition:"left",onClick:function(){return a("make",{recipe:e.ref})}})})],4,null,e.ref)})),0)}},28508:function(e,t,n){"use strict";t.__esModule=!0,t.Photocopier=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.Photocopier=function(e,t){var n=(0,a.useBackend)(t).data,r=n.isAI,l=n.has_toner,d=n.has_item,h=n.forms_exist;return(0,o.createComponentVNode)(2,i.Window,{title:"Photocopier",width:320,height:512,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[l?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,c.Section,{title:"Toner",children:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No inserted toner cartridge."})}),h?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,c.Section,{title:"Blanks",children:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No forms found. Please contact your system administrator."})}),d?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No inserted item."})}),!!r&&(0,o.createComponentVNode)(2,p)]})})};var s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.has_toner,d=i.max_toner,s=i.current_toner,u=.66*d,m=.33*d;return(0,o.createComponentVNode)(2,c.Section,{title:"Toner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,onClick:function(){return r("remove_toner")},icon:"eject",children:"Eject"}),children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[u,d],average:[m,u],bad:[0,m]},value:s,minValue:0,maxValue:d})})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.color_mode,d=i.is_photo,s=i.num_copies,u=i.has_enough_toner;return(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:[(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:s,onDrag:function(e,t){return r("set_copies",{num_copies:t})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{ml:.2,icon:"copy",textAlign:"center",disabled:!u,onClick:function(){return r("make_copy")},children:"Copy"})})]}),!!d&&(0,o.createComponentVNode)(2,c.Flex,{mt:.5,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mr:.4,width:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,textAlign:"center",selected:"Greyscale"===l,onClick:function(){return r("color_mode",{mode:"Greyscale"})},children:"Greyscale"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:.4,width:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,textAlign:"center",selected:"Color"===l,onClick:function(){return r("color_mode",{mode:"Color"})},children:"Color"})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return r("remove")},children:"Remove item"})]})},m=function(e,t){for(var n,i=(0,a.useBackend)(t),d=i.act,s=i.data,u=s.blanks,m=s.category,p=s.has_toner,h=(0,r.sortBy)((function(e){return u.category}))(u||[]),C=[],f=l(h);!(n=f()).done;){var N=n.value;C.includes(N.category)||C.push(N.category)}var g=null!=m?m:C[0],V=h.filter((function(e){return e.category===g}));return(0,o.createComponentVNode)(2,c.Section,{title:"Blanks",children:[(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",options:C,selected:g,onSelected:function(e){return d("choose_category",{category:e})}}),(0,o.createComponentVNode)(2,c.Box,{mt:.4,children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{title:e.name,disabled:!p,onClick:function(){return d("print_blank",{name:e.name,info:e.info})},children:e.code},e.code)}))})]})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.can_AI_print;return(0,o.createComponentVNode)(2,c.Section,{title:"AI Options",children:(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!i,onClick:function(){return r("ai_photo")},children:"Print photo from database"})})})}},41663:function(e,t,n){"use strict";t.__esModule=!0,t.PhysicalNewscaster=void 0;var o=n(96323),r=n(76225),a=n(2381);t.PhysicalNewscaster=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:575,height:560,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Newscaster)})})}},41245:function(e,t,n){"use strict";t.__esModule=!0,t.PipeDispenser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(3711);t.PipeDispenser=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.disposals,u=d.p_layer,m=d.pipe_layers,p=d.categories,h=void 0===p?[]:p,C=(0,r.useLocalState)(t,"categoryName"),f=C[0],N=C[1],g=h.find((function(e){return e.cat_name===f}))||h[0];return(0,o.createComponentVNode)(2,c.Window,{width:425,height:515,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[!s&&(0,o.createComponentVNode)(2,a.Section,{title:"Layer",children:(0,o.createComponentVNode)(2,a.Box,{children:Object.keys(m).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:m[e]===u,content:e,onClick:function(){return l("p_layer",{p_layer:m[e]})}},e)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Pipes",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:h.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{fluid:!0,icon:i.ICON_BY_CATEGORY_NAME[e.cat_name],selected:e.cat_name===g.cat_name,onClick:function(){return N(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==g?void 0:g.recipes.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,ellipsis:!0,content:e.pipe_name,title:e.pipe_name,onClick:function(){return l("dispense_pipe",{ref:e.ref,bent:e.bent,category:g.cat_name})}},e.pipe_name)}))]})]})})}},32022:function(e,t,n){"use strict";t.__esModule=!0,t.PlantAnalyzer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PlantAnalyzer=function(e,t){var n=(0,r.useBackend)(t).data,a=250;return n.seed&&(a+=18*n.seed.trait_info.length),n.reagents&&n.reagents.length&&(a+=55,a+=20*n.reagents.length),(0,o.createComponentVNode)(2,c.Window,{width:400,height:a,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.no_seed,d=i.seed,s=i.reagents;return l?(0,o.createComponentVNode)(2,a.Section,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,o.createComponentVNode)(2,a.Section,{title:"Plant Information",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print")},children:"Print Report"}),(0,o.createComponentVNode)(2,a.Button,{icon:"window-close",color:"red",onClick:function(){return c("close")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plant Name",children:[d.name,"#",d.uid]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Endurance",children:d.endurance}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Yield",children:d.yield}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maturation Time",children:d.maturation_time}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Production Time",children:d.production_time}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Potency",children:d.potency})]}),s.length&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Plant Reagents",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume," unit(s)."]},e.name)}))})})||null,(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Other Data",children:d.trait_info.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:.4,children:e},e)}))})]})}},51808:function(e,t,n){"use strict";t.__esModule=!0,t.PointDefenseControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PointDefenseControl=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.id,s=l.turrets;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Fire Assist Mainframe: "+(d||"[no tag]"),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{level:2,title:e.id,buttons:(0,o.createComponentVNode)(2,a.Button,{selected:e.active,icon:"power-off",onClick:function(){return i("toggle_active",{target:e.ref})},children:e.active?"Online":"Offline"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Effective range",children:e.effective_range}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reaction wheel delay",children:e.reaction_wheel_delay}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recharge time",children:e.recharge_time})]})},e.id)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No weapon systems detected. Please check network connection."})})})})}},88694:function(e,t,n){"use strict";t.__esModule=!0,t.PortableChemMixer=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(2381);t.PortableChemMixer=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=!!s.recordingRecipe,m=s.beakerTransferAmounts||[],p=u&&Object.keys(s.recordingRecipe).map((function(e){return{id:e,name:(0,a.toTitleCase)(e.replace(/_/," ")),volume:s.recordingRecipe[e]}}))||s.beakerContents||[],h=(0,r.sortBy)((function(e){return e.title}))(s.chemicals);return(0,o.createComponentVNode)(2,l.Window,{width:465,height:550,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Dispense",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"plus",selected:e===s.amount,content:e,onClick:function(){return d("amount",{target:e})}},e)})),children:(0,o.createComponentVNode)(2,i.Box,{children:h.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"tint",fluid:!0,lineHeight:1.75,content:"("+e.volume+") "+e.title,tooltip:"pH: "+e.pH,onClick:function(){return d("dispense",{reagent:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"Disposal controls",buttons:m.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"minus",disabled:u,content:e,onClick:function(){return d("remove",{amount:e})}},e)})),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",buttons:!!s.isBeakerLoaded&&(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",disabled:!s.isBeakerLoaded,onClick:function(){return d("eject")}}),children:(u?"Virtual beaker":s.isBeakerLoaded&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.AnimatedNumber,{initial:0,value:s.beakerCurrentVolume}),(0,o.createTextVNode)("/"),s.beakerMaxVolume,(0,o.createTextVNode)(" units")],0))||"No beaker"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Contents",children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:s.isBeakerLoaded||u?0===p.length&&"Nothing":"N/A"}),p.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{color:"label",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{initial:0,value:e.volume})," ","units of ",e.name]},e.name)})),p.length>0&&!!s.showpH&&(0,o.createComponentVNode)(2,i.Box,{children:["pH:",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:s.beakerCurrentpH})]})]})]})})]})})}},1782:function(e,t,n){"use strict";t.__esModule=!0,t.PortableGenerator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PortableGenerator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.stack_percent,s=(d>50?"good":d>15&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{width:450,height:340,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[!l.anchored&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,a.Button,{icon:l.active?"power-off":"times",onClick:function(){return i("toggle_power")},disabled:!l.ready_to_boot,children:l.active?"On":"Off"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:l.sheet_name+" sheets",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s,children:l.sheets}),l.sheets>=1&&(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",disabled:l.active,onClick:function(){return i("eject")},children:"Eject"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current sheet level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.stack_percent/100,ranges:{good:[.1,Infinity],average:[.01,.1],bad:[-Infinity,.01]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Heat level",children:l.current_heat<100?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Nominal"}):l.current_heat<200?(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:"Caution"}):(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"DANGER"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Output",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current output",children:l.power_output}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"minus",onClick:function(){return i("lower_power")},children:l.power_generated}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",onClick:function(){return i("higher_power")},children:l.power_generated})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:!l.connected&&"bad",children:l.connected?l.power_available:"Unconnected"})})]})})]})})}},13484:function(e,t,n){"use strict";t.__esModule=!0,t.PortablePump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(41161);t.PortablePump=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.direction,u=(d.holding,d.target_pressure),m=d.default_pressure,p=d.min_pressure,h=d.max_pressure;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:315,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,a.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:u,unit:"kPa",width:"75px",minValue:p,maxValue:h,step:10,onChange:function(e,t){return l("pressure",{pressure:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:u===h,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},54652:function(e,t,n){"use strict";t.__esModule=!0,t.PortableScrubber=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=n(2381),l=n(41161);t.PortableScrubber=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data.filter_types||[];return(0,o.createComponentVNode)(2,i.Window,{width:320,height:396,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.PortableBasicInfo),(0,o.createComponentVNode)(2,a.Section,{title:"Filters",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.enabled?"check-square-o":"square-o",content:(0,c.getGasLabel)(e.gas_id,e.gas_name),selected:e.enabled,onClick:function(){return d("toggle_filter",{val:e.gas_id})}},e.id)}))})]})})}},48626:function(e,t,n){"use strict";t.__esModule=!0,t.PortableTurret=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PortableTurret=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.silicon_user,s=l.locked,u=l.on,m=l.check_weapons,p=l.neutralize_criminals,h=l.neutralize_all,C=l.neutralize_unidentified,f=l.neutralize_nonmindshielded,N=l.neutralize_cyborgs,g=l.neutralize_heads,V=l.manual_control,b=l.allow_manual_control,v=l.lasertag_turret;return(0,o.createComponentVNode)(2,c.Window,{width:310,height:v?110:292,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",buttons:!v&&(!!b||!!V&&!!d)&&(0,o.createComponentVNode)(2,a.Button,{icon:V?"wifi":"terminal",content:V?"Remotely Controlled":"Manual Control",disabled:V,color:"bad",onClick:function(){return i("manual")}}),children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:s,onClick:function(){return i("power")}})})})}),!v&&(0,o.createComponentVNode)(2,a.Section,{title:"Target Settings",buttons:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:!g,content:"Ignore Command",disabled:s,onClick:function(){return i("shootheads")}}),children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:h,content:"Non-Security and Non-Command",disabled:s,onClick:function(){return i("shootall")}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:m,content:"Unauthorized Weapons",disabled:s,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:C,content:"Unidentified Life Signs",disabled:s,onClick:function(){return i("checkxenos")}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:f,content:"Non-Mindshielded",disabled:s,onClick:function(){return i("checkloyal")}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:p,content:"Wanted Criminals",disabled:s,onClick:function(){return i("shootcriminals")}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,checked:N,content:"Cyborgs",disabled:s,onClick:function(){return i("shootborgs")}})]})],0)]})})}},91569:function(e,t,n){"use strict";t.__esModule=!0,t.PortraitPicker=void 0;var o=n(96323),r=n(39646),a=n(31246),c=n(26949),i=n(2381);t.PortraitPicker=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=(0,a.useLocalState)(t,"listIndex",0),u=s[0],m=s[1],p=d.paintings,h=d.search_string,C=d.search_mode,f=!!p.length,N=f&&p[u].title,g=f&&"By "+p[u].creator,V=f&&"paintings_"+p[u].md5;return(0,o.createComponentVNode)(2,i.Window,{theme:"ntos",title:"Portrait Picker",width:400,height:406,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",direction:"column",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Search",children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search Paintings...",value:h,onChange:function(e,t){l("search",{to_search:t}),m(0)}}),(0,o.createComponentVNode)(2,c.Button,{content:C,onClick:function(){l("change_search_mode"),h&&m(0)}})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,grow:2,children:(0,o.createComponentVNode)(2,c.Section,{fill:!0,children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",align:"center",justify:"center",direction:"column",children:f?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(V),height:"128px",width:"128px",style:{"vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Section__titleText",children:N}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:g})],4):(0,o.createComponentVNode)(2,c.Flex.Item,{className:"Section__titleText",children:"No paintings found."})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Flex,{children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Section,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{icon:"angle-double-left",disabled:0===u,onClick:function(){return m(0)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Button,{disabled:0===u,icon:"chevron-left",onClick:function(){return m(u-1)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:3,children:(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Select Portrait",disabled:!f,onClick:function(){return l("select",{selected:p[u].ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{icon:"chevron-right",disabled:u>=p.length-1,onClick:function(){return m(u+1)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"angle-double-right",disabled:u>=p.length-1,onClick:function(){return m(p.length-1)}})})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:1,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Only the 23x23 or 24x24 canvas size art can be displayed. Make sure you read the warning below before embracing the wide wonderful world of artistic expression!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"WARNING: While Central Command loves art as much as you do, choosing erotic art will lead to severe consequences. Additionally, Central Command reserves the right to request you change your display portrait, for any reason."})})]})]})})})}},52484:function(e,t,n){"use strict";t.__esModule=!0,t.AreaCharge=t.PowerMonitorFocus=t.PowerMonitorContent=t.PowerMonitor=t.powerRank=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(1060),l=n(31246),d=n(26949),s=n(2381),u=5e5,m=function(e){var t=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)};t.powerRank=m;t.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,t){var n=(0,l.useBackend)(t),r=n.act,a=n.data,c=(a.map_levels,a.all_sensors),i=a.focus;if(i)return(0,o.createComponentVNode)(2,h,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return c&&(s=(0,o.createComponentVNode)(2,d.Table,{children:c.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};t.PowerMonitorContent=p;var h=function(e,t){var n=(0,l.useBackend)(t),i=n.act,s=(n.data,e.focus),p=s.history,h=(0,l.useLocalState)(t,"sortByField",null),N=h[0],g=h[1],V=p.supply[p.supply.length-1]||0,b=p.demand[p.demand.length-1]||0,v=p.supply.map((function(e,t){return[t,e]})),k=p.demand.map((function(e,t){return[t,e]})),_=Math.max.apply(Math,[u].concat(p.supply,p.demand)),y=(0,a.flow)([(0,r.map)((function(e,t){return Object.assign({},e,{id:e.name+t})})),"name"===N&&(0,r.sortBy)((function(e){return e.name})),"charge"===N&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===N&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===N&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:V,minValue:0,maxValue:_,color:"teal",children:(0,c.toFixed)(V/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:b,minValue:0,maxValue:_,color:"pink",children:(0,c.toFixed)(b/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,_],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,_],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===N,content:"Name",onClick:function(){return g("name"!==N&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===N,content:"Charge",onClick:function(){return g("charge"!==N&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===N,content:"Draw",onClick:function(){return g("draw"!==N&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===N,content:"Problems",onClick:function(){return g("problems"!==N&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),y.map((function(e,t){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,C,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,f,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};t.PowerMonitorFocus=h;var C=function(e){var t=e.charging,n=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===t&&(n>50?"battery-half":"battery-quarter")||1===t&&"bolt"||2===t&&"battery-full",color:0===t&&(n>50?"yellow":"red")||1===t&&"yellow"||2===t&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,c.toFixed)(n)+"%"})],4)};t.AreaCharge=C,C.defaultHooks=i.pureComponentHooks;var f=function(e){var t=e.status,n=Boolean(2&t),r=Boolean(1&t),a=(n?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:n?"good":"bad",content:r?undefined:"M",title:a})};f.defaultHooks=i.pureComponentHooks},17989:function(e,t,n){"use strict";t.__esModule=!0,t.AntagsPage=void 0;var o=n(96323),r=n(1397),a=n(1060),c=n(31246),i=n(26949),l=n(78580);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}for(var u,m=n(90507),p=new Map,h=(0,r.binaryInsertWith)((function(e){return e.priority+"_"+e.name})),C=d(m.keys());!(u=C()).done;){var f=m(u.value)["default"];f&&p.set(f.category,h(p.get(f.category)||[],f))}var N=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,s="PreferencesMenu__Antags__antagSelection",u=(0,c.useLocalState)(t,"AntagSelection_predictedState",new Set(l.selected_antags)),m=u[0],p=u[1],h=function(e){for(var t,n=new Set(m),o=d(e);!(t=o()).done;){var a=t.value;n.add(a)}p(n),r("set_antags",{antags:e,toggled:!0})},C=function(e){for(var t,n=new Set(m),o=d(e);!(t=o()).done;){var a=t.value;n["delete"](a)}p(n),r("set_antags",{antags:e,toggled:!1})},f=e.antagonists.map((function(e){return e.key}));return(0,o.createComponentVNode)(2,i.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{color:"good",onClick:function(){return h(f)},children:"Enable All"}),(0,o.createComponentVNode)(2,i.Button,{color:"bad",onClick:function(){return C(f)},children:"Disable All"})],4),children:(0,o.createComponentVNode)(2,i.Flex,{className:s,align:"flex-end",wrap:!0,children:e.antagonists.map((function(e){var t=l.antag_bans&&-1!==l.antag_bans.indexOf(e.key),n=l.antag_days_left&&l.antag_days_left[e.key]||0;return(0,o.createComponentVNode)(2,i.Flex.Item,{className:(0,a.classes)([s+"__antagonist",s+"__antagonist--"+(t||n>0?"banned":m.has(e.key)?"on":"off")]),children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{style:{"font-weight":"bold","margin-top":"auto","max-width":"100px","text-align":"center"},children:e.name}),(0,o.createComponentVNode)(2,i.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,i.Tooltip,{content:t?"You are banned from "+e.name+".":e.description.map((function(t,n){return(0,o.createVNode)(1,"div",null,[t,n!==e.description.length-1&&(0,o.createComponentVNode)(2,i.Divider)],0,null,e.key+n)})),position:"bottom",children:(0,o.createComponentVNode)(2,i.Box,{className:"antagonist-icon-parent",onClick:function(){t||(m.has(e.key)?C([e.key]):h([e.key]))},children:[(0,o.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["antagonists96x96",e.key,"antagonist-icon"])}),t&&(0,o.createComponentVNode)(2,i.Box,{className:"antagonist-banned-slash"}),n>0&&(0,o.createComponentVNode)(2,i.Box,{className:"antagonist-days-left",children:[(0,o.createVNode)(1,"b",null,n,0)," days left"]})]})})})]})},e.key)}))})})};t.AntagsPage=function(){return(0,o.createComponentVNode)(2,i.Box,{className:"PreferencesMenu__Antags",children:[(0,o.createComponentVNode)(2,N,{name:"Roundstart",antagonists:p.get(l.Category.Roundstart)}),(0,o.createComponentVNode)(2,N,{name:"Midround",antagonists:p.get(l.Category.Midround)}),(0,o.createComponentVNode)(2,N,{name:"Latejoin",antagonists:p.get(l.Category.Latejoin)})]})}},92707:function(e,t,n){"use strict";t.__esModule=!0,t.CharacterPreferenceWindow=void 0;var o,r=n(96323),a=n(74593),c=n(31246),i=n(26949),l=n(2381),d=n(12279),s=n(17989),u=n(93207),m=n(88705),p=n(81297),h=n(33784);!function(e){e[e.Antags=0]="Antags",e[e.Main=1]="Main",e[e.Jobs=2]="Jobs",e[e.Species=3]="Species",e[e.Quirks=4]="Quirks"}(o||(o={}));var C=function(e){var t=e.profiles;return(0,r.createComponentVNode)(2,i.Stack,{justify:"center",wrap:!0,children:t.map((function(t,n){return(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Button,{selected:n===e.activeSlot,onClick:function(){e.onClick(n)},fluid:!0,children:null!=t?t:"New Character"})},n)}))})};t.CharacterPreferenceWindow=function(e,t){var n,f=(0,c.useBackend)(t),N=f.act,g=f.data,V=(0,c.useLocalState)(t,"currentPage",o.Main),b=V[0],v=V[1];switch(b){case o.Antags:n=(0,r.createComponentVNode)(2,s.AntagsPage);break;case o.Jobs:n=(0,r.createComponentVNode)(2,u.JobsPage);break;case o.Main:n=(0,r.createComponentVNode)(2,m.MainPage,{openSpecies:function(){return v(o.Species)}});break;case o.Species:n=(0,r.createComponentVNode)(2,p.SpeciesPage,{closeSpecies:function(){return v(o.Main)}});break;case o.Quirks:n=(0,r.createComponentVNode)(2,h.QuirksPage);break;default:(0,a.exhaustiveCheck)(b)}return(0,r.createComponentVNode)(2,l.Window,{title:"Character Preferences",width:920,height:770,children:(0,r.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:[(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,C,{activeSlot:g.active_slot-1,onClick:function(e){N("change_slot",{slot:e+1})},profiles:g.character_profiles})}),!g.content_unlocked&&(0,r.createComponentVNode)(2,i.Stack.Item,{align:"center",children:"Buy BYOND premium for more slots!"}),(0,r.createComponentVNode)(2,i.Stack.Divider),(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,d.PageButton,{currentPage:b,page:o.Main,setPage:v,otherActivePages:[o.Species],children:"Character"})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,d.PageButton,{currentPage:b,page:o.Jobs,setPage:v,children:"Occupations"})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,d.PageButton,{currentPage:b,page:o.Antags,setPage:v,children:"Antagonists"})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,d.PageButton,{currentPage:b,page:o.Quirks,setPage:v,children:"Quirks"})})]})}),(0,r.createComponentVNode)(2,i.Stack.Divider),(0,r.createComponentVNode)(2,i.Stack.Item,{children:n})]})})})}},63511:function(e,t,n){"use strict";t.__esModule=!0,t.CharacterPreview=void 0;var o=n(96323),r=n(26949);t.CharacterPreview=function(e){return(0,o.createComponentVNode)(2,r.ByondUi,{width:"220px",height:e.height,params:{id:e.id,type:"map"}})}},10492:function(e,t,n){"use strict";t.__esModule=!0,t.GamePreferenceWindow=void 0;var o=n(96323),r=n(26949),a=n(2381),c=n(5337),i=n(54040),l=n(12279),d=n(31246),s=n(6971),u=n(74593);t.GamePreferenceWindow=function(e,t){var n,m,p=(0,d.useBackend)(t),h=(p.act,p.data,(0,d.useLocalState)(t,"currentPage",null!=(n=e.startingPage)?n:s.GamePreferencesSelectedPage.Settings)),C=h[0],f=h[1];switch(C){case s.GamePreferencesSelectedPage.Keybindings:m=(0,o.createComponentVNode)(2,c.KeybindingsPage);break;case s.GamePreferencesSelectedPage.Settings:m=(0,o.createComponentVNode)(2,i.GamePreferencesPage);break;default:(0,u.exhaustiveCheck)(C)}return(0,o.createComponentVNode)(2,a.Window,{title:"Game Preferences",width:920,height:770,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.PageButton,{currentPage:C,page:s.GamePreferencesSelectedPage.Settings,setPage:f,children:"Settings"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.PageButton,{currentPage:C,page:s.GamePreferencesSelectedPage.Keybindings,setPage:f,children:"Keybindings"})})]})}),(0,o.createComponentVNode)(2,r.Stack.Divider),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,shrink:!0,basis:"1px",children:m})]})})})}},54040:function(e,t,n){"use strict";t.__esModule=!0,t.GamePreferencesPage=void 0;var o,r=n(96323),a=n(1397),c=n(31246),i=n(26949),l=(o=n(24312))&&o.__esModule?o:{"default":o},d=n(17355),s=n(90704);var u=(0,a.binaryInsertWith)((function(e){return e.name})),m=(0,a.sortBy)((function(e){return e[0]}));t.GamePreferencesPage=function(e,t){for(var n=(0,c.useBackend)(t),o=n.act,a=n.data,p={},h=0,C=Object.entries(a.character_preferences.game_preferences);h<C.length;h++){var f=C[h],N=f[0],g=f[1],V=l["default"][N],b=(null==V?void 0:V.name)||N;null!=V&&V.description&&(b=(0,r.createComponentVNode)(2,i.Box,{as:"span",style:{"border-bottom":"2px dotted rgba(255, 255, 255, 0.8)"},children:b}));var v=(0,r.createComponentVNode)(2,i.Flex.Item,{grow:1,pr:2,basis:0,ml:2,children:b});null!=V&&V.description&&(v=(0,r.createComponentVNode)(2,i.Tooltip,{content:V.description,position:"bottom-start",children:v}));var k=(0,r.createComponentVNode)(2,i.Flex,{align:"center",pb:2,children:[v,(0,r.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:V&&(0,r.createComponentVNode)(2,d.FeatureValueInput,{feature:V,featureId:N,value:g,act:o})||(0,r.createComponentVNode)(2,i.Box,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},N),_={name:(null==V?void 0:V.name)||N,children:k},y=(null==V?void 0:V.category)||"ERROR";p[y]=u(p[y]||[],_)}var w=m(Object.entries(p)).map((function(e){return[e[0],e[1].map((function(e){return e.children}))]}));return(0,r.createComponentVNode)(2,s.TabbedMenu,{categoryEntries:w,contentProps:{fontSize:1.5}})}},93207:function(e,t,n){"use strict";t.__esModule=!0,t.JobsPage=void 0;var o=n(96323),r=n(1397),a=n(1060),c=n(31246),i=n(26949),l=n(6971),d=n(6168),s="18px",u=function(e){var t="PreferencesMenu__Jobs__departments__priority";return(0,o.createComponentVNode)(2,i.Stack.Item,{height:s,children:(0,o.createComponentVNode)(2,i.Button,{className:(0,a.classes)([t,e.modifier&&t+"--"+e.modifier]),color:e.enabled?e.color:"white",circular:!0,onClick:e.onClick,tooltip:e.name,tooltipPosition:"bottom",height:s,width:s})})},m={},p=function(){var e="PreferencesMenu__Jobs__PriorityHeader";return(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0}),(0,o.createComponentVNode)(2,i.Stack.Item,{className:e,children:"Off"}),(0,o.createComponentVNode)(2,i.Stack.Item,{className:e,children:"Low"}),(0,o.createComponentVNode)(2,i.Stack.Item,{className:e,children:"Medium"}),(0,o.createComponentVNode)(2,i.Stack.Item,{className:e,children:"High"})]})},h=function(e){var t=e.createSetPriority,n=e.isOverflow,r=e.priority;return(0,o.createComponentVNode)(2,i.Stack,{style:{"align-items":"center",height:"100%","justify-content":"flex-end","padding-left":"0.3em"},children:n?(0,o.createFragment)([(0,o.createComponentVNode)(2,u,{name:"Off",modifier:"off",color:"light-grey",enabled:!r,onClick:t(null)}),(0,o.createComponentVNode)(2,u,{name:"On",color:"green",enabled:!!r,onClick:t(l.JobPriority.High)})],4):(0,o.createFragment)([(0,o.createComponentVNode)(2,u,{name:"Off",modifier:"off",color:"light-grey",enabled:!r,onClick:t(null)}),(0,o.createComponentVNode)(2,u,{name:"Low",color:"red",enabled:r===l.JobPriority.Low,onClick:t(l.JobPriority.Low)}),(0,o.createComponentVNode)(2,u,{name:"Medium",color:"yellow",enabled:r===l.JobPriority.Medium,onClick:t(l.JobPriority.Medium)}),(0,o.createComponentVNode)(2,u,{name:"High",color:"green",enabled:r===l.JobPriority.High,onClick:t(l.JobPriority.High)})],4)})},C=function(e,t){var n,r=(0,c.useBackend)(t).data,a=e.className,l=e.job,d=e.name,s=r.overflow_role===d,u=r.job_preferences[d],p=function(e,t){if(m[t]!==undefined)return m[t];var n=new Map,o=function(o){var r=n.get(o);if(r!==undefined)return r;var a=function(){(0,(0,c.useBackend)(e).act)("set_job_preference",{job:t,level:o})};return n.set(o,a),a};return m[t]=o,o}(t,d),C=r.job_required_experience&&r.job_required_experience[d],f=r.job_days_left?r.job_days_left[d]:0;if(C){var N=C.experience_type,g=C.required_playtime,V=Math.ceil(g/60);n=(0,o.createComponentVNode)(2,i.Stack,{align:"center",height:"100%",pr:1,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"right",children:[(0,o.createVNode)(1,"b",null,[V,(0,o.createTextVNode)("h")],0)," as ",N]})})}else n=f>0?(0,o.createComponentVNode)(2,i.Stack,{align:"center",height:"100%",pr:1,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"right",children:[(0,o.createVNode)(1,"b",null,f,0)," day",1===f?"":"s"," left"]})}):r.job_bans&&-1!==r.job_bans.indexOf(d)?(0,o.createComponentVNode)(2,i.Stack,{align:"center",height:"100%",pr:1,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"right",children:(0,o.createVNode)(1,"b",null,"Banned",16)})}):(0,o.createComponentVNode)(2,h,{createSetPriority:p,isOverflow:s,priority:u});return(0,o.createComponentVNode)(2,i.Stack.Item,{className:a,height:"100%",style:{"margin-top":0},children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,align:"center",children:[(0,o.createComponentVNode)(2,i.Tooltip,{content:l.description,position:"bottom-start",children:(0,o.createComponentVNode)(2,i.Stack.Item,{className:"job-name",width:"50%",style:{"padding-left":"0.3em"},children:d})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,className:"options",children:n})]})})},f=function(e){var t=e.children,n=e.department,c="PreferencesMenu__Jobs__departments--"+n;return(0,o.createComponentVNode)(2,d.ServerPreferencesFetcher,{render:function(e){if(!e)return null;var l=e.jobs,d=l.departments,s=l.jobs,u=d[n];if(!u)return null;var m,p,h=(m=Object.entries(s).filter((function(e){return e[0],e[1].department===n})),p=u.head,(0,r.sortBy)((function(e){var t=e[0];return e[1],t===p?-1:1}),(function(e){var t=e[0];return e[1],t}))(m));return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:h.map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,C,{className:(0,a.classes)([c,t===u.head&&"head"]),job:n,name:t},t)}))}),t]})}})},N=function(e){return(0,o.createComponentVNode)(2,i.Box,{height:"calc("+e.amount+"px + 0.2em)"})},g=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.character_preferences.misc.joblessrole,s=[{displayText:"Join as "+a.overflow_role+" if unavailable",value:l.JoblessRole.BeOverflow},{displayText:"Join as a random job if unavailable",value:l.JoblessRole.BeRandomJob},{displayText:"Return to lobby if unavailable",value:l.JoblessRole.ReturnToLobby}];return(0,o.createComponentVNode)(2,i.Box,{position:"absolute",right:0,width:"30%",children:(0,o.createComponentVNode)(2,i.Dropdown,{width:"100%",selected:d,onSelected:(0,l.createSetPreference)(r,"joblessrole"),options:s,displayText:(0,o.createComponentVNode)(2,i.Box,{pr:1,children:s.find((function(e){return e.value===d})).displayText})})})};t.JobsPage=function(){return(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,N,{amount:22}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,className:"PreferencesMenu__Jobs",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{mr:1,children:[(0,o.createComponentVNode)(2,N,{amount:36}),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,f,{department:"Engineering",children:(0,o.createComponentVNode)(2,N,{amount:6})}),(0,o.createComponentVNode)(2,f,{department:"Science",children:(0,o.createComponentVNode)(2,N,{amount:6})}),(0,o.createComponentVNode)(2,f,{department:"Silicon",children:(0,o.createComponentVNode)(2,N,{amount:12})}),(0,o.createComponentVNode)(2,f,{department:"Assistant"})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{mr:1,children:[(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,f,{department:"Captain",children:(0,o.createComponentVNode)(2,N,{amount:6})}),(0,o.createComponentVNode)(2,f,{department:"Service",children:(0,o.createComponentVNode)(2,N,{amount:6})}),(0,o.createComponentVNode)(2,f,{department:"Cargo"})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,N,{amount:36}),(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,f,{department:"Security",children:(0,o.createComponentVNode)(2,N,{amount:6})}),(0,o.createComponentVNode)(2,f,{department:"Medical"})]})]})})]})],4)}},5337:function(e,t,n){"use strict";t.__esModule=!0,t.KeybindingsPage=void 0;var o=n(96323),r=n(26949),a=n(39646),c=n(31246),i=n(1397),l=n(90704),d=n(94500);function s(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){return"Alt"!==e.key&&"Control"!==e.key&&"Shift"!==e.key&&"Esc"!==e.key},C={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},f=(0,i.sortBy)((function(e){e[0];return e[1].name})),N=(0,i.sortBy)((function(e){var t=e[0];e[1];return t})),g=function(e){var t="";if(e.altKey&&(t+="Alt"),e.ctrlKey&&(t+="Ctrl"),e.shiftKey&&(t+="Shift"),3===e.location&&(t+="Numpad"),h(e)){var n=e.key.toUpperCase();t+=C[n]||n}return t},V=function(e,t){e.push(e.splice(e.findIndex((function(e){var n=e[0];e[1];return n===t})),1)[0])},b=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.typingHotkey!==e.typingHotkey||this.props.currentHotkey!==e.currentHotkey},n.render=function(){var e=this.props,t=e.currentHotkey,n=e.onClick,a=e.typingHotkey,c=(0,o.createComponentVNode)(2,r.Button,{fluid:!0,textAlign:"center",captureKeys:a===undefined,onClick:n,selected:a!==undefined,children:a||t||"Unbound"});return a&&n?(0,o.createComponentVNode)(2,r.TrackOutsideClicks,{onOutsideClick:n,children:c}):c},t}(o.Component),v=function(e){var t=e.keybinding;return t.description?(0,o.createComponentVNode)(2,r.Tooltip,{content:t.description,position:"bottom",children:(0,o.createComponentVNode)(2,r.Box,{as:"span",style:{"border-bottom":"2px dotted rgba(255, 255, 255, 0.8)"},children:t.name})}):(0,o.createVNode)(1,"span",null,t.name,0)};v.defaultHooks={onComponentShouldUpdate:function(e,t){return e.keybinding!==t.keybinding}};var k=function(e,t){var n=(0,c.useBackend)(t).act;return(0,o.createComponentVNode)(2,r.Button,{fluid:!0,textAlign:"center",onClick:function(){n("reset_keybinds_to_defaults",{keybind_name:e.keybindingId})},children:"Reset to Defaults"})},_=function(e){function t(){var t;return(t=e.call(this)||this).cancelNextKeyUp=void 0,t.keybindingOnClicks={},t.lastKeybinds=void 0,t.state={lastKeyboardEvent:undefined,keybindings:undefined,selectedKeybindings:undefined,rebindingHotkey:undefined},t.handleKeyDown=t.handleKeyDown.bind(u(t)),t.handleKeyUp=t.handleKeyUp.bind(u(t)),t}m(t,e);var n=t.prototype;return n.componentDidMount=function(){this.populateSelectedKeybindings(),this.populateKeybindings()},n.componentDidUpdate=function(){(0,c.useBackend)(this.context).data.keybindings!==this.lastKeybinds&&this.populateSelectedKeybindings()},n.setRebindingHotkey=function(e){var t=(0,c.useBackend)(this.context).act;this.setState((function(n){var o=n.selectedKeybindings;if(!o)return n;if(!n.rebindingHotkey)return n;o=Object.assign({},o);var r=n.rebindingHotkey,a=r[0],c=r[1];if(o[a])e?o[a][Math.min(o[a].length,c)]=e:o[a].splice(c,1);else{if(!e)return n;o[a]=[e]}return t("set_keybindings",{keybind_name:a,hotkeys:o[a]}),{lastKeyboardEvent:undefined,rebindingHotkey:undefined,selectedKeybindings:o}}))},n.handleKeyDown=function(e){var t=e.event;this.state.rebindingHotkey&&(t.preventDefault(),this.cancelNextKeyUp=e.code,h(t)?this.setRebindingHotkey(g(t)):"Esc"!==t.key?this.setState({lastKeyboardEvent:t}):this.setRebindingHotkey(undefined))},n.handleKeyUp=function(e){this.cancelNextKeyUp===e.code&&(this.cancelNextKeyUp=undefined,e.event.preventDefault());var t=this.state,n=t.lastKeyboardEvent;t.rebindingHotkey&&n&&this.setRebindingHotkey(g(n))},n.getKeybindingOnClick=function(e,t){var n=this;return this.keybindingOnClicks[e]||(this.keybindingOnClicks[e]=[]),this.keybindingOnClicks[e][t]||(this.keybindingOnClicks[e][t]=function(){n.state.rebindingHotkey===undefined?n.setState({lastKeyboardEvent:undefined,rebindingHotkey:[e,t]}):n.setState({lastKeyboardEvent:undefined,rebindingHotkey:undefined})}),this.keybindingOnClicks[e][t]},n.getTypingHotkey=function(e,t){var n=this.state,o=n.lastKeyboardEvent,r=n.rebindingHotkey;return r?r[0]!==e||r[1]!==t?undefined:o===undefined?"...":g(o):undefined},n.populateKeybindings=function(){var e,t=(e=regeneratorRuntime.mark((function n(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,d.fetchRetry)((0,a.resolveAsset)("keybindings.json"));case 2:return e=n.sent,n.next=5,e.json();case 5:t=n.sent,this.setState({keybindings:t});case 7:case"end":return n.stop()}}),n,this)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){s(a,o,r,c,i,"next",e)}function i(e){s(a,o,r,c,i,"throw",e)}c(undefined)}))});return function(){return t.apply(this,arguments)}}(),n.populateSelectedKeybindings=function(){var e=(0,c.useBackend)(this.context).data;this.lastKeybinds=e.keybindings,this.setState({selectedKeybindings:Object.fromEntries(Object.entries(e.keybindings).map((function(e){return[e[0],e[1].filter((function(e){return"Unbound"!==e}))]})))})},n.render=function(){var e=this,t=(0,c.useBackend)(this.context).act,n=this.state.keybindings;if(!n)return(0,o.createComponentVNode)(2,r.Box,{children:"Loading keybindings..."});var a=N(Object.entries(n));return V(a,"EMOTE"),V(a,"ADMIN"),(0,o.createFragment)([(0,o.createComponentVNode)(2,r.KeyListener,{onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp}),(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l.TabbedMenu,{categoryEntries:a.map((function(t){var n=t[0],a=t[1];return[n,(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:f(Object.entries(a)).map((function(t){var n=t[0],a=t[1],c=e.state.selectedKeybindings[n]||[],l=(0,o.createComponentVNode)(2,r.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,v,{keybinding:a})});return(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[l,(0,i.range)(0,3).map((function(t){return(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,basis:"10%",children:(0,o.createComponentVNode)(2,b,{currentHotkey:c[t],typingHotkey:e.getTypingHotkey(n,t),onClick:e.getKeybindingOnClick(n,t)})},t)})),(0,o.createComponentVNode)(2,r.Stack.Item,{shrink:!0,children:(0,o.createComponentVNode)(2,k,{keybindingId:n})})]})},n)}))},n)]}))})}),(0,o.createComponentVNode)(2,r.Stack.Item,{align:"center",children:(0,o.createComponentVNode)(2,r.Button.Confirm,{content:"Reset all keybindings",onClick:function(){return t("reset_all_keybinds")}})})]})],4)},t}(o.Component);t.KeybindingsPage=_},88705:function(e,t,n){"use strict";t.__esModule=!0,t.MainPage=void 0;var o,r=n(96323),a=n(1060),c=n(31246),i=n(26949),l=n(6971),d=n(63511),s=n(26427),u=n(6168),m=n(79699),p=n(57724),h=(o=n(24312))&&o.__esModule?o:{"default":o},C=n(17355),f=n(1397),N=n(26385);var g=function(e){return(0,r.createComponentVNode)(2,i.Stack,{children:[(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Button,{onClick:e.handleRotate,fontSize:"22px",icon:"undo",tooltip:"Rotate",tooltipPosition:"top"})}),(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Button,{onClick:e.handleOpenSpecies,fontSize:"22px",icon:"paw",tooltip:"Species",tooltipPosition:"top"})}),e.showGender&&(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,b,{gender:e.gender,handleSetGender:e.setGender})})]})},V=function(e,t){var n=(0,c.useBackend)(t).act,o=e.catalog,l=e.supplementalFeature,d=e.supplementalValue;return o.icons?(0,r.createComponentVNode)(2,i.Box,{style:{background:"white",padding:"5px",height:48*5.2+"px",width:48*5.4+"px"},children:(0,r.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:[(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Stack,{fill:!0,children:[l&&(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,C.FeatureValueInput,{act:n,feature:h["default"][l],featureId:l,shrink:!0,value:d})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,i.Box,{style:{"border-bottom":"1px solid #888","font-weight":"bold","font-size":"14px","text-align":"center"},children:["Select ",e.name.toLowerCase()]})}),(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Button,{color:"red",onClick:e.onClose,children:"X"})})]})}),(0,r.createComponentVNode)(2,i.Stack.Item,{overflowX:"hidden",overflowY:"scroll",children:(0,r.createComponentVNode)(2,i.Autofocus,{children:(0,r.createComponentVNode)(2,i.Flex,{wrap:!0,children:Object.entries(o.icons).map((function(t,n){var o=t[0],c=t[1];return(0,r.createComponentVNode)(2,i.Flex.Item,{basis:"48px",style:{padding:"5px"},children:(0,r.createComponentVNode)(2,i.Button,{onClick:function(){e.onSelect(o)},selected:o===e.selected,tooltip:o,tooltipPosition:"right",style:{height:"48px",width:"48px"},children:(0,r.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["preferences32x32",c,"centered-image"])})})},n)}))})})})]})}):(0,r.createComponentVNode)(2,i.Box,{color:"red",children:"Provided catalog had no icons!"})},b=function(e,t){var n=(0,c.useLocalState)(t,"genderMenuOpen",!1),o=n[0],a=n[1];return(0,r.createComponentVNode)(2,i.Popper,{options:{placement:"right-end"},popperContent:o&&(0,r.createComponentVNode)(2,i.Stack,{backgroundColor:"white",ml:.5,p:.3,children:[p.Gender.Male,p.Gender.Female,p.Gender.Other].map((function(t){return(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,i.Button,{selected:t===e.gender,onClick:function(){e.handleSetGender(t),a(!1)},fontSize:"22px",icon:p.GENDERS[t].icon,tooltip:p.GENDERS[t].text,tooltipPosition:"top"})},t)}))}),children:(0,r.createComponentVNode)(2,i.Button,{onClick:function(){a(!o)},fontSize:"22px",icon:p.GENDERS[e.gender].icon,tooltip:"Gender",tooltipPosition:"top"})})},v=function(e,t){var n=(0,c.useBackend)(t),o=(n.act,n.data),l=e.catalog,d=e.currentValue,u=e.isOpen,m=e.handleOpen,p=e.handleClose,h=e.handleSelect,C=e.randomization,f=e.setRandomization,N=l.supplemental_feature;return(0,r.createComponentVNode)(2,i.Popper,{options:{placement:"bottom-start"},popperContent:u&&(0,r.createComponentVNode)(2,i.TrackOutsideClicks,{onOutsideClick:e.handleClose,children:(0,r.createComponentVNode)(2,V,{name:l.name,catalog:l,selected:d,supplementalFeature:N,supplementalValue:N&&o.character_preferences.supplemental_features[N],onClose:p,onSelect:h})}),children:(0,r.createComponentVNode)(2,i.Button,{onClick:function(){u?p():m()},style:{height:"48px",width:"48px"},position:"relative",tooltip:l.name,tooltipPosition:"right",children:[(0,r.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["preferences32x32",l.icons[d],"centered-image"]),style:{transform:C?"translateX(-70%) translateY(-70%) scale(1.1)":"translateX(-50%) translateY(-50%) scale(1.3)"}}),C&&(0,r.createComponentVNode)(2,s.RandomizationButton,{dropdownProps:{dropdownStyle:{bottom:0,position:"absolute",right:"1px"},onOpen:function(e){e.cancelBubble=!0,e.stopPropagation()}},value:C,setValue:f})]})})},k=function(e,t){return function(n){e("set_random_preference",{preference:t,value:n})}},_=(0,f.sortBy)((function(e){var t=e[0],n=(e[1],h["default"][t]);return null==n?void 0:n.name})),y=function(e){return(0,r.createComponentVNode)(2,i.Stack.Item,{basis:"50%",grow:!0,style:{background:"rgba(0, 0, 0, 0.5)",padding:"4px"},overflowX:"hidden",overflowY:"scroll",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:_(Object.entries(e.preferences)).map((function(t){var n=t[0],o=t[1],a=h["default"][n],c=e.randomizations[n];return a===undefined?(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createVNode)(1,"b",null,[(0,r.createTextVNode)("Feature "),n,(0,r.createTextVNode)(" is not recognized.")],0)},n):(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:a.name,verticalAlign:"middle",children:(0,r.createComponentVNode)(2,i.Stack,{fill:!0,children:[c&&(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,s.RandomizationButton,{setValue:k(e.act,n),value:c})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,C.FeatureValueInput,{act:e.act,feature:a,featureId:n,value:o})})]})},n)}))})})};t.MainPage=function(e,t){var n=(0,c.useBackend)(t),o=n.act,a=n.data,s=(0,c.useLocalState)(t,"currentClothingMenu",null),p=s[0],h=s[1],C=(0,c.useLocalState)(t,"multiNameInputOpen",!1),V=C[0],b=C[1],_=(0,N.useRandomToggleState)(t)[0];return(0,r.createComponentVNode)(2,u.ServerPreferencesFetcher,{render:function(t){var n=t&&t.species[a.character_preferences.misc.species],c=a.character_preferences.secondary_features||[],s=[].concat(Object.entries(a.character_preferences.clothing),Object.entries(a.character_preferences.features).filter((function(e){var t=e[0];return!!n&&-1!==n.enabled_features.indexOf(t)}))),u=a.character_preferences.non_contextual.random_body!==l.RandomSetting.Disabled||_,C=function(e){return t?Object.fromEntries((0,f.filterMap)(Object.keys(e),(function(e){return-1===t.random.randomizable.indexOf(e)?undefined:u?[e,a.character_preferences.randomization[e]||l.RandomSetting.Disabled]:undefined}))):{}},N=C(Object.fromEntries(s)),w=Object.assign({},a.character_preferences.non_contextual);return u?w.random_species=a.character_preferences.randomization.species:delete w.random_name,(0,r.createFragment)([V&&(0,r.createComponentVNode)(2,m.MultiNameInput,{handleClose:function(){return b(!1)},handleRandomizeName:function(e){return o("randomize_name",{preference:e})},handleUpdateName:function(e,t){return o("set_preference",{preference:e,value:t})},names:a.character_preferences.names}),(0,r.createComponentVNode)(2,i.Stack,{height:"432px",children:[(0,r.createComponentVNode)(2,i.Stack.Item,{fill:!0,children:(0,r.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:[(0,r.createComponentVNode)(2,i.Stack.Item,{children:(0,r.createComponentVNode)(2,g,{gender:a.character_preferences.misc.gender,handleOpenSpecies:e.openSpecies,handleRotate:function(){o("rotate")},setGender:(0,l.createSetPreference)(o,"gender"),showGender:!n||!!n.sexes})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,d.CharacterPreview,{height:"100%",id:a.character_preview_view})}),(0,r.createComponentVNode)(2,i.Stack.Item,{position:"relative",children:(0,r.createComponentVNode)(2,m.NameInput,{name:a.character_preferences.names[a.name_to_use],handleUpdateName:(0,l.createSetPreference)(o,a.name_to_use),openMultiNameInput:function(){b(!0)}})})]})}),(0,r.createComponentVNode)(2,i.Stack.Item,{fill:!0,width:"111px",children:(0,r.createComponentVNode)(2,i.Stack,{height:"100%",vertical:!0,wrap:!0,children:s.map((function(e){var n=e[0],a=e[1],c=t&&t[n];return c&&(0,r.createComponentVNode)(2,i.Stack.Item,{mt:.5,px:.5,children:(0,r.createComponentVNode)(2,v,{catalog:c,currentValue:a,isOpen:p===n,handleClose:function(){h(null)},handleOpen:function(){h(n)},handleSelect:(0,l.createSetPreference)(o,n),randomization:N[n],setRandomization:k(o,n)})},n)}))})}),(0,r.createComponentVNode)(2,i.Stack.Item,{grow:!0,basis:0,children:(0,r.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:[(0,r.createComponentVNode)(2,y,{act:o,randomizations:C(c),preferences:c}),(0,r.createComponentVNode)(2,y,{act:o,randomizations:C(w),preferences:w})]})})]})],0)}})}},12279:function(e,t,n){"use strict";t.__esModule=!0,t.PageButton=void 0;var o=n(96323),r=n(26949);t.PageButton=function(e){var t=e.currentPage===e.page||e.otherActivePages&&-1!==e.otherActivePages.indexOf(e.currentPage);return(0,o.createComponentVNode)(2,r.Button,{align:"center",fontSize:"1.2em",fluid:!0,selected:t,onClick:function(){return e.setPage(e.page)},children:e.children})}},33784:function(e,t,n){"use strict";t.__esModule=!0,t.QuirksPage=void 0;var o=n(96323),r=n(26949),a=n(31246),c=n(6168);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var d=function(e){return e>0?"positive":e<0?"negative":"neutral"},s=function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"PreferencesMenu__Quirks__QuirkList",children:e.quirks.map((function(t){var n=t[0],a=t[1],c="PreferencesMenu__Quirks__QuirkList__quirk",i=(0,o.createComponentVNode)(2,r.Box,{className:c,role:"button",tabIndex:"1",onClick:function(){e.onClick(n,a)},children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{align:"center",style:{"min-width":"15%","max-width":"15%","text-align":"center"},children:(0,o.createComponentVNode)(2,r.Icon,{color:"#333",fontSize:3,name:a.icon})}),(0,o.createComponentVNode)(2,r.Stack.Item,{align:"stretch",style:{"border-right":"1px solid black","margin-left":0}}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,style:{"margin-left":0,"min-width":"0%"},children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{className:c+"--"+d(a.value),style:{"border-bottom":"1px solid black",padding:"2px"},children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,style:{"font-size":"1.2em"},children:[(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,basis:"content",children:(0,o.createVNode)(1,"b",null,a.name,0)}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createVNode)(1,"b",null,a.value,0)})]})}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,basis:"content",style:{"margin-top":0,padding:"3px"},children:a.description})]})})]})},n);return a.failTooltip?(0,o.createComponentVNode)(2,r.Tooltip,{content:a.failTooltip,children:i}):i}))})},u=function(e){return(0,o.createComponentVNode)(2,r.Box,{backgroundColor:"#eee",bold:!0,color:"black",fontSize:"1.2em",px:3,py:.5,children:e.children})};t.QuirksPage=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,m=(0,a.useLocalState)(t,"selectedQuirks_"+d.active_slot,d.selected_quirks),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,c.ServerPreferencesFetcher,{render:function(e){if(!e)return(0,o.createComponentVNode)(2,r.Box,{children:"Loading quirks..."});var t=e.quirks,n=t.max_positive_quirks,a=t.quirk_blacklist,c=t.quirk_info,d=Object.entries(c);d.sort((function(e,t){e[0];var n=e[1],o=(t[0],t[1]);return n.value===o.value?n.name>o.name?1:-1:n.value-o.value}));for(var m,C=0,f=0,N=i(p);!(m=N()).done;){var g=m.value,V=c[g];V&&(V.value>0&&(f+=1),C+=V.value)}var b=function(e){var t=c[e];if(t.value>0){if(f>=n)return"You can't have any more positive quirks!";if(C+t.value>0)return"You need a negative quirk to balance this out!"}for(var o,r=p.map((function(e){return c[e].name})),l=i(a);!(o=l()).done;){var d=o.value;if(-1!==d.indexOf(t.name))for(var s,u=i(d);!(s=u()).done;){var m=s.value;if(m!==t.name&&-1!==r.indexOf(m))return"This is incompatible with "+m+"!"}}return undefined},v=function(e){var t=c[e];return C-t.value>0?"You need to remove a positive quirk first!":undefined};return(0,o.createComponentVNode)(2,r.Stack,{align:"center",fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,align:"center",children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{fontSize:"1.3em",children:"Positive Quirks"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,u,{children:[f," / ",n]})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{as:"b",fontSize:"1.6em",children:"Available Quirks"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,width:"100%",children:(0,o.createComponentVNode)(2,s,{onClick:function(e,t){b(e)===undefined&&(h(p.concat(e)),l("give_quirk",{quirk:t.name}))},quirks:d.filter((function(e){var t=e[0];return e[1],-1===p.indexOf(t)})).map((function(e){var t=e[0],n=e[1];return[t,Object.assign({},n,{failTooltip:b(t)})]}))})})]})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Icon,{name:"exchange-alt",size:1.5,ml:2,mr:2})}),(0,o.createComponentVNode)(2,r.Stack.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,align:"center",children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{fontSize:"1.3em",children:"Quirk Balance"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,u,{children:C})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Box,{as:"b",fontSize:"1.6em",children:"Current Quirks"})}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,width:"100%",children:(0,o.createComponentVNode)(2,s,{onClick:function(e,t){v(e)===undefined&&(h(p.filter((function(t){return e!==t}))),l("remove_quirk",{quirk:t.name}))},quirks:d.filter((function(e){var t=e[0];return e[1],-1!==p.indexOf(t)})).map((function(e){var t=e[0],n=e[1];return[t,Object.assign({},n,{failTooltip:v(t)})]}))})})]})})]})}})}},26427:function(e,t,n){"use strict";t.__esModule=!0,t.RandomizationButton=void 0;var o=n(96323),r=n(26949),a=n(6971),c=n(74593);t.RandomizationButton=function(e){var t,n=e.dropdownProps,i=void 0===n?{}:n,l=e.setValue,d=e.value;switch(d){case a.RandomSetting.AntagOnly:t="orange";break;case a.RandomSetting.Disabled:t="red";break;case a.RandomSetting.Enabled:t="green";break;default:(0,c.exhaustiveCheck)(d)}return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Dropdown,Object.assign({backgroundColor:t},i,{clipSelectedText:!1,displayText:(0,o.createComponentVNode)(2,r.Icon,{name:"dice-d20",mr:"-0.25em"}),options:[{displayText:"Do not randomize",value:a.RandomSetting.Disabled},{displayText:"Always randomize",value:a.RandomSetting.Enabled},{displayText:"Randomize when antagonist",value:a.RandomSetting.AntagOnly}],nochevron:!0,onSelected:l,width:"auto"})))}},6168:function(e,t,n){"use strict";t.__esModule=!0,t.ServerPreferencesFetcher=void 0;var o,r=n(96323),a=n(39646),c=n(94500);function i(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function r(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={serverData:undefined},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var d=r.prototype;return d.componentDidMount=function(){this.populateServerData()},d.populateServerData=function(){var e,t=(e=regeneratorRuntime.mark((function n(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o||(o=(0,c.fetchRetry)((0,a.resolveAsset)("preferences.json")).then((function(e){return e.json()}))),t.next=3,o;case 3:e=t.sent,this.setState({serverData:e});case 5:case"end":return t.stop()}}),n,this)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){i(a,o,r,c,l,"next",e)}function l(e){i(a,o,r,c,l,"throw",e)}c(undefined)}))});return function(){return t.apply(this,arguments)}}(),d.render=function(){return this.props.render(this.state.serverData)},r}(r.Component);t.ServerPreferencesFetcher=d},81297:function(e,t,n){"use strict";t.__esModule=!0,t.SpeciesPage=void 0;var o,r,a=n(96323),c=n(1060),i=n(31246),l=n(26949),d=n(63511),s=n(6971),u=n(6168),m=((o={})[s.Food.Cloth]="tshirt",o[s.Food.Dairy]="cheese",o[s.Food.Fried]="bacon",o[s.Food.Fruit]="apple-alt",o[s.Food.Grain]="bread-slice",o[s.Food.Gross]="trash",o[s.Food.Junkfood]="pizza-slice",o[s.Food.Meat]="hamburger",o[s.Food.Nuts]="seedling",o[s.Food.Raw]="drumstick-bite",o[s.Food.Seafood]="fish",o[s.Food.Sugar]="candy-cane",o[s.Food.Toxic]="biohazard",o[s.Food.Vegetables]="carrot",o),p=((r={})[s.Food.Cloth]="Clothing",r[s.Food.Dairy]="Dairy",r[s.Food.Fried]="Fried food",r[s.Food.Fruit]="Fruit",r[s.Food.Grain]="Grain",r[s.Food.Gross]="Gross food",r[s.Food.Junkfood]="Junk food",r[s.Food.Meat]="Meat",r[s.Food.Nuts]="Nuts",r[s.Food.Raw]="Raw",r[s.Food.Seafood]="Seafood",r[s.Food.Sugar]="Sugar",r[s.Food.Toxic]="Toxic food",r[s.Food.Vegetables]="Vegetables",r),h=new Set([s.Food.Cloth,s.Food.Gross,s.Food.Toxic]),C=function(e){return function(t){return!e.has(t)}},f=function(e){return 0===e.food.length?null:(0,a.createComponentVNode)(2,l.Tooltip,{position:"bottom-end",content:(0,a.createComponentVNode)(2,l.Box,{children:[(0,a.createComponentVNode)(2,l.Icon,{name:e.icon})," ",(0,a.createVNode)(1,"b",null,e.name,0),(0,a.createComponentVNode)(2,l.Divider),(0,a.createComponentVNode)(2,l.Box,{children:e.food.reduce((function(e,t){var n=p[t];return n?e.concat(n):e}),[]).join(", ")})]}),children:(0,a.createComponentVNode)(2,l.Stack,{ml:2,children:e.food.map((function(t){return m[t]&&(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,l.Icon,{className:e.className,size:1.4,name:m[t]},t)})}))})})},N=function(e){if(!e.diet)return null;var t=e.diet,n=t.liked_food,o=t.disliked_food,r=t.toxic_food;return(0,a.createComponentVNode)(2,l.Stack,{children:[(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,f,{food:n,icon:"heart",name:"Liked food",className:"color-pink"})}),(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,f,{food:o.filter(C(h)),icon:"thumbs-down",name:"Disliked food",className:"color-red"})}),(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,f,{food:r.filter(C(h)),icon:"biohazard",name:"Toxic food",className:"color-olive"})})]})},g=function(e){var t=e.className,n=e.perk;return(0,a.createComponentVNode)(2,l.Tooltip,{position:"bottom-end",content:(0,a.createComponentVNode)(2,l.Box,{children:[(0,a.createComponentVNode)(2,l.Box,{as:"b",children:n.name}),(0,a.createComponentVNode)(2,l.Divider),(0,a.createComponentVNode)(2,l.Box,{children:n.description})]}),children:(0,a.createComponentVNode)(2,l.Box,{"class":t,width:"32px",height:"32px",children:(0,a.createComponentVNode)(2,l.Icon,{name:n.ui_icon,size:1.5,ml:0,mt:1,style:{"text-align":"center",height:"100%",width:"100%"}})})})},V=function(e){var t=e.perks,n=t.positive,o=t.negative,r=t.neutral;return(0,a.createComponentVNode)(2,l.Stack,{fill:!0,justify:"space-between",children:[(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,l.Stack,{children:n.map((function(e){return(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,g,{className:"color-bg-green",perk:e})},e.name)}))})}),(0,a.createComponentVNode)(2,l.Stack,{grow:!0,children:r.map((function(e){return(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,g,{className:"color-bg-grey",perk:e})},e.name)}))}),(0,a.createComponentVNode)(2,l.Stack,{children:o.map((function(e){return(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,g,{className:"color-bg-red",perk:e})},e.name)}))})]})},b=function(e,t){var n=(0,i.useBackend)(t),o=n.act,r=n.data,u=(0,s.createSetPreference)(o,"species"),m=Object.entries(e.species).map((function(e){return[e[0],e[1]]})),p=m.findIndex((function(e){return"human"===e[0]})),h=m[0];m[0]=m[p],m[p]=h;var C=m.filter((function(e){return e[0]===r.character_preferences.misc.species}))[0][1];return(0,a.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:[(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,l.Button,{icon:"arrow-left",onClick:e.handleClose,content:"Go Back"})}),(0,a.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,a.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,a.createComponentVNode)(2,l.Stack.Item,{children:(0,a.createComponentVNode)(2,l.Box,{height:"calc(100vh - 170px)",overflowY:"auto",pr:3,children:m.map((function(e){var t=e[0],n=e[1];return(0,a.createComponentVNode)(2,l.Button,{onClick:function(){return u(t)},selected:r.character_preferences.misc.species===t,tooltip:n.name,style:{display:"block",height:"64px",width:"64px"},children:(0,a.createComponentVNode)(2,l.Box,{className:(0,c.classes)(["species64x64",n.icon]),ml:-1})},t)}))})}),(0,a.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,a.createComponentVNode)(2,l.Box,{fill:!0,children:[(0,a.createComponentVNode)(2,l.Box,{children:(0,a.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,a.createComponentVNode)(2,l.Stack.Item,{width:"70%",children:(0,a.createComponentVNode)(2,l.Section,{title:C.name,buttons:C.diet&&(0,a.createComponentVNode)(2,N,{diet:C.diet}),children:[(0,a.createComponentVNode)(2,l.Section,{title:"Description",children:C.desc}),(0,a.createComponentVNode)(2,l.Section,{title:"Features",children:(0,a.createComponentVNode)(2,V,{perks:C.perks})})]})}),(0,a.createComponentVNode)(2,l.Stack.Item,{width:"30%",children:(0,a.createComponentVNode)(2,d.CharacterPreview,{id:r.character_preview_view,height:"100%"})})]})}),(0,a.createComponentVNode)(2,l.Box,{mt:1,children:(0,a.createComponentVNode)(2,l.Section,{title:"Lore",children:(0,a.createComponentVNode)(2,l.BlockQuote,{children:C.lore.map((function(e,t){return(0,a.createComponentVNode)(2,l.Box,{maxWidth:"100%",children:[e,t!==C.lore.length-1&&(0,a.createFragment)([(0,a.createVNode)(1,"br"),(0,a.createVNode)(1,"br")],4)]},t)}))})})})]})})]})})]})};t.SpeciesPage=function(e){return(0,a.createComponentVNode)(2,u.ServerPreferencesFetcher,{render:function(t){return t?(0,a.createComponentVNode)(2,b,{handleClose:e.closeSpecies,species:t.species}):(0,a.createComponentVNode)(2,l.Box,{children:"Loading species..."})}})}},90704:function(e,t,n){"use strict";t.__esModule=!0,t.TabbedMenu=void 0;var o=n(96323),r=n(26949);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function c(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).categoryRefs={},t.sectionRef=(0,o.createRef)(),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var i=c.prototype;return i.getCategoryRef=function(e){return this.categoryRefs[e]||(this.categoryRefs[e]=(0,o.createRef)()),this.categoryRefs[e]},i.render=function(){var e=this;return(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,px:5,children:this.props.categoryEntries.map((function(t){var n=t[0];return(0,o.createComponentVNode)(2,r.Stack.Item,{grow:!0,basis:"content",children:(0,o.createComponentVNode)(2,r.Button,{align:"center",fontSize:"1.2em",fluid:!0,onClick:function(){var t,o=null==(t=e.categoryRefs[n].current)?void 0:t.offsetTop;if(o!==undefined){var r=e.sectionRef.current;r&&(r.scrollTop=o)}},children:n})},n)}))})}),(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Stack.Item,Object.assign({grow:!0,innerRef:this.sectionRef,position:"relative",overflowY:"scroll"},Object.assign({},this.props.contentProps,{className:undefined}),{children:(0,o.createComponentVNode)(2,r.Stack,{vertical:!0,fill:!0,px:2,children:this.props.categoryEntries.map((function(t){var n=t[0],a=t[1];return(0,o.createComponentVNode)(2,r.Stack.Item,{innerRef:e.getCategoryRef(n),children:(0,o.createComponentVNode)(2,r.Section,{fill:!0,title:n,children:a})},n)}))})})))]})},c}(o.Component);t.TabbedMenu=c},40949:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"abductor",name:"Abductor",description:["Abductors are technologically advanced alien society set on cataloging\nall species in the system. Unfortunately for their subjects their methods\nare quite invasive.","You and a partner will become the abductor scientist and agent duo.\nAs an agent, abduct unassuming victims and bring them back to your UFO.\nAs a scientist, scout out victims for your agent, keep them safe, and\noperate on whoever they bring back."],category:o.Category.Midround});t["default"]=r},21898:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.BLOB_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"The blob infests the station and destroys everything in its path, including\nhull, fixtures, and creatures. Spread your mass, collect resources, and\nconsume the entire station. Make sure to prepare your defenses, because the\ncrew will be alerted to your presence!");t.BLOB_MECHANICAL_DESCRIPTION=r;var a={key:"blob",name:"Blob",description:[r],category:o.Category.Midround};t["default"]=a},61057:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=n(21898),a=(n(21118),{key:"blobinfection",name:"Blob Infection",description:["At any point in the middle of the shift, be strucken with an infection\nthat will turn you into the terrifying blob.",r.BLOB_MECHANICAL_DESCRIPTION],category:o.Category.Midround});t["default"]=a},53751:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"bloodbrother",name:"Blood Brother",description:["Team up with other crew members as blood brothers to combine the strengths\nof your departments, break each other out of prison, and overwhelm the\nstation."],category:o.Category.Roundstart});t["default"]=r},8637:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"changeling",name:"Changeling",description:["A highly intelligent alien predator that is capable of altering their\nshape to flawlessly resemble a human.","Transform yourself or others into different identities, and buy from an\narsenal of biological weaponry with the DNA you collect."],category:o.Category.Roundstart});t["default"]=r},48491:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"clownoperative",name:"Clown Operative",description:["Honk! You have been chosen, for better or worse to join the Syndicate\nClown Operative strike team. Your mission, whether or not you choose\nto tickle it, is to honk Nanotrasen's most advanced research facility!\nThat's right, you're going to Clown Station 13.",n(16765).OPERATIVE_MECHANICAL_DESCRIPTION],category:o.Category.Roundstart});t["default"]=r},11065:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"cultist",name:"Cultist",description:["The Geometer of Blood, Nar-Sie, has sent a number of her followers to\nSpace Station 13. As a cultist, you have an abundance of cult magics at\nyour disposal, something for all situations. You must work with your\nbrethren to summon an avatar of your eldritch goddess!","Armed with blood magic, convert crew members to the Blood Cult, sacrifice\nthose who get in the way, and summon Nar-Sie."],category:o.Category.Roundstart});t["default"]=r},59386:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"familyheadaspirant",name:"Family Head Aspirant",description:["A form of family leader that can activate at any point in the middle\nof the shift.",n(5592).GANGSTER_MECHANICAL_DESCRIPTION],category:o.Category.Midround});t["default"]=r},45746:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"fugitive",name:"Fugitive",description:["Wherever you come from, you're being hunted. You have 10 minutes to prepare\nbefore fugitive hunters arrive and start hunting you and your friends down!"],category:o.Category.Midround});t["default"]=r},5592:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.GANGSTER_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Convince people to join your family, wear your uniform, tag turf\nfor the family, and accomplish your family's goals.");t.GANGSTER_MECHANICAL_DESCRIPTION=r;var a={key:"gangster",name:"Family Leader",description:[r],category:o.Category.Roundstart};t["default"]=a},93444:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.REVOLUTIONARY_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Armed with a flash, convert as many people to the revolution as you can.\nKill or exile all heads of staff on the station.");t.REVOLUTIONARY_MECHANICAL_DESCRIPTION=r;var a={key:"headrevolutionary",name:"Head Revolutionary",description:["VIVA LA REVOLUTION!",r],category:o.Category.Roundstart};t["default"]=a},21453:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.HERETIC_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Find hidden influences and sacrifice crew members to gain magical\npowers and ascend as one of several paths.");t.HERETIC_MECHANICAL_DESCRIPTION=r;var a={key:"heretic",name:"Heretic",description:["Forgotten, devoured, gutted. Humanity has forgotten the eldritch forces\nof decay, but the mansus veil has weakened. We will make them taste fear\nagain...",r],category:o.Category.Roundstart};t["default"]=a},13852:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r={key:"hereticsmuggler",name:"Heretic Smuggler",description:["A form of heretic that can activate when joining an ongoing shift.",n(21453).HERETIC_MECHANICAL_DESCRIPTION],category:o.Category.Latejoin};t["default"]=r},90219:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"loneoperative",name:"Lone Operative",description:["A solo nuclear operative that has a higher chance of spawning the longer\nthe nuclear authentication disk stays in one place.",n(16765).OPERATIVE_MECHANICAL_DESCRIPTION],category:o.Category.Midround});t["default"]=r},20:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.MALF_AI_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"With a law zero to complete your objectives at all costs, combine your\nomnipotence and malfunction modules to wreak havoc across the station.\nGo delta to destroy the station and all those who opposed you.");t.MALF_AI_MECHANICAL_DESCRIPTION=r;var a={key:"malfai",name:"Malfunctioning AI",description:[r],category:o.Category.Roundstart};t["default"]=a},12755:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;n(21118);var o=n(78580),r={key:"malfaimidround",name:"Value Drifted AI",description:["A form of malfunctioning AI that is given to existing AIs in the middle\nof the shift.",n(20).MALF_AI_MECHANICAL_DESCRIPTION],category:o.Category.Midround};t["default"]=r},40200:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"nightmare",name:"Nightmare",description:["Use your light eater to break sources of light to survive and thrive.\nJaunt through the darkness and seek your prey with night vision."],category:o.Category.Midround});t["default"]=r},4051:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"obsessed",name:"Obsessed",description:["You're obsessed with someone! Your obsession may begin to notice their\npersonal items are stolen and their coworkers have gone missing,\nbut will they realize they are your next victim in time?"],category:o.Category.Midround});t["default"]=r},16765:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.OPERATIVE_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Retrieve the nuclear authentication disk, use it to activate the nuclear\nfission explosive, and destroy the station.");t.OPERATIVE_MECHANICAL_DESCRIPTION=r;var a={key:"operative",name:"Nuclear Operative",description:["Congratulations, agent. You have been chosen to join the Syndicate\nNuclear Operative strike team. Your mission, whether or not you choose\nto accept it, is to destroy Nanotrasen's most advanced research facility!\nThat's right, you're going to Space Station 13.",r],category:o.Category.Roundstart};t["default"]=a},51494:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"operativemidround",name:"Nuclear Assailant",description:["A form of nuclear operative that is offered to ghosts in the middle\nof the shift.",n(16765).OPERATIVE_MECHANICAL_DESCRIPTION],category:o.Category.Midround});t["default"]=r},61943:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;n(21118);var o=n(78580),r={key:"opportunist",name:"Opportunist",description:["A form of thief that can activate at any point in the middle\n of the shift, looking to line their paychecks while nobody's looking.",n(55244).THIEF_MECHANICAL_DESCRIPTION],category:o.Category.Midround};t["default"]=r},31801:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"provocateur",name:"Provocateur",description:["A form of head revolutionary that can activate when joining an ongoing\nshift.",n(93444).REVOLUTIONARY_MECHANICAL_DESCRIPTION],category:o.Category.Latejoin});t["default"]=r},22069:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"revenant",name:"Revenant",description:["Become the mysterious revenant. Break windows, overload lights, and eat\nthe crew's life force, all while talking to your old community of\ndisgruntled ghosts."],category:o.Category.Midround});t["default"]=r},65240:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"sentientdisease",name:"Sentient Disease",description:["Mutate and spread yourself and infect as much of the crew as possible\nwith a deadly plague of your own creation."],category:o.Category.Midround});t["default"]=r},48509:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"spacedragon",name:"Space Dragon",description:["Become a ferocious space dragon. Breathe fire, summon an army of space\ncarps, crush walls, and terrorize the station."],category:o.Category.Midround});t["default"]=r},75628:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"spaceninja",name:"Space Ninja",description:["The Spider Clan practice a sort of augmentation of human flesh in order to\nachieve a more perfect state of being and follow Postmodern Space Bushido.","Become a conniving space ninja, equipped with a katana, gloves to hack\ninto airlocks and APCs, a suit to make you go near-invisible,\nas well as a variety of abilities in your kit. Hack into arrest consoles\nto mark everyone as arrest, and even hack into communication consoles to\nsummon more threats to cause chaos on the station!"],category:o.Category.Midround});t["default"]=r},65319:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r={key:"syndicateinfiltrator",name:"Syndicate Infiltrator",description:["A form of traitor that can activate when joining an ongoing shift.",n(3054).TRAITOR_MECHANICAL_DESCRIPTION],category:o.Category.Latejoin,priority:-1};t["default"]=r},19262:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=n(3054),a=(n(21118),{key:"syndicatesleeperagent",name:"Syndicate Sleeper Agent",description:["A form of traitor that can activate at any point in the middle\nof the shift.",r.TRAITOR_MECHANICAL_DESCRIPTION],category:o.Category.Midround,priority:-1});t["default"]=a},55244:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.THIEF_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"While all the chaos of the station goes down, try to escape with\nsome loot without getting caught!");t.THIEF_MECHANICAL_DESCRIPTION=r;var a={key:"thief",name:"Thief",description:["You're working at a state of the art research station, yet you're\n running into financial issues. Nobody will miss a couple expensive doodads,\n right?",r],category:o.Category.Roundstart};t["default"]=a},3054:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.TRAITOR_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Start with an uplink to purchase your gear and take on your sinister\nobjectives. Ascend through the ranks and become an infamous legend.");t.TRAITOR_MECHANICAL_DESCRIPTION=r;var a={key:"traitor",name:"Traitor",description:["An unpaid debt. A score to be settled. Maybe you were just in the wrong\nplace at the wrong time. Whatever the reasons, you were selected to\ninfiltrate Space Station 13.",r],category:o.Category.Roundstart,priority:-1};t["default"]=a},34700:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.WIZARD_MECHANICAL_DESCRIPTION=void 0;var o=n(78580),r=(n(21118),"Choose between a variety of powerful spells in order to cause chaos\namong Space Station 13.");t.WIZARD_MECHANICAL_DESCRIPTION=r;var a={key:"wizard",name:"Wizard",description:["\"GREETINGS. WE'RE THE WIZARDS OF THE WIZARD'S FEDERATION.\"",r],category:o.Category.Roundstart};t["default"]=a},77397:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r={key:"wizardmidround",name:"Wizard (Midround)",description:["A form of wizard that is offered to ghosts in the middle of the shift.",n(34700).WIZARD_MECHANICAL_DESCRIPTION],category:o.Category.Midround};t["default"]=r},34611:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(78580),r=(n(21118),{key:"xenomorph",name:"Xenomorph",description:["Become the extraterrestrial xenomorph. Start as a larva, and progress\nyour way up the caste, including even the Queen!"],category:o.Category.Midround});t["default"]=r},78580:function(e,t){"use strict";var n;t.__esModule=!0,t.Category=void 0,t.Category=n,function(e){e[e.Roundstart=0]="Roundstart",e[e.Midround=1]="Midround",e[e.Latejoin=2]="Latejoin"}(n||(t.Category=n={}))},6971:function(e,t){"use strict";var n,o,r,a,c;t.__esModule=!0,t.Window=t.createSetPreference=t.GamePreferencesSelectedPage=t.JoblessRole=t.RandomSetting=t.JobPriority=t.Food=void 0,t.Food=n,function(e){e.Alcohol="ALCOHOL",e.Breakfast="BREAKFAST",e.Cloth="CLOTH",e.Dairy="DAIRY",e.Fried="FRIED",e.Fruit="FRUIT",e.Grain="GRAIN",e.Gross="GROSS",e.Junkfood="JUNKFOOD",e.Meat="MEAT",e.Nuts="NUTS",e.Pineapple="PINEAPPLE",e.Raw="RAW",e.Seafood="SEAFOOD",e.Sugar="SUGAR",e.Toxic="TOXIC",e.Vegetables="VEGETABLES"}(n||(t.Food=n={})),t.JobPriority=o,function(e){e[e.Low=1]="Low",e[e.Medium=2]="Medium",e[e.High=3]="High"}(o||(t.JobPriority=o={})),t.RandomSetting=r,function(e){e[e.AntagOnly=1]="AntagOnly",e[e.Disabled=2]="Disabled",e[e.Enabled=3]="Enabled"}(r||(t.RandomSetting=r={})),t.JoblessRole=a,function(e){e[e.BeOverflow=1]="BeOverflow",e[e.BeRandomJob=2]="BeRandomJob",e[e.ReturnToLobby=3]="ReturnToLobby"}(a||(t.JoblessRole=a={})),t.GamePreferencesSelectedPage=c,function(e){e[e.Settings=0]="Settings",e[e.Keybindings=1]="Keybindings"}(c||(t.GamePreferencesSelectedPage=c={}));var i;t.createSetPreference=function(e,t){return function(n){e("set_preference",{preference:t,value:n})}},t.Window=i,function(e){e[e.Character=0]="Character",e[e.Game=1]="Game",e[e.Keybindings=2]="Keybindings"}(i||(t.Window=i={}))},11118:function(e,t,n){"use strict";t.__esModule=!0,t.PreferencesMenu=void 0;var o=n(96323),r=n(74593),a=n(31246),c=n(6971),i=n(92707),l=n(10492);t.PreferencesMenu=function(e,t){var n=(0,a.useBackend)(t).data.window;switch(n){case c.Window.Character:return(0,o.createComponentVNode)(2,i.CharacterPreferenceWindow);case c.Window.Game:return(0,o.createComponentVNode)(2,l.GamePreferenceWindow);case c.Window.Keybindings:return(0,o.createComponentVNode)(2,l.GamePreferenceWindow,{startingPage:c.GamePreferencesSelectedPage.Keybindings});default:(0,r.exhaustiveCheck)(n)}}},79699:function(e,t,n){"use strict";t.__esModule=!0,t.NameInput=t.MultiNameInput=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(6168),l=(0,r.binaryInsertWith)((function(e){return e.key})),d=(0,r.sortBy)((function(e){return e[0]}));t.MultiNameInput=function(e,t){var n=(0,a.useLocalState)(t,"currentlyEditingName",null),r=n[0],s=n[1];return(0,o.createComponentVNode)(2,i.ServerPreferencesFetcher,{render:function(t){if(!t)return null;for(var n={},a=0,i=Object.entries(t.names.types);a<i.length;a++){var u=i[a],m=u[0],p=u[1];n[p.group]=l(n[p.group]||[],{key:m,name:p})}return(0,o.createComponentVNode)(2,c.Modal,{style:{margin:"0 auto",width:"40%"},children:(0,o.createComponentVNode)(2,c.TrackOutsideClicks,{onOutsideClick:e.handleClose,children:(0,o.createComponentVNode)(2,c.Section,{buttons:(0,o.createComponentVNode)(2,c.Button,{color:"red",onClick:e.handleClose,children:"Close"}),title:"Alternate names",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d(Object.entries(n)).map((function(t,n,a){t[0];var i=t[1];return(0,o.createFragment)([i.map((function(t){var n,a=t.key,i=t.name;if(r===a){var l=function(t,n){e.handleUpdateName(a,n),s(null)};n=(0,o.createComponentVNode)(2,c.Input,{autoSelect:!0,onEnter:l,onChange:l,onEscape:function(){s(null)},value:e.names[a]})}else n=(0,o.createComponentVNode)(2,c.Button,{width:"100%",onClick:function(e){s(a),e.cancelBubble=!0,e.stopPropagation()},children:(0,o.createComponentVNode)(2,c.FitText,{maxFontSize:12,maxWidth:130,children:e.names[a]})});return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:i.explanation,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:n}),!!i.can_randomize&&(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"dice",tooltip:"Randomize",tooltipPosition:"right",onClick:function(){e.handleRandomizeName(a)}})})]})},a)})),n!==a.length-1&&(0,o.createComponentVNode)(2,c.LabeledList.Divider)],0)}))})})})})}})};t.NameInput=function(e,t){var n=(0,a.useLocalState)(t,"lastNameBeforeEdit",null),r=n[0],l=n[1],d=r===e.name,s=function(t,n){l(null),e.handleUpdateName(n)};return(0,o.createComponentVNode)(2,c.Button,{captureKeys:!d,onClick:function(){l(e.name)},textAlign:"center",width:"100%",height:"28px",children:(0,o.createComponentVNode)(2,c.Stack,{align:"center",fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Icon,{style:{color:"rgba(255, 255, 255, 0.5)","font-size":"17px"},name:"edit"})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,position:"relative",children:[d&&(0,o.createComponentVNode)(2,c.Input,{autoSelect:!0,onEnter:s,onChange:s,onEscape:function(){l(null)},value:e.name})||(0,o.createComponentVNode)(2,c.FitText,{maxFontSize:16,maxWidth:130,children:e.name}),(0,o.createComponentVNode)(2,c.Box,{style:{"border-bottom":"2px dotted rgba(255, 255, 255, 0.8)",right:"50%",transform:"translateX(50%)",position:"absolute",width:"90%",bottom:"-1px"}})]}),(0,o.createComponentVNode)(2,i.ServerPreferencesFetcher,{render:function(t){return t?(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{as:"span",tooltip:"Alternate Names",tooltipPosition:"bottom",style:{background:"rgba(0, 0, 0, 0.7)",position:"absolute",right:"2px",top:"50%",transform:"translateY(-50%)",width:"2%"},onClick:function(t){e.openMultiNameInput(),t.cancelBubble=!0,t.stopPropagation()},children:(0,o.createComponentVNode)(2,c.Icon,{name:"ellipsis-v",style:{position:"relative",left:"1px","min-width":"0px"}})})}):null}})]})})}},17355:function(e,t,n){"use strict";t.__esModule=!0,t.FeatureValueInput=t.FeatureNumberInput=t.FeatureIconnedDropdownInput=t.FeatureDropdownInput=t.StandardizedDropdown=t.createDropdownInput=t.CheckboxInputInverse=t.CheckboxInput=t.FeatureColorInput=t.sortChoices=void 0;var o=n(96323),r=n(1397),a=n(1060),c=n(10648),i=n(31246),l=n(26949),d=n(6971),s=n(6168),u=(0,r.sortBy)((function(e){return e[0]}));t.sortChoices=u;t.FeatureColorInput=function(e){return(0,o.createComponentVNode)(2,l.Button,{onClick:function(){e.act("set_color_preference",{preference:e.featureId})},children:(0,o.createComponentVNode)(2,l.Stack,{align:"center",fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{style:Object.assign({background:e.value.startsWith("#")?e.value:"#"+e.value,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"},e.shrink?{margin:"1px"}:{})})}),!e.shrink&&(0,o.createComponentVNode)(2,l.Stack.Item,{children:"Change"})]})})};t.CheckboxInput=function(e){return(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:!!e.value,onClick:function(){e.handleSetValue(!e.value)}})};t.CheckboxInputInverse=function(e){return(0,o.createComponentVNode)(2,l.Button.Checkbox,{checked:!e.value,onClick:function(){e.handleSetValue(!e.value)}})};t.createDropdownInput=function(e,t){return function(n){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.Dropdown,Object.assign({selected:n.value,displayText:e[n.value],onSelected:n.handleSetValue,width:"100%",options:u(Object.entries(e)).map((function(e){var t=e[0];return{displayText:e[1],value:t}}))},t)))}};var m=function(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)},p=function(e){var t=e.choices,n=e.disabled,r=e.displayNames,a=e.onSetValue,c=e.value;return(0,o.createComponentVNode)(2,l.Dropdown,{disabled:n,selected:c,onSelected:a,width:"100%",displayText:r[c],options:t.map((function(e){return{displayText:r[e],value:e}}))})};t.StandardizedDropdown=p;t.FeatureDropdownInput=function(e){var t=e.serverData;if(!t)return null;var n=t.display_names||Object.fromEntries(t.choices.map((function(e){return[e,m(e)]})));return(0,o.createComponentVNode)(2,p,{choices:(0,r.sortStrings)(t.choices),disabled:e.disabled,displayNames:n,onSetValue:e.handleSetValue,value:e.value})};t.FeatureIconnedDropdownInput=function(e){var t=e.serverData;if(!t)return null;var n=t.icons,c=t.display_names||Object.fromEntries(t.choices.map((function(e){return[e,m(e)]}))),i=Object.fromEntries(Object.entries(c).map((function(e){var t=e[0],r=e[1];if(n&&n[t]){var c=n[t];r=(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{className:(0,a.classes)(["preferences32x32",c]),style:{transform:"scale(0.8)"}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:r})]})}return[t,r]})));return(0,o.createComponentVNode)(2,p,{choices:(0,r.sortStrings)(t.choices),displayNames:i,onSetValue:e.handleSetValue,value:e.value.value})};t.FeatureNumberInput=function(e){return e.serverData?(0,o.createComponentVNode)(2,l.NumberInput,{onChange:function(t,n){e.handleSetValue(n)},minValue:e.serverData.minimum,maxValue:e.serverData.maximum,step:e.serverData.step,value:e.value}):(0,o.createComponentVNode)(2,l.Box,{children:"Loading..."})};t.FeatureValueInput=function(e,t){var n=(0,i.useBackend)(t).data,r=e.feature,a=(0,i.useLocalState)(t,e.featureId+"_predictedValue_"+n.active_slot,e.value),l=a[0],u=a[1],m=function(t){u(t),(0,d.createSetPreference)(e.act,e.featureId)(t)};return(0,o.createComponentVNode)(2,s.ServerPreferencesFetcher,{render:function(t){return(0,o.createComponentVNode)(c.VNodeFlags.ComponentUnknown,r.component,{act:e.act,featureId:e.featureId,serverData:t&&t[e.featureId],shrink:e.shrink,handleSetValue:m,value:l})}})}},88439:function(e,t,n){"use strict";t.__esModule=!0,t.age=void 0;var o={name:"Age",component:n(17355).FeatureNumberInput};t.age=o},20329:function(e,t,n){"use strict";t.__esModule=!0,t.preferred_ai_core_display=void 0;var o={name:"AI core display",component:n(17355).FeatureIconnedDropdownInput};t.preferred_ai_core_display=o},97293:function(e,t,n){"use strict";t.__esModule=!0,t.body_type=void 0;var o={name:"Body type",component:n(17355).FeatureDropdownInput};t.body_type=o},19221:function(e,t,n){"use strict";t.__esModule=!0,t.glasses=void 0;var o={name:"Glasses",component:n(17355).FeatureDropdownInput};t.glasses=o},89310:function(e,t,n){"use strict";t.__esModule=!0,t.pda_style=t.pda_color=void 0;var o=n(17355),r={name:"PDA color",category:"GAMEPLAY",description:"The background color of your PDA.",component:o.FeatureColorInput};t.pda_color=r;var a={name:"PDA style",category:"GAMEPLAY",description:"The style of your equipped PDA. Changes font.",component:o.FeatureDropdownInput};t.pda_style=a},10878:function(e,t,n){"use strict";t.__esModule=!0,t.persistent_scars=void 0;var o={name:"Persistent Scars",component:n(17355).CheckboxInput};t.persistent_scars=o},9506:function(e,t,n){"use strict";t.__esModule=!0,t.phobia=void 0;var o={name:"Phobia",component:n(17355).FeatureDropdownInput};t.phobia=o},33239:function(e,t,n){"use strict";t.__esModule=!0,t.playtime_reward_cloak=void 0;var o={name:"Don gamer cloak",component:n(17355).CheckboxInput};t.playtime_reward_cloak=o},17394:function(e,t,n){"use strict";t.__esModule=!0,t.prefered_security_department=void 0;var o={name:"Security department",component:n(17355).FeatureDropdownInput};t.prefered_security_department=o},38237:function(e,t,n){"use strict";t.__esModule=!0,t.skin_tone=void 0;var o=n(96323),r=n(1397),a=n(26949),c=n(17355),i=(0,r.sortBy)((function(e){e[0];return-e[1].lightness})),l={name:"Skin tone",component:function(e){var t=e.handleSetValue,n=e.serverData,r=e.value;return n?(0,o.createComponentVNode)(2,c.StandardizedDropdown,{choices:i(Object.entries(n.to_hex)).map((function(e){return e[0]})),displayNames:Object.fromEntries(Object.entries(n.display_names).map((function(e){var t=e[0],r=e[1],c=n.to_hex[t];return[t,(0,o.createComponentVNode)(2,a.Stack,{align:"center",fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{style:{background:c.value,"box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:r})]},t)]}))),onSetValue:t,value:r}):null}};t.skin_tone=l},62922:function(e,t,n){"use strict";t.__esModule=!0,t.uplink_loc=void 0;var o={name:"Uplink Spawn Location",component:n(17355).FeatureDropdownInput};t.uplink_loc=o},93535:function(e,t,n){"use strict";t.__esModule=!0,t.fast_mc_refresh=t.bypass_deadmin_in_centcom=t.brief_outfit=t.asaycolor=void 0;var o=n(17355),r={name:"Admin chat color",category:"ADMIN",description:"The color of your messages in Adminsay.",component:o.FeatureColorInput};t.asaycolor=r;var a={name:"Brief outfit",category:"ADMIN",description:"The outfit to gain when spawning as the briefing officer.",component:o.FeatureDropdownInput};t.brief_outfit=a;var c={name:"Bypass deadmin options when in CentCom",category:"ADMIN",description:"Whether or not to always remain an admin when spawned in CentCom.",component:o.CheckboxInput};t.bypass_deadmin_in_centcom=c;var i={name:"Enable fast MC stat panel refreshes",category:"ADMIN",description:"Whether or not the MC tab of the Stat Panel refreshes fast. This is expensive so make sure you need it.",component:o.CheckboxInput};t.fast_mc_refresh=i},15185:function(e,t,n){"use strict";t.__esModule=!0,t.ambientocclusion=void 0;var o={name:"Enable ambient occlusion",category:"GAMEPLAY",description:"Enable ambient occlusion, light shadows around characters.",component:n(17355).CheckboxInput};t.ambientocclusion=o},50851:function(e,t,n){"use strict";t.__esModule=!0,t.auto_fit_viewport=void 0;var o={name:"Auto fit viewport",category:"UI",component:n(17355).CheckboxInput};t.auto_fit_viewport=o},22874:function(e,t,n){"use strict";t.__esModule=!0,t.broadcast_login_logout=void 0;n(21118);var o={name:"Broadcast login/logout",category:"GAMEPLAY",description:"When enabled, disconnecting and reconnecting will announce to deadchat.",component:n(17355).CheckboxInput};t.broadcast_login_logout=o},49260:function(e,t,n){"use strict";t.__esModule=!0,t.buttons_locked=void 0;var o={name:"Lock action buttons",category:"GAMEPLAY",description:"When enabled, action buttons will be locked in place.",component:n(17355).CheckboxInput};t.buttons_locked=o},19145:function(e,t,n){"use strict";t.__esModule=!0,t.darkened_flash=void 0;n(21118);var o={name:"Enable darkened flashes",category:"GAMEPLAY",description:"When toggled, being flashed will show a dark screen rather than a\nbright one.",component:n(17355).CheckboxInput};t.darkened_flash=o},18791:function(e,t,n){"use strict";t.__esModule=!0,t.fov_darkness=void 0;var o={name:"Field of view darkness",category:"GAMEPLAY",description:"The density of darkness of field of vision cones you may have by wearing restrictive eye cover.",component:n(17355).FeatureNumberInput};t.fov_darkness=o},64526:function(e,t,n){"use strict";t.__esModule=!0,t.clientfps=void 0;var o=n(96323),r=n(26949),a={name:"FPS",category:"GAMEPLAY",component:function(e){var t=e.handleSetValue,n=e.serverData,a="Recommended";return n&&(a+=" ("+n.recommended_fps+")"),(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,r.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,r.Dropdown,{selected:-1===e.value?a:"Custom",onSelected:function(e){t(e===a?-1:(null==n?void 0:n.recommended_fps)||60)},width:"100%",options:[a,"Custom"]})}),(0,o.createComponentVNode)(2,r.Stack.Item,{children:n&&-1!==e.value&&(0,o.createComponentVNode)(2,r.NumberInput,{onChange:function(t,n){e.handleSetValue(n)},minValue:1,maxValue:n.maximum,value:e.value})})]})}};t.clientfps=a},43946:function(e,t,n){"use strict";t.__esModule=!0,t.inquisitive_ghost=t.ghost_others=t.ghost_orbit=t.ghost_hud=t.ghost_form=t.ghost_accs=void 0;var o=n(96323),r=(n(21118),n(17355)),a=n(26949),c=n(1060),i=n(1397),l=n(31246),d={name:"Ghost accessories",category:"GHOST",description:"Determines what adjustments your ghost will have.",component:r.FeatureDropdownInput};t.ghost_accs=d;var s=(0,i.binaryInsertWith)((function(e){return e.value})),u={name:"Ghosts form",category:"GHOST",description:"The appearance of your ghost. Requires BYOND membership.",component:function(e,t){var n=(0,l.useBackend)(t).data,r=e.serverData;if(r){var i=r.display_names;if(!i)return(0,o.createComponentVNode)(2,a.Box,{color:"red",children:"No display names for ghost_form!"});for(var d={},u=[],m=0,p=Object.entries(i);m<p.length;m++){var h=p[m],C=h[0],f=h[1],N=(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{className:(0,c.classes)(["preferences32x32",r.icons[C]])})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:f})]},C);d[C]=N;var g={displayText:N,value:C};"ghost"===C?u.unshift(g):u=s(u,g)}return(0,o.createComponentVNode)(2,a.Dropdown,{disabled:!n.content_unlocked,selected:e.value,displayText:d[e.value],onSelected:e.handleSetValue,width:"100%",options:u})}}};t.ghost_form=u;var m={name:"Ghost HUD",category:"GHOST",description:"Enable HUD buttons for ghosts.",component:r.CheckboxInput};t.ghost_hud=m;var p={name:"Ghost orbit",category:"GHOST",description:"The shape in which your ghost will orbit.\nRequires BYOND membership.",component:function(e,t){var n=(0,l.useBackend)(t).data;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.FeatureDropdownInput,Object.assign({},e,{disabled:!n.content_unlocked})))}};t.ghost_orbit=p;var h={name:"Ghosts of others",category:"GHOST",description:"Do you want the ghosts of others to show up as their own setting, as\ntheir default sprites, or always as the default white ghost?",component:r.FeatureDropdownInput};t.ghost_others=h;var C={name:"Ghost inquisitiveness",category:"GHOST",description:"Clicking on something as a ghost will examine it.",component:r.CheckboxInput};t.inquisitive_ghost=C},38883:function(e,t,n){"use strict";t.__esModule=!0,t.ghost_lighting=void 0;var o={name:"Ghost Lighting",component:n(17355).FeatureDropdownInput,category:"GHOST",description:"Effects the brightness of lights for ghosts"};t.ghost_lighting=o},82719:function(e,t,n){"use strict";t.__esModule=!0,t.hotkeys=void 0;var o={name:"Classic hotkeys",category:"GAMEPLAY",description:"When enabled, will revert to the legacy hotkeys, using the input bar rather than popups.",component:n(17355).CheckboxInputInverse};t.hotkeys=o},50695:function(e,t,n){"use strict";t.__esModule=!0,t.itemoutline_pref=void 0;var o={name:"Item outlines",category:"GAMEPLAY",description:"When enabled, hovering over items will outline them.",component:n(17355).CheckboxInput};t.itemoutline_pref=o},91954:function(e,t,n){"use strict";t.__esModule=!0,t.chat_pullr=t.chat_prayer=t.chat_ooc=t.chat_login_logout=t.chat_ghostwhisper=t.chat_ghostsight=t.chat_ghostradio=t.chat_ghostpda=t.chat_ghostlaws=t.chat_ghostears=t.chat_dead=t.chat_bankcard=void 0;n(21118);var o=n(17355),r={name:"Enable income updates",category:"CHAT",description:"Receive notifications for your bank account.",component:o.CheckboxInput};t.chat_bankcard=r;var a={name:"Enable deadchat",category:"ADMIN",component:o.CheckboxInput};t.chat_dead=a;var c={name:"Hear all messages",category:"GHOST",description:"When enabled, you will be able to hear all speech as a ghost.\nWhen disabled, you will only be able to hear nearby speech.",component:o.CheckboxInput};t.chat_ghostears=c;var i={name:"Enable law change updates",category:"GHOST",description:"When enabled, be notified of any new law changes as a ghost.",component:o.CheckboxInput};t.chat_ghostlaws=i;var l={name:"Enable PDA notifications",category:"GHOST",description:"When enabled, be notified of any PDA messages as a ghost.",component:o.CheckboxInput};t.chat_ghostpda=l;var d={name:"Enable radio",category:"GHOST",description:"When enabled, be notified of any radio messages as a ghost.",component:o.CheckboxInput};t.chat_ghostradio=d;var s={name:"See all emotes",category:"GHOST",description:"When enabled, see all emotes as a ghost.",component:o.CheckboxInput};t.chat_ghostsight=s;var u={name:"See all whispers",category:"GHOST",description:"When enabled, you will be able to hear all whispers as a ghost.\nWhen disabled, you will only be able to hear nearby whispers.",component:o.CheckboxInput};t.chat_ghostwhisper=u;var m={name:"See login/logout messages",category:"GHOST",description:"When enabled, be notified when a player logs in or out.",component:o.CheckboxInput};t.chat_login_logout=m;var p={name:"Enable OOC",category:"CHAT",component:o.CheckboxInput};t.chat_ooc=p;var h={name:"Listen to prayers",category:"ADMIN",component:o.CheckboxInput};t.chat_prayer=h;var C={name:"Enable pull request notifications",category:"CHAT",description:"Be notified when a pull request is made, closed, or merged.",component:o.CheckboxInput};t.chat_pullr=C},76029:function(e,t,n){"use strict";t.__esModule=!0,t.split_admin_tabs=t.sound_ship_ambience=t.sound_prayers=t.sound_midi=t.sound_lobby=t.sound_instruments=t.sound_endofround=t.sound_combatmode=t.sound_announcements=t.sound_ambience=t.sound_adminhelp=t.member_public=t.disable_deathrattle=t.disable_arrivalrattle=t.deadmin_position_silicon=t.deadmin_position_security=t.deadmin_position_head=t.deadmin_antagonist=t.deadmin_always=t.combohud_lighting=t.announce_login=t.admin_ignore_cult_ghost=void 0;n(21118);var o=n(17355),r={name:"Prevent being summoned as a cult ghost",category:"ADMIN",description:"When enabled and observing, prevents Spirit Realm from forcing you\ninto a cult ghost.",component:o.CheckboxInput};t.admin_ignore_cult_ghost=r;var a={name:"Announce login",category:"ADMIN",description:"Admins will be notified when you login.",component:o.CheckboxInput};t.announce_login=a;var c={name:"Enable fullbright Combo HUD",category:"ADMIN",component:o.CheckboxInput};t.combohud_lighting=c;var i={name:"Auto deadmin - Always",category:"ADMIN",description:"When enabled, you will automatically deadmin.",component:o.CheckboxInput};t.deadmin_always=i;var l={name:"Auto deadmin - Antagonist",category:"ADMIN",description:"When enabled, you will automatically deadmin as an antagonist.",component:o.CheckboxInput};t.deadmin_antagonist=l;var d={name:"Auto deadmin - Head of Staff",category:"ADMIN",description:"When enabled, you will automatically deadmin as a head of staff.",component:o.CheckboxInput};t.deadmin_position_head=d;var s={name:"Auto deadmin - Security",category:"ADMIN",description:"When enabled, you will automatically deadmin as a member of security.",component:o.CheckboxInput};t.deadmin_position_security=s;var u={name:"Auto deadmin - Silicon",category:"ADMIN",description:"When enabled, you will automatically deadmin as a silicon.",component:o.CheckboxInput};t.deadmin_position_silicon=u;var m={name:"Notify for new arrivals",category:"GHOST",description:"When enabled, you will be notified as a ghost for new crew.",component:o.CheckboxInputInverse};t.disable_arrivalrattle=m;var p={name:"Notify for deaths",category:"GHOST",description:"When enabled, you will be notified as a ghost whenever someone dies.",component:o.CheckboxInputInverse};t.disable_deathrattle=p;var h={name:"Publicize BYOND membership",category:"CHAT",description:"When enabled, a BYOND logo will be shown next to your name in OOC.",component:o.CheckboxInput};t.member_public=h;var C={name:"Enable adminhelp sounds",category:"ADMIN",component:o.CheckboxInput};t.sound_adminhelp=C;var f={name:"Enable ambience",category:"SOUND",component:o.CheckboxInput};t.sound_ambience=f;var N={name:"Enable announcement sounds",category:"SOUND",description:"When enabled, hear sounds for command reports, notices, etc.",component:o.CheckboxInput};t.sound_announcements=N;var g={name:"Enable combat mode sound",category:"SOUND",description:"When enabled, hear sounds when toggling combat mode.",component:o.CheckboxInput};t.sound_combatmode=g;var V={name:"Enable end of round sounds",category:"SOUND",description:"When enabled, hear a sound when the server is rebooting.",component:o.CheckboxInput};t.sound_endofround=V;var b={name:"Enable instruments",category:"SOUND",description:"When enabled, be able hear instruments in game.",component:o.CheckboxInput};t.sound_instruments=b;var v={name:"Enable lobby music",category:"SOUND",component:o.CheckboxInput};t.sound_lobby=v;var k={name:"Enable admin music",category:"SOUND",description:"When enabled, admins will be able to play music to you.",component:o.CheckboxInput};t.sound_midi=k;var _={name:"Enable prayer sound",category:"ADMIN",component:o.CheckboxInput};t.sound_prayers=_;var y={name:"Enable ship ambience",category:"SOUND",component:o.CheckboxInput};t.sound_ship_ambience=y;var w={name:"Split admin tabs",category:"ADMIN",description:"When enabled, will split the 'Admin' panel into several tabs.",component:o.CheckboxInput};t.split_admin_tabs=w},11728:function(e,t,n){"use strict";t.__esModule=!0,t.mod_select=void 0;var o={name:"MOD active module key",category:"GAMEPLAY",description:"The key you need to use an active MODsuit module.",component:n(17355).FeatureDropdownInput};t.mod_select=o},4002:function(e,t,n){"use strict";t.__esModule=!0,t.ooccolor=void 0;var o={name:"OOC color",category:"CHAT",description:"The color of your OOC messages.",component:n(17355).FeatureColorInput};t.ooccolor=o},49737:function(e,t,n){"use strict";t.__esModule=!0,t.parallax=void 0;var o={name:"Parallax (fancy space)",category:"GAMEPLAY",component:n(17355).FeatureDropdownInput};t.parallax=o},48513:function(e,t,n){"use strict";t.__esModule=!0,t.pixel_size=void 0;var o={name:"Pixel Scaling",category:"UI",component:(0,n(17355).createDropdownInput)({0:"Stretch to fit",1:"Pixel Perfect 1x",1.5:"Pixel Perfect 1.5x",2:"Pixel Perfect 2x",3:"Pixel Perfect 3x"})};t.pixel_size=o},71288:function(e,t,n){"use strict";t.__esModule=!0,t.preferred_map=void 0;n(21118);var o={name:"Preferred map",category:"GAMEPLAY",description:"During map rotation, prefer this map be chosen.\nThis does not affect the map vote, only random rotation when a vote\nis not held.",component:n(17355).FeatureDropdownInput};t.preferred_map=o},87405:function(e,t,n){"use strict";t.__esModule=!0,t.max_chat_length=t.see_rc_emotes=t.see_chat_non_mob=t.chat_on_map=void 0;var o=n(17355),r={name:"Enable Runechat",category:"RUNECHAT",description:"Chat messages will show above heads.",component:o.CheckboxInput};t.chat_on_map=r;var a={name:"Enable Runechat on objects",category:"RUNECHAT",description:"Chat messages will show above objects when they speak.",component:o.CheckboxInput};t.see_chat_non_mob=a;var c={name:"Enable Runechat emotes",category:"RUNECHAT",description:"Emotes will show above heads.",component:o.CheckboxInput};t.see_rc_emotes=c;var i={name:"Max chat length",category:"RUNECHAT",description:"The maximum length a Runechat message will show as.",component:o.FeatureNumberInput};t.max_chat_length=i},36614:function(e,t,n){"use strict";t.__esModule=!0,t.scaling_method=void 0;var o={name:"Scaling method",category:"UI",component:(0,n(17355).createDropdownInput)({blur:"Bilinear",distort:"Nearest Neighbor",normal:"Point Sampling"})};t.scaling_method=o},71603:function(e,t,n){"use strict";t.__esModule=!0,t.screentip_pref=t.screentip_color=void 0;n(21118);var o=n(17355),r={name:"Screentips color",category:"UI",description:"The color of screen tips, the text you see when hovering over something.",component:o.FeatureColorInput};t.screentip_color=r;var a={name:"Enable screentips",category:"UI",description:'Enables screen tips, the text you see when hovering over something.\nWhen set to "Only with tips", will only show when there is more information\nthan just the name, such as what right-clicking it does.',component:o.FeatureDropdownInput};t.screentip_pref=a},87346:function(e,t,n){"use strict";t.__esModule=!0,t.tgui_lock=t.tgui_input_swapped=t.tgui_input_large=t.tgui_input=t.tgui_fancy=void 0;var o=n(17355),r={name:"Enable fancy TGUI",category:"UI",description:"Makes TGUI windows look better, at the cost of compatibility.",component:o.CheckboxInput};t.tgui_fancy=r;var a={name:"Input: Enable TGUI",category:"UI",description:"Renders input boxes in TGUI.",component:o.CheckboxInput};t.tgui_input=a;var c={name:"Input: Larger buttons",category:"UI",description:"Makes TGUI buttons less traditional, more functional.",component:o.CheckboxInput};t.tgui_input_large=c;var i={name:"Input: Swap Submit/Cancel buttons",category:"UI",description:"Makes TGUI buttons less traditional, more functional.",component:o.CheckboxInput};t.tgui_input_swapped=i;var l={name:"Lock TGUI to main monitor",category:"UI",description:"Locks TGUI windows to your main monitor.",component:o.CheckboxInput};t.tgui_lock=l},42563:function(e,t,n){"use strict";t.__esModule=!0,t.tip_delay=t.enable_tips=void 0;n(21118);var o=n(17355),r={name:"Enable tooltips",category:"TOOLTIPS",description:"Do you want to see tooltips when hovering over items?",component:o.CheckboxInput};t.enable_tips=r;var a={name:"Tooltip delay (in milliseconds)",category:"TOOLTIPS",description:"How long should it take to see a tooltip when hovering over items?",component:o.FeatureNumberInput};t.tip_delay=a},91938:function(e,t,n){"use strict";t.__esModule=!0,t.UI_style=void 0;var o=n(96323),r=n(1060),a=n(17355),c=n(26949),i={name:"UI Style",category:"UI",component:function(e){var t=e.serverData,n=e.value;if(!t)return null;var i=t.icons;if(!i)return(0,o.createComponentVNode)(2,c.Box,{color:"red",children:"ui_style had no icons!"});var l=Object.fromEntries(Object.entries(i).map((function(e){var t=e[0],n=e[1];return[t,(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Box,{className:(0,r.classes)(["preferences64x32",n]),style:{transform:"scale(0.8)"}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:t})]},t)]})));return(0,o.createComponentVNode)(2,c.Dropdown,{selected:n,clipSelectedText:!1,displayText:l[n],onSelected:e.handleSetValue,width:"100%",options:(0,a.sortChoices)(Object.entries(l)).map((function(e){var t=e[0];return{displayText:e[1],value:t}}))})}};t.UI_style=i},50123:function(e,t,n){"use strict";t.__esModule=!0,t.widescreenpref=void 0;var o={name:"Enable widescreen",category:"UI",component:n(17355).CheckboxInput};t.widescreenpref=o},40751:function(e,t,n){"use strict";t.__esModule=!0,t.windowflashing=void 0;n(21118);var o={name:"Enable window flashing",category:"UI",description:"When toggled, some important events will make your game icon flash on your\ntask tray.",component:n(17355).CheckboxInput};t.windowflashing=o},24312:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.__esModule=!0,t["default"]=void 0;for(var r,a={},c=n(61468),i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c.keys());!(r=i()).done;){var l=r.value;if("index"!==l&&"base"!==l)for(var d=0,s=Object.entries(c(l));d<s.length;d++){var u=s[d],m=u[0],p=u[1];a[m]=p}}var h=a;t["default"]=h},92167:function(e,t,n){"use strict";t.__esModule=!0,t.random_species=t.random_name=t.random_hardcore=t.random_body=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(6971),i=n(26427),l=n(26385),d=n(17355),s={name:"Random body",component:function(e,t){var n=(0,l.useRandomToggleState)(t),r=n[0],c=n[1];return(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,i.RandomizationButton,{setValue:function(t){return e.handleSetValue(t)},value:e.value})}),r?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{color:"green",onClick:function(){e.act("randomize_character"),c(!1)},children:"Randomize"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{color:"red",onClick:function(){return c(!1)},children:"Cancel"})})],4):(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c(!0)},children:"Randomize"})})]})}};t.random_body=s;var u={name:"Hardcore random",component:d.CheckboxInput};t.random_hardcore=u;var m={name:"Random name",component:function(e,t){return(0,o.createComponentVNode)(2,i.RandomizationButton,{setValue:function(t){return e.handleSetValue(t)},value:e.value})}};t.random_name=m;var p={name:"Random species",component:function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data.character_preferences.randomization.species;return(0,o.createComponentVNode)(2,i.RandomizationButton,{setValue:function(e){return a("set_random_preference",{preference:"species",value:e})},value:l||c.RandomSetting.Disabled})}};t.random_species=p},44093:function(e,t,n){"use strict";t.__esModule=!0,t.heterochromatic=t.feature_vampire_status=t.underwear_color=t.feature_mcolor=t.feature_lizard_tail=t.feature_lizard_spines=t.feature_lizard_legs=t.feature_human_tail=t.feature_human_ears=t.hair_gradient_color=t.hair_gradient=t.hair_color=t.facial_hair_gradient_color=t.facial_hair_gradient=t.facial_hair_color=t.eye_color=void 0;var o=n(17355),r={name:"Eye color",component:o.FeatureColorInput};t.eye_color=r;var a={name:"Facial hair color",component:o.FeatureColorInput};t.facial_hair_color=a;var c={name:"Facial hair gradient",component:o.FeatureDropdownInput};t.facial_hair_gradient=c;var i={name:"Facial hair gradient color",component:o.FeatureColorInput};t.facial_hair_gradient_color=i;var l={name:"Hair color",component:o.FeatureColorInput};t.hair_color=l;var d={name:"Hair gradient",component:o.FeatureDropdownInput};t.hair_gradient=d;var s={name:"Hair gradient color",component:o.FeatureColorInput};t.hair_gradient_color=s;var u={name:"Ears",component:o.FeatureDropdownInput};t.feature_human_ears=u;var m={name:"Tail",component:o.FeatureDropdownInput};t.feature_human_tail=m;var p={name:"Legs",component:o.FeatureDropdownInput};t.feature_lizard_legs=p;var h={name:"Spines",component:o.FeatureDropdownInput};t.feature_lizard_spines=h;var C={name:"Tail",component:o.FeatureDropdownInput};t.feature_lizard_tail=C;var f={name:"Mutant color",component:o.FeatureColorInput};t.feature_mcolor=f;var N={name:"Underwear color",component:o.FeatureColorInput};t.underwear_color=N;var g={name:"Vampire status",component:o.FeatureDropdownInput};t.feature_vampire_status=g;var V={name:"Heterochromatic (Right Eye) color",component:o.FeatureColorInput};t.heterochromatic=V},57724:function(e,t){"use strict";var n,o;t.__esModule=!0,t.GENDERS=t.Gender=void 0,t.Gender=o,function(e){e.Male="male",e.Female="female",e.Other="plural"}(o||(t.Gender=o={}));var r=((n={})[o.Male]={icon:"male",text:"Male"},n[o.Female]={icon:"female",text:"Female"},n[o.Other]={icon:"tg-non-binary",text:"Other"},n);t.GENDERS=r},26385:function(e,t,n){"use strict";t.__esModule=!0,t.useRandomToggleState=void 0;var o=n(31246);t.useRandomToggleState=function(e){return(0,o.useLocalState)(e,"randomToggle",!1)}},66271:function(e,t,n){"use strict";t.__esModule=!0,t.PressureRegulator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PressureRegulator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,h=l.set_flow_rate,C=l.last_flow_rate;return(0,o.createComponentVNode)(2,c.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:C/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[h/10," L/s"]})]})})]})})}},21519:function(e,t,n){"use strict";t.__esModule=!0,t.PrisonerManagement=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.PrisonerManagement=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,a.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},95768:function(e,t,n){"use strict";t.__esModule=!0,t.ProbingConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ProbingConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.open,s=l.feedback,u=l.occupant,m=l.occupant_name,p=l.occupant_status;return(0,o.createComponentVNode)(2,c.Window,{width:330,height:207,theme:"abductor",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Machine Report",children:s})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return i("door")}}),children:u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:3===p?"bad":2===p?"average":"good",children:3===p?"Deceased":2===p?"Unconscious":"Conscious"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Experiments",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"thermometer",content:"Probe",onClick:function(){return i("experiment",{experiment_type:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"brain",content:"Dissect",onClick:function(){return i("experiment",{experiment_type:2})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Analyze",onClick:function(){return i("experiment",{experiment_type:3})}})]})]})||(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Subject"})})]})})}},59208:function(e,t,n){"use strict";t.__esModule=!0,t.ProcCallMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=["onRemove","onEnter","onSetType","name","datatype","datatypeOptions","color"];t.ProcCallMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,d=n.data,s=d.input_ports,u=d.possible_types,m=d.expected_output,p=d.expected_output_color,h=d.resolve_weakref;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{grow:!0,height:"100%",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Options",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,width:"180px",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Expected Output:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",displayText:m,options:u,color:p,onSelected:function(e){return i("set_expected_output",{datatype:e})}})}),(0,o.createComponentVNode)(2,a.Stack.Divider),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{content:"Resolve Weakref",textAlign:"center",checked:h,onClick:function(){return i("resolve_weakref")},fluid:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,width:"100%",children:"This determines whether we automatically resolve any weakrefs in lists."})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Arguments",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[s.map((function(e,t){return(0,o.createComponentVNode)(2,l,{name:e.name,color:e.color,datatype:e.datatype,datatypeOptions:u,onRemove:function(){return i("remove_argument",{index:t+1})},onSetType:function(e){return i("set_argument_datatype",{index:t+1,datatype:e})},onEnter:function(e,n){return i("rename_argument",{index:t+1,name:n})}},t)})),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Add Argument",color:"good",icon:"plus",onClick:function(){return i("add_argument")}})})]})})})]})})})};var l=function(e,t){var n=e.onRemove,r=e.onEnter,c=e.onSetType,l=e.name,d=e.datatype,s=e.datatypeOptions,u=void 0===s?[]:s,m=e.color,p=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,i);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Stack.Item,Object.assign({},p,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Name",value:l,onChange:r,fluid:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{displayText:d,options:u,onSelected:c,color:m})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:n})})]})})))}},17567:function(e,t,n){"use strict";t.__esModule=!0,t.ProduceConsole=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381),i=[{component:function(){return l}},{component:function(){return d}}],l=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.order_datums,d=(0,r.useLocalState)(t,"shop-index",1),s=d[0],u=d[1],m=l.filter((function(e){return e&&e.cat===s}));return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Section,{mb:-.9,children:(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",content:"Fruits and Veggies",onClick:function(){return u(1)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"white",content:"Milk and Eggs",onClick:function(){return u(2)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"olive",content:"Sauces and Reagents",onClick:function(){return u(3)}})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:-2,children:[(0,o.createComponentVNode)(2,a.Divider),m.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-1,color:"label",fontSize:"10px",children:['"'+e.desc+'"',(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:e.name+" costs "+e.cost+" per order."})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-.5,children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:e.amt&&e.amt||0,width:"41px",minValue:0,maxValue:20,onChange:function(t,n){return i("cart_set",{target:e.ref,amt:n})}})})]}),(0,o.createComponentVNode)(2,a.Divider)]},e)}))]})})})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,l=c.order_datums,d=c.total_cost,s=l.filter((function(e){return e&&e.amt}));return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",children:"Checkout list:"}),(0,o.createComponentVNode)(2,a.Divider),!s.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{align:"center",mt:"15%",fontSize:"40px",children:"Nothing!"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{align:"center",mt:2,fontSize:"15px",children:"(Go order something, will ya?)"})],4),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-1,color:"label",fontSize:"10px",children:['"'+e.desc+'"',(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",children:e.name+" costs "+e.cost+" per order."})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:-.5,children:(0,o.createComponentVNode)(2,a.NumberInput,{value:e.amt&&e.amt||0,width:"41px",minValue:0,maxValue:e.cost>10?50:10,onChange:function(t,n){return i("cart_set",{target:e.ref,amt:n})}})})]}),(0,o.createComponentVNode)(2,a.Divider)]},e)}))})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:.5,children:["Total Cost: ",d]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plane-departure",content:"Purchase",tooltip:"Your groceries will arrive at cargo,\nand hopefully get delivered by them.",tooltipPosition:"top",onClick:function(){return i("purchase")}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"parachute-box",color:"yellow",content:"Express",tooltip:"Sends the ingredients instantly,\nand locks the console longer. Doubles the price!",tooltipPosition:"top-start",onClick:function(){return i("express")}})})]})})})]})},s=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{ml:"28%",color:"green",name:"plane-arrival",size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",color:"green",children:"Order sent! Machine on cooldown..."})]})})};t.ProduceConsole=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.off_cooldown),d=(0,r.useLocalState)(t,"tab-index",1),u=d[0],m=d[1],p=i[u-1].component();return(0,o.createComponentVNode)(2,c.Window,{title:"Produce Orders",width:500,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!l&&(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",lineHeight:2,icon:"cart-plus",content:"Shopping",onClick:function(){return m(1)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"green",lineHeight:2,icon:"dollar-sign",content:"Checkout",onClick:function(){return m(2)}})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})]})]})})}},30345:function(e,t,n){"use strict";t.__esModule=!0,t.ProximitySensor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ProximitySensor=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.minutes,s=l.seconds,u=l.timing,m=l.scanning,p=l.sensitivity;return(0,o.createComponentVNode)(2,c.Window,{width:250,height:185,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"lock":"unlock",content:m?"Armed":"Not Armed",selected:m,onClick:function(){return i("scanning")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Detection Range",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:m,onClick:function(){return i("sense",{range:-1})}})," ",String(p).padStart(1,"1")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:m,onClick:function(){return i("sense",{range:1})}})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Auto Arm",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:u?"Stop":"Start",selected:u,disabled:m,onClick:function(){return i("time")}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:m||u,onClick:function(){return i("input",{adjust:-30})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:m||u,onClick:function(){return i("input",{adjust:-1})}})," ",String(d).padStart(2,"0"),":",String(s).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:m||u,onClick:function(){return i("input",{adjust:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:m||u,onClick:function(){return i("input",{adjust:30})}})]})]})})}},99760:function(e,t,n){"use strict";t.__esModule=!0,t.Puzzgrid=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381),l=150,d=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Button,Object.assign({verticalAlignContent:"middle",style:{width:"100%",height:"100%","text-align":"center","vertical-align":"middle","white-space":"normal"}},e,{children:(0,o.createComponentVNode)(2,c.FitText,{maxFontSize:17,maxWidth:l,children:e.children})})))};t.Puzzgrid=function(e,t){var n=(0,a.useBackend)(t),s=n.act,u=n.data,m=u.answers.filter((function(e){return!u.solved_groups.find((function(t){return-1!==t.answers.indexOf(e)}))}));return(0,o.createComponentVNode)(2,i.Window,{title:u.host,width:600,height:400,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:[u.solved_groups.map((function(e,t){return(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:e.answers.map((function(e,t){return(0,o.createComponentVNode)(2,c.Stack.Item,{width:l,children:(0,o.createComponentVNode)(2,d,{disabled:!0,children:e})},t)}))})},t)})),(0,r.range)(0,m.length/4).map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:(0,r.range)(0,4).map((function(t){var n=m[4*e+t],r=-1!==u.selected_answers.indexOf(n);return(0,o.createComponentVNode)(2,c.Stack.Item,{width:l,children:(0,o.createComponentVNode)(2,d,{disabled:!!u.wrong_group_select_cooldown,selected:r,onClick:function(){return s(r?"unselect":"select",{answer:n})},children:n})},t)}))})},e)}))]}),2===u.solved_groups.length&&(0,o.createComponentVNode)(2,c.Box,{color:"red",style:{"text-shadow":"1px 1px 1px #222","font-size":"30px",position:"absolute",top:0,left:"10px"},children:(0,r.range)(0,u.lives).map((function(e){return(0,o.createVNode)(1,"span",null,"\u2665",16,null,e)}))}),u.time_left&&(0,o.createComponentVNode)(2,c.Box,{style:{"text-shadow":"1px 1px 1px #222","text-align":"right","font-size":"15px","pointer-events":"none",position:"absolute",top:0,right:"10px"},children:[Math.ceil(u.time_left),"s"]})]})})}},39549:function(e,t,n){"use strict";t.__esModule=!0,t.RCONContent=t.RCON=void 0;var o=n(96323),r=n(97622),a=n(1033),c=n(31246),i=n(26949),l=n(2381),d=n(21118);t.RCON=function(e,t){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,t){var n,r=(0,c.useLocalState)(t,"tabIndex",0),a=r[0],l=r[1];return 0===a?n=(0,o.createComponentVNode)(2,u):1===a&&(n=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===a,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===a,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:n})],4)};t.RCONContent=s;var u=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m,{smes:e})},e.RCON_tag)}))})})},m=function(e,t){(0,c.useBackend)(t).act;var n=e.smes,a=n.capacityPercent,l=n.capacity,d=n.charge,s=(n.inputAttempt,n.inputting,n.inputLevel,n.inputLevelMax,n.inputAvailable,n.outputAttempt,n.outputting,n.outputLevel,n.outputLevelMax,n.outputUsed,n.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*a,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/60,1)," kWh / ",(0,r.round)(l/60)," kWh (",a,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},p=function(e,t){var n,r,l,s,u,m,p,h=(0,c.useBackend)(t).act,C=e.way,f=e.smes,N=(f.capacityPercent,f.capacity,f.charge,f.inputAttempt),g=f.inputting,V=f.inputLevel,b=f.inputLevelMax,v=f.inputAvailable,k=f.outputAttempt,_=f.outputting,y=f.outputLevel,w=f.outputLevelMax,x=f.outputUsed,S=f.RCON_tag;switch(C){case"input":n=V,r=b,l=v,"IN",s="smes_in_toggle",u="smes_in_set",N,m=N?g?"green":"yellow":null,p=N?g?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":n=y,r=w,l=x,"OUT",s="smes_out_toggle",u="smes_out_set",k,m=k?_?"green":"yellow":null,p=k?_?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(C)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:m,tooltip:p,onClick:function(){return h(s,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===n,onClick:function(){return h(u,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===n,onClick:function(){return h(u,{adjust:-10,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:n,fillValue:l,minValue:0,maxValue:r,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(1e3*l,1)+"/"+(0,a.formatPower)(1e3*e,1)},onDrag:function(e,t){return h(u,{target:t,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:n===r,onClick:function(){return h(u,{adjust:10,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:n===r,onClick:function(){return h(u,{target:"max",smes:S})}})]})]})})]})},h=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:a?a.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},40395:function(e,t,n){"use strict";t.__esModule=!0,t.RIGSuit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118);t.RIGSuit=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,h=i.ai,C=null;return u||m?C=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!h&&p&&(C=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,c.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:C||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,h=i.cooling,C=i.emagged,f=i.securitycheck,N=i.coverlock,g=(0,o.createComponentVNode)(2,a.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return c("toggle_seals")}}),V=(0,o.createComponentVNode)(2,a.Button,{content:"Suit Cooling "+(h?"is Active":"is Inactive"),icon:"power-off",selected:h,onClick:function(){return c("toggle_cooling")}}),b=(0,o.createComponentVNode)(2,a.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return c("toggle_ai_control")}});return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([g,b,V],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cover Status",children:C||!f?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,a.Button,{icon:N?"lock":"lock-open",content:N?"Locked":"Unlocked",onClick:function(){return c("toggle_suit_lock")}})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,h=l.boots,C=l.bootsDeployed,f=l.chest,N=l.chestDeployed;return(0,o.createComponentVNode)(2,a.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return c("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return c("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:C?"sign-out-alt":"sign-in-alt",content:C?"Deployed":"Deploy",disabled:d,selected:C,onClick:function(){return c("toggle_piece",{piece:"boots"})}}),children:h?(0,i.capitalize)(h):"ERROR"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:N?"sign-out-alt":"sign-in-alt",content:N?"Deployed":"Deploy",disabled:d,selected:N,onClick:function(){return c("toggle_piece",{piece:"chest"})}}),children:f?(0,i.capitalize)(f):"ERROR"})]})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,a.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,t){return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,a.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return c("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,a.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return c("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,a.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return c("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(t,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.capitalize)(t.caption),children:(0,o.createComponentVNode)(2,a.Button,{selected:e.realchargetype===t.index,icon:"arrow-right",onClick:function(){return c("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:t.index})}})},t.caption)}))]})})}):null]},e.name)}))]})}},88963:function(e,t,n){"use strict";t.__esModule=!0,t.Radio=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(84200),l=n(2381);t.Radio=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,h=s.listening,C=s.broadcasting,f=s.subspace,N=s.subspaceSwitchable,g=s.chan_list,V=s.loudspeaker,b=s.mic_cut,v=s.spk_cut,k=s.useSyndMode,_=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),y=156;return g&&g.length>0?y+=28*g.length+6:y+=24,N&&(y+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:y,resizable:!0,theme:k?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,t){return d("setFrequency",{freq:(0,r.round)(10*t)})}}),_&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:_.color,ml:2,children:["[",_.name,"]"]})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:h?"volume-up":"volume-mute",selected:h,disabled:v,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"37px",icon:C?"microphone":"microphone-slash",selected:C,disabled:b,onClick:function(){return d("broadcast")}}),!!N&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",selected:f,content:"Subspace Tx "+(f?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!N&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"volume-up":"volume-mute",selected:V,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Channels",children:[(!g||0===g.length)&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:g?g.map((function(e){var t=i.RADIO_CHANNELS.find((function(t){return t.freq===Number(e.freq)})),n="default";return t&&(n=t.color),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.display_name,labelColor:n,textAlign:"right",children:e.secure_channel&&f?(0,o.createComponentVNode)(2,c.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,c.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},22933:function(e,t,n){"use strict";t.__esModule=!0,t.RadioactiveMicrolaser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.RadioactiveMicrolaser=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.irradiate,s=l.stealth,u=l.scanmode,m=l.intensity,p=l.wavelength,h=l.on_cooldown,C=l.cooldown;return(0,o.createComponentVNode)(2,c.Window,{title:"Radioactive Microlaser",width:320,height:335,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laser Status",children:(0,o.createComponentVNode)(2,a.Box,{color:h?"average":"good",children:h?"Recharging":"Ready"})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Scanner Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Irradiation",children:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("irradiate")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stealth Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"eye-slash":"eye",content:s?"On":"Off",disabled:!d,selected:s,onClick:function(){return i("stealth")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"mortar-pestle":"heartbeat",content:u?"Scan Reagents":"Scan Health",disabled:d&&s,onClick:function(){return i("scanmode")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Laser Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Intensity",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",onClick:function(){return i("radintensity",{adjust:-5})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",onClick:function(){return i("radintensity",{adjust:-1})}})," ",(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(m),width:"40px",minValue:1,maxValue:20,onChange:function(e,t){return i("radintensity",{target:t})}})," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",onClick:function(){return i("radintensity",{adjust:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",onClick:function(){return i("radintensity",{adjust:5})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Wavelength",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",onClick:function(){return i("radwavelength",{adjust:-5})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",onClick:function(){return i("radwavelength",{adjust:-1})}})," ",(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(p),width:"40px",minValue:0,maxValue:120,onChange:function(e,t){return i("radwavelength",{target:t})}})," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",onClick:function(){return i("radwavelength",{adjust:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",onClick:function(){return i("radwavelength",{adjust:5})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Laser Cooldown",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:C})})]})})]})})}},3711:function(e,t,n){"use strict";t.__esModule=!0,t.RapidPipeDispenser=t.LayerSelect=t.ColorItem=t.ICON_BY_CATEGORY_NAME=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381),l=["Atmospherics","Disposals"],d={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"};t.ICON_BY_CATEGORY_NAME=d;var s=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.selected_color;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,width:"64px",color:i.paint_colors[l],children:l}),Object.keys(i.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:i.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})};t.ColorItem=u;var m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.mode;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:i&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})})},p=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.category;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Category",children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Button,{selected:i===t,icon:d[e],color:"transparent",onClick:function(){return r("category",{category:t})},children:e},e)}))})},h=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,u)]})})},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.piping_layer;return(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:e===i,content:"Layer "+e,onClick:function(){return r("piping_layer",{piping_layer:e})}})},e)}))})};t.LayerSelect=C;var f=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=(l.category,l.preview_rows.flatMap((function(e){return e.previews})));return(0,o.createComponentVNode)(2,c.Box,{width:"120px",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return i("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,c.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})},N=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.category;r.piping_layer,r.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,c.Section,{fill:!0,width:7.5,children:[0===i&&(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,f)]})},g=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.categories,l=void 0===i?[]:i,s=(0,a.useLocalState)(t,"categoryName"),u=s[0],m=s[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{fluid:!0,icon:d[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};t.RapidPipeDispenser=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data.category;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,N)})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,g)})]})})]})})})}},3359:function(e,t,n){"use strict";t.__esModule=!0,t.Reagents=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(14958),l=n(8782),d=new Set;t.Reagents=function(e,t){var n=(0,r.useBackend)(t),m=n.act,p=n.data,h=p.beakerSync,C=p.reagent_mode_recipe,f=p.reagent_mode_reagent,N=p.bitflags,g=void 0===N?{}:N,V=[{flag:g.BRUTE,icon:"gavel"},{flag:g.BURN,icon:"burn"},{flag:g.TOXIN,icon:"biohazard"},{flag:g.OXY,icon:"wind"},{flag:g.CLONE,icon:"male"},{flag:g.HEALING,icon:"medkit"},{flag:g.DAMAGING,icon:"skull-crossbones"},{flag:g.EXPLOSIVE,icon:"bomb"},{flag:g.OTHER,icon:"question"},{flag:g.DANGEROUS,icon:"exclamation-triangle"},{flag:g.EASY,icon:"chess-pawn"},{flag:g.MODERATE,icon:"chess-knight"},{flag:g.HARD,icon:"chess-queen"},{flag:g.ORGAN,icon:"brain"},{flag:g.DRINK,icon:"cocktail"},{flag:g.FOOD,icon:"drumstick-bite"},{flag:g.SLIME,icon:"microscope"},{flag:g.DRUG,icon:"pills"},{flag:g.UNIQUE,icon:"puzzle-piece"},{flag:g.CHEMICAL,icon:"flask"},{flag:g.PLANT,icon:"seedling"},{flag:g.COMPETITIVE,icon:"recycle"}],b=(0,r.useLocalState)(t,"page",1);b[0],b[1];return(0,o.createComponentVNode)(2,c.Window,{width:720,height:850,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Recipe lookup",minWidth:"353px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Beaker Sync",icon:"atom",color:h?"green":"red",tooltip:"When enabled the displayed reaction will automatically display ongoing reactions in the associated beaker.",onClick:function(){return m("beaker_sync")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Search",icon:"search",color:"purple",tooltip:"Search for a recipe by product name",onClick:function(){return m("search_recipe")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",disabled:!C,onClick:function(){return m("recipe_click",{id:null})}})],4),children:(0,o.createComponentVNode)(2,l.RecipeLookup,{recipe:C,bookmarkedReactions:d})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Reagent lookup",minWidth:"300px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Search",icon:"search",tooltip:"Search for a reagent by name",tooltipPosition:"left",onClick:function(){return m("search_reagents")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",disabled:!f,onClick:function(){return m("reagent_click",{id:null})}})],4),children:(0,o.createComponentVNode)(2,i.ReagentLookup,{reagent:f})})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Tags",children:(0,o.createComponentVNode)(2,s,{bitflags:g})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:2,basis:0,children:(0,o.createComponentVNode)(2,u,{flagIcons:V})})]})})})};var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useLocalState)(t,"page",1),d=(l[0],l[1]),s=e.bitflags,u=i.selectedBitflags;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Affects",children:[(0,o.createComponentVNode)(2,a.Button,{color:u&s.BRUTE?"green":"red",icon:"gavel",onClick:function(){c("toggle_tag_brute"),d(1)},children:"Brute"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.BURN?"green":"red",icon:"burn",onClick:function(){c("toggle_tag_burn"),d(1)},children:"Burn"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.TOXIN?"green":"red",icon:"biohazard",onClick:function(){c("toggle_tag_toxin"),d(1)},children:"Toxin"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.OXY?"green":"red",icon:"wind",onClick:function(){c("toggle_tag_oxy"),d(1)},children:"Suffocation"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.CLONE?"green":"red",icon:"male",onClick:function(){c("toggle_tag_clone"),d(1)},children:"Clone"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.ORGAN?"green":"red",icon:"brain",onClick:function(){c("toggle_tag_organ"),d(1)},children:"Organ"}),(0,o.createComponentVNode)(2,a.Button,{icon:"flask",color:u&s.CHEMICAL?"green":"red",onClick:function(){c("toggle_tag_chemical"),d(1)},children:"Chemical"}),(0,o.createComponentVNode)(2,a.Button,{icon:"seedling",color:u&s.PLANT?"green":"red",onClick:function(){c("toggle_tag_plant"),d(1)},children:"Plants"}),(0,o.createComponentVNode)(2,a.Button,{icon:"question",color:u&s.OTHER?"green":"red",onClick:function(){c("toggle_tag_other"),d(1)},children:"Other"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Type",children:[(0,o.createComponentVNode)(2,a.Button,{color:u&s.DRINK?"green":"red",icon:"cocktail",onClick:function(){c("toggle_tag_drink"),d(1)},children:"Drink"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.FOOD?"green":"red",icon:"drumstick-bite",onClick:function(){c("toggle_tag_food"),d(1)},children:"Food"}),(0,o.createComponentVNode)(2,a.Button,{color:u&s.HEALING?"green":"red",icon:"medkit",onClick:function(){c("toggle_tag_healing"),d(1)},children:"Healing"}),(0,o.createComponentVNode)(2,a.Button,{icon:"skull-crossbones",color:u&s.DAMAGING?"green":"red",onClick:function(){c("toggle_tag_damaging"),d(1)},children:"Toxic"}),(0,o.createComponentVNode)(2,a.Button,{icon:"pills",color:u&s.DRUG?"green":"red",onClick:function(){c("toggle_tag_drug"),d(1)},children:"Drugs"}),(0,o.createComponentVNode)(2,a.Button,{icon:"microscope",color:u&s.SLIME?"green":"red",onClick:function(){c("toggle_tag_slime"),d(1)},children:"Slime"}),(0,o.createComponentVNode)(2,a.Button,{icon:"bomb",color:u&s.EXPLOSIVE?"green":"red",onClick:function(){c("toggle_tag_explosive"),d(1)},children:"Explosive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"puzzle-piece",color:u&s.UNIQUE?"green":"red",onClick:function(){c("toggle_tag_unique"),d(1)},children:"Unique"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Difficulty",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"chess-pawn",color:u&s.EASY?"green":"red",onClick:function(){c("toggle_tag_easy"),d(1)},children:"Easy"}),(0,o.createComponentVNode)(2,a.Button,{icon:"chess-knight",color:u&s.MODERATE?"green":"red",onClick:function(){c("toggle_tag_moderate"),d(1)},children:"Moderate"}),(0,o.createComponentVNode)(2,a.Button,{icon:"chess-queen",color:u&s.HARD?"green":"red",onClick:function(){c("toggle_tag_hard"),d(1)},children:"Hard"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:u&s.DANGEROUS?"green":"red",onClick:function(){c("toggle_tag_dangerous"),d(1)},children:"Dangerous"}),(0,o.createComponentVNode)(2,a.Button,{icon:"recycle",color:u&s.COMPETITIVE?"green":"red",onClick:function(){c("toggle_tag_competitive"),d(1)},children:"Competitive"})]})]})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(0,r.useLocalState)(t,"page",1),s=l[0],u=l[1],m=e.flagIcons,p=i.selectedBitflags,h=i.currentReagents,C=void 0===h?[]:h,f=i.master_reaction_list,N=void 0===f?[]:f,g=i.linkedBeaker,V=(0,r.useLocalState)(t,"reagentFilter",!0),b=V[0],v=V[1],k=(0,r.useLocalState)(t,"bookmarkMode",!1),_=k[0],y=k[1],w=Array.from(d),x=50*(s-1),S=50*s,B=_?w:N.filter((function(e){return(!p||(t=p,n=e.bitflags,t&n&&(t|n)===n))&&function(e){return!b||null===C||e.reactants.filter((function(e){return C.includes(e.id)})).length===C.length}(e);var t,n})),I=Math.ceil(B.length/50);return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:_?"Bookmarked recipes":"Possible recipes",buttons:(0,o.createFragment)([(0,o.createTextVNode)("Beaker: "),g+" ",(0,o.createComponentVNode)(2,a.Button,{content:"Filter by reagents in beaker",icon:"search",disabled:_,color:b?"green":"red",onClick:function(){v(!b),u(1)}}),(0,o.createComponentVNode)(2,a.Button,{content:"Bookmarks",icon:"book",color:_?"green":"red",onClick:function(){y(!_),u(1)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:1===s,onClick:function(){return u(Math.max(s-1,1))}}),(0,o.createComponentVNode)(2,a.NumberInput,{width:"25px",step:1,stepPixelSize:3,value:s,minValue:1,maxValue:I,onDrag:function(e,t){return u(t)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:s===I,onClick:function(){return u(Math.min(s+1,I))}})],0),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:"Reaction"}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:"Required reagents"}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:"Tags"}),(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",width:"20px",children:_?"Del":"Save"})]}),B.slice(x,S).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,color:"label",children:(0,o.createComponentVNode)(2,a.Button,{mt:.5,icon:"flask",color:"purple",content:e.name,onClick:function(){return c("recipe_click",{id:e.id})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.reactants.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{mt:.1,icon:"vial",textColor:"white",color:(null==C?void 0:C.includes(e.id))&&"green",content:e.name,onClick:function(){return c("reagent_click",{id:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,a.Table.Cell,{width:"60px",children:m.filter((function(t){return e.bitflags&t.flag})).map((function(e){return(0,o.createComponentVNode)(2,a.Icon,{name:e.icon,mr:1},e.flag)}))}),(0,o.createComponentVNode)(2,a.Table.Cell,{width:"20px",children:!_&&(0,o.createComponentVNode)(2,a.Button,{icon:"book",color:"green",disabled:d.has(e),onClick:function(){var t;t=e,d.add(t),c("update_ui")}})||(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"red",onClick:function(){return t=e,void d["delete"](t);var t}})})]},e.id)}))]})})}},79051:function(e,t,n){"use strict";t.__esModule=!0,t.ReligiousTool=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={good:"yellow",neutral:"white",evil:"red"};t.ReligiousTool=function(e,t){var n=(0,r.useBackend)(t),u=(n.act,n.data),m=(0,r.useSharedState)(t,"tab",1),p=m[0],h=m[1],C=u.sects,f=u.alignment,N=u.toolname;return(0,o.createComponentVNode)(2,c.Window,{title:N,width:560,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{textAlign:"center",fluid:!0,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:["Sect ",(0,o.createComponentVNode)(2,a.Icon,{name:"place-of-worship",color:i[f]})]}),!C&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===p,onClick:function(){return h(2)},children:["Rites ",(0,o.createComponentVNode)(2,a.Icon,{name:"pray",color:i[f]})]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:[1===p&&(!!C&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,l)),2===p&&(0,o.createComponentVNode)(2,s)]})]})})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),l=c.name,d=c.quote,s=c.desc,u=c.icon,m=c.favordesc,p=c.favor,h=c.wanted,C=c.deity,f=c.alignment;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,fontSize:"15px",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mt:2,fontSize:"32px",children:[(0,o.createComponentVNode)(2,a.Icon,{name:u,color:i[f]})," "+l+" ",(0,o.createComponentVNode)(2,a.Icon,{name:u,color:i[f]})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mb:2,color:"grey",children:'"'+d+'"'}),(0,o.createComponentVNode)(2,a.Stack.Item,{color:0===p?"white":"green",children:m}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:2,textAlign:"left",children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{mx:3,mt:-1,title:"Wanted Sacrifices",children:!h&&C+" doesn't want any sacrifices."||C+" wishes for "+h+"."})})]})})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.sects;return(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Sect Select",scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:l.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Collapsible,{title:(0,o.createComponentVNode)(2,a.Stack,{mt:-3.3,ml:3,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{name:e.icon,color:i[e.alignment]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Stack.Item,{italic:!0,children:'"'+e.quote+'"'})]}),color:"transparent",children:(0,o.createComponentVNode)(2,a.Stack.Item,{children:[e.desc,(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{mt:.25,textAlign:"center",icon:"plus",fluid:!0,onClick:function(){return c("sect_select",{path:e.path})},children:["Select ",e.name]})]},e)}),(0,o.createComponentVNode)(2,a.Stack.Divider,{mt:-.5,mb:.5})],4)}))})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.rites,s=l.deity,u=l.icon,m=l.alignment,p=l.favor;return(0,o.createFragment)([!d.length&&(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.Icon,{color:i[m],name:u,size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",color:i[m],children:[s," does not have any invocations."]})]})})}),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{fontColor:"white",iconColor:i[m],disabled:p<e.favor,color:"transparent",icon:"arrow-right",onClick:function(){return c("perform_rite",{path:e.path})},children:"Invoke"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:p<e.favor?"red":"grey",mb:.5,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"star",color:i[m]})," Costs ",e.favor," favor."]}),(0,o.createComponentVNode)(2,a.BlockQuote,{children:e.desc})]})},e)}))})],0)}},24798:function(e,t,n){"use strict";t.__esModule=!0,t.RemoteRobotControlContent=t.RemoteRobotControl=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381);t.RemoteRobotControl=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{title:"Remote Robot Control",width:500,height:500,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data.robots,d=void 0===l?[]:l;return d.length?d.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name+" ("+e.model+")",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"tools",content:"Interface",onClick:function(){return i("interface",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"phone-alt",content:"Call",onClick:function(){return i("callbot",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"Inactive"===(0,r.decodeHtmlEntities)(e.mode)?"bad":"Idle"===(0,r.decodeHtmlEntities)(e.mode)?"average":"good",children:(0,r.decodeHtmlEntities)(e.mode)})," ",e.hacked&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"(HACKED)"})||""]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.location})]})},e.ref)})):(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"No robots detected"})})};t.RemoteRobotControlContent=l},76463:function(e,t,n){"use strict";t.__esModule=!0,t.RequestConsole=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n=(0,a.useBackend)(t).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,c.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"envelope-open-text",onClick:function(){return n("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return n("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,c.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,c.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,c.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data.message_log;return(0,o.createComponentVNode)(2,c.Section,{title:"Messages",children:l.length&&l.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"print",onClick:function(){return i("print",{print:t+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},t)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No messages."})})},7:function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,c.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,c.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,c.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};t.RequestConsole=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,c.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},43850:function(e,t,n){"use strict";t.__esModule=!0,t.RequestKioskContent=t.RequestKiosk=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381);t.RequestKiosk=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{width:550,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.accountName,s=l.requests,u=void 0===s?[]:s,m=l.applicants,p=void 0===m?[]:m,h=l.bountyValue;l.bountyText;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Account",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Log out",onClick:function(){return i("clear")}}),children:d||"N/A"})})}),(0,o.createComponentVNode)(2,a.Flex,{mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:null==u?void 0:u.map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e.owner,width:"300px",children:(0,o.createComponentVNode)(2,a.Section,{width:"300px",children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,width:"310px",children:e.owner}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"100px",children:(0,c.formatMoney)(e.value)+" cr"}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"pen-fancy",content:"Apply",onClick:function(){return i("apply",{request:e.acc_number})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"trash-alt",content:"Delete",color:"red",onClick:function(){return i("deleteRequest",{request:e.acc_number})}})]})]}),(0,o.createComponentVNode)(2,a.Section,{align:"center",children:(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)('"'),e.description,(0,o.createTextVNode)('"')],0)}),(0,o.createComponentVNode)(2,a.Section,{title:"Request Applicants",children:null==p?void 0:p.map((function(t){return t.request_id===e.acc_number&&(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,p:.5,backgroundColor:"rgba(0, 0, 69, 0.5)",width:"510px",style:{border:"2px solid rgba(13, 13, 213, 0.7)"},children:t.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{align:"end",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"cash-register",onClick:function(){return i("payApplicant",{applicant:t.requestee_id,request:e.acc_number})}})})]})}))})]},e.name)},e.name)}))}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Collapsible,{title:"New Bounty",width:"220px",color:"green",children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.TextArea,{fluid:!0,height:"250px",width:"200px",backgroundColor:"black",textColor:"white",onChange:function(e,t){return i("bountyText",{bountytext:t})}}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"cr",minValue:1,maxValue:1e3,value:h,width:"80px",onChange:function(e,t){return i("bountyVal",{bountyval:t})}})}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Submit bounty",onClick:function(){return i("createBounty")}})]})})})]})],4)};t.RequestKioskContent=l},45198:function(e,t,n){"use strict";t.__esModule=!0,t.RequestManager=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(16513),l=n(2381);t.RequestManager=function(e,t){var n=(0,a.useBackend)(t),i=(n.act,n.data.requests),p=(0,a.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(d).map((function(e){var t=e[0];e[1];return[t,!0]})))),h=p[0],C=(p[1],(0,a.useLocalState)(t,"searchText")),f=C[0],N=C[1],g=i.filter((function(e){return h[e.req_type]}));if(f){var V=f.toLowerCase();g=g.filter((function(e){return(0,r.decodeHtmlEntities)(e.message).toLowerCase().includes(V)||e.owner_name.toLowerCase().includes(V)}))}return(0,o.createComponentVNode)(2,l.Window,{title:"Request Manager",width:575,height:600,theme:"admin",children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Requests",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{value:f,onInput:function(e,t){return N(t)},placeholder:"Search...",mr:1}),(0,o.createComponentVNode)(2,m)],4),children:g.map((function(e){return(0,o.createVNode)(1,"div","RequestManager__row",[(0,o.createVNode)(1,"div","RequestManager__rowContents",[(0,o.createVNode)(1,"h2","RequestManager__header",[(0,o.createVNode)(1,"span","RequestManager__headerText",[e.owner_name,null===e.owner&&" [DC]"],0),(0,o.createVNode)(1,"span","RequestManager__timestamp",e.timestamp_str,0)],4),(0,o.createVNode)(1,"div","RequestManager__message",[(0,o.createComponentVNode)(2,s,{requestType:e.req_type}),(0,r.decodeHtmlEntities)(e.message)],0)],4),null!==e.owner&&(0,o.createComponentVNode)(2,u,{request:e})],0,null,e.id)}))})})})};var d={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_nuke:"NUKE CODE"},s=function(e){var t=e.requestType;return(0,o.createVNode)(1,"b","RequestManager__"+t,[d[t],(0,o.createTextVNode)(":")],0)},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n._,e.request);return(0,o.createVNode)(1,"div","RequestManager__controlsContainer",[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("pp",{id:i.id})},children:"PP"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("vv",{id:i.id})},children:"VV"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("sm",{id:i.id})},children:"SM"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("flw",{id:i.id})},children:"FLW"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("tp",{id:i.id})},children:"TP"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("logs",{id:i.id})},children:"LOGS"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("smite",{id:i.id})},children:"SMITE"}),"request_prayer"!==i.req_type&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("rply",{id:i.id})},children:"RPLY"}),"request_nuke"===i.req_type&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("setcode",{id:i.id})},children:"SETCODE"})],0)},m=function(e,t){var n=(0,a.useLocalState)(t,"filterVisible",!1),r=n[0],l=n[1],u=(0,a.useLocalState)(t,"filteredTypes",Object.fromEntries(Object.entries(d).map((function(e){var t=e[0];e[1];return[t,!0]})))),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,i.Popper,{options:{placement:"bottom-start"},popperContent:(0,o.createVNode)(1,"div","RequestManager__filterPanel",(0,o.createComponentVNode)(2,c.Table,{width:"0",children:Object.keys(d).map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,s,{requestType:e})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:m[e],onClick:function(){m[e]=!m[e],p(m)},my:.25})})]},e)}))}),2,{style:{display:r?"block":"none"}}),children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",onClick:function(){return l(!r)},children:"Type Filter"})})}},37744:function(e,t,n){"use strict";t.__esModule=!0,t.ResearchConsole=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n=(0,a.useBackend)(t).data,o=e.title,r=n[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,t){var n=(0,a.useBackend)(t).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return n(r,{reset:!0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"chevron-left",onClick:function(){return n(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"chevron-right",onClick:function(){return n(r,{reverse:1})}})],4)},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,a.useLocalState)(t,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,c.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,c.Box,{mt:2,children:[(0,o.createComponentVNode)(2,c.Box,{children:l.name}),(0,o.createComponentVNode)(2,c.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,c.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,a.useLocalState)(t,"saveDialogData",!1),p=m[0],h=m[1];return p?(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return h(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),(0,o.createComponentVNode)(2,c.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){h(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,c.Box,{children:u.stored&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return h(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,c.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,c.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,c.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error"})},p=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,c.Section,{title:d,children:["No ",d," found."]});var p=s,h=p.total_materials,C=p.max_materials,f=p.total_volume,N=p.max_volume,g=p.busy,V=p.mats,b=p.reagents,v=p.queue,k=(0,a.useLocalState)(t,"protoTab",0),_=k[0],y=k[1],w="transparent",x=!1,S="layer-group";g?(S="hammer",w="average",x=!0):v&&v.length&&(S="sync",w="green",x=!0);var B="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",L="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:g&&(0,o.createComponentVNode)(2,c.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," cm\xb3 / ",C," cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:f,maxValue:N,children:[f,"u / ",N,"u"]})})]}),(0,o.createComponentVNode)(2,c.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:0===_,onClick:function(){return y(0)},children:"Build"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:S,iconSpin:x,color:w,selected:1===_,onClick:function(){return y(1)},children:"Queue"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"cookie-bite",selected:2===_,onClick:function(){return y(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"flask",selected:3===_,onClick:function(){return y(3)},children:"Chem Storage"})]}),0===_&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===_&&(0,o.createComponentVNode)(2,c.LabeledList,{children:v.length&&v.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:"bad",children:g?(0,o.createComponentVNode)(2,c.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,c.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"trash",onClick:function(){var t;return i(B,((t={})[B]=e.index,t))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){var t;return i(B,((t={})[B]=e.index,t))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,c.Box,{m:1,children:"Queue Empty."})})||2===_&&(0,o.createComponentVNode)(2,c.LabeledList,{children:V.map((function(e){var n=(0,a.useLocalState)(t,"ejectAmt"+e.name,0),l=n[0],d=n[1];return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,t){return d(t)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var t;d(0),i(I,((t={})[I]=e.name,t.amount=l,t))},children:"Num"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var t;return i(I,((t={})[I]=e.name,t.amount=50,t))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===_&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:b.length&&b.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",onClick:function(){return i(L,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,c.Box,{children:"Error"})]})},h=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,c.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,c.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,c.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,a.useLocalState)(t,"settingsTab",0),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"cogs",onClick:function(){return h(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"link",onClick:function(){return h(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,c.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,c.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.tech;return(0,o.createComponentVNode)(2,c.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,c.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,c.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,s=i.designs;return(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,c.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,c.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];t.ResearchConsole=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,d=(l.busy_msg,l.locked),s=(0,a.useLocalState)(t,"rdmenu",0),u=s[0],m=s[1],p=!1;return d&&(p=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:h.map((function(e,t){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:e.icon,selected:u===t,disabled:p,onClick:function(){return m(t)},children:e.name},t)}))}),d&&(0,o.createComponentVNode)(2,c.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||h[u].template]})})}},90404:function(e,t,n){"use strict";t.__esModule=!0,t.ResearchServerController=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(1397);t.ResearchServerController=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data),i=(c.badmin,c.servers),l=(c.consoles,(0,r.useSharedState)(t,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,a.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(t,"tab",0),p=d[0],h=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return h(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:"Data Management"}),c&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===p,onClick:function(){return h(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&c&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.server,d=i.consoles,s=function(e,t){return-1!==e.id_with_upload.indexOf(t.id)},u=function(e,t){return-1!==e.id_with_download.indexOf(t.id)};return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,a.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return c("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,a.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return c("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=(n.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return c("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return c("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,a.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return c("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},81708:function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingConsole=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(84645),l=n(2381),d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,h=i.oocnotes,C=i.can_grow_active;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:h})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{disabled:!C,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};t.ResleevingConsole=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),C=(r.menu,r.coredumped),f=r.emergency,N=(0,o.createFragment)([(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,v),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,c.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return C&&(N=(0,o.createComponentVNode)(2,p)),f&&(N=(0,o.createComponentVNode)(2,h)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:N})]})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.menu;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,t){var n,r=(0,a.useBackend)(t).data,c=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===c?n=(0,o.createComponentVNode)(2,C):2===c?n=(0,o.createComponentVNode)(2,V,{records:i,actToDo:"view_b_rec"}):3===c&&(n=(0,o.createComponentVNode)(2,V,{records:l,actToDo:"view_m_rec"})),n},p=function(e,t){return(0,o.createComponentVNode)(2,c.Dimmer,{children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},h=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,c.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,o.createComponentVNode)(2,c.Box,{mt:4,children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return n("ejectdisk")}})}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return n("coredump")}})})]})},C=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,c.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,N)]})},f=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,c.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,c.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):null},N=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,c.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,c.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},t)})):null},g=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,c.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,c.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),n]},t)})):null},V=function(e,t){var n=(0,a.useBackend)(t).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:r.map((function(e,t){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return n(i,{ref:e.recref})}},t)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},b=function(e,t){var n,r=(0,a.useBackend)(t),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})))}},v=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"None connected!"})})]})})}},11713:function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingPod=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(26949);t.ResleevingPod=function(e,t){var n=(0,a.useBackend)(t).data,i=n.occupied,l=n.name,d=n.health,s=n.maxHealth,u=n.stat,m=n.mindStatus,p=n.mindName,h=n.resleeveSick,C=n.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),h?(0,o.createComponentVNode)(2,c.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",C?(0,o.createFragment)([(0,o.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.")],4):""]}):""],0):(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},99514:function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),d=(n.act,n.data),s=(0,r.useSharedState)(t,"tab",1),u=s[0],m=s[1],p=d.can_hack,h=d.can_detonate,C=d.cyborgs,f=void 0===C?[]:C,N=d.drones,g=void 0===N?[]:N;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:460,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:1===u,onClick:function(){return m(1)},children:["Cyborgs (",f.length,")"]}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"list",lineHeight:"23px",selected:2===u,onClick:function(){return m(2)},children:["Drones (",g.length,")"]})]}),1===u&&(0,o.createComponentVNode)(2,i,{cyborgs:f,can_hack:p,can_detonate:h}),2===u&&(0,o.createComponentVNode)(2,l,{drones:g})]})})};var i=function(e,t){var n=e.cyborgs,c=e.can_hack,i=e.can_detonate,l=(0,r.useBackend)(t),d=l.act;l.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([!!c&&!e.emagged&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return d("magbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",onClick:function(){return d("stopbot",{ref:e.ref})}}),!!i&&(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"bomb",content:"Detonate",color:"bad",onClick:function(){return d("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,a.Box,{color:e.charge<=30?"bad":e.charge<=70?"average":"good",children:"number"==typeof e.charge?e.charge+"%":"Not Found"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Model",children:e.module}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,a.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cyborg units detected within access parameters"})},l=function(e,t){var n=e.drones,c=(0,r.useBackend)(t).act;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"bomb",content:"Detonate",color:"bad",onClick:function(){return c("killdrone",{ref:e.ref})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.status?"bad":"good",children:e.status?"Not Responding":"Nominal"})})})},e.ref)})):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No drone units detected within access parameters"})}},48436:function(e,t,n){"use strict";t.__esModule=!0,t.RogueZones=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.RogueZones=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,h=l.updated,C=l.debug,f=l.shuttle_location,N=l.shuttle_at_station,g=l.scan_ready,V=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,c.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle Location",buttons:V&&(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:f}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!g,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,h&&!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,a.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,a.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,a.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,a.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,a.Box,{children:["Debug: ",C]}),(0,o.createComponentVNode)(2,a.Box,{children:["Shuttle Location: ",f]}),(0,o.createComponentVNode)(2,a.Box,{children:["Shuttle at station: ",N]}),(0,o.createComponentVNode)(2,a.Box,{children:["Scan Ready: ",g]})]})||null]})})]})})}},83183:function(e,t,n){"use strict";t.__esModule=!0,t.Roulette=t.RouletteBetTable=t.RouletteBoard=t.RouletteNumberCell=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381),l=function(e){var t=e>=1&&e<=10||e>=19&&e<=28;return e%2==1?t?"red":"black":t?"black":"red"},d=function(e,t){var n=e.buttonClass,i=void 0===n?null:n,l=e.cellClass,d=void 0===l?null:l,s=e.color,u=e.colspan,m=void 0===u?"1":u,p=e.rowspan,h=void 0===p?"1":p,C=e.text,f=e.value,N=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Roulette__board-cell","Roulette__board-cell-number",d]),colspan:m,rowspan:h,children:(0,o.createComponentVNode)(2,c.Button,{color:s,className:(0,r.classes)(["Roulette__board-button",i]),onClick:function(){return N("ChangeBetType",{type:f})},children:(0,o.createVNode)(1,"span","Roulette__board-button-text",C,0)})})};t.RouletteNumberCell=d;var s=function(){return(0,o.createComponentVNode)(2,c.Box,{className:"Roulette__container",children:(0,o.createComponentVNode)(2,c.Table,{collapsing:!0,ml:"auto",mr:"auto",children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,d,{buttonClass:"Roulette__board-button--rowspan-3",color:"transparent",rowspan:"3",text:"0",value:"0"}),[3,6,9,12,15,18,21,24,27,30,33,36].map((function(e){return(0,o.createComponentVNode)(2,d,{color:l(e),text:e.toString(),value:e.toString()},e)})),(0,o.createComponentVNode)(2,d,{color:"transparent",text:"2 to 1",value:"s3rd col"})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[[2,5,8,11,14,17,20,23,26,29,32,35].map((function(e){return(0,o.createComponentVNode)(2,d,{color:l(e),text:e.toString(),value:e.toString()},e)})),(0,o.createComponentVNode)(2,d,{color:"transparent",text:"2 to 1",value:"s2nd col"})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[[1,4,7,10,13,16,19,22,25,28,31,34].map((function(e){return(0,o.createComponentVNode)(2,d,{color:l(e),text:e.toString(),value:e.toString()},e)})),(0,o.createComponentVNode)(2,d,{color:"transparent",text:"2 to 1",value:"s1st col"})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell),Object.entries({"s1-12":"1st 12","s13-24":"2nd 12","s25-36":"3rd 12"}).map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,d,{cellClass:"Roulette__board-cell-number--colspan-4",color:"transparent",colspan:"4",text:n,value:t},t)}))]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell),[{color:"transparent",text:"1-18",value:"s1-18"},{color:"transparent",text:"Even",value:"even"},{color:"black",text:"Black",value:"black"},{color:"red",text:"Red",value:"red"},{color:"transparent",text:"Odd",value:"odd"},{color:"transparent",text:"19-36",value:"s19-36"}].map((function(e){return(0,o.createComponentVNode)(2,d,{cellClass:"Roulette__board-cell-number--colspan-2",color:e.color,colspan:"2",text:e.text,value:e.value},e.value)}))]})]})})};t.RouletteBoard=s;var u=function(e,t){var n=(0,a.useBackend)(t),i=n.act,d=n.data,s=(0,a.useLocalState)(t,"customBet",500),u=s[0],m=s[1],p=d.BetType;return p.startsWith("s")&&(p=p.substring(1,p.length)),(0,o.createComponentVNode)(2,c.Table,{className:"Roulette__lowertable",collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Roulette","Roulette__lowertable--cell","Roulette__lowertable--header"]),children:"Last Spin:"}),(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Roulette","Roulette__lowertable--cell","Roulette__lowertable--header"]),children:"Current Bet:"})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Roulette","Roulette__lowertable--cell","Roulette__lowertable--spinresult","Roulette__lowertable--spinresult-"+l(d.LastSpin)]),children:d.LastSpin}),(0,o.createComponentVNode)(2,c.Table.Cell,{className:(0,r.classes)(["Roulette","Roulette__lowertable--cell","Roulette__lowertable--betscell"]),children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,fontSize:"20px",textAlign:"center",children:[d.BetAmount," cr on ",p]}),(0,o.createComponentVNode)(2,c.Box,{ml:1,mr:1,children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Bet 10 cr",onClick:function(){return i("ChangeBetAmount",{amount:10})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Bet 50 cr",onClick:function(){return i("ChangeBetAmount",{amount:50})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Bet 100 cr",onClick:function(){return i("ChangeBetAmount",{amount:100})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Bet 500 cr",onClick:function(){return i("ChangeBetAmount",{amount:500})}}),(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Bet custom amount...",onClick:function(){return i("ChangeBetAmount",{amount:u})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:.1,children:(0,o.createComponentVNode)(2,c.NumberInput,{value:u,minValue:0,maxValue:1e3,step:10,stepPixelSize:4,width:"40px",onChange:function(e,t){return m(t)}})})]})]})]})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colSpan:"2",children:(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,fontSize:"14px",textAlign:"center",children:"Swipe an ID card with a connected account to spin!"})})}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{className:"Roulette__lowertable--cell",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:"House Balance:"}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:d.HouseBalance?d.HouseBalance+" cr":"None"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{className:"Roulette__lowertable--cell",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:d.IsAnchored?"Bolted":"Unbolted",m:1,color:"transparent",textAlign:"center",onClick:function(){return i("anchor")}})})]})]})};t.RouletteBetTable=u;t.Roulette=function(e,t){return(0,o.createComponentVNode)(2,i.Window,{width:570,height:520,theme:"cardtable",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u)]})})}},7838:function(e,t,n){"use strict";t.__esModule=!0,t.RustCoreMonitorContent=t.RustCoreMonitor=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.RustCoreMonitor=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.cores;return(0,o.createComponentVNode)(2,c.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return a("set_tag")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return a("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return a("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(t,n){return a("set_fieldstr",{core:e.ref,fieldstr:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell)]},e.name)}))]})})};t.RustCoreMonitorContent=i},98145:function(e,t,n){"use strict";t.__esModule=!0,t.RustFuelContent=t.RustFuelControl=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.RustFuelControl=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.fuels;return(0,o.createComponentVNode)(2,c.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return a("set_tag")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return a("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};t.RustFuelContent=i},11075:function(e,t,n){"use strict";t.__esModule=!0,t.SDQLSpellAdminPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SDQLSpellAdminPanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"SDQL Spell Admin Panel",width:1200,height:500,theme:"admin",resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Spell Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Spell Owner"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Spell Creator"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),l.spells.map((function(e){var t=function(t){return function(){i(t,{spell:e.ref})}},n=function(t){return function(){i(t,{owner:e.ownerRef})}};return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.owner}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.creator}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:t("edit_spell"),children:"Edit"}),(0,o.createComponentVNode)(2,a.Button,{onClick:n("follow_owner"),children:"Follow Owner"}),(0,o.createComponentVNode)(2,a.Button,{onClick:t("vv_spell"),children:"VV"}),(0,o.createComponentVNode)(2,a.Button,{onClick:n("open_player_panel"),children:"Player Panel"})]})]},e.ref)}))]})})})}},57736:function(e,t,n){"use strict";t.__esModule=!0,t.SDQLSpellMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e){var t=[{name:"name",type:"string",options:null,default_value:""},{name:"desc",type:"string",options:null,default_value:""},{name:"query",type:"string",options:null,default_value:""},{name:"suppress_message_admins",type:"bool",options:null,default_value:!1},{name:"action_icon",type:"string",options:null,default_value:""},{name:"action_icon_state",type:"string",options:null,default_value:""},{name:"action_background_icon_state",type:"string",options:null,default_value:""},{name:"sound",type:"string",options:null,default_value:""},{name:"charge_type",type:"string_enum",options:["recharge","charges","holder_var"],default_value:"recharge"},{name:"charge_max",type:"int",options:null,default_value:100},{name:"still_recharging_msg",type:"string",options:null,default_value:""},{name:"holder_var_type",type:"string",options:null,default_value:""},{name:"holder_var_amount",type:"int",options:null,default_value:""},{name:"clothes_req",type:"bool",options:null,default_value:!1},{name:"human_req",type:"bool",options:null,default_value:!1},{name:"nonabstract_req",type:"bool",options:null,default_value:!1},{name:"stat_allowed",type:"bool",options:null,default_value:!1},{name:"phase_allowed",type:"bool",options:null,default_value:!1},{name:"antimagic_allowed",type:"bool",options:null,default_value:!1},{name:"invocation_type",type:"string_enum",options:["none","whisper","emote","shout"],default_value:"none"},{name:"invocation",type:"string",options:null,default_value:""},{name:"invocation_emote_self",type:"string",options:null,default_value:""},{name:"selection_type",type:"string_enum",options:["view","range"],default_value:"view"},{name:"range",type:"int",options:null,default_value:7},{name:"message",type:"string",options:null,default_value:""},{name:"player_lock",type:"bool",options:null,default_value:!0},{name:"sparks_spread",type:"bool",options:null,default_value:!1},{name:"sparks_amt",type:"int",options:null,default_value:0},{name:"smoke_spread",type:"int_enum",options:["none","harmless","harmful","sleeping"],default_value:"none"},{name:"smoke_amt",type:"int",options:null,default_value:0},{name:"centcom_cancast",type:"bool",options:null,default_value:!1}];switch(e){case"targeted":t.push({name:"overlay",type:"bool",options:null,default_value:!1},{name:"overlay_icon",type:"string",options:null,default_value:""},{name:"overlay_icon_state",type:"string",options:null,default_value:""},{name:"overlay_lifespan",type:"int",options:null,default_value:0},{name:"max_targets",type:"int",options:null,default_value:!1},{name:"target_ignore_prev",type:"bool",options:null,default_value:!0},{name:"include_user",type:"bool",options:null,default_value:!1},{name:"random_target",type:"bool",options:null,default_value:!1},{name:"random_target_priority",type:"int_enum",options:["closest","random"],default_value:"closest"});break;case"aoe_turf":(t=t.filter((function(e){return"selection_type"!==e.name}))).push({name:"inner_radius",type:"int",options:null,default_value:-1},{name:"overlay",type:"bool",options:null,default_value:!1},{name:"overlay_icon",type:"string",options:null,default_value:""},{name:"overlay_icon_state",type:"string",options:null,default_value:""},{name:"overlay_lifespan",type:"int",options:null,default_value:0});break;case"self":t=t.filter((function(e){return"range"!==e.name&&"selection_type"!==e.name}));break;case"aimed":t.push({name:"base_icon_state",type:"string",options:null,default_value:""},{name:"ranged_mousepointer",type:"string",options:null,default_value:""},{name:"deactive_msg",type:"string",options:null,default_value:""},{name:"active_msg",type:"string",options:null,default_value:""},{name:"projectile_type",type:"path",options:null,default_value:"/obj/projectile"},{name:"projectile_amount",type:"int",options:null,default_value:1},{name:"projectiles_per_fire",type:"int",options:null,default_value:1},{name:"projectile_var_overrides",type:"list",options:null,default_value:{}});break;case"cone":case"cone/staggered":(t=t.filter((function(e){return"range"!==e.name&&"selection_type"!==e.name}))).push({name:"cone_level",type:"int",options:null,default_value:3},{name:"respect_density",type:"bool",options:null,default_value:!1});break;case"pointed":t.push({name:"overlay",type:"bool",options:null,default_value:!1},{name:"overlay_icon",type:"string",options:null,default_value:""},{name:"overlay_icon_state",type:"string",options:null,default_value:""},{name:"overlay_lifespan",type:"int",options:null,default_value:0},{name:"ranged_mousepointer",type:"string",options:null,default_value:""},{name:"deactive_msg",type:"string",options:null,default_value:""},{name:"active_msg",type:"string",options:null,default_value:""},{name:"self_castable",type:"bool",options:null,default_value:!1},{name:"aim_assist",type:"bool",options:null,default_value:!0});break;case"targeted/touch":(t=t.filter((function(e){return"range"!==e.name&&"invocation_type"!==e.name&&"selection_type"!==e.name}))).push({name:"drawmessage",type:"string",options:null,default_value:""},{name:"dropmessage",type:"string",options:null,default_value:""},{name:"hand_path",type:"path",options:null,default_value:"/obj/item/melee/touch_attack"},{name:"hand_var_overrides",type:"list",options:null,default_value:{}});break;default:return[]}return t.push({name:"scratchpad",type:"list",options:null,default_value:[]}),t};t.SDQLSpellMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,s=l.type,u=l.types,m=l.fixed_type,C=l.alert,f=l.parse_errors;return(0,o.createComponentVNode)(2,c.Window,{width:800,height:600,theme:"admin",children:[(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",options:u,disabled:m,displayText:s||"Select a Spell Type",onSelected:function(e){return i("type",{path:e})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!s,content:"Confirm",confirmContent:"Are you sure?",onClick:function(){return i("confirm")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!s,tooltip:"Save the spell to a json file on your local system.",onClick:function(){return i("save")},children:"Save Spell"}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"Load a spell from a json file on your local system.",onClick:function(){return i("load")},children:"Load Spell"})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0}),(0,o.createComponentVNode)(2,a.Stack.Item,{textColor:"bad",children:C})]})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{minWidth:"128px",children:(0,o.createComponentVNode)(2,p)})]})}),f&&(0,o.createComponentVNode)(2,h)]})};var l=function(e,t){var n,c=(0,r.useBackend)(t).data,i=e.entry,l=e.children,d=c.type,s=c.tooltips,u=null==(n=s[i.name])?void 0:n.replace("$type",s[i.name+"_"+d]);return u?(0,o.createComponentVNode)(2,a.Tooltip,{position:"bottom",content:u,children:l}):l},d=function(e,t){var n=(0,r.useBackend)(t).data,c=n.type,d=n.saved_vars,u=i(c);return(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,children:u.filter((function(e){return function(e,t){switch(e.name){case"charge_max":return"holder_var"!==t.charge_type;case"holder_var_type":case"holder_var_amount":return"holder_var"===t.charge_type;case"human_req":return!t.clothes_req;case"invocation":return"none"!==t.invocation_type;case"invocation_emote_self":return"emote"===t.invocation_type;case"overlay_icon":case"overlay_icon_state":case"overlay_lifespan":return!!t.overlay;case"sparks_amt":return!!t.sparks_spread;case"smoke_amt":return!!t.smoke_spread;case"random_target_priority":return!!t.random_target;default:return!0}}(e,d)})).map((function(e){return(0,o.createComponentVNode)(2,a.Stack,{mb:"6px",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,l,{entry:e,children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:"label",mr:"6px",children:[e.name,":"]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{shrink:!0,basis:"100%",children:(0,o.createComponentVNode)(2,s,{entry:e})})]},e.name)}))})},s=function(e,t){var n,c,i,l,d,s,m=(0,r.useBackend)(t),p=m.act,h=m.data.saved_vars,C=e.entry,f=C.name,N=C.type,g=C.options,V=C.default_value;switch(N){case"string":return(0,o.createComponentVNode)(2,a.Input,{width:"100%",fluid:!0,value:null!=(n=h[f])?n:V,onChange:function(e,t){return p("variable",{name:f,value:t})}});case"int":return(0,o.createComponentVNode)(2,a.NumberInput,{value:null!=(c=h[f])?c:V,onChange:function(e,t){return p("variable",{name:f,value:t})}});case"bool":return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:null!=(i=h[f])?i:V,onClick:function(){return p("bool_variable",{name:f})}});case"string_enum":return(0,o.createComponentVNode)(2,a.Dropdown,{options:g,displayText:null!=(l=h[f])?l:V,onSelected:function(e){return p("variable",{name:f,value:e})}});case"int_enum":return(0,o.createComponentVNode)(2,a.Dropdown,{options:g,displayText:null!=(d=g[h[f]])?d:V,onSelected:function(e){return p("variable",{name:f,value:g.indexOf(e)})}});case"path":return(0,o.createComponentVNode)(2,a.Button,{content:null!=(s=h[f])?s:V,onClick:function(){return p("path_variable",{name:f,root_path:V})}});case"list":return(0,o.createComponentVNode)(2,u,{list:f,default_value:V})}},u=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.list_vars,l=e.list,d=e.default_value;e.is_input;return(0,o.createComponentVNode)(2,a.Collapsible,{children:[Object.entries(i[l]||d).map((function(e){var t=e[0],n=e[1],r=n.type,i=n.value,d=n.flags;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,mb:"6px",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:0==(2&d)?(0,o.createComponentVNode)(2,a.Input,{value:t,onChange:function(e,n){return c("list_variable_rename",{list:l,name:t,new_name:n})}}):(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:"label",mr:"6px",children:[t,":"]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:0==(1&d)&&(0,o.createComponentVNode)(2,a.Dropdown,{options:["num","bool","string","path","ref","icon","list"],displayText:r,onSelected:function(e){return c("list_variable_change_type",{list:l,name:t,value:e})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{shrink:!0,basis:"100%",children:[(0,o.createComponentVNode)(2,m,{list:l,name:t,type:r,value:i}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus-circle",color:"red",title:"remove",onClick:function(){return c("list_variable_remove",{list:l,name:t})}})]})]},t)})),(0,o.createComponentVNode)(2,a.Button,{icon:"plus-circle",color:"blue",title:"add variable",onClick:function(){return c("list_variable_add",{list:l})}})]})},m=function(e,t){var n=(0,r.useBackend)(t).act,c=e.list,i=e.name,l=e.type,d=e.value;switch(l){case"num":return(0,o.createComponentVNode)(2,a.NumberInput,{value:d,onChange:function(e,t){return n("list_variable_change_value",{list:c,name:i,value:t})}});case"bool":return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:1===d,onClick:function(){return n("list_variable_change_bool",{list:c,name:i})}});case"string":case"path":case"icon":return(0,o.createComponentVNode)(2,a.Input,{width:"75%",fluid:!0,value:d,onChange:function(e,t){return n("list_variable_change_value",{list:c,name:i,value:t})}});case"list":return(0,o.createComponentVNode)(2,u,{list:c+"/"+i});case"ref":return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:"label",mr:"6px",children:d}),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",color:"blue",title:"set to marked datum",onClick:function(){return n("list_variable_set_ref",{list:c,name:i})}})],4);default:return(0,o.createComponentVNode)(2,a.Box,{bold:!0,textColor:"bad",children:"You shouldn't be seeing this!"})}},p=function(e,t){var n=(0,r.useBackend)(t).data,c=n.saved_vars,l=n.type,d=n.action_icon,s=n.hand_icon,u=n.projectile_icon,m=n.overlay_icon,p=n.mouse_icon,h=i(l);return(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[l&&(0,o.createComponentVNode)(2,a.Section,{title:"Action Button Icon",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"64px",width:"auto",m:0,src:"data:image/jpeg;base64,"+d,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),"targeted/touch"===l&&(0,o.createComponentVNode)(2,a.Section,{title:"Touch Attack Icon",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"64px",width:"auto",m:0,src:"data:image/jpeg;base64,"+s,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),"aimed"===l&&(0,o.createComponentVNode)(2,a.Section,{title:"Projectile Icon",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"64px",width:"auto",m:0,src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),l&&h.some((function(e){return"ranged_mousepointer"===e.name}))&&c.ranged_mousepointer&&(0,o.createComponentVNode)(2,a.Section,{title:"Mouse Cursor",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"64px",width:"auto",m:0,src:"data:image/jpeg;base64,"+p,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),l&&"overlay"in c&&1===c.overlay&&(0,o.createComponentVNode)(2,a.Section,{title:"Overlay Icon",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",height:"64px",width:"auto",m:0,src:"data:image/jpeg;base64,"+m,style:{"-ms-interpolation-mode":"nearest-neighbor"}})})]})})},h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.parse_errors,d=i.parsed_type,s=i.parsed_vars,u=i.parsed_list_vars,m=l.length>1;return(0,o.createComponentVNode)(2,a.Modal,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:["Parse error",m?"s":""," occured while loading from file."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,maxWidth:"600px",maxHeight:"200px",children:l.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:e},"error_"+t),t<l.length-1&&(0,o.createVNode)(1,"hr")],0)}))})}),(d||s||u)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{children:"Some data could be correctly parsed. Click below to view."})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Collapsible,{title:"Parsed Data",children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,maxWidth:"600px",maxHeight:"200px",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"type",children:d}),Object.entries(s).map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t,children:n},t)}))]}),Object.entries(u).filter((function(e){var t=e[0];return!/\//.test(t)})).map((function(e){var t=e[0];return(0,o.createComponentVNode)(2,C,{list:t,name:t,recursive_props:{mx:"10px"}},t)})),(0,o.createComponentVNode)(2,a.Button.Confirm,{content:"Load Anyways",confirmContent:"Are you sure?",onClick:function(){return c("load_despite_error")}})]})})})],4),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("close_error")},children:"Ok"})})]})})},C=function f(e,t){var n=e.list,c=e.name,i=e.recursive_props,l=(0,r.useBackend)(t),d=(l.act,l.data.parsed_list_vars);return(0,o.createComponentVNode)(2,a.Collapsible,{title:c,children:(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Box,Object.assign({},i,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.entries(d[n]).sort((function(e,t){return("list"===e[1].type_1?1:0)-("list"===t[1].type_2?1:0)})).map((function(e){var t=e[0],r=e[1],c=r.type,l=r.value;return"list"===c?(0,o.createComponentVNode)(2,f,{list:n+"/"+t,name:t,recursive_props:i},t):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:t,children:l},t)}))})})))})}},1945:function(e,t,n){"use strict";t.__esModule=!0,t.Safe=void 0;var o=n(96323),r=n(39646),a=n(31246),c=n(26949),i=n(2381);t.Safe=function(e,t){var n=(0,a.useBackend)(t),u=(n.act,n.data),m=u.dial,p=u.open;return(0,o.createComponentVNode)(2,i.Window,{width:625,height:800,theme:"ntos",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Box,{className:"Safe__engraving",children:[(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{className:"Safe__engraving-hinge",top:"25%"}),(0,o.createComponentVNode)(2,c.Box,{className:"Safe__engraving-hinge",top:"75%"})]}),(0,o.createComponentVNode)(2,c.Icon,{className:"Safe__engraving-arrow",name:"long-arrow-alt-down",size:"5"}),(0,o.createVNode)(1,"br"),p?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,c.Box,{as:"img",className:"Safe__dial",src:(0,r.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*m+"deg)"}})]}),!p&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.dial,d=i.open,s=i.locked,u=i.broken,m=function(e,t){return(0,o.createComponentVNode)(2,c.Button,{disabled:d||t&&!s||u,icon:"arrow-"+(t?"right":"left"),content:(t?"Right":"Left")+" "+e,iconPosition:t?"right":"left",onClick:function(){return r(t?"turnleft":"turnright",{num:e})}})};return(0,o.createComponentVNode)(2,c.Box,{className:"Safe__dialer",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:s&&!u,icon:d?"lock":"lock-open",content:d?"Close":"Open",mb:"0.5rem",onClick:function(){return r("open")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{position:"absolute",children:[m(50),m(10),m(1)]}),(0,o.createComponentVNode)(2,c.Box,{className:"Safe__dialer-right",position:"absolute",right:"5px",children:[m(1,!0),m(10,!0),m(50,!0)]}),(0,o.createComponentVNode)(2,c.Box,{className:"Safe__dialer-number",children:l})]})},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.contents;return(0,o.createComponentVNode)(2,c.Box,{className:"Safe__contents",overflow:"auto",children:i.map((function(e,t){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{mb:"0.5rem",onClick:function(){return r("retrieve",{index:t+1})},children:[(0,o.createComponentVNode)(2,c.Box,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,o.createVNode)(1,"br")],4,e)}))})},s=function(e,t){return(0,o.createComponentVNode)(2,c.Section,{className:"Safe__help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,o.createComponentVNode)(2,c.Box,{children:["1. Turn the dial left to the first number.",(0,o.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,o.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,o.createVNode)(1,"br"),"4. Open the safe."]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},43934:function(e,t,n){"use strict";t.__esModule=!0,t.SatelliteControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SatelliteControl=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.satellites||[];return(0,o.createComponentVNode)(2,c.Window,{width:400,height:305,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[l.meteor_shield&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.meteor_shield_coverage/l.meteor_shield_coverage_max,content:100*l.meteor_shield_coverage/l.meteor_shield_coverage_max+"%",ranges:{good:[1,Infinity],average:[.3,1],bad:[-Infinity,.3]}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Satellite Controls",children:(0,o.createComponentVNode)(2,a.Box,{mr:-1,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.active,content:"#"+e.id+" "+e.mode,onClick:function(){return i("toggle",{id:e.id})}},e.id)}))})})]})})}},86945:function(e,t,n){"use strict";t.__esModule=!0,t.ScannerGate=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(19447),i=n(2381),l=["Positive","Harmless","Minor","Medium","Harmful","Dangerous","BIOHAZARD"],d=[{name:"Human",value:"human"},{name:"Lizardperson",value:"lizard"},{name:"Flyperson",value:"fly"},{name:"Felinid",value:"felinid"},{name:"Plasmaman",value:"plasma"},{name:"Mothperson",value:"moth"},{name:"Jellyperson",value:"jelly"},{name:"Podperson",value:"pod"},{name:"Golem",value:"golem"},{name:"Zombie",value:"zombie"}],s=[{name:"Starving",value:150},{name:"Obese",value:600}];t.ScannerGate=function(e,t){var n=(0,r.useBackend)(t),a=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:300,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.InterfaceLockNoticeBox,{onLockedStatusChange:function(){return a("toggle_lock")}}),!l.locked&&(0,o.createComponentVNode)(2,m)]})})};var u={Off:{title:"Scanner Mode: Off",component:function(){return p}},Wanted:{title:"Scanner Mode: Wanted",component:function(){return h}},Guns:{title:"Scanner Mode: Guns",component:function(){return C}},Mindshield:{title:"Scanner Mode: Mindshield",component:function(){return f}},Disease:{title:"Scanner Mode: Disease",component:function(){return N}},Species:{title:"Scanner Mode: Species",component:function(){return g}},Nutrition:{title:"Scanner Mode: Nutrition",component:function(){return V}}},m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.scan_mode,l=u[i]||u.off,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:"Off"!==i&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"back",onClick:function(){return c("set_mode",{new_mode:"Off"})}}),children:(0,o.createComponentVNode)(2,d)})},p=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:"Select a scanning mode below."}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Wanted",onClick:function(){return n("set_mode",{new_mode:"Wanted"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Guns",onClick:function(){return n("set_mode",{new_mode:"Guns"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Mindshield",onClick:function(){return n("set_mode",{new_mode:"Mindshield"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Disease",onClick:function(){return n("set_mode",{new_mode:"Disease"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Species",onClick:function(){return n("set_mode",{new_mode:"Species"})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Nutrition",onClick:function(){return n("set_mode",{new_mode:"Nutrition"})}})]})],4)},h=function(e,t){var n=(0,r.useBackend)(t).data.reverse;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned ",n?"does not have":"has"," ","any warrants for their arrest."]}),(0,o.createComponentVNode)(2,b)],4)},C=function(e,t){var n=(0,r.useBackend)(t).data.reverse;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned ",n?"does not have":"has"," ","any guns."]}),(0,o.createComponentVNode)(2,b)],4)},f=function(e,t){var n=(0,r.useBackend)(t).data.reverse;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned ",n?"does not have":"has"," ","a mindshield."]}),(0,o.createComponentVNode)(2,b)],4)},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,d=i.reverse,s=i.disease_threshold;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned ",d?"does not have":"has"," ","a disease equal or worse than ",s,"."]}),(0,o.createComponentVNode)(2,a.Box,{mb:2,children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e===s,content:e,onClick:function(){return c("set_disease_threshold",{new_threshold:e})}},e)}))}),(0,o.createComponentVNode)(2,b)],4)},g=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.reverse,s=i.target_species,u=d.find((function(e){return e.value===s}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned is ",l?"not":""," ","of the ",u.name," species.","zombie"===s&&" All zombie types will be detected, including dormant zombies."]}),(0,o.createComponentVNode)(2,a.Box,{mb:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.value===s,content:e.name,onClick:function(){return c("set_target_species",{new_species:e.value})}},e.value)}))}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.reverse,d=i.target_nutrition,u=s.find((function(e){return e.value===d}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:2,children:["Trigger if the person scanned ",l?"does not have":"has"," ","the ",u.name," nutrition level."]}),(0,o.createComponentVNode)(2,a.Box,{mb:2,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.value===d,content:e.name,onClick:function(){return c("set_target_nutrition",{new_nutrition:e.name})}},e.name)}))}),(0,o.createComponentVNode)(2,b)],4)},b=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.reverse;return(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanning Mode",children:(0,o.createComponentVNode)(2,a.Button,{content:i?"Inverted":"Default",icon:i?"random":"long-arrow-alt-right",onClick:function(){return c("toggle_reverse")},color:i?"bad":"good"})})})}},70525:function(e,t,n){"use strict";t.__esModule=!0,t.Secbot=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Secbot=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,h=l.check_arrest,C=l.arrest_type,f=l.declare_arrests,N=l.bot_patrolling,g=l.patrol;return(0,o.createComponentVNode)(2,c.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("ignorearr")},children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("switchmode")},children:C?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return i("declarearrests")},children:f?"Yes":"No"})}),!!N&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,a.Button,{icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("patrol")},children:g?"Yes":"No"})})]})})||null]})})}},70474:function(e,t,n){"use strict";t.__esModule=!0,t.Secrets=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=[{title:"Debugging",blurb:"Where useless shit goes to die",gauge:5,component:function(){return m}},{title:"Helpful",blurb:"Where fuckwits put logging",gauge:25,component:function(){return p}},{title:"Fun",blurb:'How I ran an """event"""',gauge:75,component:function(){return h}},{title:"Only Fun For You",blurb:"How I spent my last day adminning",gauge:95,component:function(){return C}}],d=2.79,s=12.9,u=6.09,m=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"average",lineHeight:u,icon:"question",fluid:!0,content:"Change all maintenance doors to engie/brig access only",onClick:function(){return n("maint_access_engiebrig")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"average",lineHeight:u,icon:"question",fluid:!0,content:"Change all maintenance doors to brig access only",onClick:function(){return n("maint_access_brig")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"average",lineHeight:u,icon:"question",fluid:!0,content:"Remove cap on security officers",onClick:function(){return n("infinite_sec")}})})]})},p=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",lineHeight:d,width:s,content:"Cure all diseases",onClick:function(){return n("clear_virus")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"biohazard",lineHeight:d,width:s,content:"Trigger Outbreak",onClick:function(){return n("virus")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"grin-beam-sweat",lineHeight:d,width:s,content:"Break all lights",onClick:function(){return n("blackout")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"magic",lineHeight:d,width:s,content:"Fix all lights",onClick:function(){return n("whiteout")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",lineHeight:d,width:s,content:"List Bombers",onClick:function(){return n("list_bombers")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",lineHeight:d,width:s,content:"List Signalers",onClick:function(){return n("list_signalers")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"robot",lineHeight:d,width:s,content:"List laws",onClick:function(){return n("list_lawchanges")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",lineHeight:d,width:s,content:"Show Manifest",onClick:function(){return n("manifest")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"dna",lineHeight:d,width:s,content:"Show DNA",onClick:function(){return n("dna")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"fingerprint",lineHeight:d,width:s,content:"Show Fingerprints",onClick:function(){return n("fingerprints")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"flag",lineHeight:d,width:s,content:"Toggle CTF",onClick:function(){return n("ctfbutton")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",lineHeight:d,width:s,content:"Reset Thunderdome",onClick:function(){return n("tdomereset")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"moon",lineHeight:d,width:s,content:"Set Nightshift",onClick:function(){return n("night_shift_set")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",lineHeight:d,width:s,content:"Rename Station",onClick:function(){return n("set_name")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eraser",lineHeight:d,width:s,content:"Default Station Name",onClick:function(){return n("reset_name")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})})]})})]})},h=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"robot",lineHeight:d,width:s,content:"Make N.E.R.D.",onClick:function(){return n("makeNerd")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:0,width:s,height:d,children:"Your admin button here, coder!"})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",lineHeight:d,width:s,content:"All areas powered",onClick:function(){return n("power")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"moon",lineHeight:d,width:s,content:"All areas unpowered",onClick:function(){return n("unpower")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plug",lineHeight:d,width:s,content:"recharge SMESs",onClick:function(){return n("quickpower")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-ninja",lineHeight:d,width:s,content:"Anonymous Names",onClick:function(){return n("anon_name")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"users",lineHeight:d,width:s,content:"Triple AI mode",onClick:function(){return n("tripleAI")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",lineHeight:d,width:s,content:"THERE CAN ONLY BE-",onClick:function(){return n("onlyone")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"grin-beam-sweat",lineHeight:d,width:s,content:"Summon Guns",onClick:function(){return n("guns")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"magic",lineHeight:d,width:s,content:"Summon Magic",onClick:function(){return n("magic")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"meteor",lineHeight:d,width:s,content:"Summon Events",onClick:function(){return n("events")}})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"hammer",lineHeight:d,width:s,content:"Egalitarian Station",onClick:function(){return n("eagles")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"dollar-sign",lineHeight:d,width:s,content:"Ancap Station",onClick:function(){return n("ancap")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullseye",lineHeight:d,width:s,content:"Custom Portal Storm",onClick:function(){return n("customportal")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",lineHeight:d,width:s,content:"Change Bomb Cap",onClick:function(){return n("changebombcap")}})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{mb:-.5,width:s,height:d,children:"Your admin button here, coder!"})})]})})]})},C=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,mb:0,width:19.6,children:(0,o.createComponentVNode)(2,c.Button,{color:"red",icon:"user-secret",fluid:!0,content:"Everyone is the traitor",onClick:function(){return n("traitor_all")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,width:19.6,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"red",icon:"brain",fluid:!0,content:"Everyone gets brain damage",onClick:function(){return n("massbraindamage")}})})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"red",icon:"hand-lizard",fluid:!0,content:"Change everyone's species",onClick:function(){return n("allspecies")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"black",icon:"paw",fluid:!0,content:"Turn all humans into monkeys (DANGEROUS: worst species)",onClick:function(){return n("monkey")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"black",icon:"fire",fluid:!0,content:"The floor is lava! (DANGEROUS: extremely lame)",onClick:function(){return n("floorlava")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"black",icon:"fire",fluid:!0,content:"Chinese Cartoons! (DANGEROUS: no going back, also fuck you)",onClick:function(){return n("anime")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,width:19.6,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"red",icon:"cat",fluid:!0,content:"Mass Purrbation",onClick:function(){return n("masspurrbation")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,width:19.6,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"blue",icon:"user",fluid:!0,content:"Cure Purrbation",onClick:function(){return n("massremovepurrbation")}})})})]})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,width:19.6,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"red",icon:"flushed",fluid:!0,content:"Fully Immerse Everyone",onClick:function(){return n("massimmerse")}})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,width:19.6,mb:0,children:(0,o.createComponentVNode)(2,c.Button,{color:"blue",icon:"sync-alt",fluid:!0,content:"Shatter the Immersion",onClick:function(){return n("unmassimmerse")}})})})]})})]})};t.Secrets=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.is_debugger,m=s.is_funmin,p=(0,a.useLocalState)(t,"tab-index",2),h=p[0],C=p[1],f=l[h-1].component();return(0,o.createComponentVNode)(2,i.Window,{title:"Secrets Panel",width:500,height:488,theme:"admin",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Secrets",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{color:"blue",icon:"address-card",content:"Admin Log",onClick:function(){return d("admin_log")}}),(0,o.createComponentVNode)(2,c.Button,{color:"blue",icon:"eye",content:"Show Admins",onClick:function(){return d("show_admins")}})],4),children:[(0,o.createComponentVNode)(2,c.Flex,{mx:-.5,align:"stretch",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{bold:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{color:"black",children:'"The first rule of adminbuse is: you don\'t talk about the adminbuse."'})})}),(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",mx:-.5,align:"stretch",justify:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{ml:-10,mr:1,children:(0,o.createComponentVNode)(2,c.Button,{selected:2===h,icon:"check-circle",content:"Helpful",onClick:function(){return C(2)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:1,children:(0,o.createComponentVNode)(2,c.Button,{disabled:0===m,selected:3===h,icon:"smile",content:"Fun",onClick:function(){return C(3)}})})]}),(0,o.createComponentVNode)(2,c.Flex,{mx:-.5,align:"stretch",justify:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mt:1,children:(0,o.createComponentVNode)(2,c.Button,{disabled:0===u,selected:1===h,icon:"glasses",content:"Debugging",onClick:function(){return C(1)}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledControls,{children:(0,o.createComponentVNode)(2,c.LabeledControls.Item,{minWidth:"66px",label:"Chances of admin complaint",children:(0,o.createComponentVNode)(2,c.RoundGauge,{size:2,value:l[h-1].gauge,minValue:0,maxValue:100,alertAfter:70,ranges:{good:[-2,25],average:[25,75],bad:[75,100]},format:function(e){return(0,r.toFixed)(e)+"%"}})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:1,children:(0,o.createComponentVNode)(2,c.Button,{disabled:0===m,selected:4===h,icon:"smile-wink",content:"Only Fun For You",onClick:function(){return C(4)}})})]})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{fill:!1,title:l[h-1].title+" Or: "+l[h-1].blurb,children:(0,o.createComponentVNode)(2,f)})})]})})})}},95285:function(e,t,n){"use strict";t.__esModule=!0,t.SecureSafe=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,a.Box,{width:"185px",children:(0,o.createComponentVNode)(2,a.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return c("type",{digit:e})}},e)}))},e[0])}))})})};t.SecureSafe=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,h=!(u||s);return(0,o.createComponentVNode)(2,c.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Box,{m:"6px",children:[h&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,a.Section,{height:"60px",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,a.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,a.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},97787:function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84645),i=n(2381),l=n(62291),d=n(20273),s=n(98194),u=function(e,t){(0,c.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,C=u.authenticated,f=u.screen;return C?(2===f?n=(0,o.createComponentVNode)(2,m):3===f?n=(0,o.createComponentVNode)(2,p):4===f&&(n=(0,o.createComponentVNode)(2,h)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,a.Section,{flexGrow:!0,children:n})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return c("search",{t1:t})}}),(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return c("d_rec",{d_rec:e.ref})}},t)}))})],4)},p=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("del_all")}})],4)},h=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,f)}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return c("del_r")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return c("del_r_2")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return c("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return c("screen",{screen:2})}})]})],4)},C=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,a.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},f=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(t,e)}})]},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,c.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.screen;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return c("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return c("screen",{screen:3})},children:"Record Maintenance"})]})}},55895:function(e,t,n){"use strict";t.__esModule=!0,t.SeedExtractor=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(21118),i=n(31246),l=n(26949),d=n(2381);t.SeedExtractor=function(e,t){var n,s,u=(0,i.useBackend)(t),m=u.act,p=u.data,h=(n=p.seeds,s=Object.keys(n).map((function(e){var t=function(e){var t,n=/([^;=]+)=([^;]+)/g,o={};do{(t=n.exec(e))&&(o[t[1]]=t[2]+"")}while(t);return o}(e);return t.amount=n[e],t.key=e,t.name=(0,c.toTitleCase)(t.name.replace("pack of ","")),t})),(0,a.flow)([(0,r.sortBy)((function(e){return e.name}))])(s));return(0,o.createComponentVNode)(2,d.Window,{width:1e3,height:400,children:(0,o.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Stored seeds:",children:(0,o.createComponentVNode)(2,l.Table,{cellpadding:"3",textAlign:"center",children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Lifespan"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Endurance"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Maturation"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Production"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Yield"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Potency"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Instability"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Stock"})]}),h.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{bold:!0,children:e.name}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.lifespan}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.endurance}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.maturation}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.production}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.yield}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.potency}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.instability}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Button,{content:"Vend",onClick:function(){return m("select",{item:e.key})}}),"(",e.amount," left)"]})]},e.key)}))]})})})})}},98459:function(e,t,n){"use strict";t.__esModule=!0,t.SeedStorage=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118),l=n(1397);t.SeedStorage=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,c.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,a.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,a.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(e.traits).map((function(t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.toTitleCase)(t),children:e.traits[t]},t)}))})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirm:!0,fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},43050:function(e,t,n){"use strict";t.__esModule=!0,t.SelectEquipment=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(21118),i=n(31246),l=n(26949),d=n(2381),s=function(e){return e.path||e.ref},u=function(e,t){return(0,i.useLocalState)(e,"selected-tab",t[0])};t.SelectEquipment=function(e,t){var n=(0,i.useBackend)(t),C=(n.act,n.data),f=C.name,N=C.icon64,g=C.current_outfit,V=C.favorites,b=function(e){return null==V?void 0:V.includes(e.path)},v=(0,r.map)((function(e){return Object.assign({},e,{favorite:b(e)})}))([].concat(C.outfits,C.custom_outfits)),k=(0,r.uniq)([].concat(v.map((function(e){return e.category})),["Custom"])),_=u(t,k)[0],y=(0,i.useLocalState)(t,"searchText",""),w=y[0],x=y[1],S=(0,c.createSearch)(w,(function(e){return e.name+e.path})),B=(0,a.flow)([(0,r.filter)((function(e){return e.category===_})),(0,r.filter)(S),(0,r.sortBy)((function(e){return!e.favorite}),(function(e){return!e.priority}),(function(e){return e.name}))])(v),I=function(e){return v.find((function(t){return s(t)===e}))}(g);return(0,o.createComponentVNode)(2,d.Window,{width:650,height:415,theme:"admin",children:(0,o.createComponentVNode)(2,d.Window.Content,{children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Input,{fluid:!0,autoFocus:!0,placeholder:"Search",value:w,onInput:function(e,t){return x(t)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,m,{categories:k})}),(0,o.createComponentVNode)(2,l.Stack.Item,{mt:0,grow:1,basis:0,children:(0,o.createComponentVNode)(2,p,{entries:B,currentTab:_})})]})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Section,{children:(0,o.createComponentVNode)(2,h,{entry:I})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,title:f,textAlign:"center",children:(0,o.createComponentVNode)(2,l.Box,{as:"img",m:0,src:"data:image/jpeg;base64,"+N,height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})})})]})})]})})})};var m=function(e,t){var n=e.categories,r=u(t,n),a=r[0],c=r[1];return(0,o.createComponentVNode)(2,l.Tabs,{textAlign:"center",children:n.map((function(e){return(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:a===e,onClick:function(){return c(e)},children:e},e)}))})},p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.current_outfit,c=e.entries,d=e.currentTab;return(0,o.createComponentVNode)(2,l.Section,{fill:!0,scrollable:!0,children:[c.map((function(e){return(0,o.createComponentVNode)(2,l.Button,{fluid:!0,ellipsis:!0,icon:e.favorite&&"star",iconColor:"gold",content:e.name,title:e.path||e.name,selected:s(e)===a,onClick:function(){return r("preview",{path:s(e)})},onDblClick:function(){return r("applyoutfit",{path:s(e)})}},s(e))})),"Custom"===d&&(0,o.createComponentVNode)(2,l.Button,{color:"transparent",icon:"plus",fluid:!0,onClick:function(){return r("customoutfit")},children:"Create a custom outfit..."})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.current_outfit,c=e.entry;return(0,o.createComponentVNode)(2,l.Stack,{align:"center",children:[(null==c?void 0:c.path)&&(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Icon,{size:1.6,name:c.favorite?"star":"star-o",color:"gold",style:{cursor:"pointer"},onClick:function(){return r("togglefavorite",{path:c.path})}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:1,basis:0,children:[(0,o.createComponentVNode)(2,l.Box,{color:"label",children:"Currently selected:"}),(0,o.createComponentVNode)(2,l.Box,{title:null==c?void 0:c.path,style:{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},children:null==c?void 0:c.name})]}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Button,{mr:.8,lineHeight:2,color:"green",onClick:function(){return r("applyoutfit",{path:a})},children:"Confirm"})})]})}},69437:function(e,t,n){"use strict";t.__esModule=!0,t.SentienceFunBalloon=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SentienceFunBalloon=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.group_name,s=l.range;return(0,o.createComponentVNode)(2,c.Window,{title:"Sentience Fun Balloon",width:400,height:175,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Configure balloon effect:",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Group name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,t){return i("group_name",{updated_name:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Effect range",children:(0,o.createComponentVNode)(2,a.NumberInput,{width:"84px",value:s,minValue:1,maxValue:100,stepPixelSize:15,onDrag:function(e,t){return i("effect_range",{updated_range:t})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,icon:"magic",color:"good",textAlign:"center",content:"Pop Balloon",onClick:function(){return i("pop")}})})]})})})}},20986:function(e,t,n){"use strict";t.__esModule=!0,t.ServerMonitor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=(n.data,e.packet);return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{align:"left",children:i.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{align:"right",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"red",onClick:function(){return c("delete_packet",{ref:i.ref})}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data Type",children:i.type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:i.source+(i.job?" ("+i.job+")":"")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:i.race}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:i.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Language",children:i.language})]}),(0,o.createComponentVNode)(2,a.Divider)]})},l=function(e,t){var n,c=(0,r.useBackend)(t),l=c.act,d=c.data,s=d.network,u=d.server;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Server Information",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Main Menu",icon:"home",onClick:function(){return l("return_home")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:u.traffic>=1024?u.traffic/1024+" TB":u.traffic+" GB"})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Stored Packets",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:null==(n=u.packets)?void 0:n.map((function(e){return(0,o.createComponentVNode)(2,i,{packet:e},e.ref)}))})})})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.servers,d=i.network,s=(0,r.useLocalState)(t,"networkId",d),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Input,{value:u,onInput:function(e,t){return m(t)},placeholder:"Network ID"}),(0,o.createComponentVNode)(2,a.Button,{content:"Scan",onClick:function(){return c("scan_network",{network_id:u})}})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Detected Telecommunication Servers",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Clear Buffer",icon:"trash",color:"red",disabled:0===l.length,onClick:function(){return c("clear_buffer")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Address"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Identification String"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"})]}),null==l?void 0:l.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.ref}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return c("view_server",{server:e.ref})}})})]},e.ref)}))]})})})]})};t.ServerMonitor=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),s=i.screen,u=i.error;return(0,o.createComponentVNode)(2,c.Window,{width:575,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:""!==u&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:u})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:0===s&&(0,o.createComponentVNode)(2,d)||1===s&&(0,o.createComponentVNode)(2,l)})]})})})}},28224:function(e,t,n){"use strict";t.__esModule=!0,t.ShieldCapacitor=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949),i=n(97622),l=n(1033);t.ShieldCapacitor=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,h=s.max_charge,C=s.charge_rate,f=s.max_charge_rate;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:100*(0,i.round)(p/h,1)}),"%)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:C,step:100,stepPixelSize:.2,minValue:1e4,maxValue:f,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,t){return d("charge_rate",{rate:t})}})})]})})})})}},21520:function(e,t,n){"use strict";t.__esModule=!0,t.ShieldGenerator=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949),i=n(97622),l=n(1033),d=n(75309);t.ShieldGenerator=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:c?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,t){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,h=d.max_radius,C=d.z_range,f=d.max_z_range,N=d.average_field_strength,g=d.target_field_strength,V=d.max_field_strength,b=d.shields,v=d.upkeep,k=d.strengthen_rate,_=d.max_strengthen_rate,y=d.gen_power,w=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(N,2)," Renwick (",g&&(0,i.round)(100*N/g,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(v)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(y)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Shielded",children:[b," m\xb2"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:w?s.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Capacitor #"+t,children:[e.active?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"OK."})})]})]},t)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:h,value:p,unit:"m",onDrag:function(e,t){return a("change_radius",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:f,value:C,unit:"vertical range",onDrag:function(e,t){return a("z_range",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:_,value:k,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,t){return a("strengthen_rate",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:V,value:g,unit:"Renwick",onDrag:function(e,t){return a("target_field_strength",{val:t})}})})]})})],4)}},99278:function(e,t,n){"use strict";t.__esModule=!0,t.ShutoffMonitorContent=t.ShutoffMonitor=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.ShutoffMonitor=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data.valves;return(0,o.createComponentVNode)(2,c.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return a("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return a("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};t.ShutoffMonitorContent=i},76005:function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleConsoleContent=t.ShuttleConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.ShuttleConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=e.type,u=void 0===d?"shuttle":d,m=e.blind_drop,p=l.authorization_required;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:230,children:[!!p&&(0,o.createComponentVNode)(2,a.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mt:2,children:(0,o.createComponentVNode)(2,a.Icon,{name:"minus-circle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:2,ml:2,color:"bad",children:"shuttle"===u?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:"18px",mt:4,children:(0,o.createComponentVNode)(2,a.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){return i("request")}})})]}),(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,s,{type:u,blind_drop:m})})]})};var i=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.id===t})))?void 0:n.name},l=function(e,t){var n;return null==e||null==(n=e.find((function(e){return e.name===t})))?void 0:n.id},d={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,s=n.data,u=e.type,m=e.blind_drop,p=s.status,h=s.locked,C=s.authorization_required,f=s.destination,N=s.docked_location,g=s.timer_str,V=s.locations,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:g||"00:00"}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:d[p]||"bad",ml:1,children:p||"Not Available"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"shuttle"===u?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:N||"Not Available"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destination",buttons:"shuttle"!==u&&0===b.length&&!!m&&(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",disabled:C||!m,content:"Blind Drop",onClick:function(){return c("random")}}),children:0===b.length&&(0,o.createComponentVNode)(2,a.Box,{mb:1.7,color:"bad",children:"Not Available"})||1===b.length&&(0,o.createComponentVNode)(2,a.Box,{mb:1.7,color:"average",children:i(b,f)})||(0,o.createComponentVNode)(2,a.Dropdown,{mb:1.7,over:!0,width:"240px",options:b.map((function(e){return e.name})),disabled:h||C,selected:i(b,f)||"Select a Destination",onSelected:function(e){return c("set_destination",{destination:l(b,e)})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Depart",disabled:!i(b,f)||h||C,icon:"arrow-up",textAlign:"center",onClick:function(){return c("move",{shuttle_id:f})}})]})]})};t.ShuttleConsoleContent=s},87227:function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleControl=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n="ERROR",r="bad",a=!1;return"docked"===e?(n="DOCKED",r="good"):"docking"===e?(n="DOCKING",r="average",a=!0):"undocking"===e?(n="UNDOCKING",r="average",a=!0):"undocked"===e&&(n="UNDOCKED",r="#676767"),a&&t&&(n+="-MANUAL"),(0,o.createComponentVNode)(2,c.Box,{color:r,children:n})},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,h=i.docking_status,C=i.docking_override,f=i.docking_codes;return(0,o.createComponentVNode)(2,c.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Status",children:l(h,C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:f||"Not Set"})})],4)||null]})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,h=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,c.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,c.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:h})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,h=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,c.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,c.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[h," m/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),i=n.act,d=n.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,h=d.skip_docking,C=d.docking_status,f=d.docking_override,N=d.shuttle_location,g=d.can_cloak,V=d.cloaked,b=d.can_autopilot,v=d.routes,k=d.is_in_transit,_=d.travel_progress,y=d.time_left,w=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,c.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,c.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,o.createComponentVNode)(2,c.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,c.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(N)}),!h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:"docked"===C,disabled:"undocked"!==C&&"docked"!==C,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,c.Button,{selected:"undocked"===C,disabled:"docked"!==C&&"undocked"!==C,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:l(C,f)})})||null,g&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,c.Button,{selected:V,icon:V?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:V?"Enabled":"Disabled"})})||null,b&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,c.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:v.length&&v.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),k&&(0,o.createComponentVNode)(2,c.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,maxValue:100,value:_,children:[y,"s"]})})})})||null,Object.keys(w).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(w).map((function(e){var t=w[e];return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:[t.open&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",t.bolted&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(x).map((function(e){var t=x[e];return-1!==t.reading?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[t.pressure,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[t.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",children:[t.oxygen,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Nitrogen",children:[t.nitrogen,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Carbon Dioxide",children:[t.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",children:[t.phoron,"%"]}),t.other&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Other",children:[t.other,"%"]})||null]})},e)}))})})||null],0)}))};t.ShuttleControl=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},379:function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleManipulatorModification=t.ShuttleManipulatorTemplates=t.ShuttleManipulatorStatus=t.ShuttleManipulator=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.ShuttleManipulator=function(e,t){var n=(0,a.useLocalState)(t,"tab",1),r=n[0],u=n[1];return(0,o.createComponentVNode)(2,i.Window,{title:"Shuttle Manipulator",width:800,height:600,theme:"admin",children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===r,onClick:function(){return u(1)},children:"Status"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===r,onClick:function(){return u(2)},children:"Templates"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===r,onClick:function(){return u(3)},children:"Modification"})]}),1===r&&(0,o.createComponentVNode)(2,l),2===r&&(0,o.createComponentVNode)(2,d),3===r&&(0,o.createComponentVNode)(2,s)]})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.shuttles||[];return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"JMP",onClick:function(){return r("jump_to",{type:"mobile",id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Fly",disabled:!e.can_fly,onClick:function(){return r("fly",{id:e.id})}},e.id)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.id}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.status}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.mode,!!e.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),e.timeleft,(0,o.createTextVNode)(")"),(0,o.createComponentVNode)(2,c.Button,{content:"Fast Travel",disabled:!e.can_fast_travel,onClick:function(){return r("fast_travel",{id:e.id})}},e.id)],0)]})]},e.id)}))})})};t.ShuttleManipulatorStatus=l;var d=function(e,t){var n,i=(0,a.useBackend)(t),l=i.act,d=i.data,s=d.templates||{},u=d.selected||{},m=(0,a.useLocalState)(t,"templateId",Object.keys(s)[0]),p=m[0],h=m[1],C=(null==(n=s[p])?void 0:n.templates)||[];return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:p===t,onClick:function(){return h(t)},children:e.port_id},t)}))(s)})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,basis:0,children:C.map((function(e){var t=e.shuttle_id===u.shuttle_id;return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{content:t?"Selected":"Select",selected:t,onClick:function(){return l("select_template",{shuttle_id:e.shuttle_id})}}),children:(!!e.description||!!e.admin_notes)&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!e.description&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description",children:e.description}),!!e.admin_notes&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Admin Notes",children:e.admin_notes})]})},e.shuttle_id)}))})]})})};t.ShuttleManipulatorTemplates=d;var s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.selected||{},d=i.existing_shuttle||{};return(0,o.createComponentVNode)(2,c.Section,{children:l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:l.name,children:(!!l.description||!!l.admin_notes)&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!l.description&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description",children:l.description}),!!l.admin_notes&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Admin Notes",children:l.admin_notes})]})}),d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Existing Shuttle: "+d.name,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Jump To",onClick:function(){return r("jump_to",{type:"mobile",id:d.id})}}),children:[d.status,!!d.timer&&(0,o.createFragment)([(0,o.createTextVNode)("("),d.timeleft,(0,o.createTextVNode)(")")],0)]})})}):(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Existing Shuttle: None"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Status",children:[(0,o.createComponentVNode)(2,c.Button,{content:"Load",color:"good",onClick:function(){return r("load",{shuttle_id:l.shuttle_id})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Preview",onClick:function(){return r("preview",{shuttle_id:l.shuttle_id})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Replace",color:"bad",onClick:function(){return r("replace",{shuttle_id:l.shuttle_id})}})]})],0):"No shuttle selected"})};t.ShuttleManipulatorModification=s},95360:function(e,t,n){"use strict";t.__esModule=!0,t.SignalerContent=t.Signaler=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.Signaler=function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return i("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,c.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,t){return i("code",{code:t})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,c.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};t.SignalerContent=l},91598:function(e,t,n){"use strict";t.__esModule=!0,t.SimpleBot=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381);t.SimpleBot=function(e,t){var n=(0,r.useBackend)(t).data,l=n.can_hack,d=!n.locked||l;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Settings",buttons:(0,o.createComponentVNode)(2,i),children:d?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Locked!"})})}),d&&(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Controls",children:(0,o.createComponentVNode)(2,u)})})]})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,s=i.can_hack,u=i.has_access,m=i.locked,p=i.pai.allow_pai;return(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,l),!!p&&(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Button,{color:"transparent",disabled:!u&&!s,icon:m?"lock":"lock-open",onClick:function(){return c("lock")},selected:m,tooltip:(m?"Unlock":"Lock")+" the control panel.",children:"Controls Lock"})],0)},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.can_hack,d=i.emagged;return(0,o.createComponentVNode)(2,a.Button,{color:"danger",disabled:!l,icon:d?"bug":"lock",onClick:function(){return c("hack")},selected:!d,tooltip:d?"Resets the bot operating system.":"Unlocks the safety protocols.",children:d?"Malfunctional":"Safety Lock"})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.pai.card_inserted;return i?(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"eject",onClick:function(){return c("eject_pai")},tooltip:"Ejects the current PAI.",children:"Eject PAI"}):(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"robot",tooltip:"Insert an active PAI card to control this device.",children:"No PAI Inserted"})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.settings,l=i.airplane_mode,d=i.patrol_station,s=i.power,u=i.maintenance_lock;return(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"Powers "+(s?"off":"on")+" the bot.",children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"power-off",color:s?"good":"gray",onClick:function(){return c("power")}})})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Airplane Mode",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:(l?"Enables":"Disables")+" remote access via console.",children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"plane",color:l?"yellow":"gray",onClick:function(){return c("airplane")}})})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Patrol Station",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:(d?"Disables":"Enables")+" automatic station patrol.",children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"map-signs",color:d?"good":"gray",onClick:function(){return c("patrol")}})})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Maintenance Lock",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Opens the maintenance hatch for repairs.":"Closes the maintenance hatch.",children:(0,o.createComponentVNode)(2,a.Icon,{size:2,name:"toolbox",color:u?"yellow":"gray",onClick:function(){return c("maintenance")}})})})]})},u=function(e,t){var n=(0,r.useBackend)(t).data.custom_controls;return(0,o.createComponentVNode)(2,a.LabeledControls,{wrap:!0,children:Object.entries(n).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledControls.Item,{pb:2,label:e[0].replace("_"," ").replace(/(^\w{1})|(\s+\w{1})/g,(function(e){return e.toUpperCase()})),children:(0,o.createComponentVNode)(2,m,{control:e})},e[0])}))})},m=function(e,t){var n=(0,r.useBackend)(t).act,c=e.control;return"sync_tech"===c[0]?(0,o.createComponentVNode)(2,p):"heal_threshold"===c[0]?(0,o.createComponentVNode)(2,h,{control:c}):"tile_stack"===c[0]?(0,o.createComponentVNode)(2,C,{control:c}):"line_mode"===c[0]?(0,o.createComponentVNode)(2,f,{control:c}):(0,o.createComponentVNode)(2,a.Icon,{color:c[1]?"good":"gray",name:c[1]?"toggle-on":"toggle-off",size:2,onClick:function(){return n(c[0])}})},p=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createComponentVNode)(2,a.Tooltip,{content:"Synchronize surgical data with research network.\n Improves Tending Efficiency.",children:(0,o.createComponentVNode)(2,a.Icon,{color:"purple",name:"cloud-download-alt",size:2,onClick:function(){return n("sync_tech")}})})},h=function(e,t){var n=(0,r.useBackend)(t).act,c=e.control;return(0,o.createComponentVNode)(2,a.Tooltip,{content:"Adjusts the sensitivity for damage treatment.",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:5,maxValue:75,ranges:{good:[-Infinity,15],average:[15,55],bad:[55,Infinity]},step:5,unit:"%",value:c[1],onChange:function(e,t){return n(c[0],{threshold:t})}})})},C=function(e,t){var n=(0,r.useBackend)(t).act,c=e.control;return(0,o.createComponentVNode)(2,a.Button,{disabled:!c[1],icon:c[1]?"eject":"",onClick:function(){return n("eject_tiles")},tooltip:"Number of floor tiles contained in the bot.",children:c[1]?""+c[1]:"Empty"})},f=function(e,t){var n=(0,r.useBackend)(t).act,c=e.control;return(0,o.createComponentVNode)(2,a.Tooltip,{content:"Enables straight line tiling mode.",children:(0,o.createComponentVNode)(2,a.Icon,{color:c[1]?"good":"gray",name:c[1]?"compass":"toggle-off",onClick:function(){return n("line_mode")},size:c[1]?1.5:2,children:[" ",c[1]?c[1].toString().charAt(0).toUpperCase():""]})})}},602:function(e,t,n){"use strict";t.__esModule=!0,t.SkillPanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={color:"lightgreen",fontWeight:"bold"},l={color:"#FFDB58",fontWeight:"bold"};t.SkillPanel=function(e,t){var n=(0,r.useBackend)(t),s=n.act,u=n.data.skills||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Manage Skills",width:600,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:u.playername,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createVNode)(1,"span",null,e.desc,0,{style:l}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,d,{skill_lvl_num:e.lvlnum,skill_lvl:e.lvl}),(0,o.createVNode)(1,"br"),"Total Experience: [",e.exp," XP]",(0,o.createVNode)(1,"br"),"XP To Next Level:",0!==e.exp_req?(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("["),e.exp_prog,(0,o.createTextVNode)(" / "),e.exp_req,(0,o.createTextVNode)("]")],0):(0,o.createVNode)(1,"span",null,"[MAXXED]",16,{style:i}),(0,o.createVNode)(1,"br"),"Overall Skill Progress: [",e.exp," / ",e.max_exp,"]",(0,o.createComponentVNode)(2,a.ProgressBar,{value:e.exp_percent,color:"good"}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"Adjust Exp",onClick:function(){return s("adj_exp",{skill:e.path})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Set Exp",onClick:function(){return s("set_exp",{skill:e.path})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Set Level",onClick:function(){return s("set_lvl",{skill:e.path})}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br")]},e.name)}))})})})})};var d=function(e){var t=e.skill_lvl_num,n=e.skill_lvl;return(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:["Level: [",(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,textColor:"hsl("+50*t+", 50%, 50%)",children:n}),"]"]})}},2082:function(e,t,n){"use strict";t.__esModule=!0,t.SkillStation=t.TimeFormat=t.ImplantedSkillchips=t.InsertedSkillchip=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.skillchip_ready,d=i.slot_use,s=i.slots_used,u=i.slots_max,m=i.implantable_reason,p=i.implantable,h=i.complexity,C=i.skill_name,f=i.skill_desc,N=i.skill_icon,g=i.working;return l?(0,o.createComponentVNode)(2,c.Section,{title:"Inserted Skillchip",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",disabled:!p||!!g,color:p?"good":"default",onClick:function(){return r("implant")},content:"Implant",tooltip:m}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!!g,onClick:function(){return r("eject")},content:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,align:"center",children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Icon,{m:1,size:3,name:N})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Skillchip",children:(0,o.createComponentVNode)(2,c.Box,{bold:!0,children:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,c.Box,{italic:!0,children:f})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"brain",width:"15px",textAlign:"center"})," ",h]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot Size",children:(0,o.createComponentVNode)(2,c.Box,{color:s+d>u&&"red",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save",width:"15px",textAlign:"center"})," ",d]})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",color:p?"good":"bad",children:m})]})})]})}):!g&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Please insert a skillchip."})};t.InsertedSkillchip=l;var d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.slots_used,d=i.slots_max,s=i.complexity_used,u=i.complexity_max,m=i.working,p=i.current||[];return(0,o.createComponentVNode)(2,c.Section,{title:"Implanted Skillchips",children:[!p.length&&"No skillchips detected.",!!p.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Chip"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"brain",tooltip:"Complexity",tooltipPosition:"top",content:s+"/"+u})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"save",tooltip:"Slot Size",tooltipPosition:"top",content:l+"/"+d})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"check",tooltip:"Is Active",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Icon,{textAlign:"center",width:"18px",mr:1,name:e.icon}),e.name]}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:(!e.active?e.complexity+s>u&&"bad":"good")||"grey",textAlign:"center",children:e.complexity}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:"good",textAlign:"center",children:e.slot_use}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:e.active?"check":"times",color:e.active?"good":"bad"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.cooldown>0&&Math.ceil(e.cooldown/10)+"s"||"0s"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("remove",{ref:e.ref})},icon:e.removable?"eject":"trash",color:e.removable?"good":"bad",tooltip:e.removable?"Extract":"Destroy",tooltipPosition:"left",disabled:e.cooldown||m}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return r("toggle_activate",{ref:e.ref})},icon:e.active?"check-square-o":"square-o",color:e.active?"good":"default",tooltip:!!e.active_error&&!e.active&&e.active_error||e.active&&"Deactivate"||"Activate",tooltipPosition:"left",disabled:e.cooldown||m||!e.active&&e.complexity+s>u})]})]},e.ref)}))]})]})};t.ImplantedSkillchips=d;var s=function(e,t){var n=e.value,o=(0,r.toFixed)(Math.floor(n/10%60)).padStart(2,"0"),a=(0,r.toFixed)(Math.floor(n/600%60)).padStart(2,"0");return(0,r.toFixed)(Math.floor(n/36e3%24)).padStart(2,"0")+":"+a+":"+o};t.TimeFormat=s;t.SkillStation=function(e,t){var n=(0,a.useBackend)(t).data,r=n.working,u=n.timeleft,m=n.error;return(0,o.createComponentVNode)(2,i.Window,{title:"Skillsoft Station",width:500,height:500,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:m}),!!r&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:(0,o.createComponentVNode)(2,c.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{mb:.5,children:"Operation in progress. Please do not leave the chamber."}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:["Time Left: ",(0,o.createComponentVNode)(2,s,{value:u})]})]})}),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d)]})})}},24258:function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=[{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"},{label:"Toxin",type:"toxLoss"},{label:"Oxygen",type:"oxyLoss"}];t.Sleeper=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.open,u=d.occupant,m=void 0===u?{}:u,p=d.occupied,h=(d.chems||[]).sort((function(e,t){var n=e.name.toLowerCase(),o=t.name.toLowerCase();return n<o?-1:n>o?1:0}));return(0,o.createComponentVNode)(2,c.Window,{width:310,height:465,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:m.name?m.name:"No Occupant",minHeight:"210px",buttons:!!m.stat&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,color:m.statstate,children:m.stat}),children:!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.ProgressBar,{value:m.health,minValue:m.minHealth,maxValue:m.maxHealth,ranges:{good:[50,Infinity],average:[0,50],bad:[-Infinity,0]}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m[e.type],minValue:0,maxValue:m.maxHealth,color:"bad"})},e.type)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cells",color:m.cloneLoss?"bad":"good",children:m.cloneLoss?"Damaged":"Healthy"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Brain",color:m.brainLoss?"bad":"good",children:m.brainLoss?"Abnormal":"Healthy"})]})],4)}),(0,o.createComponentVNode)(2,a.Section,{title:"Medicines",minHeight:"205px",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"door-open":"door-closed",content:s?"Open":"Closed",onClick:function(){return l("door")}}),children:h.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"flask",content:e.name,disabled:!p||!e.allowed,width:"140px",onClick:function(){return l("inject",{chem:e.id})}},e.name)}))})]})})}},96715:function(e,t,n){"use strict";t.__esModule=!0,t.SlimeBodySwapper=t.BodyEntry=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={Dead:"bad",Unconscious:"average",Conscious:"good"},l={owner:"You Are Here",stranger:"Occupied",available:"Swap"},d=function(e,t){var n=e.body,r=e.swapFunc;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:n.htmlcolor,children:n.name}),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:l[n.occupied],selected:"owner"===n.occupied,color:"stranger"===n.occupied&&"bad",onClick:function(){return r()}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",bold:!0,color:i[n.status],children:n.status}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Jelly",children:n.exoticblood}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:n.area})]})})};t.BodyEntry=d;t.SlimeBodySwapper=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.bodies,s=void 0===l?[]:l;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,d,{body:e,swapFunc:function(){return i("swap",{ref:e.ref})}},e.name)}))})})})}},92381:function(e,t,n){"use strict";t.__esModule=!0,t.SmartVend=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.SmartVend=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:!!d.isdryer&&(0,o.createComponentVNode)(2,c.Button,{icon:d.drying?"stop":"tint",onClick:function(){return l("Dry")},children:d.drying?"Stop drying":"Dry"}),children:0===d.contents.length&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Unfortunately, this ",d.name," is empty."]})||(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Item"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:d.verb?d.verb:"Dispense"})]}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:e.amount}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{content:"One",disabled:e.amount<1,onClick:function(){return l("Release",{name:e.name,amount:1})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Many",disabled:e.amount<=1,onClick:function(){return l("Release",{name:e.name})}})]})]},t)}))(d.contents)]})})})})}},68952:function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(1033),i=n(2381),l=n(97622);t.Smes=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.capacityPercent,m=s.capacity,p=s.charge,h=s.inputAttempt,C=s.inputting,f=s.inputLevel,N=s.inputLevelMax,g=s.inputAvailable,V=s.outputAttempt,b=s.outputting,v=s.outputLevel,k=s.outputLevelMax,_=s.outputUsed,y=(u>=100?"good":C&&"average")||"bad",w=(b?"good":p>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:.01*u,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(p/60,1)," kWh / ",(0,l.round)(m/60,1)," kWh (",u,"%)"]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Input",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return d("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:y,children:(u>=100?"Fully Charged":C&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===f,onClick:function(){return d("input",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===f,onClick:function(){return d("input",{adjust:-10})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,a.Slider,{value:f,fillValue:g,minValue:0,maxValue:N,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(1e3*e,1)},onDrag:function(e,t){return d("input",{target:t})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:f===N,onClick:function(){return d("input",{adjust:10})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:f===N,onClick:function(){return d("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available",children:(0,c.formatPower)(1e3*g)})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Output",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){return d("tryoutput")},children:V?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:w,children:b?"Sending":p>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return d("output",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===v,onClick:function(){return d("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,a.Slider,{value:v,minValue:0,maxValue:k,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(1e3*e,1)},onDrag:function(e,t){return d("output",{target:t})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:v===k,onClick:function(){return d("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:v===k,onClick:function(){return d("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outputting",children:(0,c.formatPower)(1e3*_)})]})})]})})}},33571:function(e,t,n){"use strict";t.__esModule=!0,t.SmokeMachine=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SmokeMachine=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.TankContents,s=(l.isTankLoaded,l.TankCurrentVolume),u=l.TankMaxVolume,m=l.active,p=l.setting,h=(l.screen,l.maxSetting),C=void 0===h?[]:h;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:350,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Dispersal Tank",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",selected:m,content:m?"On":"Off",onClick:function(){return i("power")}}),children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:s/u,ranges:{bad:[-Infinity,.3]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{initial:0,value:s||0})," / "+u]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:p===e,icon:"plus",content:3*e,disabled:C<e,onClick:function(){return i("setting",{amount:e})}},e)}))})})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Contents",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Purge",onClick:function(){return i("purge")}}),children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"label",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{initial:0,value:e.volume})," ","units of ",e.name]},e.name)}))})]})})}},64881:function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.generated,s=l.generated_ratio,u=l.azimuth_current,m=l.azimuth_rate,p=l.max_rotation_rate,h=l.tracking_state,C=l.connected_panels,f=l.connected_tracker;return(0,o.createComponentVNode)(2,c.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return i("refresh")}}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Solar tracker",color:f?"good":"bad",children:f?"OK":"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:s,children:d+" W"})})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Off",selected:0===h,onClick:function(){return i("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:"Timed",selected:1===h,onClick:function(){return i("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Auto",selected:2===h,disabled:!f,onClick:function(){return i("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Azimuth",children:[(0===h||1===h)&&(0,o.createComponentVNode)(2,a.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:u,onDrag:function(e,t){return i("azimuth",{value:t})}}),1===h&&(0,o.createComponentVNode)(2,a.NumberInput,{width:"80px",unit:"\xb0/m",step:.01,stepPixelSize:1,minValue:-p-.01,maxValue:p+.01,value:m,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onDrag:function(e,t){return i("azimuth_rate",{value:t})}}),2===h&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",mt:"3px",children:[u+" \xb0"," (auto)"]})]})]})})]})})}},60954:function(e,t,n){"use strict";t.__esModule=!0,t.SpaceHeater=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SpaceHeater=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:305,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Power",buttons:(0,o.createFragment)([!!l.chemHacked&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject beaker",disabled:!l.beaker,onClick:function(){return i("ejectBeaker")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",disabled:!l.hasPowercell||!l.open,onClick:function(){return i("eject")}}),(0,o.createComponentVNode)(2,a.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,disabled:!l.hasPowercell,onClick:function(){return i("power")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell",color:!l.hasPowercell&&"bad",children:l.hasPowercell&&(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.powerLevel/100,ranges:{good:[.6,Infinity],average:[.3,.6],bad:[-Infinity,.3]},children:l.powerLevel+"%"})||"None"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Thermostat",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperature",children:(0,o.createComponentVNode)(2,a.Box,{fontSize:"18px",color:Math.abs(l.targetTemp-l.currentTemp)>50?"bad":Math.abs(l.targetTemp-l.currentTemp)>20?"average":"good",children:[l.currentTemp,"\xb0C"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:l.open&&(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(l.targetTemp),width:"65px",unit:"\xb0C",minValue:l.minTemp,maxValue:l.maxTemp,onChange:function(e,t){return i("target",{target:t})}})||l.targetTemp+"\xb0C"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:l.open?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"thermometer-half",content:"Auto",selected:"auto"===l.mode,onClick:function(){return i("mode",{mode:"auto"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fire-alt",content:"Heat",selected:"heat"===l.mode,onClick:function(){return i("mode",{mode:"heat"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fan",content:"Cool",selected:"cool"===l.mode,onClick:function(){return i("mode",{mode:"cool"})}})],4):"Auto"}),(0,o.createComponentVNode)(2,a.LabeledList.Divider)]})})]})})}},27528:function(e,t,n){"use strict";t.__esModule=!0,t.SparringContract=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381),i=["Fist Fight","Ceremonial Weapons","Melee Only","Any Weapons"],l=["No Stakes","Holy Match","Money Match","Your Soul"],d=["You will fight with your fists only. Any weapons will be considered a violation.","You can only fight with ceremonial weapons. You will be at a severe disadvantage without one!","You can fight with weapons, or fists if you have none. Ranged weapons are a violation.","You can fight with any and all weapons as you please. Try not to kill them, okay?"],s=["No stakes, just for fun. Who doesn't love some recreational sparring?","A match for the chaplain's deity. The Chaplain suffers large consequences for failure, but advances their sect by winning.","A match with money on the line. Whomever wins takes all the money of whomever loses.","A lethal match with the loser's soul becoming under ownership of the winner."];t.SparringContract=function(e,t){var n=(0,r.useBackend)(t),u=n.data,m=n.act,p=u.set_weapon,h=u.set_area,C=u.set_stakes,f=u.possible_areas,N=u.left_sign,g=u.right_sign,V=u.in_area,b=u.no_chaplains,v=(0,r.useLocalState)(t,"weapon",p),k=v[0],_=v[1],y=(0,r.useLocalState)(t,"area",h),w=y[0],x=y[1],S=(0,r.useLocalState)(t,"stakes",C),B=S[0],I=S[1];return(0,o.createComponentVNode)(2,c.Window,{width:420,height:380,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,fontSize:"16px",children:"Weapons:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{tooltip:"The Chaplain's Deity wishes for honorable fighting.\nAs such, it uses contracts. Signing your name will\nset the terms for the battle. Then, the person you\nintend to spar with must sign the other side. If terms\nare changed on an already signed contract, the\nsignatures will erase and the new terms must be\nre-agreed upon.",icon:"info",children:"Contract?"})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:i[k-1],options:i,onSelected:function(e){return _(i.findIndex((function(t){return t===e}))+1)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:d[k-1]})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:"Arena:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:w,options:f,onSelected:function(e){return x(e)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:["This fight will take place in the ",w,". Leaving the arena mid-fight is a violation."]})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:"Stakes:"}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:l[B-1],options:l,onSelected:function(e){return I(l.findIndex((function(t){return t===e}))+1)}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.BlockQuote,{children:s[B-1]})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{grow:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"none"!==N&&"14px",grow:!0,children:"none"===N&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return m("sign",{weapon:k,area:w,stakes:B,sign_position:"left"})},children:"Sign Here"})||N}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",children:"VS"}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"none"!==g&&"14px",grow:!0,children:"none"===g&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return m("sign",{weapon:k,area:w,stakes:B})},children:"Sign Here"})||g})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:-.5,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!V||b&&1===C,icon:"fist-raised",onClick:function(){return m("fight")},children:"FIGHT!"}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"If you've already signed but you want to renegotiate\nthe terms, you can clear out the signatures with\nthis button.",icon:"door-open",onClick:function(){return m("clear")},children:"Clear"})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{tooltip:V&&"Both participants are present in the "+w+"."||"Both participants need to be in the arena!",color:V?"green":"red",icon:"ring",children:"Arena"}),(0,o.createComponentVNode)(2,a.Button,{tooltip:"none"!==N&&"none"!==g?"Both signatures present, terms agreed upon.":"You need signatures from both fighters on the terms!",color:"none"!==N&&"none"!==g?"green":"red",icon:"file-signature",children:"Signatures"}),(0,o.createComponentVNode)(2,a.Button,{tooltip:b?"No chaplain present for this fight. No Holy Matches!":"At least one chaplain is present. Holy matches allowed.",color:b?"yellow":"green",icon:"cross",children:"Chaplain"})]})]})})]})})})})}},56747:function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Spawners Menu",width:700,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:"Jump",onClick:function(){return i("jump",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Spawn",onClick:function(){return i("spawn",{name:e.name})}})],4),children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,mb:1,fontSize:"20px",children:e.short_desc}),(0,o.createComponentVNode)(2,a.Box,{children:e.flavor_text}),!!e.important_info&&(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,color:"bad",fontSize:"26px",children:e.important_info})]},e.name)}))})})})}},89974:function(e,t,n){"use strict";t.__esModule=!0,t.SpawnersMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SpawnersMenu=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.spawners||[];return(0,o.createComponentVNode)(2,c.Window,{title:"Spawners Menu",width:700,height:525,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:e.name.replace(/^\w/,(function(e){return e.toUpperCase()})),buttons:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"14px",color:"green",children:[e.amount_left," left"]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{content:"Jump",onClick:function(){return i("jump",{name:e.name})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Spawn",onClick:function(){return i("spawn",{name:e.name})}})]})]}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin",children:e.you_are_text||"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Directives",children:e.flavor_text||"None"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",label:"Conditions",children:e.important_text||"None"})]})})},e.name)}))})})})}},74554:function(e,t,n){"use strict";t.__esModule=!0,t.Spellbook=void 0;var o=n(96323),r=(n(21118),n(31246)),a=n(26949),c=n(2381),i=[{title:"Enscribed Name",blurb:"This book answers only to its owner, and of course, must have one. The permanence of the pact between a spellbook and its owner ensures such a powerful artifact cannot fall into enemy hands, or be used in ways that break the Federation's rules such as bartering spells.",component:function(){return d},noScrollable:2},{title:"Table of Contents",blurb:null,component:function(){return u}},{title:"Offensive",blurb:"Spells and items geared towards debilitating and destroying."},{title:"Defensive",blurb:"Spells and items geared towards improving your survivability or reducing foes' ability to attack."},{title:"Mobility",blurb:"Spells and items geared towards improving your ability to move. It is a good idea to take at least one."},{title:"Assistance",blurb:"Spells and items geared towards bringing in outside forces to aid you or improving upon your other items and abilities."},{title:"Challenges",blurb:"The Wizard Federation is looking for shows of power. Arming the station against you will increase the danger, but will grant you more charges for your spellbook.",locked:!0,noScrollable:1},{title:"Rituals",blurb:"These powerful spells change the very fabric of reality. Not always in your favour."},{title:"Loadouts",blurb:"The Wizard Federation accepts that sometimes, choosing is hard. You can choose from some approved wizard loadouts here.",component:function(){return f},noScrollable:2},{title:"Randomize",blurb:"If you didn't like the loadouts offered, you can embrace chaos. Not recommended for newer wizards.",component:function(){return N}}],l={Learn:"plus",Summon:"hat-wizard",Cast:"meteor"},d=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.owner);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mt:25,mb:-3,fontSize:"50px",color:"bad",textAlign:"center",fontFamily:"Ink Free",children:c}),(0,o.createComponentVNode)(2,a.Divider)],4)},s="34.6px",u=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data,(0,r.useLocalState)(t,"tab-index",1)),i=(c[0],c[1]);return(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"pen",disabled:!0,content:"Name Enscription"}),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"clipboard",disabled:!0,content:"Table of Contents"}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"fire",content:"Deadly Evocations",onClick:function(){return i(3)}}),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"shield-alt",content:"Defensive Evocations",onClick:function(){return i(3)}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"globe-americas",content:"Magical Transportation",onClick:function(){return i(5)}}),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"users",content:"Assistance and Summoning",onClick:function(){return i(5)}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"crown",content:"Challenges",onClick:function(){return i(7)}}),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"magic",content:"Rituals",onClick:function(){return i(7)}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"thumbs-up",content:"Wizard Approved Loadouts",onClick:function(){return i(9)}}),(0,o.createComponentVNode)(2,a.Button,{lineHeight:s,fluid:!0,icon:"dice",content:"Arcane Randomizer",onClick:function(){return i(9)}})]})},m=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data.owner;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{color:"purple",name:"lock",size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",color:"purple",children:"The Wizard Federation has locked this page."})]})})},p=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data.owner;return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Icon,{color:"purple",name:"dollar-sign",size:10}),(0,o.createVNode)(1,"div",null,null,1,{style:{background:"purple",bottom:"60%",left:"33%",height:"10px",position:"relative",transform:"rotate(45deg)",width:"150px"}})]}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"18px",color:"purple",children:"You do not have enough points to use this page."})]})})},h=function(e,t){var n=(0,r.useBackend)(t).act,c=e.author,i=e.name,l=e.blurb,d=e.icon,s=e.loadoutId,u=e.loadoutColor;return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{width:C,title:i,children:[l,(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Confirm Purchase?",confirmIcon:"dollar-sign",confirmColor:"good",fluid:!0,icon:d,content:"Purchase Loadout",onClick:function(){return n("purchase_loadout",{id:s})}}),(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Box,{color:u,children:["Added by ",c,"."]})]})})},C=19.17,f=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.points);return(0,o.createComponentVNode)(2,a.Stack,{ml:.5,mt:-.5,vertical:!0,fill:!0,children:[c<10&&(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,h,{loadoutId:"loadout_classic",loadoutColor:"purple",name:"The Classic Wizard",icon:"fire",author:"Archchancellor Gray",blurb:"This is the classic wizard, crazy popular in\nthe 2550's. Comes with Fireball, Magic Missile,\nEi Nath, and Ethereal Jaunt. The key here is that\nevery part of this kit is very easy to pick up and use."}),(0,o.createComponentVNode)(2,h,{name:"Mjolnir's Power",icon:"hammer",loadoutId:"loadout_hammer",loadoutColor:"green",author:"Jegudiel Worldshaker",blurb:"The power of the mighty Mjolnir! Best not to lose it.\nThis loadout has Summon Item, Mutate, Blink, and\nForce Wall. Mutate is your utility in this case:\nUse it for limited ranged fire and getting out of bad blinks."})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,h,{name:"Fantastical Army",icon:"pastafarianism",loadoutId:"loadout_army",loadoutColor:"yellow",author:"Prospero Spellstone",blurb:"Why kill when others will gladly do it for you?\nEmbrace chaos with your kit: Soulshards, Staff of Change,\nNecro Stone, Teleport, and Jaunt! Remember, no offense spells!"}),(0,o.createComponentVNode)(2,h,{name:"Soul Tapper",icon:"skull",loadoutId:"loadout_tap",loadoutColor:"white",author:"Tom the Empty",blurb:"Embrace the dark, and tap into your soul.\nYou can recharge very long recharge spells\nlike Ei Nath by jumping into new bodies with\nMind Swap and starting Soul Tap anew."})]})})]})},N=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.points,d=i.semi_random_bonus,s=i.full_random_bonus;return(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[l<10&&(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,mt:10,children:["Semi-Randomize will ensure you at least get some mobility and lethality. Guaranteed to have ",d," points worth of spells."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Cowabunga it is?",confirmIcon:"dice-three",lineHeight:6,fluid:!0,icon:"dice-three",content:"Semi-Randomize!",onClick:function(){return c("semirandomize")}}),(0,o.createComponentVNode)(2,a.Divider)]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:["Full Random will give you anything. There's no going back, either! Guaranteed to have ",s," points worth of spells."]}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Cowabunga it is?",confirmIcon:"dice",lineHeight:6,fluid:!0,color:"black",icon:"dice",content:"Full Random!",onClick:function(){return c("randomize")}})})})]})},g="466px",V="456px";t.Spellbook=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.entries,p=s.points,h=(0,r.useLocalState)(t,"tab-index",1),C=h[0],f=h[1],N=!i[C-1].noScrollable,b=2!==i[C-1].noScrollable,v=i[C-1].component?i[C-1].component():null,k=i[C].component?i[C].component():null,_=u?u.filter((function(e){return e.cat===i[C-1].title})):null,y=u?u.filter((function(e){return e.cat===i[C].title})):null;return(0,o.createComponentVNode)(2,c.Window,{title:"Spellbook",theme:"wizard",width:950,height:540,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:N,textAlign:"center",width:g,height:V,fill:!0,title:i[C-1].title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{mr:57,disabled:1===C,icon:"arrow-left",content:"Previous Page",onClick:function(){return f(C-2)}}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"right",bold:!0,mt:-3.3,mr:1,children:C})],4),children:[!!i[C-1].locked&&(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[null!==i[C-1].blurb&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",bold:!0,height:"30px",children:i[C-1].blurb})}),!!i[C-1].component&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,v)})||(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:null==_?void 0:_.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mr:"Learn"===e.buyword?6.5:2,children:[e.cost," Points"]}),"Rituals"===e.cat&&(!!e.times&&(0,o.createComponentVNode)(2,a.Box,{ml:-104,mt:-2.2,children:["Cast ",e.times," Times."]})||(0,o.createComponentVNode)(2,a.Box,{ml:-110,mt:-2.2,children:"Not Casted Yet."}))||e.cooldown&&(0,o.createComponentVNode)(2,a.Box,{ml:-115,mt:-2.2,children:[e.cooldown,"s Cooldown"]})||(0,o.createComponentVNode)(2,a.Box,{ml:-120,mt:-2.2,children:"No Cooldown!"}),"Learn"===e.buyword&&(0,o.createComponentVNode)(2,a.Box,{mr:-9.5,mt:-3,children:(0,o.createComponentVNode)(2,a.Button,{icon:"tshirt",color:e.clothes_req?"bad":"green",tooltipPosition:"bottom-start",tooltip:e.clothes_req?"Requires wizard garb.":"Can be cast without wizard garb."})})],0),children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:e.desc}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:p>=e.cost?"green":"bad",disabled:p<e.cost,width:7,icon:l[e.buyword],content:e.buyword,onClick:function(){return d("purchase",{spellref:e.ref})}}),(0,o.createVNode)(1,"br"),!e.refundable&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No refunds."})||(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:7,icon:"arrow-left",content:"Refund",onClick:function(){return d("refund",{spellref:e.ref})}})]})]})})]},e)}))})})]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:b,textAlign:"center",width:g,height:V,fill:!0,title:i[C].title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{mr:0,icon:"arrow-right",disabled:9===C,content:"Next Page",onClick:function(){return f(C+2)}}),(0,o.createComponentVNode)(2,a.Box,{textAlign:"left",bold:!0,mt:-3.3,ml:-59.8,children:C+1})],4),children:[!!i[C].locked&&(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[null!==i[C].blurb&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",bold:!0,height:"30px",children:i[C].blurb})}),!!i[C].component&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,k)})||(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:null==y?void 0:y.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mr:"Learn"===e.buyword?6.5:2,children:[e.cost," Points"]}),"Rituals"===e.cat&&(!!e.times&&(0,o.createComponentVNode)(2,a.Box,{ml:-118,mt:-2.2,children:["Cast ",e.times," Time(s)."]})||(0,o.createComponentVNode)(2,a.Box,{ml:-118,mt:-2.2,children:"Not Casted Yet."}))||e.cooldown&&(0,o.createComponentVNode)(2,a.Box,{ml:-115,mt:-2.2,children:[e.cooldown,"s Cooldown"]})||(0,o.createComponentVNode)(2,a.Box,{ml:-120,mt:-2.2,children:"No Cooldown!"}),"Learn"===e.buyword&&(0,o.createComponentVNode)(2,a.Box,{mr:-9.5,mt:-3,children:(0,o.createComponentVNode)(2,a.Button,{icon:"tshirt",color:e.clothes_req?"bad":"green",tooltipPosition:"bottom-start",tooltip:e.clothes_req?"Requires wizard garb.":"Can be cast without wizard garb."})})],0),children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:e.desc}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,textAlign:"center",color:p>=e.cost?"green":"bad",disabled:p<e.cost,width:7,icon:l[e.buyword],content:e.buyword,onClick:function(){return d("purchase",{spellref:e.ref})}}),(0,o.createVNode)(1,"br"),!e.refundable&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No refunds."})||(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:7,icon:"arrow-left",content:"Refund",onClick:function(){return d("refund",{spellref:e.ref})}})]})]})})]},e)}))})})]})]})})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p/10,children:p+" points left to spend."})})})]})})})}},47466:function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(96323),r=n(21118),a=n(1397),c=n(31246),i=n(26949),l=n(2381);t.Stack=function(e,t){var n=(0,c.useBackend)(t),a=(n.act,n.data),s=a.amount,u=a.recipes,m=void 0===u?[]:u,p=(0,c.useLocalState)(t,"searchText",""),h=p[0],C=p[1],f=(0,r.createSearch)(h,(function(e){return e})),N=h.length>0&&Object.keys(m).filter(f).reduce((function(e,t){return e[t]=m[t],e}),{})||m,g=Math.max(94+26*Object.keys(m).length,250);return(0,o.createComponentVNode)(2,l.Window,{width:400,height:Math.min(g,500),children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Amount: "+s,buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,i.Input,{autoFocus:!0,value:h,onInput:function(e,t){return C(t)},mx:1})],4),children:0===N.length&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:"No recipes found."})||(0,o.createComponentVNode)(2,d,{recipes:N})})})})};var d=function m(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data,e.recipes);return(0,a.sortBy)((function(e){return e.toLowerCase()}))(Object.keys(r)).map((function(e){var t=r[e];return t.ref===undefined?(0,o.createComponentVNode)(2,i.Collapsible,{ml:1,color:"label",title:e,children:(0,o.createComponentVNode)(2,i.Box,{ml:1,children:(0,o.createComponentVNode)(2,m,{recipes:t})})}):(0,o.createComponentVNode)(2,u,{title:e,recipe:t})}))},s=function(e,t){for(var n=(0,c.useBackend)(t),r=n.act,a=(n.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(a.max_res_amount/a.res_amount)),s=[5,10,25],u=[],m=function(){var e=h[p];d>=e&&u.push((0,o.createComponentVNode)(2,i.Button,{content:e*a.res_amount+"x",onClick:function(){return r("make",{ref:a.ref,multiplier:e})}}))},p=0,h=s;p<h.length;p++)m();return-1===s.indexOf(d)&&u.push((0,o.createComponentVNode)(2,i.Button,{content:d*a.res_amount+"x",onClick:function(){return r("make",{ref:a.ref,multiplier:d})}})),u},u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.amount,l=e.recipe,d=e.title,u=l.res_amount,m=l.max_res_amount,p=l.req_amount,h=(l.ref,d);h+=" (",h+=p+" ",h+="sheet"+(p>1?"s":""),h+=")",u>1&&(h=u+"x "+h);var C=function(e,t){return e.req_amount>t?0:Math.floor(t/e.req_amount)}(l,a);return(0,o.createComponentVNode)(2,i.Box,{mb:1,children:(0,o.createComponentVNode)(2,i.Table,{children:(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,disabled:!C,icon:"wrench",content:h,onClick:function(){return r("make",{ref:l.ref,multiplier:1})}})}),m>1&&C>1&&(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,s,{recipe:l,maxMultiplier:C})})]})})})}},49029:function(e,t,n){"use strict";t.__esModule=!0,t.StackingConsoleContent=t.StackingConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.StackingConsole=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.machine);return(0,o.createComponentVNode)(2,c.Window,{width:320,height:340,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:l?(0,o.createComponentVNode)(2,i):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No connected stacking machine"})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.stacking_amount,d=i.contents,s=void 0===d?[]:d;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking Amount",children:l||"Unknown"})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Materials",children:s.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Release",onClick:function(){return c("release",{type:e.type})}}),children:e.amount||"Unknown"},e.type)}))}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No stored materials"})})],4)};t.StackingConsoleContent=i},21967:function(e,t,n){"use strict";t.__esModule=!0,t.StationAlertConsoleContent=t.StationAlertConsole=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,c.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var t="";return e.has_cameras?t=(0,o.createComponentVNode)(2,a.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return c("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Alarm Origin Lost."}):"",t],0,null,e.name)}))],0)},e.category)}))};t.StationAlertConsoleContent=i},78533:function(e,t,n){"use strict";t.__esModule=!0,t.StationBlueprintsContent=t.StationBlueprints=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.StationBlueprints=function(e,t){return(0,o.createComponentVNode)(2,c.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),l=(n.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,a.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};t.StationBlueprintsContent=i},50421:function(e,t,n){"use strict";t.__esModule=!0,t.StationTraitsPanel=void 0;var o,r=n(96323),a=n(1397),c=n(74593),i=n(31246),l=n(26949),d=n(2381);!function(e){e[e.SetupFutureStationTraits=0]="SetupFutureStationTraits",e[e.ViewStationTraits=1]="ViewStationTraits"}(o||(o={}));var s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,d=c.future_station_traits,s=(0,i.useLocalState)(t,"selectedFutureTrait",null),u=s[0],m=s[1],p=Object.fromEntries(c.valid_station_traits.map((function(e){return[e.name,e.path]}))),h=Object.keys(p);return h.sort(),(0,r.createComponentVNode)(2,l.Box,{children:[(0,r.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,r.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,l.Dropdown,{displayText:!u&&"Select trait to add...",onSelected:m,options:h,selected:u,width:"100%"})}),(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Button,{color:"green",icon:"plus",onClick:function(){if(u){var e=p[u],t=[e];if(d){var n,r=d.map((function(e){return e.path}));if(-1!==r.indexOf(e))return;t=(n=t).concat.apply(n,r)}o("setup_future_traits",{station_traits:t})}},children:"Add"})})]}),(0,r.createComponentVNode)(2,l.Divider),Array.isArray(d)?d.length>0?(0,r.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:d.map((function(e){return(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,r.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:e.name}),(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Button,{color:"red",icon:"times",onClick:function(){o("setup_future_traits",{station_traits:(0,a.filterMap)(d,(function(t){return t.path===e.path?undefined:t.path}))})},children:"Delete"})})]})},e.path)}))}):(0,r.createFragment)([(0,r.createComponentVNode)(2,l.Box,{children:"No station traits will run next round."}),(0,r.createComponentVNode)(2,l.Box,{children:(0,r.createComponentVNode)(2,l.Button,{color:"red",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){return o("clear_future_traits")},children:"Run Station Traits Normally"})})],4):(0,r.createFragment)([(0,r.createComponentVNode)(2,l.Box,{children:"No future station traits are planned."}),(0,r.createComponentVNode)(2,l.Box,{children:(0,r.createComponentVNode)(2,l.Button,{color:"red",icon:"times",onClick:function(){return o("setup_future_traits",{station_traits:[]})},children:"Prevent station traits from running next round"})})],4)]})},u=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data;return a.current_traits.length>0?(0,r.createComponentVNode)(2,l.Stack,{vertical:!0,fill:!0,children:a.current_traits.map((function(e){return(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Stack,{fill:!0,children:[(0,r.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:e.name}),(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Button.Confirm,{content:"Revert",color:"red",disabled:a.too_late_to_revert||!e.can_revert,tooltip:e.can_revert?a.too_late_to_revert&&"It's too late to revert station traits, the round has already started.":"This trait is not revertable.",icon:"times",onClick:function(){return o("revert",{ref:e.ref})}})})]})},e.ref)}))}):(0,r.createComponentVNode)(2,l.Box,{children:"There are no active station traits."})};t.StationTraitsPanel=function(e,t){var n,a=(0,i.useLocalState)(t,"station_traits_tab",o.ViewStationTraits),m=a[0],p=a[1];switch(m){case o.SetupFutureStationTraits:n=(0,r.createComponentVNode)(2,s);break;case o.ViewStationTraits:n=(0,r.createComponentVNode)(2,u);break;default:(0,c.exhaustiveCheck)(m)}return(0,r.createComponentVNode)(2,d.Window,{title:"Modify Station Traits",height:500,width:500,children:(0,r.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:[(0,r.createComponentVNode)(2,l.Tabs,{children:[(0,r.createComponentVNode)(2,l.Tabs.Tab,{icon:"eye",selected:m===o.ViewStationTraits,onClick:function(){return p(o.ViewStationTraits)},children:"View"}),(0,r.createComponentVNode)(2,l.Tabs.Tab,{icon:"edit",selected:m===o.SetupFutureStationTraits,onClick:function(){return p(o.SetupFutureStationTraits)},children:"Edit"})]}),(0,r.createComponentVNode)(2,l.Divider),n]})})}},37453:function(e,t,n){"use strict";t.__esModule=!0,t.StockExchange=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.StockExchange=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.stationName,m=s.balance,p=s.viewMode,h=(s.stocks,(0,o.createComponentVNode)(2,i));return"Full"===p?h=(0,o.createComponentVNode)(2,i):"Compressed"===p&&(h=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,c.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:u+" Stock Exchange",children:[(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("Welcome, "),(0,o.createVNode)(1,"b",null,[u,(0,o.createTextVNode)(" Cargo Department")],0),(0,o.createTextVNode)(" | ")],4),(0,o.createVNode)(1,"span",null,[(0,o.createVNode)(1,"b",null,"Credits:",16),(0,o.createTextVNode)(" "),m],0),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"View mode: ",16),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return d("stocks_cycle_view")}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,o.createComponentVNode)(2,a.Button,{icon:"list",content:"Check",onClick:function(){return d("stocks_check")}}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"This is WIP - Certain features may not be available.",16)]}),(0,o.createComponentVNode)(2,a.Section,{title:"Listed Stocks",children:h})]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.stocks,l=void 0===i?[]:i;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,o.createComponentVNode)(2,a.Divider),(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:"\xa0"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"ID"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Owned"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Avail"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),(0,o.createComponentVNode)(2,a.Divider),l.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:"\xa0"}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:e.ID}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:e.Name}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:e.Value}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:e.Owned}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:e.Avail}),(0,o.createComponentVNode)(2,a.Table.Cell,{color:"label",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:e.REF})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:e.REF})}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"A",onClick:function(){return c("stocks_archive",{share:e.REF})}}),(0,o.createComponentVNode)(2,a.Button,{content:"H",onClick:function(){return c("stocks_history",{share:e.REF})}}),(0,o.createVNode)(1,"br")]})]},e.ID)}))]})]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.stocks,l=void 0===i?[]:i;return(0,o.createComponentVNode)(2,a.Box,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"span",null,e.name,0)," ",(0,o.createVNode)(1,"span",null,e.ID,0),1===e.bankrupt&&(0,o.createVNode)(1,"b",null,"BANKRUPT",16,{color:"red"}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Unified shares",16)," ",e.Unification," ago.",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Current value per share:",16)," ",e.Value," | ",(0,o.createComponentVNode)(2,a.Button,{content:"View history",onClick:function(){return c("stocks_history",{share:e.REF})}}),(0,o.createVNode)(1,"br"),"You currently own ",(0,o.createVNode)(1,"b",null,e.Owned,0)," shares in this company.",(0,o.createVNode)(1,"br"),"There are ",e.Avail," purchasable shares on the market currently.",(0,o.createVNode)(1,"br"),1===e.bankrupt?(0,o.createVNode)(1,"span",null,"You cannot buy or sell shares in a bankrupt company!",16):(0,o.createVNode)(1,"span",null,[(0,o.createComponentVNode)(2,a.Button,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:e.REF})}}),(0,o.createTextVNode)(" | "),(0,o.createComponentVNode)(2,a.Button,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:e.REF})}})],4),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Prominent products:",16),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"i",null,e.Products,0),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:e.REF})}})," ",(0,o.createComponentVNode)(2,a.Divider)]},e.ID)}))})}},95747:function(e,t,n){"use strict";t.__esModule=!0,t.StripMenu=void 0;var o,r=n(96323),a=n(1397),c=n(39646),i=n(31246),l=n(26949),d=n(2381),s="50px",u=function(e){return e[0]+"/"+e[1]},m=function(e){var t=e.align,n=e.children;return(0,r.createComponentVNode)(2,l.Box,{style:{position:"relative",left:"left"===t?"2px":"-2px","text-align":t,"text-shadow":"1px 1px 1px #555"},children:n})},p={knot:{icon:"shoe-prints",text:"Knot"},untie:{icon:"shoe-prints",text:"Untie"},unknot:{icon:"shoe-prints",text:"Unknot"},enable_internals:{icon:"tg-air-tank",text:"Enable internals"},disable_internals:{icon:"tg-air-tank-slash",text:"Disable internals"},adjust_jumpsuit:{icon:"tshirt",text:"Adjust jumpsuit"}},h={eyes:{displayName:"eyewear",gridSpot:u([0,1]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:u([0,2]),image:"inventory-head.png"},neck:{displayName:"neckwear",gridSpot:u([1,1]),image:"inventory-neck.png"},mask:{displayName:"mask",gridSpot:u([1,2]),image:"inventory-mask.png"},corgi_collar:{displayName:"collar",gridSpot:u([1,2]),image:"inventory-collar.png"},ears:{displayName:"earwear",gridSpot:u([1,3]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:u([1,3]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:u([1,4])},legcuffs:{displayName:"legcuffs",gridSpot:u([1,5])},jumpsuit:{displayName:"uniform",gridSpot:u([2,1]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:u([2,2]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:u([2,3]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:u([2,4]),image:"inventory-hand_r.png",additionalComponent:(0,r.createComponentVNode)(2,m,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:u([2,5]),image:"inventory-hand_l.png",additionalComponent:(0,r.createComponentVNode)(2,m,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:u([3,2]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage item",gridSpot:u([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:u([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:u([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:u([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:u([4,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:u([4,5]),image:"inventory-pocket.png"}};!function(e){e[e.Completely=1]="Completely",e[e.Hidden=2]="Hidden"}(o||(o={}));t.StripMenu=function(e,t){for(var n=(0,i.useBackend)(t),m=n.act,C=n.data,f=new Map,N=0,g=Object.keys(C.items);N<g.length;N++){var V=g[N];f.set(h[V].gridSpot,V)}return(0,r.createComponentVNode)(2,d.Window,{title:"Stripping "+C.name,width:400,height:400,children:(0,r.createComponentVNode)(2,d.Window.Content,{children:(0,r.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:(0,a.range)(0,5).map((function(e){return(0,r.createComponentVNode)(2,l.Stack.Item,{children:(0,r.createComponentVNode)(2,l.Stack,{fill:!0,children:(0,a.range)(0,6).map((function(t){var n=u([e,t]),a=f.get(n);if(!a)return(0,r.createComponentVNode)(2,l.Stack.Item,{style:{width:s,height:s}},n);var i,d,N,g=C.items[a],V=h[a];return null===g?N=V.displayName:"name"in g?(g.alternate&&(i=p[g.alternate]),d=(0,r.createComponentVNode)(2,l.Box,{as:"img",src:"data:image/jpeg;base64,"+g.icon,height:"100%",width:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor","vertical-align":"middle"}}),N=g.name):"obscured"in g&&(d=(0,r.createComponentVNode)(2,l.Icon,{name:g.obscured===o.Completely?"ban":"eye-slash",size:3,ml:0,mt:1.3,style:{"text-align":"center",height:"100%",width:"100%"}}),N="obscured "+V.displayName),(0,r.createComponentVNode)(2,l.Stack.Item,{style:{width:s,height:s},children:(0,r.createComponentVNode)(2,l.Box,{style:{position:"relative",width:"100%",height:"100%"},children:[(0,r.createComponentVNode)(2,l.Button,{onClick:function(){m("use",{key:a})},fluid:!0,tooltip:N,style:{background:null!=g&&g.interacting?"hsl(39, 73%, 30%)":undefined,position:"relative",width:"100%",height:"100%",padding:0},children:[V.image&&(0,r.createComponentVNode)(2,l.Box,{as:"img",className:"centered-image",src:(0,c.resolveAsset)(V.image),opacity:.7}),(0,r.createComponentVNode)(2,l.Box,{style:{position:"relative"},children:d}),V.additionalComponent]}),i!==undefined&&(0,r.createComponentVNode)(2,l.Button,{onClick:function(){m("alt",{key:a})},tooltip:i.text,style:{background:"rgba(0, 0, 0, 0.6)",position:"absolute",bottom:0,right:0,"z-index":2},children:(0,r.createComponentVNode)(2,l.Icon,{name:i.icon})})]})},n)}))})},e)}))})})})}},32925:function(e,t,n){"use strict";t.__esModule=!0,t.SuitCycler=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SuitCycler=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),u=a.active,m=a.locked,p=a.uv_active,h=(0,o.createComponentVNode)(2,i);return p?h=(0,o.createComponentVNode)(2,l):m?h=(0,o.createComponentVNode)(2,d):u&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,c.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:h})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,h=i.uv_level,C=i.max_uv_level,f=i.can_repair,N=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return c("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return c("dispense",{item:"suit"})}})}),f&&N?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suit Damage",children:[N,(0,o.createComponentVNode)(2,a.Button,{icon:"wrench",content:"Repair",onClick:function(){return c("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,a.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return c("department",{department:e})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,a.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return c("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return c("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.NumberInput,{width:"50px",value:h,minValue:1,maxValue:C,stepPixelSize:30,onChange:function(e,t){return c("radlevel",{radlevel:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return c("uv")}})})]})})],4)},l=function(e,t){return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,a.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return c("lock")}})})]})},s=function(e,t){return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},14054:function(e,t,n){"use strict";t.__esModule=!0,t.SuitStorageUnit=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.SuitStorageUnit=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),u=a.panelopen,m=a.uv_active,p=a.broken,h=(0,o.createComponentVNode)(2,i);return u?h=(0,o.createComponentVNode)(2,l):m?h=(0,o.createComponentVNode)(2,d):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,c.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:h})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,h=i.mask,C=i.boots;return(0,o.createComponentVNode)(2,a.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,a.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return c("lock")}}),!l&&(0,o.createComponentVNode)(2,a.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return c("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,a.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,a.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,a.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,a.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return c("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"square":"square-o",content:h||"Empty",disabled:!h,onClick:function(){return c("dispense",{item:"mask"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Boots",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return c("dispense",{item:"boots"})}})})]})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return c("uv")}})]})},l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,a.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,a.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,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,a.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,t){return c("toggleUV")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,a.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return c("togglesafeties")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,a.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,t){return(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,t){return(0,o.createComponentVNode)(2,a.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},9267:function(e,t,n){"use strict";t.__esModule=!0,t.SupermatterMonitorContent=t.SupermatterMonitor=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(97622),i=n(31246),l=n(26949),d=n(84200),s=n(2381),u=function(e){return Math.log2(16+Math.max(0,e))-4};t.SupermatterMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:600,height:350,theme:"ntos",title:"Supermatter Monitor",children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,m)})})};var m=function(e,t){var n=(0,i.useBackend)(t),s=n.act,m=n.data,h=m.active,C=m.singlecrystal,f=m.SM_uid,N=m.SM_area_name,g=m.SM_integrity,V=m.SM_power,b=m.SM_ambienttemp,v=m.SM_ambientpressure,k=m.SM_moles,_=m.SM_bad_moles_amount;if(!h)return(0,o.createComponentVNode)(2,p);var y=(0,a.flow)([function(e){return e.filter((function(e){return e.amount>=.01}))},(0,r.sortBy)((function(e){return-e.amount}))])(m.gases||[]),w=Math.max.apply(Math,[1].concat(y.map((function(e){return e.amount}))));return(0,o.createComponentVNode)(2,l.Section,{title:f+". "+N,buttons:!C&&(0,o.createComponentVNode)(2,l.Button,{icon:"arrow-left",content:"Back",onClick:function(){return s("PRG_clear")}}),children:(0,o.createComponentVNode)(2,l.Stack,{children:[(0,o.createComponentVNode)(2,l.Stack.Item,{width:"270px",children:(0,o.createComponentVNode)(2,l.Section,{title:"Metrics",children:(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:g/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-Infinity,5e3],average:[5e3,7e3],bad:[7e3,Infinity]},children:(0,c.toFixed)(V)+" MeV/cm3"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:u(b),minValue:0,maxValue:u(1e4),ranges:{teal:[-Infinity,u(80)],good:[u(80),u(373)],average:[u(373),u(1e3)],bad:[u(1e3),Infinity]},children:(0,c.toFixed)(b)+" K"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Total Moles",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:u(k),minValue:0,maxValue:u(5e4),ranges:{good:[-Infinity,u(.75*_)],average:[u(.75*_),u(_)],bad:[u(_),Infinity]},children:(0,c.toFixed)(k)+" moles"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:u(v),minValue:0,maxValue:u(5e4),ranges:{good:[u(1),u(300)],average:[-Infinity,u(1e3)],bad:[u(1e3),+Infinity]},children:(0,c.toFixed)(v)+" kPa"})})]})})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,l.Section,{title:"Gases",children:(0,o.createComponentVNode)(2,l.LabeledList,{children:y.map((function(e){return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:(0,d.getGasLabel)(e.name),children:(0,o.createComponentVNode)(2,l.ProgressBar,{color:(0,d.getGasColor)(e.name),value:e.amount,minValue:0,maxValue:w,children:(0,c.toFixed)(e.amount,2)+"%"})},e.name)}))})})})]})})};t.SupermatterMonitorContent=m;var p=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.supermatters,c=void 0===a?[]:a;return(0,o.createComponentVNode)(2,l.Section,{title:"Detected Supermatters",buttons:(0,o.createComponentVNode)(2,l.Button,{icon:"sync",content:"Refresh",onClick:function(){return r("PRG_refresh")}}),children:(0,o.createComponentVNode)(2,l.Table,{children:c.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:e.uid+". "+e.area_name}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,width:"120px",children:(0,o.createComponentVNode)(2,l.ProgressBar,{value:e.integrity/100,ranges:{good:[.9,Infinity],average:[.5,.9],bad:[-Infinity,.5]}})}),(0,o.createComponentVNode)(2,l.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l.Button,{content:"Details",onClick:function(){return r("PRG_set",{target:e.uid})}})})]},e.uid)}))})})}},7077:function(e,t,n){"use strict";t.__esModule=!0,t.SupplyConsole=void 0;var o=n(96323),r=n(1397),a=n(1033),c=n(31246),i=n(26949),l=n(84645),d=n(2381),s=n(32416),u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>a,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};t.SupplyConsole=function(e,t){var n=(0,c.useBackend)(t);n.act,n.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,t){var n=(0,c.useBackend)(t),r=n.act,l=n.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,a.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data.order_auth,(0,c.useLocalState)(t,"tabIndex",0)),a=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===a,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===a,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===a,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===a,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===a,onClick:function(){return l(4)},children:"Export history"})]}),0===a?(0,o.createComponentVNode)(2,h):null,1===a?(0,o.createComponentVNode)(2,C,{mode:"Approved"}):null,2===a?(0,o.createComponentVNode)(2,C,{mode:"Requested"}):null,3===a?(0,o.createComponentVNode)(2,C,{mode:"All"}):null,4===a?(0,o.createComponentVNode)(2,f):null]})},h=function(e,t){var n=(0,c.useBackend)(t),a=n.act,l=n.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,h=(0,c.useLocalState)(t,"activeCategory",null),C=h[0],f=h[1],N=(0,s.flow)([(0,r.filter)((function(e){return e.group===C})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===C,onClick:function(){return f(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return a("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return a("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return a("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},C=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=e.mode,d=a.orders,s=a.order_auth,u=a.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(t+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(t){return t.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:t.field,"default":t.entry})}}):null,children:t.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},t)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},f=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=a.receipts,d=a.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:t.field,"default":t.entry})}}):null,children:t.entry},t.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(t,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:t.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:n+1,edit:"meow","default":t.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:n+1})}})],4):null,children:[t.quantity,"x -> ",t.value," points"]},n)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},t)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},43713:function(e,t,n){"use strict";t.__esModule=!0,t.SurgeryInitiator=void 0;var o=n(96323),r=n(1397),a=n(57890),c=n(31246),i=n(26949),l=n(28379),d=n(2381);function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=(0,r.sortBy)((function(e){return e.name})),m=function(e){var t,n;function r(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={selectedSurgeryIndex:0},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var u=r.prototype;return u.componentDidMount=function(){this.updateSelectedSurgeryIndexState()},u.componentDidUpdate=function(e){e.selected_zone!==this.props.selected_zone&&this.updateSelectedSurgeryIndexState()},u.updateSelectedSurgeryIndexState=function(){this.setState({selectedSurgeryIndex:this.findSelectedSurgeryAfter(-1)||0})},u.findSelectedSurgeryAfter=function(e){var t=this.props.surgeries.findIndex((function(t,n){return n>e&&!t.blocked}));return-1===t?undefined:t},u.findSelectedSurgeryBefore=function(e){for(var t=e;t>=0;t--)if(!this.props.surgeries[t].blocked)return t;return undefined},u.render=function(){var e=this,t=(0,c.useBackend)(this.context).act,n=this.props,r=n.selected_zone,s=n.surgeries,u=n.target_name;return(0,o.createComponentVNode)(2,d.Window,{width:400,height:350,title:"Surgery on "+u,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Stack,{fill:!0,height:"100%",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{width:"30%",children:(0,o.createComponentVNode)(2,l.BodyZoneSelector,{onClick:function(e){return t("change_zone",{new_zone:e})},selectedZone:r})}),(0,o.createComponentVNode)(2,i.Stack.Item,{width:"95%",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,height:"100%",children:s.map((function(n,r){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){t("start_surgery",{surgery_name:n.name})},disabled:n.blocked,selected:r===e.state.selectedSurgeryIndex,tooltip:n.blocked?"Their body is covered!":undefined,fluid:!0,children:n.name},n.name)}))})})]}),(0,o.createComponentVNode)(2,i.KeyListener,{onKeyDown:function(n){var o=n.code,r=s[e.state.selectedSurgeryIndex];switch(o){case a.KEY_DOWN:e.setState((function(t){return{selectedSurgeryIndex:e.findSelectedSurgeryAfter(t.selectedSurgeryIndex)||e.findSelectedSurgeryAfter(-1)||0}}));break;case a.KEY_UP:e.setState((function(t){var n,o;return{selectedSurgeryIndex:null!=(n=null!=(o=e.findSelectedSurgeryBefore(t.selectedSurgeryIndex-1))?o:e.findSelectedSurgeryBefore(e.props.surgeries.length-1))?n:0}}));break;case a.KEY_ENTER:r&&t("start_surgery",{surgery_name:r.name})}}})]})})},r}(o.Component);t.SurgeryInitiator=function(e,t){var n=(0,c.useBackend)(t).data;return(0,o.createComponentVNode)(2,m,{selected_zone:n.selected_zone,surgeries:u(n.surgeries),target_name:n.target_name})}},1535:function(e,t,n){"use strict";t.__esModule=!0,t.SyndPane=t.StatusPane=t.SyndContractorContent=t.SyndContractor=t.FakeTerminal=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var c=r.prototype;return c.tick=function(){var e=this.props,t=this.state;t.currentIndex<=e.allMessages.length?(this.setState((function(e){return{currentIndex:e.currentIndex+1}})),t.currentDisplay.push(e.allMessages[t.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))},c.componentDidMount=function(){var e=this,t=this.props.linesPerSecond,n=void 0===t?2.5:t;this.timer=setInterval((function(){return e.tick()}),1e3/n)},c.componentWillUnmount=function(){clearTimeout(this.timer)},c.render=function(){return(0,o.createComponentVNode)(2,a.Box,{m:1,children:this.state.currentDisplay.map((function(e){return(0,o.createFragment)([e,(0,o.createVNode)(1,"br")],0,e)}))})},r}(o.Component);t.FakeTerminal=l;t.SyndContractor=function(e,t){return(0,o.createComponentVNode)(2,c.NtosWindow,{width:500,height:600,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,t){var n=(0,r.useBackend)(t),c=n.data,i=n.act,d=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],s=!!c.error&&(0,o.createComponentVNode)(2,a.Modal,{backgroundColor:"red",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mr:2,children:(0,o.createComponentVNode)(2,a.Icon,{size:4,name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mr:2,grow:1,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{width:"260px",textAlign:"left",minHeight:"80px",children:c.error}),(0,o.createComponentVNode)(2,a.Button,{content:"Dismiss",onClick:function(){return i("PRG_clear_error")}})]})]})});return c.logged_in?c.logged_in&&c.first_load?(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.8)",minHeight:"525px",children:(0,o.createComponentVNode)(2,l,{allMessages:d,finishedTimeout:3e3,onFinished:function(){return i("PRG_set_first_load_finished")}})}):c.info_screen?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.8)",minHeight:"500px",children:(0,o.createComponentVNode)(2,l,{allMessages:["SyndTract v2.0","","We've identified potentional high-value targets that are","currently assigned to your mission area. They are believed","to hold valuable information which could be of immediate","importance to our organisation.","","Listed below are all of the contracts available to you. You","are to bring the specified target to the designated","drop-off, and contact us via this uplink. We will send","a specialised extraction unit to put the body into.","","We want targets alive - but we will sometimes pay slight","amounts if they're not, you just won't recieve the shown","bonus. You can redeem your payment through this uplink in","the form of raw telecrystals, which can be put into your","regular Syndicate uplink to purchase whatever you may need.","We provide you with these crystals the moment you send the","target up to us, which can be collected at anytime through","this system.","","Targets extracted will be ransomed back to the station once","their use to us is fulfilled, with us providing you a small","percentage cut. You may want to be mindful of them","identifying you when they come back. We provide you with","a standard contractor loadout, which will help cover your","identity."],linesPerSecond:10})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"CONTINUE",color:"transparent",textAlign:"center",onClick:function(){return i("PRG_toggle_info")}})],4):(0,o.createFragment)([s,(0,o.createComponentVNode)(2,u)],0):(0,o.createComponentVNode)(2,a.Section,{minHeight:"525px",children:[(0,o.createComponentVNode)(2,a.Box,{width:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Button,{content:"REGISTER USER",color:"transparent",onClick:function(){return i("PRG_login")}})}),!!c.error&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:c.error})]})};t.SyndContractorContent=d;var s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createFragment)([(0,o.createTextVNode)("Contractor Status"),(0,o.createComponentVNode)(2,a.Button,{content:"View Information Again",color:"transparent",mb:0,ml:1,onClick:function(){return c("PRG_toggle_info")}})],4),buttons:(0,o.createComponentVNode)(2,a.Box,{bold:!0,mr:1,children:[i.contract_rep," Rep"]}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:.85,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Available",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Claim",disabled:i.redeemable_tc<=0,onClick:function(){return c("PRG_redeem_TC")}}),children:i.redeemable_tc}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"TC Earned",children:i.earned_tc})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contracts Completed",children:i.contracts_completed}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Status",children:"ACTIVE"})]})})]})})};t.StatusPane=s;var u=function(e,t){var n=(0,r.useLocalState)(t,"tab",1),c=n[0],i=n[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,s,{state:e.state}),(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,onClick:function(){return i(1)},children:"Contracts"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,onClick:function(){return i(2)},children:"Hub"})]}),1===c&&(0,o.createComponentVNode)(2,m),2===c&&(0,o.createComponentVNode)(2,p)],0)};t.SyndPane=u;var m=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.contracts||[];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Available Contracts",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Call Extraction",disabled:!i.ongoing_contract||i.extraction_enroute,onClick:function(){return c("PRG_call_extraction")}}),children:l.map((function(e){if(!i.ongoing_contract||2===e.status){var t=e.status>1;if(!(e.status>=5))return(0,o.createComponentVNode)(2,a.Section,{title:e.target?e.target+" ("+e.target_rank+")":"Invalid Target",level:t?1:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:[e.payout," (+",e.payout_bonus,") TC"]}),(0,o.createComponentVNode)(2,a.Button,{content:t?"Abort":"Accept",disabled:e.extraction_enroute,color:t&&"bad",onClick:function(){return c("PRG_contract"+(t?"_abort":"-accept"),{contract_id:e.id})}})],4),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.message}),(0,o.createComponentVNode)(2,a.Grid.Column,{size:.5,children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,mb:1,children:"Dropoff Location:"}),(0,o.createComponentVNode)(2,a.Box,{children:e.dropoff})]})]})},e.target)}}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Dropoff Locator",textAlign:"center",opacity:i.ongoing_contract?100:0,children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,children:i.dropoff_direction})})],4)},p=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.contractor_hub_items||[];return(0,o.createComponentVNode)(2,a.Section,{children:l.map((function(e){var t=e.cost?e.cost+" Rep":"FREE",n=-1!==e.limited;return(0,o.createComponentVNode)(2,a.Section,{title:e.name+" - "+t,level:2,buttons:(0,o.createFragment)([n&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:1,children:[e.limited," remaining"]}),(0,o.createComponentVNode)(2,a.Button,{content:"Purchase",disabled:i.contract_rep<e.cost||n&&e.limited<=0,onClick:function(){return c("buy_hub",{item:e.name,cost:e.cost})}})],0),children:(0,o.createComponentVNode)(2,a.Table,{children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Icon,{fontSize:"60px",name:e.item_icon})}),(0,o.createComponentVNode)(2,a.Table.Cell,{verticalAlign:"top",children:e.desc})]})})},e.name)}))})}},5485:function(e,t,n){"use strict";t.__esModule=!0,t.TEGenerator=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(1033);t.TEGenerator=function(e,t){var n=(0,a.useBackend)(t).data,r=n.totalOutput,s=n.maxTotalOutput,u=n.thermalOutput,m=n.primary,p=n.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,c.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,t){var n=e.name,a=e.values,i=a.dir,d=a.output,s=a.flowCapacity,u=a.inletPressure,m=a.inletTemperature,p=a.outletPressure,h=a.outletTemperature;return(0,o.createComponentVNode)(2,c.Section,{title:n+" ("+i+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(h,2)," K"]})]})})}},25675:function(e,t,n){"use strict";t.__esModule=!0,t.TachyonArrayContent=t.TachyonArray=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TachyonArray=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data.records),d=void 0===l?[]:l;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:225,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:d.length?(0,o.createComponentVNode)(2,i):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Records"})})})};var i=function(e,t){var n,c=(0,r.useBackend)(t),i=c.act,l=c.data.records,d=void 0===l?[]:l,s=(0,r.useSharedState)(t,"record",null==(n=d[0])?void 0:n.name),u=s[0],m=s[1],p=d.find((function(e){return e.name===u}));return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"file",selected:e.name===u,onClick:function(){return m(e.name)},children:e.name},e.name)}))})}),p?(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Section,{level:"2",title:p.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return i("delete_record",{ref:p.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return i("print_record",{ref:p.ref})}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timestamp",children:p.timestamp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coordinates",children:p.coordinates}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Displacement",children:[p.displacement," seconds"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Epicenter Radius",children:[p.factual_epicenter_radius,p.theory_epicenter_radius&&" (Theoretical: "+p.theory_epicenter_radius+")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outer Radius",children:[p.factual_outer_radius,p.theory_outer_radius&&" (Theoretical: "+p.theory_outer_radius+")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shockwave Radius",children:[p.factual_shockwave_radius,p.theory_shockwave_radius&&" (Theoretical: "+p.theory_shockwave_radius+")"]})]})})}):(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Record Selected"})})]})})};t.TachyonArrayContent=i},53759:function(e,t,n){"use strict";t.__esModule=!0,t.Tank=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(1033),l=n(2381),d=function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")};t.Tank=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,s=(i.defaultReleasePressure,i.minReleasePressure,i.maxReleasePressure,i.leakPressure),u=i.fragmentPressure,m=i.tankPressure;i.releasePressure,i.connected;return(0,o.createComponentVNode)(2,l.Window,{width:275,height:120,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledControls,{children:[(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.RoundGauge,{value:m,minValue:0,maxValue:1.15*u,alertAfter:s,ranges:{good:[0,s],average:[s,u],bad:[u,1.15*u]},format:d,size:2})}),(0,o.createComponentVNode)(2,c.LabeledControls.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,onClick:function(){return r("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(e,t){return r("pressure",{pressure:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,onClick:function(){return r("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,onClick:function(){return r("pressure",{pressure:"reset"})}})]})]})})})})}},1257:function(e,t,n){"use strict";t.__esModule=!0,t.TankCompressor=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(42055);t.TankCompressor=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,c.Window,{title:"Tank Compressor",width:650,height:550,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.disk,d=i.storage,m=(0,r.useSharedState)(t,"compressorTab",1),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[1===p&&(0,o.createComponentVNode)(2,s),2===p&&(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:l?l+" ("+d+")":"No Disk Inserted",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:1===p?"clipboard-list":"times",onClick:function(){return h(1===p?2:1)},children:1===p?"Open Records":"Close Records"})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",fluid:!0,icon:"eject",content:"Eject Disk",disabled:!l,onClick:function(){return c("eject_disk")}})})]})})})]})},d=function(e,t){var n=e.text_content,c=e.icon_name,i=e.icon_break,l=e.color,d=e.active,s=(0,r.useBackend)(t);s.act,s.data;return(0,o.createComponentVNode)(2,a.Box,{bold:!0,height:"100%",fontSize:1.25,backgroundColor:d?l:"#999999",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",width:"100%",justify:"center",direction:"column",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:c,width:2}),i&&(0,o.createVNode)(1,"br"),n]})})})},s=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,s=l.tankPresent,u=l.leaking,m=l.lastPressure,p=l.leakPressure,h=l.fragmentPressure,C=l.tankPressure,f=l.maxTransfer,N=l.active,g=l.transferRate,V=l.ejectPressure,b=l.inputData,v=l.outputData,k=l.bufferData,_=s?C:m,y=!(!m||s);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Tank Integrity",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!s||C>V,onClick:function(){return c("eject_tank")},children:"Eject Tank"}),children:[!_&&(0,o.createComponentVNode)(2,a.Modal,{children:"No Pressure Detected"}),y&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"Tank destroyed. Displaying last recorded data."}),(0,o.createComponentVNode)(2,a.Stack,{fill:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.RoundGauge,{value:_,minValue:0,maxValue:1.15*h,alertAfter:p,ranges:{good:[0,p],average:[p,h],bad:[h,1.15*h]},size:5,textAlign:"center",format:function(e){return(e?e.toFixed(2):"-")+" kPa"}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,children:(0,o.createComponentVNode)(2,d,{text_content:"Tank Pressure Nominal",icon_name:"check",icon_break:!0,color:"green",active:_<p})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,children:(0,o.createComponentVNode)(2,d,{text_content:"Tank Integrity Faltering",icon_name:"exclamation-triangle",icon_break:!0,color:"yellow",active:_>=p})}),(0,o.createComponentVNode)(2,a.Stack.Item,{basis:0,grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d,{text_content:"Leak Hazard",icon_name:"biohazard",color:"red",active:_>=p&&_<h||u})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d,{text_content:"Explosive Hazard",icon_name:"bomb",color:"red",active:_>=h})})]})})]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Compressor Control",children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,maxValue:f,value:g,stepPixelSize:12.5,step:.5,unit:"L/S",onDrag:function(e,t){return c("change_rate",{target:t})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!s||!!u&&_<p,selected:N,icon:N?"power-off":"times",onClick:function(){return c("toggle_injection")},children:N?"On":"Off"})})]})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:b.name,children:[!b.total_moles&&(0,o.createComponentVNode)(2,a.Modal,{children:"No Gas Present"}),(0,o.createComponentVNode)(2,i.GasmixParser,{gasmix:b})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:v.name,children:[!v.inputData&&(0,o.createComponentVNode)(2,a.Modal,{children:"No Gas Present"}),(0,o.createComponentVNode)(2,i.GasmixParser,{gasmix:v})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:k.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation",tooltip:"The buffer gas mixture will be recorded when a tank is destroyed or ejected. The printed records will refer to this port for it's experimental data."}),children:[!k.total_moles&&(0,o.createComponentVNode)(2,a.Modal,{children:"No Gas Present"}),(0,o.createComponentVNode)(2,i.GasmixParser,{gasmix:k})]})})]})})],4)},u=function(e,t){var n,c=(0,r.useBackend)(t),i=c.act,l=c.data,d=l.records,s=void 0===d?[]:d,u=l.disk,m=(0,r.useSharedState)(t,"recordRef",null==(n=s[0])?void 0:n.ref),p=m[0],h=m[1],C=!!p&&s.find((function(e){return p===e.ref}));return 0===s.length?(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Records"})}):(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"file",selected:e.ref===p,onClick:function(){return h(e.ref)},children:e.name},e.name)}))})}),C?(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:C.name,buttons:[(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){i("delete_record",{ref:C.ref})}},"delete"),(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!u,tooltip:"Print the record selected. Requires a data disk.",tooltipPosition:"bottom",onClick:function(){i("print_record",{ref:C.ref})}},"print")],children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timestamp",children:C.timestamp}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:C.source}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Detected Gas",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(C.gases).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(C.gases[e]?C.gases[e].toFixed(2):"-")+" moles"},e)}))})})]})})}):(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No Record Selected"})})]})})}},99714:function(e,t,n){"use strict";t.__esModule=!0,t.TankDispenser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TankDispenser=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:275,height:103,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Plasma",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},90075:function(e,t,n){"use strict";t.__esModule=!0,t.TechwebContent=t.AppTechweb=t.Techweb=void 0;var o=n(96323),r=n(1397),a=n(32416),c=n(31246),i=n(26949),l=n(2381),d=n(14919),s=["data"];var u,m={},p=function(e){return m[e]},h=function(e){var t=(0,c.useBackend)(e),n=t.data,o=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,s);if(!u){for(var a=n.static_data.id_cache,i=0;i<a.length;i++)m[i+1]=a[i];u=function(e){for(var t={},n=function(){var n=a[o],c=e.static_data.node_cache[n],i=Object.keys(c.costs||{}).map((function(e){return{type:p(e),value:c.costs[e]}}));t[p(n)]=Object.assign({},c,{id:p(n),costs:i,prereq_ids:(0,r.map)(p)(c.prereq_ids||[]),design_ids:(0,r.map)(p)(c.design_ids||[]),unlock_ids:(0,r.map)(p)(c.unlock_ids||[]),required_experiments:c.required_experiments||[],discount_experiments:c.discount_experiments||[]})},o=0,a=Object.keys(e.static_data.node_cache);o<a.length;o++)n();for(var c={},i=0,l=Object.keys(e.static_data.design_cache);i<l.length;i++){var d=l[i],s=e.static_data.design_cache[d],u=s[0],m=s[1];c[p(d)]={name:u,"class":m.startsWith("design")?m:"design32x32 "+m}}return{node_cache:t,design_cache:c}}(n)}return Object.assign({data:Object.assign({},n,u)},o)},C={"General Research":"Gen. Res."},f=function(e){var t;return null!=(t=C[e])?t:e};t.Techweb=function(e,t){var n=h(t),r=n.act,a=n.data.locked;return(0,o.createComponentVNode)(2,l.Window,{width:640,height:735,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[!!a&&(0,o.createComponentVNode)(2,i.Modal,{width:"15em",align:"center",className:"Techweb__LockedModal",children:[(0,o.createVNode)(1,"div",null,(0,o.createVNode)(1,"b",null,"Console Locked",16),2),(0,o.createComponentVNode)(2,i.Button,{icon:"unlock",onClick:function(){return r("toggleLock")},children:"Unlock"})]}),(0,o.createComponentVNode)(2,N)]})})};t.AppTechweb=function(e,t){var n=h(t),r=n.act,a=n.data.locked;return(0,o.createComponentVNode)(2,l.NtosWindow,{width:640,height:735,children:(0,o.createComponentVNode)(2,l.NtosWindow.Content,{scrollable:!0,children:[!!a&&(0,o.createComponentVNode)(2,i.Modal,{width:"15em",align:"center",className:"Techweb__LockedModal",children:[(0,o.createVNode)(1,"div",null,(0,o.createVNode)(1,"b",null,"Console Locked",16),2),(0,o.createComponentVNode)(2,i.Button,{icon:"unlock",onClick:function(){return r("toggleLock")},children:"Unlock"})]}),(0,o.createComponentVNode)(2,N)]})})};var N=function(e,t){var n=h(t),r=n.act,a=n.data,l=a.points,d=a.points_last_tick,s=(a.web_org,a.sec_protocols),u=a.t_disk,m=a.d_disk,p=(a.locked,(0,c.useLocalState)(t,"techwebRoute",null)),C=(p[0],p[1]),f=(0,c.useLocalState)(t,"lastPoints",{});f[0],f[1];return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",className:"Techweb__Viewport",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__HeaderSection",children:(0,o.createComponentVNode)(2,i.Flex,{className:"Techweb__HeaderContent",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Box,{children:["Available points:",(0,o.createVNode)(1,"ul","Techweb__PointSummary",Object.keys(l).map((function(e){return(0,o.createVNode)(1,"li",null,[(0,o.createVNode)(1,"b",null,e,0),(0,o.createTextVNode)(": "),l[e],!!d[e]&&" (+"+d[e]+"/sec)"],0,null,e)})),0)]}),(0,o.createComponentVNode)(2,i.Box,{children:["Security protocols:",(0,o.createVNode)(1,"span","Techweb__SecProtocol "+(!!s&&"engaged"),s?"Engaged":"Disengaged",0)]})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,onClick:function(){return r("toggleLock")},icon:"lock",children:"Lock Console"}),m&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,onClick:function(){return C({route:"disk",diskType:"design"})},children:"Design Disk Inserted"})}),u&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,onClick:function(){return C({route:"disk",diskType:"tech"})},children:"Tech Disk Inserted"})})]})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__RouterContent",height:"100%",children:(0,o.createComponentVNode)(2,g)})]})};t.TechwebContent=N;var g=function(e,t){var n=(0,c.useLocalState)(t,"techwebRoute",null)[0],r=null==n?void 0:n.route,a="details"===r&&b||"disk"===r&&v||V;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a,Object.assign({},n)))},V=function(e,t){var n=h(t),a=(n.act,n.data),l=a.nodes,d=a.node_cache,s=a.design_cache,u=(0,c.useLocalState)(t,"overviewTabIndex",1),m=u[0],p=u[1],C=(0,c.useLocalState)(t,"searchText"),f=C[0],N=C[1],g=f&&f.trim().length>1,V=l;V=g?V.filter((function(e){var t=d[e.id];return t.name.toLowerCase().includes(f)||t.description.toLowerCase().includes(f)||t.design_ids.some((function(e){return s[e].name.toLowerCase().includes(f)}))})):(0,r.sortBy)((function(e){return d[e.id].name}))(m<2?l.filter((function(e){return e.tier===m})):l.filter((function(e){return e.tier>=m})));var b=function(e){p(e),N(null)};return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",className:"Techweb__HeaderSectionTabs",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",className:"Techweb__HeaderTabTitle",children:"Web View"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!g&&0===m,onClick:function(){return b(0)},children:"Researched"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!g&&1===m,onClick:function(){return b(1)},children:"Available"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!g&&2===m,onClick:function(){return b(2)},children:"Future"}),!!g&&(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!0,children:"Search Results"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",children:(0,o.createComponentVNode)(2,i.Input,{value:f,onInput:function(e,t){return N(t)},placeholder:"Search..."})})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__OverviewNodes",height:"100%",children:V.map((function(e){return(0,o.createComponentVNode)(2,w,{node:e},e.id)}))})]})},b=function(e,t){var n=h(t),r=(n.act,n.data.nodes),a=e.selectedNode,c=a&&r.find((function(e){return e.id===a}));return(0,o.createComponentVNode)(2,y,{node:c})},v=function(e,t){var n=h(t),r=n.act,a=n.data,l=e.diskType,d=a.t_disk,s=a.d_disk,u=(0,c.useLocalState)(t,"techwebRoute",null),m=(u[0],u[1]);if("design"===l&&!s||"tech"===l&&!d)return null;var p="design"===l&&k||_;return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",className:"Techweb__HeaderSectionTabs",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",className:"Techweb__HeaderTabTitle",children:[l.charAt(0).toUpperCase()+l.slice(1)," Disk"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Tabs,{children:(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!0,children:"Stored Data"})})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",children:["tech"===l&&(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return r("loadTech")},children:"Web \u2192 Disk"}),(0,o.createComponentVNode)(2,i.Button,{icon:"upload",onClick:function(){return r("uploadDisk",{type:l})},children:"Disk \u2192 Web"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",onClick:function(){return r("eraseDisk",{type:l})},children:"Erase"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){r("ejectDisk",{type:l}),m(null)},children:"Eject"}),(0,o.createComponentVNode)(2,i.Button,{icon:"home",onClick:function(){return m(null)},children:"Home"})]})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,className:"Techweb__OverviewNodes",children:(0,o.createComponentVNode)(2,p)})]})},k=function(e,t){var n=h(t),l=n.act,d=n.data,s=d.design_cache,u=d.researched_designs,m=d.d_disk.blueprints,p=(0,c.useLocalState)(t,"designDiskSelect",null),C=p[0],f=p[1],N=(0,c.useLocalState)(t,"showDesignModal",-1),g=N[0],V=N[1],b=Object.keys(u),v=(0,a.flow)([(0,r.filter)((function(e){return"error"!==e.toLowerCase()})),(0,r.map)((function(e,t){return s[e].name+" ["+t+"]"})),(0,r.sortBy)((function(e){return e}))])(b);return(0,o.createFragment)([g>=0&&(0,o.createComponentVNode)(2,i.Modal,{width:"20em",children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",className:"Techweb__DesignModal",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{children:"Select a design to save..."}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Dropdown,{width:"100%",options:v,onSelected:function(e){var t=parseInt(e.split("[").pop().split("]")[0],10);f(b[t])}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return V(-1)},children:"Cancel"}),(0,o.createComponentVNode)(2,i.Button,{disabled:null===C,onClick:function(){l("writeDesign",{slot:g+1,selectedDesign:C}),V(-1),f(null)},children:"Select"})]})]})}),m.map((function(e,t){return(0,o.createComponentVNode)(2,i.Section,{title:"Slot "+(t+1),buttons:(0,o.createFragment)([null!==e&&(0,o.createComponentVNode)(2,i.Button,{icon:"upload",onClick:function(){return l("uploadDesignSlot",{slot:t+1})},children:"Upload Design to Web"}),(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return V(t)},children:null!==e?"Overwrite Slot":"Load Design to Slot"}),null!==e&&(0,o.createComponentVNode)(2,i.Button,{icon:"trash",onClick:function(){return l("clearDesignSlot",{slot:t+1})},children:"Clear Slot"})],0),children:null===e?"Empty":(0,o.createFragment)([(0,o.createTextVNode)("Contains the design for "),(0,o.createVNode)(1,"b",null,s[e].name,0),(0,o.createTextVNode)(":"),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"span",s[e]["class"]+" Techweb__DesignIcon")],4)},t)}))],0)},_=function(e,t){var n=h(t),r=(n.act,n.data.t_disk.stored_research);return Object.keys(r).map((function(e){return{id:e}})).map((function(e){return(0,o.createComponentVNode)(2,w,{nocontrols:!0,node:e},e.id)}))},y=function(e,t){var n=h(t),r=(n.act,n.data),a=r.nodes,l=r.node_cache,d=e.node,s=l[d.id],u=s.prereq_ids,m=s.unlock_ids,p=(0,c.useLocalState)(t,"nodeDetailTabIndex",0),C=p[0],f=p[1],N=(0,c.useLocalState)(t,"techwebRoute",null),g=(N[0],N[1]),V=a.filter((function(e){return u.includes(e.id)})),b=u.filter((function(e){var t;return 0===(null==(t=a.find((function(t){return t.id===e})))?void 0:t.tier)})).length,v=a.filter((function(e){return m.includes(e.id)}));return(0,o.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{shrink:1,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",className:"Techweb__HeaderSectionTabs",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",className:"Techweb__HeaderTabTitle",children:"Node"}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===C,onClick:function(){return f(0)},children:["Required (",b,"/",V.length,")"]}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===C,disabled:0===v.length,onClick:function(){return f(1)},children:["Unlocks (",v.length,")"]})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{align:"center",children:(0,o.createComponentVNode)(2,i.Button,{icon:"home",onClick:function(){return g(null)},children:"Home"})})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__OverviewNodes",shrink:0,children:[(0,o.createComponentVNode)(2,w,{node:d,nodetails:!0}),(0,o.createComponentVNode)(2,i.Divider)]}),0===C&&(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__OverviewNodes",grow:1,children:V.map((function(e){return(0,o.createComponentVNode)(2,w,{node:e},e.id)}))}),1===C&&(0,o.createComponentVNode)(2,i.Flex.Item,{className:"Techweb__OverviewNodes",grow:1,children:v.map((function(e){return(0,o.createComponentVNode)(2,w,{node:e},e.id)}))})]})},w=function(e,t){var n=h(t),r=n.act,a=n.data,l=a.node_cache,s=a.design_cache,u=a.experiments,m=a.points,p=a.nodes,C=e.node,N=e.nodetails,g=e.nocontrols,V=C.id,b=C.can_unlock,v=C.tier,k=l[V],_=k.name,y=k.description,w=k.costs,S=k.design_ids,B=k.prereq_ids,I=k.required_experiments,L=k.discount_experiments,T=(0,c.useLocalState)(t,"techwebRoute",null),A=(T[0],T[1]),D=(0,c.useLocalState)(t,"nodeDetailTabIndex",0),M=(D[0],D[1]),E=I.filter((function(e){var t;return null==(t=u[e])?void 0:t.completed})).length,P=(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:E/I.length,children:["Experiments (",E,"/",I.length,")"]}),F=B.filter((function(e){var t;return 0===(null==(t=p.find((function(t){return t.id===e})))?void 0:t.tier)})).length,O=(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:F/B.length,children:["Tech (",F,"/",B.length,")"]}),R=Object.keys(L).filter((function(e){var t;return null==(t=u[e])?void 0:t.completed})).reduce((function(e,t){return e+L[t]}),0);return(0,o.createComponentVNode)(2,i.Section,{className:"Techweb__NodeContainer",title:_,buttons:!g&&(0,o.createFragment)([!N&&(0,o.createComponentVNode)(2,i.Button,{icon:"tasks",onClick:function(){A({route:"details",selectedNode:V}),M(0)},children:"Details"}),v>0&&(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",disabled:!b||v>1,onClick:function(){return r("researchNode",{node_id:V})},children:"Research"})],0),children:[0!==v&&(0,o.createComponentVNode)(2,i.Flex,{className:"Techweb__NodeProgress",children:[w.map((function(e){var t=Math.max(0,e.value-R),n=Math.min(t,m[e.type])||0;return(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:0===t?1:Math.min(1,(m[e.type]||0)/t),children:[f(e.type)," (",n,"/",t,")"]})},e.type)})),B.length>0&&(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:O}),I.length>0&&(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:P})]}),(0,o.createComponentVNode)(2,i.Box,{className:"Techweb__NodeDescription",mb:2,children:y}),(0,o.createComponentVNode)(2,i.Box,{className:"Techweb__NodeUnlockedDesigns",mb:2,children:S.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{className:s[e]["class"]+" Techweb__DesignIcon",tooltip:s[e].name,tooltipPosition:t%15<7?"right":"left"},V)}))}),I.length>0&&(0,o.createComponentVNode)(2,i.Collapsible,{className:"Techweb__NodeExperimentsRequired",title:"Required Experiments",children:I.map((function(e){var t=u[e];return null===t||t===undefined?(0,o.createComponentVNode)(2,x):(0,o.createComponentVNode)(2,d.Experiment,{exp:t},t)}))}),Object.keys(L).length>0&&(0,o.createComponentVNode)(2,i.Collapsible,{className:"TechwebNodeExperimentsRequired",title:"Discount-Eligible Experiments",children:Object.keys(L).map((function(e){var t=u[e];return null===t||t===undefined?(0,o.createComponentVNode)(2,x):(0,o.createComponentVNode)(2,d.Experiment,{exp:t,children:(0,o.createComponentVNode)(2,i.Box,{className:"Techweb__ExperimentDiscount",children:["Provides a discount of ",L[e]," points to all required point pools."]})},t)}))})]})},x=function(e,t){return(0,o.createComponentVNode)(2,i.Box,{m:1,className:"ExperimentConfigure__ExperimentPanel",children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,backgroundColor:"#40628a",className:"ExperimentConfigure__ExperimentName",disabled:!0,children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"rgba(0, 0, 0, 0.6)",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"lock"}),"Undiscovered Experiment"]}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"rgba(0, 0, 0, 0.5)",children:"???"})]})}),(0,o.createComponentVNode)(2,i.Box,{className:"ExperimentConfigure__ExperimentContent",children:"This experiment has not been discovered yet, continue researching nodes in the tree to discover the contents of this experiment."})]})}},58031:function(e,t,n){"use strict";t.__esModule=!0,t.Telecomms=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=n(2381);t.Telecomms=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.type,u=d.minfreq,m=d.maxfreq,p=d.frequency,h=d.multitool,C=d.multibuff,f=d.toggled,N=d.id,g=d.network,V=d.prefab,b=d.changefrequency,v=(d.currfrequency,d.broadcasting),k=d.receiving,_=d.linked||[],y=d.frequencies||[];return(0,o.createComponentVNode)(2,i.Window,{title:N,width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Use a multitool to make changes."}),(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"On":"Off",color:f?"good":"bad",disabled:!h,onClick:function(){return l("toggle")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Identification String",buttons:(0,o.createComponentVNode)(2,a.Input,{width:13,value:N,onChange:function(e,t){return l("id",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",buttons:(0,o.createComponentVNode)(2,a.Input,{width:10,value:g,defaultValue:"tcommsat",onChange:function(e,t){return l("network",{value:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prefabrication",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:V?"check":"times",content:V?"True":"False",disabled:"True"})})]})}),!(!f||!h)&&(0,o.createComponentVNode)(2,a.Box,{children:["bus"===s&&(0,o.createComponentVNode)(2,a.Section,{title:"Bus",children:(0,o.createComponentVNode)(2,a.Table,{children:(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Change Frequency:"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:c.RADIO_CHANNELS.find((function(e){return e.freq===b}))&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:c.RADIO_CHANNELS.find((function(e){return e.freq===b})).color,ml:2,children:["[",c.RADIO_CHANNELS.find((function(e){return e.freq===b})).name,"]"]})}),(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:u/10,maxValue:m/10,value:b/10,onChange:function(e,t){return l("change_freq",{value:t})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",disabled:0===b,onClick:function(){return l("change_freq",{value:10001})}})]})})}),"relay"===s&&(0,o.createComponentVNode)(2,a.Section,{title:"Relay",children:[(0,o.createComponentVNode)(2,a.Button,{content:"Receiving",icon:k?"volume-up":"volume-mute",color:k?"":"bad",onClick:function(){return l("receive")}}),(0,o.createComponentVNode)(2,a.Button,{content:"Broadcasting",icon:v?"microphone":"microphone-slash",color:v?"":"bad",onClick:function(){return l("broadcast")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Linked Network Entities",children:(0,o.createComponentVNode)(2,a.Table,{children:_.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:[e.index,". ",e.id," (",e.name,")"]}),!!h&&(0,o.createComponentVNode)(2,a.Button,{icon:"times",disabled:!h,onClick:function(){return l("unlink",{value:e.index})}})]},e.id)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Filtered Frequencies",children:(0,o.createComponentVNode)(2,a.Table,{children:[y.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{bold:!0,children:[e/10," kHz"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:c.RADIO_CHANNELS.find((function(t){return t.freq===e}))&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:c.RADIO_CHANNELS.find((function(t){return t.freq===e})).color,ml:2,children:["[",c.RADIO_CHANNELS.find((function(t){return t.freq===e})).name," ]"]})}),(0,o.createComponentVNode)(2,a.Table.Cell),!!h&&(0,o.createComponentVNode)(2,a.Button,{icon:"times",disabled:!h,onClick:function(){return l("delete",{value:e})}})]},y.i)})),!!h&&(0,o.createComponentVNode)(2,a.Table.Row,{className:"candystripe",collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Add Frequency"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:c.RADIO_CHANNELS.find((function(e){return e.freq===p}))&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:c.RADIO_CHANNELS.find((function(e){return e.freq===p})).color,ml:2,children:["[",c.RADIO_CHANNELS.find((function(e){return e.freq===p})).name,"]"]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:u/10,maxValue:m/10,value:p/10,onChange:function(e,t){return l("tempfreq",{value:t})}})}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",disabled:!h,onClick:function(){return l("freq")}})]})]})}),!!h&&(0,o.createComponentVNode)(2,a.Section,{title:"Multitool",children:[!!C&&(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:["Current Buffer: ",C]}),(0,o.createComponentVNode)(2,a.LabeledControls,{m:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Machine",disabled:!h,onClick:function(){return l("buffer")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Link",disabled:!C,onClick:function(){return l("link")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Flush",disabled:!C,onClick:function(){return l("flush")}})]})]})]})]})})}},21971:function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsInteraction=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(97622),i=n(84200),l=n(26949);t.TelecommsInteraction=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.notice,m=void 0===u?"":u,p=s.multitool,h=void 0!==p&&p,C=s.multitool_buf,f=void 0===C?null:C,N=s.machine,g=void 0===N?null:N,V=s.links,b=void 0===V?[]:V,v=s.freq_listening,k=void 0===v?[]:v,_=g.power,y=void 0!==_&&_,w=g.id,x=void 0===w?"NULL":w,S=g.network,B=g.prefab,I=void 0!==B&&B,L=g.hidden,T=void 0!==L&&L,A=g.isrelay,D=void 0!==A&&A,M=g.isbus,E=void 0!==M&&M;return(0,o.createComponentVNode)(2,r.Window,{resizable:!0,width:520,height:500,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,children:(0,o.createFragment)([!!m&&(0,o.createComponentVNode)(2,l.NoticeBox,{children:m}),(0,o.createComponentVNode)(2,l.Section,{title:"Network Access",children:[(0,o.createComponentVNode)(2,l.LabeledList,{children:[(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Power Status",children:(0,o.createComponentVNode)(2,l.Button,{icon:y?"power-off":"times",color:y?"good":"bad",onClick:function(){return d("toggle")},children:y?"On":"Off"})}),y?(0,o.createFragment)([(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,l.Input,{value:x,width:"150px",maxLength:255,onChange:function(e,t){return d("machine",{id:t})}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,l.Input,{value:S,width:"150px",maxLength:15,onChange:function(e,t){return d("machine",{network:t})}})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Prefabrication",color:y?"good":"bad",children:I?"TRUE":"FALSE"}),!!D&&(0,o.createFragment)([(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,l.Button,{icon:g.broadcast?"check":"times",color:g.broadcast?"good":"bad",onClick:function(){return d("relay",{broadcast:!0})},children:g.broadcast?"YES":"NO"})}),(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Receiving",children:(0,o.createComponentVNode)(2,l.Button,{icon:g.receiving?"check":"times",color:g.receiving?"good":"bad",onClick:function(){return d("relay",{receiving:!0})},children:g.receiving?"YES":"NO"})})],4),!!E&&(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Change Signal Frequency",children:[(0,o.createComponentVNode)(2,l.Button,{icon:g.chang_frequency?"power-off":"times",color:g.chang_frequency?"good":"bad",onClick:function(){return d("frequency",{toggle:!0})},children:g.chang_frequency?"Enabled":"Disabled"}),!!g.chang_frequency&&(0,o.createComponentVNode)(2,l.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:120.1,maxValue:159.9,value:g.chang_freq_value/10,format:function(e){return(0,c.toFixed)(e,1)},onChange:function(e,t){return d("frequency",{adjust:t})}})]}),!!T&&(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Shadow Link",children:"ACTIVE"}),!!h&&(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:"Multitool buffer",buttons:f?(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("multitool",{Link:!0})},children:"Link"}),(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("multitool",{Flush:!0})},children:"Flush"})],4):(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("multitool",{Add:!0})},children:"Add Machine"}),children:!!f&&f.name+" ("+f.id+")"})],0):""]}),y?(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Section,{title:"Linked Network Entities",level:2,children:(0,o.createComponentVNode)(2,l.LabeledList,{children:b.map((function(e){return(0,o.createComponentVNode)(2,l.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("unlink",{value:e.ref})},children:"Remove"}),children:e.name+" ("+e.id+")"},e.name)}))})}),(0,o.createComponentVNode)(2,l.Section,{title:"Filtering Frequencies",level:2,children:[(0,o.createComponentVNode)(2,l.Button,{onClick:function(){return d("freq",{add:!0})},children:"Add Filter"}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),k&&k.length?k.map((function(e){var t=i.RADIO_CHANNELS.find((function(t){return t.freq===e}));return(0,o.createComponentVNode)(2,l.Button,{icon:"times",onClick:function(){return d("freq",{remove:e})},children:t?(0,o.createVNode)(1,"span",null,e+" ("+t.name+")",0,{style:"color: "+t.color}):e},e)})):""]})],4):""]})],0)})})}},23248:function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsLogBrowser=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.TelecommsLogBrowser=function(e,t){var n=(0,a.useBackend)(t),r=n.act,s=n.data,u=s.universal_translate,m=s.network,p=s.temp,h=s.servers,C=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===h.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),C?(0,o.createComponentVNode)(2,d,{network:m,server:C,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:h})]})})};var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=(n.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,c.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,c.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=(n.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,c.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,c.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},2610:function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsMachineBrowser=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TelecommsMachineBrowser=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,c.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,a.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=(n.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,a.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return c("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,a.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return c("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},19524:function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsMonitor=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(84200),i=n(26949);t.TelecommsMonitor=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.notice,u=d.network,m=void 0===u?"NULL":u,p=d.servers,h=d.selected,C=void 0===h?null:h,f=d.selected_servers,N=(0,a.useSharedState)(t,"tab","network-entity"),g=N[0],V=N[1],b=C&&C.status;return(0,o.createComponentVNode)(2,r.Window,{theme:"ntos",resizable:!0,width:575,height:400,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,children:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s}),(0,o.createComponentVNode)(2,i.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,i.Input,{value:m,width:"150px",maxLength:15,onChange:function(e,t){return l("network",{value:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"minus-circle",disabled:!p.length||!!C,onClick:function(){return l("release")},children:"Flush Buffer"}),(0,o.createComponentVNode)(2,i.Button,{icon:"sync",disabled:C,onClick:function(){return l("probe")},children:"Probe Network"})],4),children:C?f?f.length+" currently probed and buffered":"Connected devices is empty!":p?p.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Selected Entity",buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Disconnect",icon:"minus-circle",disabled:!C,onClick:function(){return l("mainmenu")}}),children:C?C.name+" ("+C.id+")":"None (None)"})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:"network-entity"===g,icon:"server",onClick:function(){return V("network-entity")},children:"Network Entities"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{disabled:!C,icon:"tasks",selected:"network-stat"===g,onClick:function(){return V("network-stat")},children:"Entity Status"})]}),"network-stat"===g&&C?(0,o.createComponentVNode)(2,i.Section,{title:"Network Entity Status",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:b?"good":"bad",children:b?"Running":"Server down!"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network Traffic",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:C.traffic,ranges:{good:[-Infinity,.3*C.netspeed],average:[.31*C.netspeed,.7*C.traffic],bad:[.71*C.netspeed,Infinity]},children:b?C.traffic<=1024?Math.max(C.traffic,0)+" Gigabytes":Math.round(C.traffic/1024)+" Terrabytes":"0 Gigabytes"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Network Speed",children:b?C.netspeed<=1024?C.netspeed+" Gigabytes/second":Math.round(C.netspeed/1024)+" Terrabytes/second":"0 Gigabytes/second"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Multi-Z Link",color:b&&C.long_range_link?"good":"bad",children:b&&C.long_range_link?"true":"false"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Frequency Listening",children:(0,o.createComponentVNode)(2,i.Box,{children:b&&C.freq_listening.map((function(e){var t=c.RADIO_CHANNELS.find((function(t){return t.freq===e}));return t?(0,o.createComponentVNode)(2,i.Box,{as:"span",color:t.color,children:"["+e+"] ("+t.name+") "}):"["+e+"] "}))})})]}),(0,o.createComponentVNode)(2,i.Section,{title:"Servers Linked",level:3,children:b&&f?(0,o.createComponentVNode)(2,i.LabeledList,{children:f.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Connect",onClick:function(){return l("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):b?"Buffer is empty!":"Server currently down! Cannot fetch the buffer list!"})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Detected Network Entities",children:p&&p.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.ref,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Connect",selected:C&&e.ref===C.ref,onClick:function(){return l("viewmachine",{value:e.id})}}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"})],0)})})}},18895:function(e,t,n){"use strict";t.__esModule=!0,t.TelecommsMultitoolMenu=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(98194),i=n(2381);t.TelecommsMultitoolMenu=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data),s=(a.temp,a.on,a.id,a.network,a.autolinkers,a.shadowlink,a.options);a.linked,a.filter,a.multitool,a.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),h=i.filter,C=i.multitool,f=i.multitool_buffer;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return c("toggle")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d,onClick:function(){return c("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:s,onClick:function(){return c("network")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,C?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Multitool Buffer",children:[f?(0,o.createFragment)([f.name,(0,o.createTextVNode)("("),f.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,a.Button,{color:f?"green":null,content:f?"Link ("+f.id+")":"Add Machine",icon:f?"link":"plus",onClick:f?function(){return c("link")}:function(){return c("buffer")}}),f?(0,o.createComponentVNode)(2,a.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return c("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,a.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return c("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Filtering Frequencies",mt:1,children:[h.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return c("delete",{"delete":e.freq})}},e.index)})),h&&0!==h.length?null:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No filters."})]})]})},d=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=(n.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,h=i.use_change_freq,C=i.change_freq,f=i.use_broadcast_range,N=i.use_receive_range,g=i.range,V=i.minRange,b=i.maxRange;return l||d||s||h||f||N?(0,o.createComponentVNode)(2,a.Section,{title:"Options",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return c("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return c("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return c("receive")}})}):null,h?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,a.Button,{icon:"wave-square",selected:!!C,content:C?"Yes ("+C+")":"No",onClick:function(){return c("change_freq")}})}):null,f||N?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(f?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:g,minValue:V,maxValue:b,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,t){return c("range",{range:t})}})}):null]})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Options Found"})}},17648:function(e,t,n){"use strict";t.__esModule=!0,t.CustomMsg=t.TeleLogs=t.TelecommsPDALog=void 0;var o=n(96323),r=n(2381),a=n(31246),c=n(26949);t.TelecommsPDALog=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.network,m=s.notice,p=void 0===m?"":m,h=s.authenticated,C=void 0!==h&&h,f=s.canhack,N=void 0!==f&&f,g=s.silicon,V=void 0!==g&&g,b=s.hack_status,v=void 0===b?null:b,k=s.selected,_=void 0===k?null:k,y=s.servers,w=void 0===y?[]:y,x=(0,a.useSharedState)(t,"tab","pdalog-servers"),S=x[0],B=x[1],I=_&&_.status&&C;return v?(0,o.createComponentVNode)(2,r.Window,{theme:"ntos",resizable:!0,width:727,height:510,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{children:[(0,o.createVNode)(1,"b",null,(0,o.createVNode)(1,"h3",null,"INTRN@L ACfES VIOL\ufffdTIa\u2588 DEtE\u20a1TED! Ree3ARcinG A\u2588 BAaKUP RdST\ufffdRE PbINT [0xcff32ca] - PLfASE aAIT",0),2),(0,o.createVNode)(1,"i",null,V&&!v.emagging?(0,o.createFragment)([(0,o.createTextVNode)("Brute-forcing for server key. "),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("It will take 20 seconds for every character that the password has."),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("In the meantime, this console can reveal your true intentions if you let someone access it. Make sure no humans enter the room during that time.")],4):(0,o.createFragment)([(0,o.createTextVNode)("QnJ1dGUtZm9yY2luZyBmb3Igc2VydmVyIGtleS48YnI+IEl0IHdpbG"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("wgdGFrZSAyMCBzZWNvbmRzIGZvciBldmVyeSBjaGFyYWN0ZXIgdGhh"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("dCB0aGUgcGFzc3dvcmQgaGFzLiBJbiB0aGUgbWVhbnRpbWUsIHRoaX"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("MgY29uc29sZSBjYW4gcmV2ZWFsIHlvdXIgdHJ1ZSBpbnRlbnRpb25z"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("IGlmIHlvdSBsZXQgc29tZW9uZSBhY2Nlc3MgaXQuIE1ha2Ugc3VyZS"),(0,o.createVNode)(1,"br"),(0,o.createTextVNode)("BubyBodW1hbnMgZW50ZXIgdGhlIHJvb20gZHVyaW5nIHRoYXQgdGltZS4="),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br")],4),0)]})})}):(0,o.createComponentVNode)(2,r.Window,{theme:"ntos",resizable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{scrollable:!0,children:(0,o.createFragment)([!!p&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:p}),(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Input,{value:u,width:"150px",maxLength:15,onChange:function(e,t){return d("network",{value:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",disabled:!w.length,onClick:function(){return d("release")},children:"Flush Buffer"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:w.length,onClick:function(){return d("probe")},children:"Probe Network"})],4),children:w?w.length+" currently probed and buffered":"Buffer is empty!"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authentication",color:C?"good":"bad",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!C||!_,onClick:function(){return d("change_auth")},children:"Change Password"}),!!N&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",disabled:C||!_,onClick:function(){return d("hack")},children:"Brute Force"})],0),children:C?"KEY OK":"KEY FAIL"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PDA Server",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:C?"unlock":"lock",color:C?"good":"bad",disabled:!_,onClick:function(){return d("auth")},children:C?"Logout":"Login"}),(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",disabled:!_,onClick:function(){return d("mainmenu")},children:"Disconnect"})],4),children:_?_.name+" ("+_.id+")":"None (None)"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PDA Server Status",color:_&&_.status?"good":"bad",children:_?_.status?"Running":"Server down! Logging and messaging\n functionality unavailable!":"No server selected"})]})}),(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"server",selected:"pdalog-servers"===S,onClick:function(){return B("pdalog-servers")},children:"Servers"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:!I,icon:"file",selected:"pdalog-message"===S,onClick:function(){return B("pdalog-message")},children:"Message Logs"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:!I,icon:"file",selected:"pdalog-reqmsg"===S,onClick:function(){return B("pdalog-reqmsg")},children:"Req. Console Logs"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:!I,icon:"server",selected:"pdalog-custommsg"===S,onClick:function(){return B("pdalog-custommsg")},children:"Set Admin Message"})]}),"pdalog-servers"===S?(0,o.createComponentVNode)(2,c.Section,{children:w&&w.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:w.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:""+e.ref,buttons:(0,o.createComponentVNode)(2,c.Button,{selected:s.selected&&e.ref===s.selected.ref,onClick:function(){return d("viewmachine",{value:e.id})},children:"Connect"}),children:e.name+" ("+e.id+")"},e.name)}))}):"404 Servers not found. Have you tried scanning the network?"}):(0,o.createFragment)(["pdalog-message"===S&&C&&(0,o.createComponentVNode)(2,i),"pdalog-reqmsg"===S&&C&&(0,o.createComponentVNode)(2,i,{msgs_log:!0}),"pdalog-custommsg"===S&&C&&(0,o.createComponentVNode)(2,l)],0)],0)})})};var i=function(e,t){var n=e.msgs_log,r=void 0!==n&&n,i=(0,a.useBackend)(t),l=i.act,d=i.data,s=d.message_logs,u=void 0===s?[]:s,m=d.recon_logs,p={Normal:"warning",High:"bad",Extreme:"bad"},h=(r?void 0===m?[]:m:u)||[];return(0,o.createComponentVNode)(2,c.Section,{title:"Logs",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",onClick:function(){return l("refresh")},children:"Refresh"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!h||!(h&&h.length),onClick:function(){return l("clear_log",{value:r?"rc_msgs":"pda_logs"})},children:"Delete All Logs"}),(0,o.createComponentVNode)(2,c.Section,{title:"Messages",level:2,children:null==h?void 0:h.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:r?"Sending Dep.":"Sender",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return l("del_log",{ref:e.ref})},children:"Delete"}),children:e.sender}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:r?"Receiving Dep.":"Recipient",children:e.recipient}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",buttons:!!e.picture&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",onClick:function(){return Byond.topic({src:e.ref,photo:1})},children:"Image"}),children:e.message}),!!r&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Stamp",color:"Unstamped"!==e.stamp?"label":"bad",bold:"Unstamped"!==e.stamp,children:e.stamp}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Authentication",color:"Unauthenticated"!==e.auth?"good":"bad",children:e.auth}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Priority",color:e.priority in p?p[e.priority]:"good",bold:"Extreme"===e.priority,children:"Extreme"===e.priority?"!!"+e.priority+"!!":e.priority})],4)]})},e.ref)}))})]})};t.TeleLogs=i;var l=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.fake_message!=={}?i.fake_message:{sender:"System Administrator",job:"Admin",recepient:null,message:"This is a test, please ignore"};return(0,o.createComponentVNode)(2,c.Section,{title:"Custom Message",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",onClick:function(){return r("fake",{reset:!0})},children:"Reset"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l.recepient||!l.message,onClick:function(){return r("fake",{send:!0})},children:"Send"}),(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,c.Input,{value:l.sender,width:"250px",maxLength:42,onChange:function(e,t){return r("fake",{sender:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,c.Input,{value:l.job,width:"250px",maxLength:100,onChange:function(e,t){return r("fake",{job:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,c.Button,{selected:l.recepient,onClick:function(){return r("fake",{recepient:!0})},children:l.recepient?l.recepient:"Select"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",children:(0,o.createComponentVNode)(2,c.Input,{value:l.message,width:"500px",height:"150px",maxLength:2048,onChange:function(e,t){return r("fake",{message:t})}})})]})]})};t.CustomMsg=l},94515:function(e,t,n){"use strict";t.__esModule=!0,t.Teleporter=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Teleporter=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.calibrated,s=l.calibrating,u=l.power_station,m=l.regime_set,p=l.teleporter_hub,h=l.target;return(0,o.createComponentVNode)(2,c.Window,{width:360,height:130,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:!u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No power station linked."})||!p&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No hub linked."})||(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Regime",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return i("regimeset")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,a.Button,{icon:"edit",content:h,onClick:function(){return i("settarget")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Calibration",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"tools",content:"Calibrate",onClick:function(){return i("calibrate")}}),children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"In Progress"})||d&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Optimal"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Sub-Optimal"})})]})})})})}},52477:function(e,t,n){"use strict";t.__esModule=!0,t.TelesciConsoleContent=t.TelesciConsole=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381);t.TelesciConsole=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,t){return(0,o.createComponentVNode)(2,c.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,h=l.maxCrystals,C=(l.maxPossibleDistance,l.maxAllowedDistance),f=l.distance,N=l.tempMsg,g=l.sectorOptions,V=l.lastTeleData;return(0,o.createComponentVNode)(2,c.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,c.Box,{children:["Telepad is recharging. Please wait",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,c.Box,{children:N})}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,t){return i("setrotation",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,value:f,format:function(e){return e+"/"+C+" m"},minValue:0,maxValue:C,step:1,stepPixelSize:4,onDrag:function(e,t){return i("setdistance",{val:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(g).map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),V&&(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Telepad Location",children:[V.src_x,", ",V.src_y]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Distance",children:[V.distance,"m"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transit Time",children:[V.time," secs"]})]})})||(0,o.createComponentVNode)(2,c.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,c.Section,{children:["Crystals: ",p," / ",h]})]})};t.TelesciConsoleContent=d},20951:function(e,t,n){"use strict";t.__esModule=!0,t.Terminal=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Terminal=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data),d=l.uppertext,s=l.messages;return(0,o.createComponentVNode)(2,c.Window,{theme:l.tguitheme,title:"Terminal",width:480,height:520,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"left",children:d}),(0,o.createComponentVNode)(2,i,{messages:s})]})})};var i=function(e,t){var n=e.messages;(0,r.useBackend)(t).act;return n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:e},e.key)}))}},81235:function(e,t,n){"use strict";t.__esModule=!0,t.TextInputModal=void 0;var o=n(96323),r=n(55631),a=n(34277),c=n(31246),i=n(57890),l=n(26949),d=n(2381);t.TextInputModal=function(e,t){var n=(0,c.useBackend)(t),u=n.act,m=n.data,p=m.large_buttons,h=m.max_length,C=m.message,f=void 0===C?"":C,N=m.multiline,g=m.placeholder,V=m.timeout,b=m.title,v=(0,c.useLocalState)(t,"input",g||""),k=v[0],_=v[1],y=135+(f.length>30?Math.ceil(f.length/4):0)+(N||k.length>=30?75:0)+(f.length&&p?5:0);return(0,o.createComponentVNode)(2,d.Window,{title:b,width:325,height:y,children:[V&&(0,o.createComponentVNode)(2,r.Loader,{value:V}),(0,o.createComponentVNode)(2,d.Window.Content,{onKeyDown:function(e){var t=window.event?e.which:e.keyCode;t===i.KEY_ENTER&&u("submit",{entry:k}),t===i.KEY_ESCAPE&&u("cancel")},children:(0,o.createComponentVNode)(2,l.Section,{fill:!0,children:(0,o.createComponentVNode)(2,l.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,l.Box,{color:"label",children:f})}),(0,o.createComponentVNode)(2,l.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,s,{input:k,onType:function(e){e!==k&&_(e)}})}),(0,o.createComponentVNode)(2,l.Stack.Item,{children:(0,o.createComponentVNode)(2,a.InputButtons,{input:k,message:k.length+"/"+h})})]})})})]})};var s=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,d=a.max_length,s=a.multiline,u=e.input,m=e.onType;return(0,o.createComponentVNode)(2,l.TextArea,{autoFocus:!0,autoSelect:!0,height:s||u.length>=30?"100%":"1.8rem",maxLength:d,onKeyDown:function(e){var t=window.event?e.which:e.keyCode;t===i.KEY_ENTER&&(r("submit",{entry:u}),e.preventDefault()),t===i.KEY_ESCAPE&&r("cancel")},onInput:function(e,t){return m(t)},placeholder:"Type something...",value:u})}},42334:function(e,t,n){"use strict";t.__esModule=!0,t.ThermoMachine=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.ThermoMachine=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:350,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.temperature,format:function(e){return(0,r.toFixed)(e,2)}})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure,format:function(e){return(0,r.toFixed)(e,2)}})," kPa"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return l("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Temperature",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:Math.round(d.target),unit:"K",width:"62px",minValue:Math.round(d.min),maxValue:Math.round(d.max),step:5,stepPixelSize:3,onDrag:function(e,t){return l("target",{target:t})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:d.target===d.min,title:"Minimum temperature",onClick:function(){return l("target",{target:d.min})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:d.target===d.initial,title:"Room Temperature",onClick:function(){return l("target",{target:d.initial})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:d.target===d.max,title:"Maximum Temperature",onClick:function(){return l("target",{target:d.max})}})]})]})})]})})}},9843:function(e,t,n){"use strict";t.__esModule=!0,t.Thermometer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var s=l.prototype;return s.componentDidMount=function(){Byond.winset(Byond.windowId,{"transparent-color":"#242322"})},s.componentWillUnmount=function(){Byond.winset(Byond.windowId,{"transparent-color":null})},s.render=function(){var e=(0,r.useBackend)(this.context),t=(e.act,e.data);return(0,o.createComponentVNode)(2,c.Window,{width:70,height:430,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,align:"center",justify:"space-around",backgroundColor:"#242322",style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAABlBMVEVya3UjIyN3S/1dAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAMSURBVAjXY2hgcAAAAcQAwUlFKkkAAAAASUVORK5CYII=')"},children:(0,o.createComponentVNode)(2,a.Stack.Item,{ml:1,children:(0,o.createComponentVNode)(2,d,{temperature:t.Temperature,maxTemperature:1e3})})})})},l}(o.Component);t.Thermometer=l;var d=function(e){var t=e.temperature,n=e.maxTemperature;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{style:{position:"relative",width:"22px",height:"340px",margin:"0 auto","background-color":"#595959",border:"4px solid #363636","border-radius":"12px","border-bottom":"none","border-index":"0","box-shadow":"4px 4px #000000"},children:(0,o.createComponentVNode)(2,a.Box,{style:{position:"absolute",width:"5x",bottom:0,left:"0px",right:0,transition:"height 2s ease-out",height:t/n*100+"%","background-color":"#bd2020","border-radius":"8px","border-bottom":"none","z-index":"1"}})}),(0,o.createComponentVNode)(2,a.Box,{style:{position:"relative",width:"56px","line-height":"48px","text-align":"center",margin:"-8px auto 0 auto","background-color":"#bd2020",border:"4px solid #363636","border-spacing":"5px","border-radius":"35px","border-index":"1","border-bottom":"0.1","box-shadow":"4px 4px #000000","z-index":"0"},children:[t,"K"]})]})}},91888:function(e,t,n){"use strict";t.__esModule=!0,t.TimeClock=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381),l=n(63826);t.TimeClock=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.department_hours,m=s.user_name,p=s.card,h=s.assignment,C=s.job_datum,f=s.allow_change_job,N=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!C&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:C.selection_color,p:.8,children:(0,o.createComponentVNode)(2,c.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:C.title})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Box,{fontSize:1.5,inline:!0,mr:1,children:C.title})})]})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Departments",children:C.departments}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pay Scale",children:C.economic_modifier}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PTO Elegibility",children:C.timeoff_factor>0&&(0,o.createComponentVNode)(2,c.Box,{children:["Earns PTO - ",C.pto_department]})||C.timeoff_factor<0&&(0,o.createComponentVNode)(2,c.Box,{children:["Requires PTO - ",C.pto_department]})||(0,o.createComponentVNode)(2,c.Box,{children:"Neutral"})})],4)]})}),!(!f||!C||0===C.timeoff_factor||"Dismissed"===h)&&(0,o.createComponentVNode)(2,c.Section,{title:"Employment Actions",children:C.timeoff_factor>0&&(u[C.pto_department]>0&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(N).length&&Object.keys(N).map((function(e){return N[e].map((function(t){return(0,o.createComponentVNode)(2,c.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":t})},children:t},t)}))}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},80480:function(e,t,n){"use strict";t.__esModule=!0,t.Timer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Timer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.minutes,s=l.seconds,u=l.timing,m=l.loop;return(0,o.createComponentVNode)(2,c.Window,{width:275,height:115,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:m?"Repeating":"Repeat",selected:m,onClick:function(){return i("repeat")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:u?"Stop":"Start",selected:u,onClick:function(){return i("time")}})],4),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:u,onClick:function(){return i("input",{adjust:-30})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:u,onClick:function(){return i("input",{adjust:-1})}})," ",String(d).padStart(2,"0"),":",String(s).padStart(2,"0")," ",(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:u,onClick:function(){return i("input",{adjust:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:u,onClick:function(){return i("input",{adjust:30})}})]})})})}},22759:function(e,t,n){"use strict";t.__esModule=!0,t.TrackedPlaytime=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949),i=n(2381),l=(0,r.sortBy)((function(e){e[0];return-e[1]})),d=function(e){var t=e.playtimes,n=l(Object.entries(t)).filter((function(e){return e[1]}));if(!n.length)return"No recorded playtime hours for this section.";var r=n[0][1];return(0,o.createComponentVNode)(2,c.Table,{children:n.map((function(e){var t=e[0],n=e[1],a=n/r;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,p:.5,style:{"vertical-align":"middle"},children:(0,o.createComponentVNode)(2,c.Box,{align:"right",children:t})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{maxValue:r,value:n,children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{width:100*a+"%"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(n/60).toLocaleString(undefined,{minimumFractionDigits:1,maximumFractionDigits:1}),"h"]})]})})})]},t)}))})};t.TrackedPlaytime=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.failReason,u=l.jobPlaytimes,m=l.specialPlaytimes,p=l.exemptStatus,h=l.isAdmin,C=l.livingTime,f=l.ghostTime,N=l.adminTime;return(0,o.createComponentVNode)(2,i.Window,{title:"Tracked Playtime",width:550,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:s&&(1===s&&(0,o.createComponentVNode)(2,c.Box,{children:"This server has disabled tracking."})||2===s&&(0,o.createComponentVNode)(2,c.Box,{children:"You have no records."}))||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Total",children:(0,o.createComponentVNode)(2,d,{playtimes:{Ghost:f,Living:C,Admin:N}})}),(0,o.createComponentVNode)(2,c.Section,{title:"Jobs",buttons:!!h&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:!!p,onClick:function(){return r("toggle_exempt")},children:"Job Playtime Exempt"}),children:(0,o.createComponentVNode)(2,d,{playtimes:u})}),(0,o.createComponentVNode)(2,c.Section,{title:"Special",children:(0,o.createComponentVNode)(2,d,{playtimes:m})})]})})})}},21594:function(e,t,n){"use strict";t.__esModule=!0,t.TrainingMachine=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TrainingMachine=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:230,height:150,title:"AURUMILL",children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,title:"Training Machine",children:(0,o.createComponentVNode)(2,a.LabeledControls,{m:1,children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Speed",children:(0,o.createComponentVNode)(2,a.Knob,{inline:!0,size:1.2,step:.5,stepPixelSize:10,value:l.movespeed,minValue:1,maxValue:10,onDrag:function(e,t){return i("movespeed",{movespeed:t})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.Knob,{inline:!0,size:1.2,step:1,stepPixelSize:50,value:l.range,minValue:1,maxValue:7,onDrag:function(e,t){return i("range",{range:t})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{label:"Simulation",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:l.moving,content:(0,o.createComponentVNode)(2,a.Box,{bold:!0,fontSize:"1.4em",lineHeight:3,children:l.moving?"END":"BEGIN"}),onClick:function(){return i("toggle")}})})]})})})})}},34893:function(e,t,n){"use strict";t.__esModule=!0,t.TraitorObjectiveDebug=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(75416),l=function m(e){for(var t=[],n=0;n<e.objectives.length;n++){var o=e.objectives[n];o.objectives?t=t.concat(m(o)):t.push(o)}return t},d=9e4,s=[{name:"Minimum Progression",sort:function(e,t){return e.progression_minimum<t.progression_minimum?-1:e.progression_minimum===t.progression_minimum?0:1}},{name:"Telecrystal Payout",sort:function(e,t){var n=(e.telecrystal_reward[0]+e.telecrystal_reward[1])/2,o=(t.telecrystal_reward[0]+t.telecrystal_reward[1])/2;return n<o?-1:n===o?0:1}},{name:"Progression Payout",sort:function(e,t){var n=(e.progression_reward[0]+e.progression_reward[1])/2,o=(t.progression_reward[0]+t.progression_reward[1])/2;return n<o?-1:n===o?0:1}},{name:"Progression Payout + Min. Prog.",sort:function(e,t){var n=(e.progression_reward[0]+e.progression_reward[1])/2+e.progression_minimum,o=(t.progression_reward[0]+t.progression_reward[1])/2+t.progression_minimum;return n<o?-1:n===o?0:1}}];t.TraitorObjectiveDebug=function(e,t){var n=(0,r.useBackend)(t),m=n.data,p=(n.act,m.objective_data),h=m.player_data,C=m.current_progression,f=[];f.sort();for(var N=10;N<100;N+=10)f.push((0,o.createComponentVNode)(2,a.Box,{position:"absolute",height:"100%",top:0,left:N+"%",width:"2px",backgroundColor:"green",children:[(0,o.createComponentVNode)(2,a.Box,{position:"absolute",top:0,left:0,width:"2px",backgroundColor:"green",height:"5px",style:{"z-index":5}}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",top:0,left:1,style:{"z-index":5},children:[Math.round(d*(N/100)/600)," mins"]})]}));for(var g,V=[],b=(0,r.useLocalState)(t,"currentTab","All"),v=b[0],k=b[1],_=(0,r.useLocalState)(t,"sortingFunc",s[0].name),y=_[0],w=_[1],x=(0,r.useLocalState)(t,"sortDirection",!0),S=x[0],B=x[1],I=0;I<s.length;I++){var L=s[I];L.name===y&&(g=L.sort)}for(var T=0;T<p.length;T++){var A=p[T];A.name!==v&&"All"!==v||(V=V.concat(l(A)))}return V.sort(g),S||V.reverse(),(0,o.createComponentVNode)(2,c.Window,{width:1e3,height:1e3,theme:"admin",children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Box,{position:"absolute",height:"100px",width:"100%",top:0,left:0,children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{width:"100%",fluid:!0,textAlign:"center",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===y,onClick:function(){return w(e.name)},children:e.name},e.sort)}))})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{height:"100%",width:"100%",fluid:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:"All"===v,onClick:function(){return k("All")},children:"All"}),p.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===v,onClick:function(){return k(e.name)},children:e.name},e.name)}))]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{width:"100%",fluid:!0,textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:!0===S,onClick:function(){return B(!0)},children:"Ascending"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:!1===S,onClick:function(){return B(!1)},children:"Descending"})]})})]})}),(0,o.createComponentVNode)(2,a.Box,{position:"absolute",width:"100%",fill:!0,backgroundColor:"black",left:0,top:"100px",children:[f,(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,mt:8,children:V.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{position:"relative",basis:"100px",children:(0,o.createComponentVNode)(2,u,{objective:e})},t)}))}),h.map((function(e){(0,i.getReputation)(e.progression_points);return(0,o.createComponentVNode)(2,a.Tooltip,{content:(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Key",children:e.player}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total PR",children:[Math.floor(e.progression_points/600)," mins"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Obj PR",children:[Math.floor(e.total_progression_from_objectives/600)," mins"]})]})}),position:"top",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"red",position:"absolute",left:e.progression_points/d*window.innerWidth+"px",width:"3px",height:"100%",top:0,opacity:.8,children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",top:0,left:"-50px",width:"100px",height:"100%"})})},e.player)})),(0,o.createComponentVNode)(2,a.Tooltip,{content:"Expected Progression: "+Math.floor(C/600)+" mins",position:"top",children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",left:C/d*window.innerWidth+"px",width:"3px",height:"100%",top:0,opacity:1,backgroundColor:"pink",children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",top:0,left:"-50px",width:"100px",height:"100%"})})})]})]})})};var u=function(e,t){var n=e.objective,r=n.progression_maximum/d*window.innerWidth+"px";return n.progression_maximum>d&&(r="100%"),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"grey",position:"absolute",left:n.progression_minimum/d*window.innerWidth+"px",width:r,height:"95px",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,width:"100%",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{style:{"text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden"},children:n.name}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:[n.progression_minimum/600," mins"]}),n.progression_maximum<=d&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:[n.progression_maximum/600," mins"]})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{position:"relative",basis:"18px",children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",left:0,height:"100%",backgroundColor:"green",width:n.progression_reward[1]/d*window.innerWidth+"px",style:{"white-space":"nowrap"},children:[n.progression_reward[0]/600,"\xa0to ",n.progression_reward[1]/600," pr"]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{position:"relative",basis:"18px",children:(0,o.createComponentVNode)(2,a.Box,{position:"absolute",left:0,height:"100%",backgroundColor:"red",width:10*n.telecrystal_reward[1]+"px",style:{"white-space":"nowrap"},children:[n.telecrystal_reward[0],"\xa0to ",n.telecrystal_reward[1]," tc"]})})]})})}},96284:function(e,t,n){"use strict";t.__esModule=!0,t.TramControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i={Arrivals:"black",Service:"olive",Command:"blue",Security:"red",Medical:"teal",Engineering:"yellow",Cargo:"brown",Science:"purple",Departures:"white",Reception:"white",Botany:"olive",Chemistry:"teal",Processing:"brown",Xenobiology:"purple",Ordnance:"yellow",Office:"red",Dormitories:"black"},l={blue:"This is the tram's current location.",green:"This is the selected destination.",transparent:"Click to set destination."},d=function(e,t){var n=Object.keys(e.dest_icons).indexOf(t);return n>=1&&n<=2?3:1},s=function(){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{ml:7,color:"red",name:"exclamation",size:10})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"14px",color:"red",children:"No Tram Detected!"})]})})};t.TramControl=function(e,t){var n=(0,r.useBackend)(t),u=n.act,m=n.data,p=m.broken,h=m.moving,C=m.destinations,f=m.tram_location,N=(0,r.useLocalState)(t,"transit-index",1),g=N[0],V=N[1],b=function(e){var t=e.dest,n=function(e){if(!f)return"bad";var t=e.name===f,n=g===C.indexOf(e);return t?"blue":n?"green":"transparent"};return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{ml:5,children:[(0,o.createComponentVNode)(2,a.Button,{mr:4.38,color:n(t),circular:!0,compact:!0,height:5,width:5,tooltipPosition:"top",tooltip:l[n(t)],onClick:function(){return V(C.indexOf(t))},children:(0,o.createComponentVNode)(2,a.Icon,{ml:-2.1,mt:.55,fontSize:"60px",name:"circle-o"})}),C.length-1!==C.indexOf(t)&&(0,o.createComponentVNode)(2,a.Section,{title:" ",mt:-7.3,ml:10,mr:-6.1})||(0,o.createComponentVNode)(2,a.Box,{mt:-2.3})]}),t.dest_icons&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{children:Object.keys(t.dest_icons).map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{mt:d(t,e),children:(0,o.createComponentVNode)(2,a.Button,{color:i[e],icon:t.dest_icons[e],tooltipPosition:"bottom",tooltip:e,style:{"border-radius":"5em",border:"2px solid white"}})},e)}))})})]})};return(0,o.createComponentVNode)(2,c.Window,{title:"Tram Controls",width:600,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:!!p&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:[!!h&&(0,o.createComponentVNode)(2,(function(){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{ml:10,name:"sync-alt",color:"green",size:11})}),(0,o.createComponentVNode)(2,a.Stack.Item,{mt:5,fontSize:"14px",color:"green",children:["The tram is travelling to ",f,"!"]})]})})})),(0,o.createComponentVNode)(2,a.Stack,{ml:"-6px",vertical:!0,fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,fontSize:"16px",mt:1,mb:9,textAlign:"center",children:"Nanotrasen Transit System"}),(0,o.createComponentVNode)(2,a.Stack.Item,{mb:4,children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0}),C.map((function(e){return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,b,{dest:e})},e.name)})),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1})]})}),(0,o.createComponentVNode)(2,a.Stack.Item,{fontSize:"16px",mt:1,mb:9,textAlign:"center",grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{disabled:f===C[g].name,content:"Send Tram",onClick:function(){return u("send",{destination:C[g].id})}})})]})]})})})}},711:function(e,t,n){"use strict";t.__esModule=!0,t.TransferValve=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TransferValve=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,c.Window,{width:310,height:300,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Valve Attachment",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Configure",icon:"cog",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attachment",children:u?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Assembly"})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attachment",children:d?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Tank"})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attachment",children:s?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Tank"})})})})]})})}},4435:function(e,t,n){"use strict";t.__esModule=!0,t.TurbineComputer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.TurbineComputer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=!l.parts_linked&&(0,o.createComponentVNode)(2,a.Modal,{children:(0,o.createComponentVNode)(2,a.Box,{style:{margin:"auto"},width:"200px",textAlign:"center",minHeight:"39px",children:"Parts not connected, use a multitool on the core rotor before trying again"})}),s=l.parts_linked&&!l.parts_ready&&(0,o.createComponentVNode)(2,a.Modal,{children:(0,o.createComponentVNode)(2,a.Box,{style:{margin:"auto"},width:"200px",textAlign:"center",minHeight:"39px",children:"Some parts have open maintenance hatchet, please close them before starting"})});return(0,o.createComponentVNode)(2,c.Window,{width:310,height:240,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:l.active?"power-off":"times",content:l.active?"Online":"Offline",selected:l.active,disabled:!l.can_turn_off||!l.parts_linked,onClick:function(){return i("toggle_power")}}),children:[d,s,(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Intake Regulator",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(100*l.regulator),unit:"%",minValue:1,maxValue:100,onDrag:function(e,t){return i("regulate",{regulate:.01*t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.integrity,minValue:0,maxValue:100,ranges:{good:[60,100],average:[40,59],bad:[0,39]},children:l.integrity+" %"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[l.rpm," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Turbine Speed",children:[l.max_rpm," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input Temperature",children:[l.temp," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Temperature",children:[l.max_temperature," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:[4*l.power*.001," kW"]})]})]})})})}},73248:function(e,t,n){"use strict";t.__esModule=!0,t.TurbineControl=void 0;var o=n(96323),r=n(1033),a=n(31246),c=n(26949),i=n(2381);t.TurbineControl=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,h=d.online,C=d.power,f=d.rpm,N=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,c.Box,{color:h?"good":"bad",children:!h||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:h,content:"Compressor Power",onClick:function(){return l(h?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f})," RPM"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(C)})})]})})]})})}},74240:function(e,t,n){"use strict";t.__esModule=!0,t.Turbolift=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Turbolift=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,c.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,a.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,a.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},40620:function(e,t,n){"use strict";t.__esModule=!0,t.TurretControl=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(19447);t.TurretControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.locked&&!d.siliconUser,u=d.enabled,m=d.lethal,p=d.shootCyborgs;return(0,o.createComponentVNode)(2,c.Window,{width:305,height:d.siliconUser?168:164,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turret Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"power-off":"times",content:u?"Enabled":"Disabled",selected:u,disabled:s,onClick:function(){return l("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turret Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"exclamation-triangle":"minus-circle",content:m?"Lethal":"Stun",color:m?"bad":"average",disabled:s,onClick:function(){return l("mode")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Cyborgs",children:(0,o.createComponentVNode)(2,a.Button,{icon:p?"check":"times",content:p?"Yes":"No",selected:p,disabled:s,onClick:function(){return l("shoot_silicons")}})})]})})]})})}},77565:function(e,t,n){"use strict";t.__esModule=!0,t.GenericUplink=t.Uplink=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(1033),l=n(2381);t.Uplink=function(e,t){var n=(0,a.useBackend)(t).data,r=(0,a.useLocalState)(t,"screen",0),i=r[0],m=r[1],p=n.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{color:"bad",children:"Error"})]})})};var d=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,c.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,c.Box,{children:"No items currently discounted."})})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,c.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split("<br>").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,t){var n,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,h=(0,a.useBackend)(t),C=h.act,f=h.data,N=f.compactMode,g=f.lockable,V=f.categories,b=void 0===V?[]:V,v=(0,a.useLocalState)(t,"searchText",""),k=v[0],_=v[1],y=(0,a.useLocalState)(t,"category",null==(n=b[0])?void 0:n.name),w=y[0],x=y[1],S=(0,r.createSearch)(k,(function(e){return e.name+e.desc})),B=k.length>0&&b.flatMap((function(e){return e.items||[]})).filter(S).filter((function(e,t){return t<25}))||(null==(l=b.find((function(e){return e.name===w})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,c.Input,{autoFocus:!0,value:k,onInput:function(e,t){return _(t)},mx:1}),(0,o.createComponentVNode)(2,c.Button,{icon:N?"list":"info",content:N?"Compact":"Detailed",onClick:function(){return C("compact_toggle")}}),!!g&&(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return C("lock")}})],0),children:(0,o.createComponentVNode)(2,c.Flex,{children:[0===k.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:b.map((function(e){var t;return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:e.name===w,onClick:function(){return x(e.name)},children:[e.name," (",(null==(t=e.items)?void 0:t.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,basis:0,children:[0===B.length&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:0===k.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:k.length>0||N,currencyAmount:s,currencySymbol:p,items:B})]})]})})};t.GenericUplink=u;var m=function(e,t){var n=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,a.useBackend)(t).act,u=(0,a.useLocalState)(t,"hoveredItem",{}),m=u[0],p=u[1],h=m&&m.cost||0,C=e.items.map((function(e){var t=m&&m.name!==e.name,n=l-h<e.cost,o=t&&n,r=l<e.cost||o;return Object.assign({},e,{disabled:r})}));return n?(0,o.createComponentVNode)(2,c.Table,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:(0,r.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:(0,i.formatMoney)(e.cost)+" "+d,disabled:e.disabled,tooltip:e.desc,tooltipPosition:"left",onmouseover:function(){return p(e)},onmouseout:function(){return p({})},onClick:function(){return s("buy",{ref:e.ref})}})})]},e.name)}))}):C.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{content:e.cost+" "+d,disabled:e.disabled,onmouseover:function(){return p(e)},onmouseout:function(){return p({})},onClick:function(){return s("buy",{ref:e.ref})}}),children:(0,r.decodeHtmlEntities)(e.desc)},e.name)}))}},19457:function(e,t,n){"use strict";t.__esModule=!0,t.GenericUplink=void 0;var o=n(96323),r=n(31246),a=n(26949);t.GenericUplink=function(e,t){var n=e.currency,i=void 0===n?"cr":n,l=e.categories,d=e.handleBuy,s=(0,r.useLocalState)(t,"searchText",""),u=s[0],m=s[1],p=(0,r.useLocalState)(t,"category",l[0]),h=p[0],C=p[1],f=(0,r.useSharedState)(t,"compactModeUplink",!1),N=f[0],g=f[1],V=e.items.filter((function(e){return 0===u.length?e.category===h:e.name.toLowerCase().includes(u.toLowerCase())}));return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:i}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:u,onInput:function(e,t){return m(t)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:N?"list":"info",content:N?"Compact":"Detailed",onClick:function(){return g(!N)}})],4),children:(0,o.createComponentVNode)(2,a.Stack,{children:[0===u.length&&(0,o.createComponentVNode)(2,a.Stack.Item,{mr:1,children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e===h,onClick:function(){return C(e)},children:e},e)}))})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:[0===V.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===u.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,c,{compactMode:u.length>0||N,items:V,handleBuy:d})]})]})})};var c=function(e,t){var n=e.compactMode,r=e.items,c=e.handleBuy;return(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:r.map((function(e,t){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createComponentVNode)(2,a.Button,{content:e.cost,disabled:e.disabled,onClick:function(t){return c(e)}}),children:n?null:e.desc},e.name)},t)}))})}},72141:function(e,t,n){"use strict";t.__esModule=!0,t.ObjectiveMenu=void 0;var o=n(96323),r=n(1060),a=n(26949),c=n(75416),i=n(72635),l=["name","reputation","description","uiButtons","telecrystalReward","progressionReward","objectiveState","telecrystalPenalty","handleCompletion","handleAbort","canAbort","originalProgression","grow","finalObjective"];function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=0,m=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).state={draggingObjective:null,objectiveX:0,objectiveY:0},t.handleObjectiveClick=t.handleObjectiveClick.bind(d(t)),t.handleMouseUp=t.handleMouseUp.bind(d(t)),t.handleMouseMove=t.handleMouseMove.bind(d(t)),t.handleObjectiveAdded=t.handleObjectiveAdded.bind(d(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var c=r.prototype;return c.handleObjectiveClick=function(e,t){var n;null!=(n=this.state)&&n.draggingObjective||0===e.button&&(this.setState({draggingObjective:t,objectiveX:e.clientX,objectiveY:e.clientY}),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove),e.stopPropagation(),e.preventDefault(),u=Date.now()+100)},c.handleMouseUp=function(e){u>Date.now()||(window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove),this.setState({draggingObjective:null}))},c.handleMouseMove=function(e){this.setState({objectiveX:e.pageX,objectiveY:e.pageY-32})},c.handleObjectiveAdded=function(e){var t=this.state.draggingObjective;t&&(0,this.props.handleStartObjective)(t)},c.render=function(){var e=this,t=this.props,n=t.activeObjectives,r=void 0===n?[]:n,c=t.potentialObjectives,i=t.maximumActiveObjectives,l=t.maximumPotentialObjectives,d=t.handleObjectiveAction,s=t.handleObjectiveCompleted,u=t.handleObjectiveAbort,m=t.handleRequestObjectives,h=this.state,C=h.draggingObjective,f=h.objectiveX,N=h.objectiveY;return c.sort((function(e,t){return e.progression_minimum<t.progression_minimum?1:e.progression_minimum>t.progression_minimum?-1:0})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Stack,{children:Array.apply(null,Array(i)).map((function(t,n){if(n>=r.length)return(0,o.createComponentVNode)(2,a.Stack.Item,{minHeight:"100px",grow:!0,children:(0,o.createComponentVNode)(2,a.Box,{color:"label",className:"UplinkObjective__EmptyObjective",onMouseUp:e.handleObjectiveAdded,children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",fill:!0,align:"center",children:(0,o.createComponentVNode)(2,a.Stack.Item,{textAlign:"center",width:"100%",children:"Empty Objective, drop objectives here to take them"})})})},n);var c=r[n];return(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:p(c,!0,d,s,u,!0)},n)}))})})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Potential Objectives",textAlign:"center",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"space-evenly",children:[c.map((function(t){return(0,o.createComponentVNode)(2,a.Flex.Item,{textAlign:"left",basis:"49%",mb:1,mx:"0.5%",onMouseDown:function(n){e.handleObjectiveClick(n,t)},children:t.id!==(null==C?void 0:C.id)&&p(t,!1,undefined,undefined,undefined,!0)||(0,o.createComponentVNode)(2,a.Box,{style:{border:"2px dashed black"},width:"100%",height:"100%",minHeight:"100px"})},t.id)})),0===l&&(0,o.createComponentVNode)(2,a.Dimmer,{children:[(0,o.createComponentVNode)(2,a.Icon,{name:"lock",color:"red",fontSize:8,mb:2}),(0,o.createComponentVNode)(2,a.Box,{color:"red",fontSize:3,children:"You are locked out of objectives"})]})||c.length<l&&(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",style:{},mb:1,mx:"0.5%",minHeight:"100px",children:(0,o.createComponentVNode)(2,a.Stack,{align:"center",height:"100%",width:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,a.Stack.Item,{width:"100%",children:(0,o.createComponentVNode)(2,a.Button,{content:"Request More Objectives",fontSize:2,onClick:m})})})})]})})})]}),!!C&&(0,o.createComponentVNode)(2,a.Box,{width:"360px",height:"200px",position:"absolute",left:f-180+"px",top:N+"px",style:{"pointer-events":"none"},children:p(C,!1)})],0)},r}(o.Component);t.ObjectiveMenu=m;var p=function(e,t,n,r,l,d){var s;void 0===d&&(d=!1);var u=(0,c.getReputation)(e.progression_minimum);return(0,o.createComponentVNode)(2,h,{name:e.name,description:e.description,reputation:u,telecrystalReward:e.telecrystal_reward,telecrystalPenalty:e.telecrystal_penalty,progressionReward:e.progression_reward,objectiveState:e.objective_state,originalProgression:e.original_progression,finalObjective:e.final_objective,canAbort:!!l&&!e.final_objective&&e.objective_state===i.ObjectiveState.Active,grow:d,handleCompletion:function(t){r&&r(e)},handleAbort:function(t){l&&l(e)},uiButtons:t&&n?(0,o.createComponentVNode)(2,a.Stack,{width:"100%",justify:"center",children:null==(s=e.ui_buttons)?void 0:s.map((function(t,r){return(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{content:t.name,icon:t.icon,tooltip:t.tooltip,className:u.gradient,onClick:function(){n(e,t.action)}})},r)}))}):undefined})},h=function(e,t){var n,d=e.name,s=e.reputation,u=e.description,m=e.uiButtons,p=void 0===m?null:m,h=e.telecrystalReward,C=e.progressionReward,f=e.objectiveState,N=e.telecrystalPenalty,g=e.handleCompletion,V=e.handleAbort,b=e.canAbort,v=e.originalProgression,k=e.grow,_=e.finalObjective,y=(function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n])}(e,l),f===i.ObjectiveState.Completed||f===i.ObjectiveState.Failed||f===i.ObjectiveState.Invalid),w=f!==i.ObjectiveState.Completed;switch(f){case i.ObjectiveState.Invalid:n="Invalidated";break;case i.ObjectiveState.Completed:n="Completed";break;case i.ObjectiveState.Failed:n="Failed"}var x=Math.round(1e3*(1-C/v))/10;return(0,o.createComponentVNode)(2,a.Flex,{height:k?"100%":undefined,direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:k,basis:"content",children:(0,o.createComponentVNode)(2,a.Box,{className:(0,r.classes)(["UplinkObjective__Titlebar",s.gradient]),width:"100%",height:"100%",children:(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:1,children:[d," ",y?"- "+n:null]}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"transparent",tooltip:"Abort Objective",onClick:V})})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:k,basis:"content",children:(0,o.createComponentVNode)(2,a.Box,{className:"UplinkObjective__Content",height:"100%",children:[(0,o.createComponentVNode)(2,a.Box,{children:u}),!_&&(0,o.createComponentVNode)(2,a.Box,{mt:1,children:["Failing this objective will deduct ",N," TC."]}),_&&f===i.ObjectiveState.Inactive&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,mt:1,children:"Taking this objective will lock you out of getting anymore objectives! Furthermore, you will be unable to abort this objective."})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{className:"UplinkObjective__Footer",children:(0,o.createComponentVNode)(2,a.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:[(0,o.createComponentVNode)(2,a.Stack,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,a.Box,{style:{border:"2px solid rgba(0, 0, 0, 0.5)","border-left":"none","border-right":"none","border-bottom":y?"none":undefined},className:s.gradient,py:.5,width:"100%",textAlign:"center",children:[h," TC,",(0,o.createComponentVNode)(2,a.Box,{ml:1,as:"span",children:[(0,c.calculateProgression)(C)," Reputation",Math.abs(x)>10&&(0,o.createComponentVNode)(2,a.Tooltip,{content:(0,o.createComponentVNode)(2,a.Box,{children:["You will get",(0,o.createComponentVNode)(2,a.Box,{mr:1,ml:1,color:x>0?x>25?"red":"orange":"green",as:"span",children:[Math.abs(x),"%"]}),x>0?"less":"more"," reputation from this objective. This is because your reputation is ",x>0?"ahead ":"behind ","where it normally should be at."]}),children:(0,o.createComponentVNode)(2,a.Box,{ml:1,color:x>0?x>35?"red":"orange":"green",as:"span",children:["(",x>0?"-":"+",Math.abs(x),"%)"]})})]})]})}),y?(0,o.createComponentVNode)(2,a.Box,{inline:!0,className:s.gradient,style:{"border-radius":"0",border:"2px solid rgba(0, 0, 0, 0.5)","border-left":"none","border-right":"none"},position:"relative",width:"100%",textAlign:"center",bold:!0,children:[(0,o.createComponentVNode)(2,a.Box,{width:"100%",height:"100%",backgroundColor:w?"rgba(255, 0, 0, 0.1)":"rgba(0, 255, 0, 0.1)",position:"absolute",left:0,top:0}),(0,o.createComponentVNode)(2,a.Button,{onClick:g,color:w?"bad":"good",style:{border:"1px solid rgba(0, 0, 0, 0.65)"},my:1,children:"TURN IN"})]}):null]}),!!p&&!y&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:p})]})})})]})}},75416:function(e,t,n){"use strict";t.__esModule=!0,t.calculateReputationLevel=t.getReputation=t.reputationLevelsTooltip=t.reputationDefault=t.ranks=t.calculateProgression=void 0;var o=n(96323),r=n(26949),a=function(e){return Math.round(e/6)/10};t.calculateProgression=a;var c="reputation-normal",i="reputation-good",l="reputation-very-good",d="reputation-super-good",s=[{minutesLessThan:5,title:"Obscure",gradient:"reputation-bad"},{minutesLessThan:10,title:"Insignificant",gradient:c},{minutesLessThan:20,title:"Noteworthy",gradient:c},{minutesLessThan:30,title:"Reputable",gradient:i},{minutesLessThan:50,title:"Well-known",gradient:i},{minutesLessThan:70,title:"Significant",gradient:l},{minutesLessThan:90,title:"Famous",gradient:l},{minutesLessThan:110,title:"Glorious",gradient:d},{minutesLessThan:130,title:"Fabled",gradient:d},{minutesLessThan:-1,title:"Legendary",gradient:"reputation-best"}];t.ranks=s;t.reputationDefault=3e4;var u=-1,m=(0,o.createComponentVNode)(2,r.Box,{preserveWhitespace:!0,children:(0,o.createComponentVNode)(2,r.Flex,{direction:"column",mt:1,children:s.map((function(e){-1===u&&(u=0);var t=a(600*u),n=e.title+" ("+t+")";return u=e.minutesLessThan,(0,o.createComponentVNode)(2,r.Flex.Item,{mt:.1,children:(0,o.createComponentVNode)(2,r.Box,{color:"white",className:e.gradient,style:{"border-radius":"5px",display:"inline-block"},px:.8,py:.6,children:n})},e.minutesLessThan)}))})});t.reputationLevelsTooltip=m;var p=function(e){for(var t=e/600,n=0;n<s.length;n++){var o=s[n];if(t<o.minutesLessThan)return o}return s[s.length-1]};t.getReputation=p;t.calculateReputationLevel=function(e,t){var n=a(e),c=p(e);return t?(0,o.createComponentVNode)(2,r.Box,{as:"span",children:[c.title," (",n,")"]}):(0,o.createComponentVNode)(2,r.Box,{color:"white",className:c.gradient,style:{"border-radius":"5px",display:"inline-block"},px:.8,py:.6,children:[c.title," (",n,")"]})}},72635:function(e,t){"use strict";var n;t.__esModule=!0,t.ObjectiveState=void 0,t.ObjectiveState=n,function(e){e[e.Inactive=1]="Inactive",e[e.Active=2]="Active",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Invalid=5]="Invalid"}(n||(t.ObjectiveState=n={}))},10410:function(e,t,n){"use strict";t.__esModule=!0,t.Uplink=void 0;var o,r=n(96323),a=n(31246),c=n(2381),i=n(19457),l=n(94500),d=n(39646),s=n(26949),u=n(72141),m=n(75416);function p(e,t,n,o,r,a,c){try{var i=e[a](c),l=i.value}catch(d){return void n(d)}i.done?t(l):Promise.resolve(l).then(o,r)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C=function(e){var t,n;function C(){var t;return(t=e.call(this)||this).state={allItems:[],allCategories:[],currentTab:0},t}n=e,(t=C).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var f=C.prototype;return f.componentDidMount=function(){this.populateServerData()},f.populateServerData=function(){var e,t=(e=regeneratorRuntime.mark((function n(){var e,t,r,c,i,s,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o||(o=(0,l.fetchRetry)((0,d.resolveAsset)("uplink.json")).then((function(e){return e.json()}))),e=(0,a.useBackend)(this.context),t=e.data,r=t.uplink_flag,c=t.assigned_role,i=t.assigned_species,n.next=7,o;case 7:(s=n.sent).items=s.items.sort((function(e,t){return e.progression_minimum<t.progression_minimum?-1:e.progression_minimum>t.progression_minimum?1:0})),u=[],s.items=s.items.filter((function(e){return!(e.restricted_roles.length>0&&!e.restricted_roles.includes(c)||e.restricted_species.length>0&&!e.restricted_species.includes(i)||!(e.purchasable_from&r))})),s.items.forEach((function(e){u.includes(e.category)||u.push(e.category)})),s.categories=s.categories.filter((function(e){return u.includes(e)})),this.setState({allItems:s.items,allCategories:s.categories});case 14:case"end":return n.stop()}}),n,this)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){p(a,o,r,c,i,"next",e)}function i(e){p(a,o,r,c,i,"throw",e)}c(undefined)}))});return function(){return t.apply(this,arguments)}}(),f.render=function(){var e=this,t=(0,a.useBackend)(this.context),n=t.data,o=t.act,l=n.telecrystals,d=n.progression_points,p=n.active_objectives,h=n.potential_objectives,C=n.has_objectives,f=n.has_progression,N=n.maximum_active_objectives,g=n.maximum_potential_objectives,V=n.current_expected_progression,b=n.progression_scaling_deviance,v=n.current_progression_scaling,k=n.extra_purchasable,_=n.extra_purchasable_stock,y=n.current_stock,w=n.lockable,x=this.state,S=x.allItems,B=x.allCategories,I=x.currentTab,L=[].concat(S),T=[];L.push.apply(L,k);for(var A=0;A<k.length;A++){var D=k[A];B.includes(D.category)||B.push(D.category)}for(var M=0;M<L.length;M++){var E=L[M],P=d>=E.progression_minimum,F=y[E.id];E.ref&&(F=_[E.ref]),F||0===F||(F=null);var O=l>=E.cost&&(null===F||F>0);T.push({id:E.id,name:E.name,category:E.category,desc:(0,r.createComponentVNode)(2,s.Box,{children:E.desc}),cost:(0,r.createComponentVNode)(2,s.Box,{children:[E.cost_override_string||E.cost+" TC",f?(0,r.createFragment)([(0,r.createTextVNode)(",\xa0"),(0,r.createComponentVNode)(2,s.Box,{as:"span",children:(0,m.calculateReputationLevel)(E.progression_minimum,!0)})],4):""]}),disabled:!O||f&&!P,extraData:{ref:E.ref}})}var R=V-d;return R=Math.min(Math.max(R/b,-1),1),R=Math.round(1e3*R)/10,(0,r.createComponentVNode)(2,c.Window,{width:820,height:580,theme:"syndicate",children:(0,r.createComponentVNode)(2,c.Window.Content,{scrollable:0!==I||!C,children:(0,r.createComponentVNode)(2,s.Stack,{vertical:!0,fill:!0,children:[(0,r.createComponentVNode)(2,s.Stack.Item,{children:(0,r.createComponentVNode)(2,s.Section,{children:(0,r.createComponentVNode)(2,s.Stack,{children:[(0,r.createComponentVNode)(2,s.Stack.Item,{grow:1,align:"center",children:[(0,r.createComponentVNode)(2,s.Box,{fontSize:.8,children:["SyndOS Version 3.17 \xa0",(0,r.createComponentVNode)(2,s.Box,{color:"green",as:"span",children:"Connection Secure"})]}),(0,r.createComponentVNode)(2,s.Box,{color:"green",bold:!0,fontSize:1.2,children:"WELCOME, AGENT."})]}),(0,r.createComponentVNode)(2,s.Stack.Item,{align:"center",children:[(0,r.createComponentVNode)(2,s.Box,{bold:!0,fontSize:1.2,children:(0,r.createComponentVNode)(2,s.Tooltip,{content:!!f&&(0,r.createComponentVNode)(2,s.Box,{children:(0,r.createComponentVNode)(2,s.Box,{children:["Your current level of reputation.\xa0 Reputation determines what quality of objective you get and what items you can purchase.\xa0",(0,r.createComponentVNode)(2,s.Box,{mt:.5,children:["Reputation passively increases by ",(0,r.createComponentVNode)(2,s.Box,{color:"green",as:"span",children:(0,m.calculateProgression)(v)}),"\xa0every minute"]}),Math.abs(R)>0&&(0,r.createComponentVNode)(2,s.Box,{mt:.5,children:["Because your reputation is ",R<0?"ahead ":"behind ","of where it should be, you are getting",(0,r.createComponentVNode)(2,s.Box,{as:"span",color:R<0?"red":"green",ml:1,mr:1,children:[R,"%"]}),R<0?"less":"more"," reputation every minute"]}),m.reputationLevelsTooltip]})})||"Your current level of reputation. You are a respected elite and do not need to improve your reputation.",children:f?(0,m.calculateReputationLevel)(d,!1):(0,m.calculateReputationLevel)(m.reputationDefault,!1)})}),(0,r.createComponentVNode)(2,s.Box,{color:"good",bold:!0,fontSize:1.2,textAlign:"right",children:[l," TC"]})]})]})})}),(0,r.createComponentVNode)(2,s.Stack.Item,{children:(0,r.createComponentVNode)(2,s.Section,{fitted:!0,children:(0,r.createComponentVNode)(2,s.Stack,{align:"center",children:[(0,r.createComponentVNode)(2,s.Stack.Item,{grow:1,children:(0,r.createComponentVNode)(2,s.Tabs,{fluid:!0,textAlign:"center",children:[!!C&&(0,r.createComponentVNode)(2,s.Tabs.Tab,{selected:0===I,onClick:function(){return e.setState({currentTab:0})},children:"Objectives"}),(0,r.createComponentVNode)(2,s.Tabs.Tab,{selected:1===I||!C,onClick:function(){return e.setState({currentTab:1})},children:"Market"})]})}),!!w&&(0,r.createComponentVNode)(2,s.Stack.Item,{mr:1,children:(0,r.createComponentVNode)(2,s.Button,{icon:"times",content:"Lock",color:"transparent",onClick:function(){return o("lock")}})})]})})}),(0,r.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:0===I&&C&&(0,r.createComponentVNode)(2,u.ObjectiveMenu,{activeObjectives:p,potentialObjectives:h,maximumActiveObjectives:N,maximumPotentialObjectives:g,handleObjectiveAction:function(e,t){return o("objective_act",{check:e.original_progression,objective_action:t,index:e.id})},handleStartObjective:function(e){return o("start_objective",{check:e.original_progression,index:e.id})},handleObjectiveAbort:function(e){return o("objective_abort",{check:e.original_progression,index:e.id})},handleObjectiveCompleted:function(e){return o("finish_objective",{check:e.original_progression,index:e.id})},handleRequestObjectives:function(){return o("regenerate_objectives")}})||(0,r.createComponentVNode)(2,i.GenericUplink,{currency:"",categories:B,items:T,handleBuy:function(e){var t,n=e;null!=(t=n.extraData)&&t.ref?o("buy",{ref:n.extraData.ref}):o("buy",{path:e.id})}})})]})})})},C}(r.Component);t.Uplink=C},46321:function(e,t,n){"use strict";t.__esModule=!0,t.VaultController=void 0;var o=n(96323),r=n(97622),a=n(31246),c=n(26949),i=n(2381);t.VaultController=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:120,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Lock Status: ",buttons:(0,o.createComponentVNode)(2,c.Button,{content:d.doorstatus?"Locked":"Unlocked",icon:d.doorstatus?"lock":"unlock",disabled:d.stored<d.max,onClick:function(){return l("togglelock")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.stored/d.max,ranges:{good:[1,Infinity],average:[.3,1],bad:[-Infinity,.3]},children:(0,r.toFixed)(d.stored/1e3)+" / "+(0,r.toFixed)(d.max/1e3)+" kW"})})})})})})}},6099:function(e,t,n){"use strict";t.__esModule=!0,t.Vendatray=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Vendatray=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.product_name,u=d.product_cost,m=d.tray_open,p=d.registered,h=d.owner_name;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:270,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Flex,{mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mr:1,children:!!s&&(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,a.Section,{fontSize:"18px",align:"center",children:[(0,o.createVNode)(1,"b",null,s||"Empty",0),(0,o.createComponentVNode)(2,a.Box,{fontSize:"16px",children:[(0,o.createVNode)(1,"i",null,[s?u:"N/A",(0,o.createTextVNode)(" cr ")],0),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return l("Adjust")}})]})]}),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"window-restore",content:m?"Open":"Closed",selected:m,onClick:function(){return l("Open")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,icon:"money-bill-wave",content:"Purchase Item",disabled:!s,onClick:function(){return l("Buy")}})],4)]})]}),p?(0,o.createComponentVNode)(2,a.Section,{italics:!0,children:["Pays to the account of ",h,"."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:"Tray is unregistered."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"cash-register",content:"Register Tray",disabled:p,onClick:function(){return l("Register")}})],4)]})})};var i=function(e,t){var n=(0,r.useBackend)(t).data.product_icon;return(0,o.createComponentVNode)(2,a.Section,{height:"100%",children:(0,o.createComponentVNode)(2,a.Box,{as:"img",m:1,src:"data:image/jpeg;base64,"+n,height:"96px",width:"96px",style:{"-ms-interpolation-mode":"nearest-neighbor","vertical-align":"middle"}})})}},70914:function(e,t,n){"use strict";t.__esModule=!0,t.VendingMaintenance=t.VendingProducts=t.Vending=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381),l=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data.actively_vending,d=e.product;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:d.isatom&&(0,o.createVNode)(1,"span",(0,r.classes)(["vending32x32",d.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})||null}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,color:d.color,children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,position:"relative",children:[d.name,d.desc?(0,o.createComponentVNode)(2,c.Tooltip,{content:d.desc,position:"right"}):null]})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,c.Box,{color:(d.amount<=0?"bad":d.amount<=d.max_amount/2&&"average")||"good",children:[d.amount," in stock"]})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:d.price?"credit-card":"download",iconSpin:l===d.name,disabled:0===d.amount,content:d.price?"Buy ("+d.price+"\u20ae)":"Vend",onClick:function(){return i("vend",{vend:d.key})}})})]})};t.Vending=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.panel);return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d),r?(0,o.createComponentVNode)(2,s):null]})})};var d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,d=i.coin,s=i.chargesMoney,u=i.user,m=i.userMoney,p=i.guestNotice,h=i.products.filter((function(e){return!!e}));return(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,c.Section,{title:"User",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:["Welcome, ",(0,o.createVNode)(1,"b",null,u.name,0),","," ",(0,o.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,o.createVNode)(1,"br"),"Your balance is ",(0,o.createVNode)(1,"b",null,[m,(0,o.createTextVNode)("\u20ae Thalers")],0),"."]})||(0,o.createComponentVNode)(2,c.Box,{color:"light-grey",children:p})}),(0,o.createComponentVNode)(2,c.Section,{title:"Products",children:(0,o.createComponentVNode)(2,c.Table,{children:h.map((function(e){return(0,o.createComponentVNode)(2,l,{product:e},e.name)}))})}),!!d&&(0,o.createComponentVNode)(2,c.Section,{title:d+" deposited",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject Coin",onClick:function(){return r("remove_coin")}})})],0)};t.VendingProducts=d;var s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.speaker;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:(0,o.createComponentVNode)(2,c.Section,{title:"Speaker",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:i?"volume-up":"volume-off",content:i?"Enabled":"Disabled",selected:i,onClick:function(){return r("togglevoice")}})})})};t.VendingMaintenance=s},42323:function(e,t,n){"use strict";t.__esModule=!0,t.UserDetails=t.Vending=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(2381);t.Vending=function(e,t){var n=(0,a.useBackend)(t).data.onstation;return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[!!n&&(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,l)}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,d)})]})})})};var l=function(e,t){var n=(0,a.useBackend)(t).data.user;return n?(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Stack,{children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Icon,{name:"id-card",size:3,mr:1})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"User",children:n.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupation",children:n.job||"Unemployed"})]})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No ID detected! Contact the Head of Personnel."})};t.UserDetails=l;var d=function(e,t){var n,r=(0,a.useBackend)(t).data,i=r.onstation,l=r.user,d=r.product_records,u=void 0===d?[]:d,m=r.coin_records,p=void 0===m?[]:m,h=r.hidden_records,C=void 0===h?[]:h,f=r.stock,N=!1;return r.vending_machine_input?(n=r.vending_machine_input,N=!0):(n=[].concat(u,p),r.extended_inventory&&(n=[].concat(n,C))),n=n.filter((function(e){return!!e})),(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,title:"Products",buttons:!!i&&l&&(0,o.createComponentVNode)(2,c.Box,{fontSize:"16px",color:"green",children:[l&&l.cash||0," cr ",(0,o.createComponentVNode)(2,c.Icon,{name:"coins",color:"gold"})]}),children:(0,o.createComponentVNode)(2,c.Table,{children:n.map((function(e){return(0,o.createComponentVNode)(2,s,{custom:N,product:e,productStock:f[e.name]},e.name)}))})})},s=function(e,t){var n=(0,a.useBackend)(t).data,r=e.custom,i=e.product,l=e.productStock,d=n.access,s=n.department,C=n.jobDiscount,f=n.onstation,N=n.user,g=!f||0===i.price,V=!i.premium&&s===(null==N?void 0:N.department),b=r?i.amount:l.amount,v=Math.round(i.price*C),k=0===b||f&&!N||f&&!d&&(V?v:i.price)>(null==N?void 0:N.cash);return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,u,{product:i})}),(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,children:i.name.replace(/^\w/,(function(e){return e.toUpperCase()}))}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:!(null==l||!l.colorable)&&(0,o.createComponentVNode)(2,m,{disabled:k,product:i})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,p,{custom:r,product:i,remaining:b})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,o.createComponentVNode)(2,h,{custom:r,disabled:k,discount:V,free:g,product:i,redPrice:v})})]})},u=function(e){var t=e.product;return t.img?(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+t.img,style:{"vertical-align":"middle","horizontal-align":"middle"}}):(0,o.createVNode)(1,"span",(0,r.classes)(["vending32x32",t.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})},m=function(e,t){var n=(0,a.useBackend)(t).act,r=e.disabled,i=e.product;return(0,o.createComponentVNode)(2,c.Button,{icon:"palette",tooltip:"Change color",disabled:r,onClick:function(){return n("select_colors",{ref:i.ref})}})},p=function(e){var t=e.custom,n=e.product,r=e.remaining;return(0,o.createComponentVNode)(2,c.Box,{color:(r<=0?"bad":!t&&r<=n.max_amount/2&&"average")||"good",children:[r," left"]})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.access,l=e.custom,d=e.discount,s=e.disabled,u=e.free,m=e.product,p=e.redPrice,h=i?"FREE":m.price+" cr",C=m.price+" cr";return u?C="FREE":d&&(C=p+" cr"),l?(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:s,onClick:function(){return r("dispense",{item:m.name})},children:h}):(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:s,onClick:function(){return r("vend",{ref:m.ref})},children:C})}},80633:function(e,t,n){"use strict";t.__esModule=!0,t.VolumePanel=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.VolumePanel=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.volume_channels;return(0,o.createComponentVNode)(2,c.Window,{width:350,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Volume Levels",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(l).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[(0,o.createComponentVNode)(2,a.Slider,{width:"88%",minValue:0,maxValue:200,value:100*l[e],onChange:function(t,n){return i("adjust_volume",{channel:e,vol:n/100})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"undo",onClick:function(){return i("adjust_volume",{channel:e,vol:1})}})]},e)}))})})})})}},23664:function(e,t,n){"use strict";t.__esModule=!0,t.VorePanel=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949),i=n(2381),l=n(1060),d=["spec"];var s=[null,"average","bad"],u={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},m={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."};t.VorePanel=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data;return(0,o.createComponentVNode)(2,i.Window,{width:700,height:660,theme:"abstract",resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[l.unsaved_changes&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Save Prefs",icon:"save",onClick:function(){return r("saveprefs")}})})]})})||null,(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,_)]})})};var p=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.inside),i=r.absorbed,l=r.belly_name,d=r.belly_mode,s=r.desc,p=r.pred,h=r.contents,C=r.ref;return l?(0,o.createComponentVNode)(2,c.Section,{title:"Inside",children:[(0,o.createComponentVNode)(2,c.Box,{color:"green",inline:!0,children:["You are currently",i?"absorbed into":"inside"]}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{color:"yellow",inline:!0,children:[p,"'s"]}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{color:"red",inline:!0,children:l}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{color:u[d],inline:!0,children:m[d]}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{color:"label",children:s}),h.length&&(0,o.createComponentVNode)(2,c.Collapsible,{title:"Belly Contents",children:(0,o.createComponentVNode)(2,k,{contents:h,belly:C})})||"There is nothing else around you."]}):(0,o.createComponentVNode)(2,c.Section,{title:"Inside",children:"You aren't inside anyone."})},h=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.our_bellies,d=i.selected;return(0,o.createComponentVNode)(2,c.Section,{title:"My Bellies",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[l.map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:e.selected,textColor:u[e.digest_mode],onClick:function(){return r("bellypick",{bellypick:e.ref})},children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,textColor:e.selected&&u[e.digest_mode]||null,children:[e.name," (",e.contents,")"]})},e.name)})),(0,o.createComponentVNode)(2,c.Tabs.Tab,{onClick:function(){return r("newbelly")},children:["New",(0,o.createComponentVNode)(2,c.Icon,{name:"plus",ml:.5})]})]}),d&&(0,o.createComponentVNode)(2,C,{belly:d})]})},C=function(e,t){(0,a.useBackend)(t).act;var n=e.belly,r=n.contents,i=(0,a.useLocalState)(t,"tabIndex",0),l=i[0],d=i[1],s=[];return s[0]=(0,o.createComponentVNode)(2,f,{belly:n}),s[1]=(0,o.createComponentVNode)(2,N,{belly:n}),s[2]=(0,o.createComponentVNode)(2,g,{belly:n}),s[3]=(0,o.createComponentVNode)(2,V,{belly:n}),s[4]=(0,o.createComponentVNode)(2,b,{belly:n}),s[5]=(0,o.createComponentVNode)(2,v,{belly:n}),s[6]=(0,o.createComponentVNode)(2,k,{outside:!0,contents:r}),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===l,onClick:function(){return d(0)},children:"Controls"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===l,onClick:function(){return d(1)},children:"Descriptions"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===l,onClick:function(){return d(2)},children:"Options"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===l,onClick:function(){return d(3)},children:"Sounds"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:4===l,onClick:function(){return d(4)},children:"Visuals"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===l,onClick:function(){return d(5)},children:"Interactions"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===l,onClick:function(){return d(6)},children:["Contents (",r.length,")"]})]}),s[l]||"Error"],0)},f=function(e,t){var n=(0,a.useBackend)(t).act,r=e.belly,i=r.belly_name,l=r.mode,d=r.item_mode,s=r.addons;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",tooltipPosition:"left",tooltip:"Move this belly tab left.",onClick:function(){return n("move_belly",{dir:-1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-right",tooltipPosition:"left",tooltip:"Move this belly tab right.",onClick:function(){return n("move_belly",{dir:1})}})],4),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_name"})},content:i})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,c.Button,{color:u[l],onClick:function(){return n("set_attribute",{attribute:"b_mode"})},content:l})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode Addons",children:[s.length&&s.join(", ")||"None",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item Mode",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_item_mode"})},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{basis:"100%",mt:1,children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return n("set_attribute",{attribute:"b_del"})}})})]})},N=function(e,t){var n=(0,a.useBackend)(t).act,r=e.belly,i=r.verb,l=r.desc,d=r.absorbed_desc;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Verb",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_verb"})},content:i})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Examine Messages",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Struggle Messages",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bellymode Messages",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Idle Messages",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reset Messages",children:(0,o.createComponentVNode)(2,c.Button,{color:"red",onClick:function(){return n("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},g=function(e,t){var n=(0,a.useBackend)(t).act,i=e.belly,l=i.can_taste,d=i.nutrition_percent,s=i.digest_brute,u=i.digest_burn,m=i.digest_oxy,p=i.bulge_size,h=i.display_absorbed_examine,C=i.shrink_grow_size,f=i.emote_time,N=i.emote_active,g=i.contaminates,V=i.contaminate_flavor,b=i.contaminate_color,v=i.egg_type;return(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Can Taste",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_tastes"})},icon:l?"toggle-on":"toggle-off",selected:l,content:l?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contaminates",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_contaminates"})},icon:g?"toggle-on":"toggle-off",selected:g,content:g?"Yes":"No"})}),g&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contamination Flavor",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:V})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Contamination Color",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,r.capitalize)(b)})})],4)||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Nutritional Gain",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_nutritionpercent"})},content:d+"%"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Required Examine Size",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_bulge_size"})},content:100*p+"%"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:h?"toggle-on":"toggle-off",selected:h,content:h?"True":"False"})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Idle Emotes",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_emoteactive"})},icon:N?"toggle-on":"toggle-off",selected:N,content:N?"Active":"Inactive"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Idle Emote Delay",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_emotetime"})},content:f+" seconds"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Digest Brute Damage",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_brute_dmg"})},content:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Digest Burn Damage",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_burn_dmg"})},content:u})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_oxy_dmg"})},content:m})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_grow_shrink"})},content:100*C+"%"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Egg Type",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,r.capitalize)(v)})})]})})]})},V=function(e,t){var n=(0,a.useBackend)(t).act,r=e.belly,i=r.is_wet,l=r.wet_loop,d=r.fancy,s=r.sound,u=r.release_sound;return(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fleshy Belly",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_wetness"})},icon:i?"toggle-on":"toggle-off",selected:i,content:i?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Loop",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_wetloop"})},icon:l?"toggle-on":"toggle-off",selected:l,content:l?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_fancy_sound"})},icon:d?"toggle-on":"toggle-off",selected:d,content:d?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Sound",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_sound"})},content:s}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Release Sound",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_release"})},content:u}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},b=function(e,t){var n=(0,a.useBackend)(t).act,r=e.belly,i=r.belly_fullscreen,d=r.possible_fullscreens,s=r.disable_hud;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Vore FX",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Disable Prey HUD",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_disable_hud"})},icon:s?"toggle-on":"toggle-off",selected:s,content:s?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Belly Fullscreens",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:""===i||null===i,onClick:function(){return n("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(d).map((function(e){return(0,o.createComponentVNode)(2,c.Button,{width:"256px",height:"256px",selected:e===i,onClick:function(){return n("set_attribute",{attribute:"b_fullscreen",val:e})},children:(0,o.createComponentVNode)(2,c.Box,{className:(0,l.classes)(["vore240x240",e]),style:{transform:"translate(0%, 4%)"}})},e)}))]})],4)},v=function(e,t){var n=(0,a.useBackend)(t).act,r=e.belly,i=r.escapable,l=r.interacts;return(0,o.createComponentVNode)(2,c.Section,{title:"Belly Interactions",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return n("set_attribute",{attribute:"b_escapable"})},icon:i?"toggle-on":"toggle-off",selected:i,content:i?"Interactions On":"Interactions Off"}),children:i?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Chance",children:(0,o.createComponentVNode)(2,c.Button,{content:l.escapechance+"%",onClick:function(){return n("set_attribute",{attribute:"b_escapechance"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Time",children:(0,o.createComponentVNode)(2,c.Button,{content:l.escapetime/10+"s",onClick:function(){return n("set_attribute",{attribute:"b_escapetime"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Chance",children:(0,o.createComponentVNode)(2,c.Button,{content:l.transferchance+"%",onClick:function(){return n("set_attribute",{attribute:"b_transferchance"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Location",children:(0,o.createComponentVNode)(2,c.Button,{content:l.transferlocation?l.transferlocation:"Disabled",onClick:function(){return n("set_attribute",{attribute:"b_transferlocation"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Transfer Chance",children:(0,o.createComponentVNode)(2,c.Button,{content:l.transferchance_secondary+"%",onClick:function(){return n("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,o.createComponentVNode)(2,c.Button,{content:l.transferlocation_secondary?l.transferlocation_secondary:"Disabled",onClick:function(){return n("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Absorb Chance",children:(0,o.createComponentVNode)(2,c.Button,{content:l.absorbchance+"%",onClick:function(){return n("set_attribute",{attribute:"b_absorbchance"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Digest Chance",children:(0,o.createComponentVNode)(2,c.Button,{content:l.digestchance+"%",onClick:function(){return n("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},k=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data.show_pictures,l=e.contents,d=e.belly,u=e.outside,m=void 0!==u&&u;return(0,o.createFragment)([m&&(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return r("pick_from_outside",{pickall:!0})},children:"All"})||null,i&&(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",justify:"center",align:"center",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",color:e.absorbed?"purple":s[e.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return r(e.outside?"pick_from_outside":"pick_from_inside",{pick:e.ref,belly:d})},children:(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+e.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),e.name]},e.name)}))})||(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:-1,mb:-1,color:e.absorbed?"purple":s[e.stat],onClick:function(){return r(e.outside?"pick_from_outside":"pick_from_inside",{pick:e.ref,belly:d})},children:"Interact"})},e.ref)}))})],0)},_=function(e,t){var n=(0,a.useBackend)(t),r=n.act,i=n.data,l=i.prefs,d=l.digestable,s=l.devourable,u=l.resizable,m=l.feeding,p=l.absorbable,h=l.digest_leave_remains,C=l.allowmobvore,f=l.permit_healbelly,N=l.show_vore_fx,g=l.can_be_drop_prey,V=l.can_be_drop_pred,b=l.allow_inbelly_spawning,v=l.allow_spontaneous_tf,k=l.step_mechanics_active,_=l.pickup_mechanics_active,w=l.noisy,x=i.show_pictures,S={digestion:{action:"toggle_digest",test:d,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:p,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:s,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:C,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:m,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:f,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:g,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:V,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"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:b,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:w,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:u,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:k,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:N,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:h,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:_,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:v,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"}}};return(0,o.createComponentVNode)(2,c.Section,{title:"Preferences",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:x,onClick:function(){return r("show_pictures")},children:["Contents Preference: ",x?"Show Pictures":"Show List"]}),children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.digestion})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,y,{spec:S.absorbable})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.devour})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.mobvore})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,y,{spec:S.feed})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.healbelly,tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.dropnom_prey})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,y,{spec:S.dropnom_pred})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.inbelly_spawning})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.noisy})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,y,{spec:S.resize})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.steppref,tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.vore_fx,tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,y,{spec:S.remains,tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.pickuppref,tooltipPosition:"top"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,y,{spec:S.spontaneous_tf})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return r("setflavor")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"32%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return r("setsmell")}})})]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return r("saveprefs")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return r("reloadprefs")}})})]})})]})},y=function(e,t){var n=(0,a.useBackend)(t).act,r=e.spec,i=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,d),l=r.action,s=r.test,u=r.tooltip,m=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Button,Object.assign({onClick:function(){return n(l)},icon:s?"toggle-on":"toggle-off",selected:s,fluid:!0,tooltip:u.main+" "+(s?u.disable:u.enable),content:s?m.enabled:m.disabled},i)))}},26042:function(e,t,n){"use strict";t.__esModule=!0,t.VotePanel=void 0;var o,r=n(96323),a=n(26949),c=n(2381),i=n(31246);!function(e){e[e.None=-1]="None",e[e.Disabled=0]="Disabled",e[e.Enabled=1]="Enabled"}(o||(o={}));t.VotePanel=function(e,t){var n=(0,i.useBackend)(t).data,o=n.currentVote,m=n.user,p="Vote";return o&&(p+=": "+(o.question||o.vote.name).replace(/^\w/,(function(e){return e.toUpperCase()}))),(0,r.createComponentVNode)(2,c.Window,{resizable:!0,title:p,width:400,height:500,children:(0,r.createComponentVNode)(2,c.Window.Content,{children:(0,r.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,r.createComponentVNode)(2,a.Section,{title:"Create Vote",children:[(0,r.createComponentVNode)(2,l),!!m.isLowerAdmin&&o&&(0,r.createComponentVNode)(2,d)]}),(0,r.createComponentVNode)(2,s),(0,r.createComponentVNode)(2,u)]})})})};var l=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,d=l.possibleVotes,s=l.user;return(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Collapsible,{title:"Start a Vote",children:(0,r.createComponentVNode)(2,a.Stack,{vertical:!0,justify:"space-between",children:d.map((function(e){return(0,r.createComponentVNode)(2,a.Stack.Item,{children:[!!s.isLowerAdmin&&e.config!==o.None&&(0,r.createComponentVNode)(2,a.Button.Checkbox,{mr:e.config===o.Disabled?1:1.6,color:"red",checked:e.config===o.Enabled,disabled:!s.isUpperAdmin,content:e.config===o.Enabled?"Enabled":"Disabled",onClick:function(){return c("toggleVote",{voteName:e.name})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!e.canBeInitiated,content:e.name,onClick:function(){return c("callVote",{voteName:e.name})}})]},e.name)}))})})})},d=function(e,t){var n=(0,i.useBackend)(t).data;return(0,r.createComponentVNode)(2,a.Stack.Item,{children:(0,r.createComponentVNode)(2,a.Collapsible,{title:"View Voters"+(n.voting.length?": "+n.voting.length:""),children:(0,r.createComponentVNode)(2,a.Section,{height:8,fill:!0,scrollable:!0,children:n.voting.map((function(e){return(0,r.createComponentVNode)(2,a.Box,{children:e},e)}))})})})},s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,l=c.currentVote,d=c.user;return(0,r.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,r.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,title:"Choices",children:l&&0!==l.choices.length?(0,r.createComponentVNode)(2,a.LabeledList,{children:l.choices.map((function(e){return(0,r.createComponentVNode)(2,a.Box,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:e.name.replace(/^\w/,(function(e){return e.toUpperCase()})),textAlign:"right",buttons:(0,r.createComponentVNode)(2,a.Button,{disabled:d.selectedChoice===e.name,onClick:function(){o("vote",{voteOption:e.name})},children:"Vote"}),children:[d.selectedChoice&&e.name===d.selectedChoice&&(0,r.createComponentVNode)(2,a.Icon,{alignSelf:"right",mr:2,color:"green",name:"vote-yea"}),e.votes," Votes"]}),(0,r.createComponentVNode)(2,a.LabeledList.Divider)]},e.name)}))}):(0,r.createComponentVNode)(2,a.NoticeBox,{children:l?"No choices available!":"No vote active!"})})})},u=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,l=c.currentVote,d=c.user;return(0,r.createComponentVNode)(2,a.Stack.Item,{mt:1,children:(0,r.createComponentVNode)(2,a.Section,{children:(0,r.createComponentVNode)(2,a.Stack,{justify:"space-between",children:[(0,r.createComponentVNode)(2,a.Box,{fontSize:1.5,children:["Time Remaining:\xa0",(null==l?void 0:l.timeRemaining)||0,"s"]}),!!d.isLowerAdmin&&(0,r.createComponentVNode)(2,a.Button,{color:"red",disabled:!d.isLowerAdmin||!l,onClick:function(){return o("cancel")},children:"Cancel Vote"})]})})})}},62881:function(e,t,n){"use strict";t.__esModule=!0,t.VrSleeper=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.VrSleeper=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:475,height:340,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!!l.emagged&&(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Safety restraints disabled."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virtual Avatar",children:l.vr_avatar?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.vr_avatar.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:l.vr_avatar.status}),!!l.vr_avatar&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:l.vr_avatar.health/l.vr_avatar.maxhealth,ranges:{good:[.9,Infinity],average:[.7,.8],bad:[-Infinity,.5]}})})]}):"No Virtual Avatar detected"}),(0,o.createComponentVNode)(2,a.Section,{title:"VR Commands",children:[(0,o.createComponentVNode)(2,a.Button,{icon:l.toggle_open?"unlock":"lock",disabled:l.stored<l.max,onClick:function(){return i("toggle_open")},children:l.toggle_open?"Close VR Sleeper":"Open VR Sleeper"}),(0,o.createComponentVNode)(2,a.Section,{children:l.isoccupant?(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"blue",onClick:function(){i("vr_connect"),i("tgui:close")},icon:"unlock",children:"Connect to VR"}):"You need to be inside the VR sleeper to connect to VR"}),!!l.vr_avatar&&(0,o.createComponentVNode)(2,a.Button,{icon:"recycle",onClick:function(){i("delete_avatar")},children:"Delete VR avatar"})]})]})})}},35045:function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.Wires=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.proper_name,s=l.wires||[],u=l.status||[];return(0,o.createComponentVNode)(2,c.Window,{width:350,height:150+30*s.length+(!!d&&30),children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[!!d&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",children:[d," Wire Configuration"]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{className:"candystripe",label:e.color,labelColor:e.color,color:e.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,a.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.color)}))})}),!!u.length&&(0,o.createComponentVNode)(2,a.Section,{children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})}},71688:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchArtifactAnalyzer=void 0;var o=n(96323),r=n(31246),a=n(2381),c=n(26949);t.XenoarchArtifactAnalyzer=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,t){var n=(0,r.useBackend)(t),a=n.act,i=n.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,c.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return a("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,c.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},74393:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchArtifactHarvester=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.XenoarchArtifactHarvester=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,a.Section,{children:u>0&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.info.inserted_battery);return Object.keys(c).length?(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,value:c.stored_charge,maxValue:c.capacity}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No battery inserted."})}},58173:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchDepthScanner=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.XenoarchDepthScanner=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No traces found."})})]})})}},76468:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchHandheldPowerUtilizer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.XenoarchHandheldPowerUtilizer=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,h=l.activated,C=l.duration,f=l.interval;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:h?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,a.NumberInput,{unit:"s",fluid:!0,minValue:0,value:C,stepPixelSize:4,maxValue:30,onDrag:function(e,t){return i("changeduration",{duration:10*t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,a.NumberInput,{unit:"s",fluid:!0,minValue:0,value:f,stepPixelSize:10,maxValue:10,onDrag:function(e,t){return i("changeinterval",{interval:10*t})}})})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},68675:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchReplicator=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.XenoarchReplicator=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data.tgui_construction;return(0,o.createComponentVNode)(2,c.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:l.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},73146:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchSpectrometer=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381),i=n(21118);t.XenoarchSpectrometer=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,h=d.scanning,C=d.scanner_seal_integrity,f=d.scanner_rpm,N=d.scanner_temperature,g=d.coolant_usage_rate,V=d.coolant_usage_max,b=(d.unused_coolant_abs,d.unused_coolant_per),v=d.coolant_purity,k=d.optimal_wavelength,_=d.maser_wavelength,y=d.maser_wavelength_max,w=d.maser_efficiency,x=d.radiation,S=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,c.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"signal",selected:h,onClick:function(){return l("scanItem")},children:h?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:w,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,a.Slider,{animated:!0,value:_,fillValue:k,minValue:1,maxValue:y,format:function(e){return e+" MHz"},step:10,onDrag:function(e,t){return l("maserWavelength",{wavelength:t})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:f,minValue:0,maxValue:1e3,color:"good",children:[f," RPM"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,value:N,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[N," K"]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:S,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:S?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,value:10*b,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*b," u"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,value:g,maxValue:V,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,t){return l("coolantRate",{coolant:t})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,value:v,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})}},4285:function(e,t,n){"use strict";t.__esModule=!0,t.XenoarchSuspension=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.XenoarchSuspension=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},29854:function(e,t,n){"use strict";t.__esModule=!0,t.AccessConfig=void 0;var o=n(96323),r=n(1397),a=n(26949),c=n(31246);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.AccessConfig=function(e,t){var n,l=e.accesses,s=void 0===l?[]:l,u=e.selectedList,m=void 0===u?[]:u,p=e.accessMod,h=e.grantAll,C=e.denyAll,f=e.grantDep,N=e.denyDep,g=(0,c.useLocalState)(t,"accessName",null==(n=s[0])?void 0:n.name),V=g[0],b=g[1],v=s.find((function(e){return e.name===V})),k=(0,r.sortBy)((function(e){return e.desc}))((null==v?void 0:v.accesses)||[]),_=function(e){for(var t,n=!1,o=!1,r=i(e);!(t=r()).done;){var a=t.value;m.includes(a.ref)?n=!0:o=!0}return!n&&o?0:n&&o?1:2};return(0,o.createComponentVNode)(2,a.Section,{title:"Access",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"check-double",content:"Grant All",color:"good",onClick:function(){return h()}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Deny All",color:"bad",onClick:function(){return C()}})],4),children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:s.map((function(e){var t=e.accesses||[],n=d[_(t)].icon,r=d[_(t)].color;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{altSelection:!0,color:r,icon:n,selected:e.name===V,onClick:function(){return b(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,ml:1.5,children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{mr:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"check",content:"Grant Region",color:"good",onClick:function(){return f(v.name)}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{ml:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"times",content:"Deny Region",color:"bad",onClick:function(){return N(v.name)}})})]}),k.map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{fluid:!0,content:e.desc,checked:m.includes(e.ref),onClick:function(){return p(e.ref)}},e.desc)}))]})]})})};var d={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}}},52126:function(e,t,n){"use strict";t.__esModule=!0,t.FormatWildcards=t.AccessList=void 0;var o=n(96323),r=n(1397),a=n(31246),c=n(26949);t.AccessList=function(e,t){var n,r=e.accesses,s=void 0===r?[]:r,u=e.wildcardSlots,m=void 0===u?{}:u,p=e.selectedList,h=void 0===p?[]:p,C=e.accessMod,f=e.trimAccess,N=void 0===f?[]:f,g=e.accessFlags,V=void 0===g?{}:g,b=e.accessFlagNames,v=void 0===b?{}:b,k=e.wildcardFlags,_=void 0===k?{}:k,y=e.extraButtons,w=e.showBasic,x=(0,a.useSharedState)(t,"wildcardSelected",w?"None":Object.keys(m)[0]),S=x[0],B=x[1];"None"===S||m[S]?n=S:B(n=w?"None":Object.keys(m)[0]);var I=[],L=[];return s.forEach((function(e){var t=e.name,o=e.accesses,r={name:t,accesses:[],hasSelected:!1,allSelected:!0};if(w&&o.forEach((function(e){N.includes(e.ref)&&h.includes(e.ref)&&!L.includes(e.ref)&&L.push(e.ref)})),"None"===n)return o.forEach((function(e){N.includes(e.ref)&&(r.accesses.push(e),h.includes(e.ref)?r.hasSelected=!0:r.allSelected=!1)})),void(r.accesses.length&&I.push(r));o.forEach((function(e){N.includes(e.ref)||V[e.ref]&_[n]&&(r.accesses.push(e),h.includes(e.ref)?r.hasSelected=!0:r.allSelected=!1)})),r.accesses.length&&I.push(r)})),(0,o.createComponentVNode)(2,c.Section,{title:"Access",buttons:y,children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{width:"100%",children:(0,o.createComponentVNode)(2,i,{wildcardSlots:m,selectedList:h,showBasic:w,basicUsed:L.length,basicMax:N.length})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,l,{accesses:I})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,d,{accesses:I,selectedList:h,accessMod:C,trimAccess:N,accessFlags:V,accessFlagNames:v,wildcardSlots:m,showBasic:w})})]})})};var i=function(e,t){var n,r=e.wildcardSlots,i=void 0===r?{}:r,l=e.showBasic,d=e.basicUsed,s=void 0===d?0:d,u=e.basicMax,m=void 0===u?0:u,p=(0,a.useSharedState)(t,"wildcardSelected",l?"None":Object.keys(i)[0]),h=p[0],C=p[1];return"None"===h||i[h]?n=h:(n=l?"None":Object.keys(i)[0],C(n)),(0,o.createComponentVNode)(2,c.Tabs,{children:[l&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"None"===n,onClick:function(){return C("None")},children:["Trim:",(0,o.createVNode)(1,"br"),s+"/"+m]}),Object.keys(i).map((function(e){var t=i[e],r=t.limit,a=t.usage.length;r-a<0&&(r="\u221e");var l=a+"/"+r;return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:n===e,onClick:function(){return C(e)},children:[e+":",(0,o.createVNode)(1,"br"),l]},e)}))]})};t.FormatWildcards=i;var l=function(e,t){var n,r=e.accesses,i=void 0===r?[]:r,l=(0,a.useSharedState)(t,"accessName",null==(n=i[0])?void 0:n.name),d=l[0],s=l[1];return(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:i.map((function(e){var t=(e.allSelected?"check":e.hasSelected&&"minus")||"times";return(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:t,minWidth:"100%",altSelection:!0,selected:e.name===d,onClick:function(){return s(e.name)},children:e.name},e.name)}))})},d=function(e,t){var n,i,l=e.accesses,d=void 0===l?[]:l,s=e.selectedList,u=void 0===s?[]:s,m=e.accessMod,p=e.trimAccess,h=void 0===p?[]:p,C=e.accessFlags,f=void 0===C?{}:C,N=e.accessFlagNames,g=void 0===N?{}:N,V=e.wildcardSlots,b=void 0===V?{}:V,v=e.showBasic,k=(0,a.useSharedState)(t,"wildcardSelected",v?"None":Object.keys(b)[0]),_=k[0],y=k[1];"None"===_||b[_]?i=_:y(i=v?"None":Object.keys(b)[0]);var w=(0,a.useSharedState)(t,"accessName",null==(n=d[0])?void 0:n.name)[0],x=d.find((function(e){return e.name===w})),S=(0,r.sortBy)((function(e){return e.desc}))((null==x?void 0:x.accesses)||[]),B=Object.keys(b),I={};B.forEach((function(e){b[e].usage.forEach((function(t){I[t]=e}))}));var L=b[i],T=(L?L.limit:-1)-(L?L.usage.length:0);return S.map((function(e){var t=e.ref,n=0===T&&I[t]!==i||T>0&&I[t]&&I[t]!==i,r=!I[t]&&h.includes(t)?e.desc:e.desc+" ("+g[f[t]]+")";return(0,o.createComponentVNode)(2,c.Button.Checkbox,{ml:1,fluid:!0,content:r,disabled:n,checked:u.includes(e.ref),onClick:function(){return m(e.ref,"None"===i?null:i)}},e.desc)}))}},75549:function(e,t,n){"use strict";t.__esModule=!0,t.Scrubber=t.Vent=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949);t.Vent=function(e,t){var n=e.vent,i=(0,a.useBackend)(t).act,l=n.id_tag,d=n.long_name,s=n.power,u=n.checks,m=n.excheck,p=n.incheck,h=n.direction,C=n.external,f=n.internal,N=n.extdefault,g=n.intdefault;return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"siphon"!==h?"Pressurizing":"Siphoning",color:"siphon"===h&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===h)})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,c.NumberInput,{value:Math.round(f),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return i("set_internal_pressure",{id_tag:l,value:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",disabled:g,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,c.NumberInput,{value:Math.round(C),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,t){return i("set_external_pressure",{id_tag:l,value:t})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",disabled:N,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};t.Scrubber=function(e,t){var n=e.scrubber,i=(0,a.useBackend)(t).act,l=n.long_name,d=n.power,s=n.scrubbing,u=n.id_tag,m=(n.widenet,n.filters);return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},44151:function(e,t,n){"use strict";t.__esModule=!0,t.atmosHandbookHooks=t.AtmosHandbookContent=void 0;var o=n(96323),r=n(31246),a=n(26949),c=function(e,t){var n=e.title,r=e.onChange,c=e.activeInput,i=e.setActiveInput;return(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:c?(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onChange:function(e,t){i(!1),r(t)}}):n}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"search",onClick:function(){return i(!c)}})})]})},i=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.gasInfo),l=(0,r.useLocalState)(t,"activeGasId",""),d=l[0],s=l[1],u=(0,r.useLocalState)(t,"activeReactionId",""),m=(u[0],u[1]),p=(0,r.useLocalState)(t,"gasActiveInput",!1),h=p[0],C=p[1],f=i.find((function(e){return e.id===d}));return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,c,{title:f?"Gas: "+f.name:"Gas Lookup",onChange:function(e){var t;return s((null==(t=i.find((function(t){return t.name.toLowerCase().startsWith(e.toLowerCase())})))?void 0:t.id)||"")},activeInput:h,setActiveInput:C}),children:f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:f.description}),(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:"Specific heat: "+f.specific_heat+" Joule/KelvinMol"}),(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:"Relevant Reactions:"}),Object.entries(f.reactions).map((function(e){var t=e[0],n=e[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return m(t)},content:n})},t)}))],0)})},l=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.reactionInfo),l=(0,r.useLocalState)(t,"activeGasId",""),d=(l[0],l[1]),s=(0,r.useLocalState)(t,"activeReactionId",""),u=s[0],m=s[1],p=(0,r.useLocalState)(t,"reactionActiveInput",!1),h=p[0],C=p[1],f=null==i?void 0:i.find((function(e){return e.id===u}));return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,c,{title:f?"Reaction: "+f.name:"Reaction Lookup",onChange:function(e){var t;return m((null==(t=i.find((function(t){return t.name.toLowerCase().startsWith(e.toLowerCase())})))?void 0:t.id)||"")},activeInput:h,setActiveInput:C}),children:f&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:f.description}),(0,o.createComponentVNode)(2,a.Box,{mb:"0.5em",children:"Relevant Factors:"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:f.factors.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"gas"===e.factor_type&&e.factor_id?(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return d(String(e.factor_id))},content:e.factor_name}):e.tooltip?(0,o.createComponentVNode)(2,a.Tooltip,{content:e.tooltip,position:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:(0,o.createComponentVNode)(2,a.Flex.Item,{style:{"border-bottom":"dotted 2px"},shrink:!0,children:e.factor_name+":"})})}):e.factor_name,children:e.desc},f.id+"_"+e.factor_name)}))})],4)})};t.AtmosHandbookContent=function(e,t){return e.vertical?(0,o.createFragment)([(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,l)],4):(0,o.createComponentVNode)(2,a.Stack,{children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,l)}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i)})]})};t.atmosHandbookHooks=function(e){var t=(0,r.useLocalState)(e,"activeGasId",""),n=(t[0],t[1]),o=(0,r.useLocalState)(e,"activeReactionId","");o[0];return[n,o[1]]}},57361:function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var o=n(96323),r=n(26949);t.BeakerContents=function(e){var t=e.beakerLoaded,n=e.beakerContents,a=void 0===n?[]:n,c=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!t&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===a.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),a.map((function(e,t){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!c&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:c(e,t)})]})},e.name);var n}))]})}},84645:function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalRegisterBodyOverride=t.modalOpen=void 0;var o=n(96323),r=n(31246),a=n(26949),c={};t.modalOpen=function(e,t,n){var o=(0,r.useBackend)(e),a=o.act,c=o.data,i=Object.assign(c.modal?c.modal.args:{},n||{});a("modal_open",{id:t,arguments:JSON.stringify(i)})};t.modalRegisterBodyOverride=function(e,t){c[e]=t};var i=function(e,t,n,o){var a=(0,r.useBackend)(e),c=a.act,i=a.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});c("modal_answer",{id:t,answer:n,arguments:JSON.stringify(l)})}},l=function(e,t){(0,(0,r.useBackend)(e).act)("modal_close",{id:t})};t.ComplexModal=function(e,t){var n=(0,r.useBackend)(t).data;if(n.modal){var d,s,u=n.modal,m=u.id,p=u.text,h=u.type,C=(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}});if(c[m])s=c[m](n.modal,t);else if("input"===h){var f=n.modal.value;d=function(e){return i(t,m,f)},s=(0,o.createComponentVNode)(2,a.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,t){f=t}}),C=(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(t)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(t,m,f)}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})}else if("choice"===h){var N="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;s=(0,o.createComponentVNode)(2,a.Dropdown,{options:N,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(t,m,e)}})}else"bento"===h?s=(0,o.createComponentVNode)(2,a.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,a.Button,{selected:r+1===parseInt(n.modal.value,10),onClick:function(){return i(t,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===h&&(C=(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(t,m,0)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(t,m,1)}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,a.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p}),s,C]})}}},75309:function(e,t,n){"use strict";t.__esModule=!0,t.FullscreenNotice=void 0;var o=n(96323),r=n(26949);t.FullscreenNotice=function(e,t){var n=e.children,a=e.title,c=void 0===a?"Welcome":a;return(0,o.createComponentVNode)(2,r.Section,{title:c,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:n})})})}},42055:function(e,t,n){"use strict";t.__esModule=!0,t.GasmixParser=void 0;var o=n(96323),r=n(26949),a=["gasmix","gasesOnClick","temperatureOnClick","volumeOnClick","pressureOnClick","reactionOnClick","detailedReactions"];t.GasmixParser=function(e,t){var n=e.gasmix,c=e.gasesOnClick,i=e.temperatureOnClick,l=e.volumeOnClick,d=e.pressureOnClick,s=e.reactionOnClick,u=e.detailedReactions,m=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,a),p=n.gases,h=n.temperature,C=n.volume,f=n.pressure,N=n.total_moles,g=n.reactions;return N?(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.LabeledList,Object.assign({},m,{children:[p.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:c?(0,o.createComponentVNode)(2,r.Button,{content:e[1],onClick:function(){return c(e[0])}}):e[1],children:e[2].toFixed(2)+" mol ("+(e[2]/N*100).toFixed(2)+" %)"},e[1])})),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:i?(0,o.createComponentVNode)(2,r.Button,{content:"Temperature",onClick:function(){return i()}}):"Temperature",children:(N?h.toFixed(2):"-")+" K"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:l?(0,o.createComponentVNode)(2,r.Button,{content:"Volume",onClick:function(){return l()}}):"Volume",children:(N?C.toFixed(2):"-")+" L"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:d?(0,o.createComponentVNode)(2,r.Button,{content:"Pressure",onClick:function(){return d()}}):"Pressure",children:(N?f.toFixed(2):"-")+" kPa"}),u?g.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:s?(0,o.createComponentVNode)(2,r.Button,{content:e[1],onClick:s(e[0])}):e[1],children:e[2]},n.reference+"-"+e[0])})):(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Gas Reactions",children:g.length?g.map((function(e){return s?(0,o.createComponentVNode)(2,r.Box,{mb:"0.5em",children:(0,o.createComponentVNode)(2,r.Button,{content:e[1],onClick:function(){return s(e[0])}})}):(0,o.createVNode)(1,"div",null,e[1],0)})):"No reactions detected"})]}))):(0,o.createComponentVNode)(2,r.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})}},34277:function(e,t,n){"use strict";t.__esModule=!0,t.InputButtons=void 0;var o=n(96323),r=n(31246),a=n(26949);t.InputButtons=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.large_buttons,d=i.swapped_buttons,s=e.input,u=e.message,m=(0,o.createComponentVNode)(2,a.Button,{color:"good",fluid:!!l,height:!!l&&2,onClick:function(){return c("submit",{entry:s})},m:.5,pl:2,pr:2,pt:l?.33:0,textAlign:"center",tooltip:l&&u,width:!l&&6,children:l?"SUBMIT":"Submit"}),p=(0,o.createComponentVNode)(2,a.Button,{color:"bad",fluid:!!l,height:!!l&&2,onClick:function(){return c("cancel")},m:.5,pl:2,pr:2,pt:l?.33:0,textAlign:"center",width:!l&&6,children:l?"CANCEL":"Cancel"});return(0,o.createComponentVNode)(2,a.Flex,{align:"center",direction:d?"row-reverse":"row",fill:!0,justify:"space-around",children:[l?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:p}):(0,o.createComponentVNode)(2,a.Flex.Item,{children:p}),!l&&u&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:u})}),l?(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:m}):(0,o.createComponentVNode)(2,a.Flex.Item,{children:m})]})}},19447:function(e,t,n){"use strict";t.__esModule=!0,t.InterfaceLockNoticeBox=void 0;var o=n(96323),r=n(31246),a=n(26949);t.InterfaceLockNoticeBox=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.onLockStatusChange,p=void 0===m?function(){return c("lock")}:m,h=e.accessText,C=void 0===h?"an ID card":h;return d?(0,o.createComponentVNode)(2,a.NoticeBox,{color:"grey",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{m:0,color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){p&&p(!u)}})})]})}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Swipe ",C," ","to ",u?"unlock":"lock"," this interface."]})}},55631:function(e,t,n){"use strict";t.__esModule=!0,t.Loader=void 0;var o=n(96323),r=n(26949),a=n(97622);t.Loader=function(e){var t=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,r.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,a.clamp01)(t)+"%"}}),2)}},62291:function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var o=n(96323),r=n(31246),a=n(26949);t.LoginInfo=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return c("logout")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})}},20273:function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(75309);t.LoginScreen=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,c.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,a.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},22586:function(e,t,n){"use strict";t.__esModule=!0,t.MaterialAmount=t.MaterialFormatting=t.Materials=t.MaterialIcon=t.MATERIAL_KEYS=void 0;var o=n(96323),r=n(26949),a=n(1060),c=n(1033),i=n(31246),l=["material"];var d={iron:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",gold:"sheet-gold_3",diamond:"sheet-diamond",plasma:"sheet-plasma_3",uranium:"sheet-uranium",bananium:"sheet-bananium",titanium:"sheet-titanium_3","bluespace crystal":"polycrystal",plastic:"sheet-plastic_3"};t.MATERIAL_KEYS=d;var s=function(e){var t=e.material,n=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,l);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({},n,{className:(0,a.classes)(["sheetmaterials32x32",d[t]])})))};t.MaterialIcon=s;var u,m=function(e,t){var n=e.material,a=n.name,c=n.removable,l=n.sheets,d=(0,i.useSharedState)(t,"remove_mats_"+a,1),s=d[0],u=d[1];return s>1&&l<s&&u(l||1),(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NumberInput,{width:"30px",animated:!0,value:s,minValue:1,maxValue:l||1,initial:1,onDrag:function(e,t){var n=parseInt(t,10);Number.isInteger(n)&&u(n)}}),(0,o.createComponentVNode)(2,r.Button,{icon:"eject",disabled:!c,onClick:function(){e.onEject(s)}})],4)};t.Materials=function(e){return(0,o.createComponentVNode)(2,r.Flex,{wrap:!0,children:e.materials.map((function(t){return(0,o.createComponentVNode)(2,r.Flex.Item,{grow:1,shrink:1,children:[(0,o.createComponentVNode)(2,p,{name:t.name,amount:t.amount,formatting:u.SIUnits}),(0,o.createComponentVNode)(2,r.Box,{mt:1,textAlign:"center",children:(0,o.createComponentVNode)(2,m,{material:t,onEject:function(n){e.onEject(t.ref,n)}})})]},t.name)}))})},t.MaterialFormatting=u,function(e){e[e.SIUnits=0]="SIUnits",e[e.Money=1]="Money",e[e.Locale=2]="Locale"}(u||(t.MaterialFormatting=u={}));var p=function(e){var t,n=e.name,a=e.amount,i=e.color,l=e.style;switch(e.formatting){case u.SIUnits:t=(0,c.formatSiUnit)(a,0);break;case u.Money:t=(0,c.formatMoney)(a);break;case u.Locale:t=a.toLocaleString();break;default:t=a}return(0,o.createComponentVNode)(2,r.Flex,{direction:"column",textAlign:"center",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,s,{material:n,style:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{color:i,children:t})]})};t.MaterialAmount=p},11409:function(e,t,n){"use strict";t.__esModule=!0,t.MiningUser=void 0;var o=n(96323),r=n(31246),a=n(26949);t.MiningUser=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,a.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return c("logoff")}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})],4):l})}},40459:function(e,t,n){"use strict";t.__esModule=!0,t.OvermapPanControls=t.OvermapFlightData=void 0;var o=n(96323),r=n(31246),a=n(26949);t.OvermapFlightData=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,h=i.accellimit;return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return c("accellimit")},children:[h," Gm/h"]})})||null]})};t.OvermapPanControls=function(e,t){var n=(0,r.useBackend)(t).act,c=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(9),onClick:function(){return n(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(1),onClick:function(){return n(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(5),onClick:function(){return n(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(8),onClick:function(){return n(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(0),onClick:function(){return n("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(4),onClick:function(){return n(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(10),onClick:function(){return n(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(2),onClick:function(){return n(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,a.Button,{disabled:c,selected:d(6),onClick:function(){return n(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},41161:function(e,t,n){"use strict";t.__esModule=!0,t.PortableBasicInfo=void 0;var o=n(96323),r=n(31246),a=n(26949);t.PortableBasicInfo=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return c("power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return c("eject")}}),children:d?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No holding tank"})})],4)}},63826:function(e,t,n){"use strict";t.__esModule=!0,t.RankIcon=void 0;var o=n(96323),r=n(26949),a={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};t.RankIcon=function(e,t){var n=e.rank,c=e.color,i=void 0===c?"label":c,l=a[n];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},14958:function(e,t,n){"use strict";t.__esModule=!0,t.ReagentLookup=void 0;var o=n(96323),r=n(31246),a=n(26949);t.ReagentLookup=function(e,t){var n=e.reagent,c=(0,r.useBackend)(t).act;return n?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reagent",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"circle",mr:1,color:n.reagentCol}),n.name,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"wifi",color:"teal",tooltip:"Open the associated wikipage for this reagent.",tooltipPosition:"left",onClick:function(){Byond.command("wiki Guide_to_chemistry#"+n.name)}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:n.desc}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"pH",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"circle",mr:1,color:n.pHCol}),n.pH]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Properties",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!n.OD&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overdose",children:[n.OD,"u"]}),n.addictions[0]&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Addiction",children:n.addictions.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Metabolization rate",children:[n.metaRate,"u/s"]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Impurities",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[n.impureReagent&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Impure reagent",children:(0,o.createComponentVNode)(2,a.Button,{icon:"vial",tooltip:"This reagent will partially convert into this when the purity is above the Inverse purity on consumption.",tooltipPosition:"left",content:n.impureReagent,onClick:function(){return c("reagent_click",{id:n.impureId})}})}),n.inverseReagent&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inverse reagent",children:(0,o.createComponentVNode)(2,a.Button,{icon:"vial",content:n.inverseReagent,tooltip:"This reagent will convert into this when the purity is below the Inverse purity on consumption.",tooltipPosition:"left",onClick:function(){return c("reagent_click",{id:n.inverseId})}})}),n.failedReagent&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Failed reagent",children:(0,o.createComponentVNode)(2,a.Button,{icon:"vial",tooltip:"This reagent will turn into this if the purity of the reaction is below the minimum purity on completion.",tooltipPosition:"left",content:n.failedReagent,onClick:function(){return c("reagent_click",{id:n.failedId})}})})]}),n.isImpure&&(0,o.createComponentVNode)(2,a.Box,{children:"This reagent is created by impurity."}),n.deadProcess&&(0,o.createComponentVNode)(2,a.Box,{children:"This reagent works on the dead."}),!n.failedReagent&&!n.inverseReagent&&!n.impureReagent&&(0,o.createComponentVNode)(2,a.Box,{children:"This reagent has no impure reagents."})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"flask",mt:2,content:"Find associated reaction",color:"purple",onClick:function(){return c("find_reagent_reaction",{id:n.id})}})})]}):(0,o.createComponentVNode)(2,a.Box,{children:"No reagent selected!"})}},8782:function(e,t,n){"use strict";t.__esModule=!0,t.RecipeLookup=void 0;var o=n(96323),r=n(31246),a=n(26949);t.RecipeLookup=function(e,t){var n=e.recipe,c=e.bookmarkedReactions,i=(0,r.useBackend)(t),l=i.act,d=i.data;if(!n)return(0,o.createComponentVNode)(2,a.Box,{children:"No reaction selected!"});var s=function(e){return d.master_reaction_list.filter((function(t){return t.id===e}))};return(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Recipe",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"circle",mr:1,color:n.reagentCol}),n.name,(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",ml:3,disabled:1===n.subReactIndex,onClick:function(){return l("reduce_index",{id:n.name})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",disabled:n.subReactIndex===n.subReactLen,onClick:function(){return l("increment_index",{id:n.name})}}),c&&(0,o.createComponentVNode)(2,a.Button,{icon:"book",color:"green",disabled:c.has(s(n.id)[0]),onClick:function(){var e;e=s(n.id)[0],c.add(e),l("update_ui")}})]}),n.products&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Products",children:n.products.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"vial",disabled:e.hasProduct,content:e.ratio+"u "+e.name,onClick:function(){return l("reagent_click",{id:e.id})}},e.name)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Reactants",children:n.reactants.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"vial",color:e.color,content:e.ratio+"u "+e.name,onClick:function(){return l("reagent_click",{id:e.id})}}),!!e.tooltipBool&&(0,o.createComponentVNode)(2,a.Button,{icon:"flask",color:"purple",tooltip:e.tooltip,tooltipPosition:"right",onClick:function(){return l("find_reagent_reaction",{id:e.id})}})]},e.id)}))}),n.catalysts&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Catalysts",children:n.catalysts.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e.tooltipBool&&(0,o.createComponentVNode)(2,a.Button,{icon:"vial",color:e.color,content:e.ratio+"u "+e.name,tooltip:e.tooltip,tooltipPosition:"right",onClick:function(){return l("reagent_click",{id:e.id})}})||(0,o.createComponentVNode)(2,a.Button,{icon:"vial",color:e.color,content:e.ratio+"u "+e.name,onClick:function(){return l("reagent_click",{id:e.id})}})},e.id)}))}),n.reqContainer&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Container",children:(0,o.createComponentVNode)(2,a.Button,{color:"transparent",textColor:"white",tooltipPosition:"right",content:n.reqContainer,tooltip:"The required container for this reaction to occur in."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Purity",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Optimal pH range",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"If your reaction is kept within these bounds then the purity of your product will be 100%",children:n.lowerpH+"-"+n.upperpH})})}),!!n.inversePurity&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inverse purity",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"If your purity is below this it will 100% convert into the product's associated Inverse reagent on consumption.",children:"<"+100*n.inversePurity+"%"})})}),!!n.minPurity&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Minimum purity",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"If your purity is below this at any point during the reaction, it will cause negative effects, and if it remains below this value on completion it will convert into the product's associated Failed reagent.",children:"<"+100*n.minPurity+"%"})})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Rate profile",width:"10px",children:[(0,o.createComponentVNode)(2,a.Box,{height:"50px",position:"relative",style:{"background-color":"black"},children:[(0,o.createComponentVNode)(2,a.Chart.Line,{fillPositionedParent:!0,data:n.thermodynamics,strokeWidth:0,fillColor:"#3cf072"}),n.explosive&&(0,o.createComponentVNode)(2,a.Chart.Line,{position:"absolute",justify:"right",top:.01,bottom:0,right:n.isColdRecipe?null:0,width:"28px",data:n.explosive,strokeWidth:0,fillColor:"#d92727"})]}),(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Tooltip,{content:n.isColdRecipe?"The temperature at which it is underheated, causing negative effects on the reaction.":"The minimum temperature needed for this reaction to start. Heating it up past this point will increase the reaction rate.",children:(0,o.createComponentVNode)(2,a.Flex.Item,{position:"relative",textColor:n.isColdRecipe&&"red",children:n.isColdRecipe?n.explodeTemp+"K":n.tempMin+"K"})}),n.explosive&&(0,o.createComponentVNode)(2,a.Tooltip,{content:n.isColdRecipe?"The minimum temperature needed for this reaction to start. Heating it up past this point will increase the reaction rate.":"The temperature at which it is overheated, causing negative effects on the reaction.",children:(0,o.createComponentVNode)(2,a.Flex.Item,{position:"relative",textColor:!n.isColdRecipe&&"red",children:n.isColdRecipe?n.tempMin+"K":n.explodeTemp+"K"})})]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{bold:!0,label:"Dynamics",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Optimal rate",children:(0,o.createComponentVNode)(2,a.Tooltip,{content:"The fastest rate the reaction can go, in units per second. This is the plateu region shown in the rate profile above.",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:n.thermoUpper+"u/s"})})})}),(0,o.createComponentVNode)(2,a.Tooltip,{content:"The heat generated by a reaction - exothermic produces heat, endothermic consumes heat.",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:n.thermics})})]})]})}},98194:function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949);t.TemporaryNotice=function(e,t){var n,i=e.decode,l=(0,a.useBackend)(t),d=l.act,s=l.data.temp;if(s){var u=((n={})[s.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})))}}},68341:function(e,t,n){"use strict";t.__esModule=!0,t.heat_pump=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.heat_pump=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.target_temp,s=l.current_temp,u=l.sink_temp,m=l.on,p=l.lowest_temp,h=l.efficency,C=l.highest_temp;return(0,o.createComponentVNode)(2,c.Window,{width:435,height:175,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Efficency",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*h})," %"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})," Kelvin"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sink Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:u})," Kelvin"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"minus",content:"min",disabled:d===p,onClick:function(){return i("target_temp",{temperature:p})}}),(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,value:parseFloat(d),unit:"K",width:"75px",minValue:p,maxValue:C,step:10,onChange:function(e,t){return i("target_temp",{temperature:t})}}),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"plus",content:"Max",disabled:d===C,onClick:function(){return i("target_temp",{temperature:C})}})]})]})})})})}},28697:function(e,t,n){"use strict";t.__esModule=!0,t.pAIAtmos=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=n(2381),d=function(e,t,n,o,r){return e<t?"bad":e<n||e>o?"average":e>r?"bad":"good"};t.pAIAtmos=function(e,t){var n=(0,c.useBackend)(t),s=(n.act,n.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:d(e.val,e.bad_low,e.poor_low,e.poor_high,e.bad_high),children:[e.val,(0,a.decodeHtmlEntities)(e.units)]},e.entry)}))})})})})}},11307:function(e,t,n){"use strict";t.__esModule=!0,t.pAIDirectives=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.pAIDirectives=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Master",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,a.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,a.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,a.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})]})})}},96529:function(e,t,n){"use strict";t.__esModule=!0,t.pAIDoorjack=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.pAIDoorjack=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,h=l.aborted;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!h&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},72383:function(e,t,n){"use strict";t.__esModule=!0,t.pAIMedrecords=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.pAIMedrecords=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,a.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,a.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,a.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.alg}),(0,o.createComponentVNode)(2,a.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,a.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},36486:function(e,t,n){"use strict";t.__esModule=!0,t.pAISecrecords=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(2381);t.pAISecrecords=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=n.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,c.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,a.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,a.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,a.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,a.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,a.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},31351:function(e,t,n){"use strict";t.__esModule=!0,t.pda_atmos_scan=void 0;var o=n(96323),r=n(1397),a=n(21118),c=n(31246),i=n(26949),l=function(e,t,n,o,r){return e<t?"bad":e<n||e>o?"average":e>r?"bad":"good"};t.pda_atmos_scan=function(e,t){var n=(0,c.useBackend)(t),d=(n.act,n.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:l(e.val,e.bad_low,e.poor_low,e.poor_high,e.bad_high),children:[e.val,(0,a.decodeHtmlEntities)(e.units)]},e.entry)}))})})}},59320:function(e,t,n){"use strict";t.__esModule=!0,t.pda_janitor=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_janitor=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.janitor);return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:0===c.user_loc.x&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,a.Box,{children:[c.user_loc.x," / ",c.user_loc.y]})})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Mop Locations",children:c.mops&&(0,o.createVNode)(1,"ul",null,c.mops.map((function(e,t){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,t)})),0)||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Mop Bucket Locations",children:c.buckets&&(0,o.createVNode)(1,"ul",null,c.buckets.map((function(e,t){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,t)})),0)||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Cleanbot Locations",children:c.cleanbots&&(0,o.createVNode)(1,"ul",null,c.cleanbots.map((function(e,t){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,t)})),0)||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Janitorial Cart Locations",children:c.carts&&(0,o.createVNode)(1,"ul",null,c.carts.map((function(e,t){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,t)})),0)||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},28505:function(e,t,n){"use strict";t.__esModule=!0,t.pda_main_menu=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_main_menu=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return c("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:u.map((function(e){var t=i.apps[e];return t&&t.length?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:t.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return c("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return c("pai",{option:1})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return c("pai",{option:2})}})]})],0)}},89176:function(e,t,n){"use strict";t.__esModule=!0,t.pda_manifest=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(83828);t.pda_manifest=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,c.CrewManifestContent)})}},79720:function(e,t,n){"use strict";t.__esModule=!0,t.pda_medical=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_medical=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Important Notes",children:u.notes})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return c("Records",{target:e.ref})}},e.ref)}))})}},39955:function(e,t,n){"use strict";t.__esModule=!0,t.pda_messenger=void 0;var o=n(96323),r=n(21118),a=n(1397),c=n(31246),i=n(26949);t.pda_messenger=function(e,t){var n=(0,c.useBackend)(t),r=(n.act,n.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,t,n){if(t<0||t>n.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=n[t].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,t){var n=(0,c.useBackend)(t),d=n.act,s=n.data,u=(s.auto_scroll,s.convo_name),p=s.convo_job,h=s.messages,C=s.active_conversation,f=(s.useRetro,(0,c.useLocalState)(t,"clipboardMode",!1)),N=f[0],g=f[1],V=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+p+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){return g(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,a.filter)((function(e){return e.target===C}))(h).map((function(e,t,n){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,t-1,n),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},t)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(V=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+p+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){return g(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,a.filter)((function(e){return e.target===C}))(h).map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[m.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},t)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),V]})},s=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=(a.auto_scroll,a.convopdas),d=a.pdas,s=a.charges,m=(a.plugins,a.silent),p=a.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,t){var n=(0,c.useBackend)(t),r=n.act,a=n.data,l=e.pdas,d=e.title,s=e.msgAct,u=a.charges,m=a.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(t){return(0,o.createComponentVNode)(2,i.Button,{icon:t.icon,content:t.name,onClick:function(){return r("Messenger Plugin",{plugin:t.ref,target:e.Reference})}},t.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},97723:function(e,t,n){"use strict";t.__esModule=!0,t.pda_news=void 0;var o=n(96323),r=n(21118),a=n(31246),c=n(26949);t.pda_news=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,c.Box,{children:!d.length&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data.target_feed;return(0,o.createComponentVNode)(2,c.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,t){var n=(0,a.useBackend)(t),i=n.act,l=n.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,c.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,c.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},60434:function(e,t,n){"use strict";t.__esModule=!0,t.pda_notekeeper=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_notekeeper=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.note;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return c("Edit")},content:"Edit Notes"})]})}},59023:function(e,t,n){"use strict";t.__esModule=!0,t.pda_power=void 0;var o=n(96323),r=n(31246),a=n(52484);t.pda_power=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,a.PowerMonitorContent)}},67932:function(e,t,n){"use strict";t.__esModule=!0,t.pda_security=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_security=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Important Notes:",children:u.notes})]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return c("Records",{target:e.ref})}},e.ref)}))})}},11160:function(e,t,n){"use strict";t.__esModule=!0,t.pda_signaller=void 0;var o=n(96323),r=n(95360);t.pda_signaller=function(e,t){return(0,o.createComponentVNode)(2,r.SignalerContent)}},59956:function(e,t,n){"use strict";t.__esModule=!0,t.pda_status_display=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_status_display=function(e,t){var n=(0,r.useBackend)(t),c=n.act,i=n.data.records;return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return c("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return c("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return c("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,a.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return c("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,a.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return c("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,a.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return c("Status",{statdisp:"setmsg2"})}})})]})})}},79888:function(e,t,n){"use strict";t.__esModule=!0,t.pda_supply=void 0;var o=n(96323),r=n(31246),a=n(26949);t.pda_supply=function(e,t){var n=(0,r.useBackend)(t),c=(n.act,n.data.supply);return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:c.shuttle_moving?"Moving to station "+c.shuttle_eta:"Shuttle at "+c.shuttle_loc})}),(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),c.approved.length&&c.approved.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,a.Box,{children:"None!"}),(0,o.createComponentVNode)(2,a.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),c.requests.length&&c.requests.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,a.Box,{children:"None!"})]})]})}},30041:function(e,t,n){"use strict";t.__esModule=!0,t.Layout=void 0;var o=n(96323),r=n(1060),a=n(54425),c=n(99397),i=["className","theme","children"],l=["className","scrollable","children"];function d(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var s=function(e){var t=e.className,n=e.theme,c=void 0===n?"nanotrasen":n,l=e.children,s=d(e,i);return(0,o.createVNode)(1,"div","theme-"+c,(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Layout",t,(0,a.computeBoxClassName)(s)]),l,0,Object.assign({},(0,a.computeBoxProps)(s)))),2)};t.Layout=s;var u=function(e){var t=e.className,n=e.scrollable,c=e.children,i=d(e,l);return(0,o.normalizeProps)((0,o.createVNode)(1,"div",(0,r.classes)(["Layout__content",n&&"Layout__content--scrollable",t,(0,a.computeBoxClassName)(i)]),c,0,Object.assign({},(0,a.computeBoxProps)(i))))};u.defaultHooks={onComponentDidMount:function(e){return(0,c.addScrollableNode)(e)},onComponentWillUnmount:function(e){return(0,c.removeScrollableNode)(e)}},s.Content=u},76738:function(e,t,n){"use strict";t.__esModule=!0,t.NtosWindow=void 0;var o=n(96323),r=n(39646),a=n(31246),c=n(26949),i=n(34881),l=function(e,t){var n=e.title,l=e.width,d=void 0===l?575:l,s=e.height,u=void 0===s?700:s,m=e.theme,p=void 0===m?"ntos":m,h=e.children,C=(0,a.useBackend)(t),f=C.act,N=C.data,g=N.PC_device_theme,V=N.PC_batteryicon,b=N.PC_showbatteryicon,v=N.PC_batterypercent,k=N.PC_ntneticon,_=N.PC_apclinkicon,y=N.PC_stationtime,w=N.PC_programheaders,x=void 0===w?[]:w,S=N.PC_showexitprogram;return(0,o.createComponentVNode)(2,i.Window,{title:n,width:d,height:u,theme:p,children:(0,o.createVNode)(1,"div","NtosWindow",[(0,o.createVNode)(1,"div","NtosWindow__header NtosHeader",[(0,o.createVNode)(1,"div","NtosHeader__left",[(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:2,children:y}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,italic:!0,mr:2,opacity:.33,children:["ntos"===g&&"NtOS","syndicate"===g&&"Syndix"]})],4),(0,o.createVNode)(1,"div","NtosHeader__right",[x.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,r.resolveAsset)(e.icon)})},e.icon)})),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:k&&(0,o.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,r.resolveAsset)(k)})}),!(!b||!V)&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:[(0,o.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,r.resolveAsset)(V)}),v&&v]}),_&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,r.resolveAsset)(_)})}),!!S&&(0,o.createComponentVNode)(2,c.Button,{width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-minimize-o",tooltip:"Minimize",tooltipPosition:"bottom",onClick:function(){return f("PC_minimize")}}),!!S&&(0,o.createComponentVNode)(2,c.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:function(){return f("PC_exit")}}),!S&&(0,o.createComponentVNode)(2,c.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"power-off",tooltip:"Power off",tooltipPosition:"bottom-start",onClick:function(){return f("PC_shutdown")}})],0)],4),h],0)})};t.NtosWindow=l;l.Content=function(e){return(0,o.createVNode)(1,"div","NtosWindow__content",(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.Window.Content,Object.assign({},e))),2)}},52243:function(e,t,n){"use strict";t.__esModule=!0,t.Pane=void 0;var o=n(96323),r=n(1060),a=n(31246),c=n(26949),i=n(27157),l=n(30041),d=["theme","children","className"],s=["className","fitted","children"];function u(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var m=function(e,t){var n=e.theme,s=e.children,m=e.className,p=u(e,d),h=(0,a.useBackend)(t).suspended,C=(0,i.useDebug)(t).debugLayout;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.Layout,Object.assign({className:(0,r.classes)(["Window",m]),theme:n},p,{children:(0,o.createComponentVNode)(2,c.Box,{fillPositionedParent:!0,className:C&&"debug-layout",children:!h&&s})})))};t.Pane=m;m.Content=function(e){var t=e.className,n=e.fitted,a=e.children,c=u(e,s);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.Layout.Content,Object.assign({className:(0,r.classes)(["Window__content",t])},c,{children:n&&a||(0,o.createVNode)(1,"div","Window__contentPadding",a,0)})))}},34881:function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var o=n(96323),r=n(1060),a=n(465),c=n(21118),i=n(31246),l=n(26949),d=n(84200),s=n(27157),u=(n(98069),n(41410)),m=n(79926),p=n(30041),h=["className","fitted","children"];function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=(0,m.createLogger)("Window"),N=[400,600],g=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,C(t,n);var m=l.prototype;return m.componentDidMount=function(){var e=(0,i.useBackend)(this.context).suspended,t=this.props.canClose,n=void 0===t||t;e||(Byond.winset(Byond.windowId,{"can-close":Boolean(n)}),f.log("mounting"),this.updateGeometry())},m.componentDidUpdate=function(e){(this.props.width!==e.width||this.props.height!==e.height)&&this.updateGeometry()},m.updateGeometry=function(){var e,t=(0,i.useBackend)(this.context).config,n=Object.assign({size:N},t.window);this.props.width&&this.props.height&&(n.size=[this.props.width,this.props.height]),null!=(e=t.window)&&e.key&&(0,u.setWindowKey)(t.window.key),(0,u.recallWindowGeometry)(n)},m.render=function(){var e,t=this.props,n=t.canClose,l=void 0===n||n,m=t.theme,h=t.title,C=t.children,N=t.buttons,g=(0,i.useBackend)(this.context),V=g.config,v=g.suspended,k=(0,s.useDebug)(this.context).debugLayout,_=(0,a.useDispatch)(this.context),y=null==(e=V.window)?void 0:e.fancy,w=V.user&&(V.user.observer?V.status<d.UI_DISABLED:V.status<d.UI_INTERACTIVE);return(0,o.createComponentVNode)(2,p.Layout,{className:"Window",theme:m,children:[(0,o.createComponentVNode)(2,b,{className:"Window__titleBar",title:!v&&(h||(0,c.decodeHtmlEntities)(V.title)),status:V.status,fancy:y,onDragStart:u.dragStartHandler,onClose:function(){f.log("pressed close"),_((0,i.backendSuspendStart)())},canClose:l,children:N}),(0,o.createVNode)(1,"div",(0,r.classes)(["Window__rest",k&&"debug-layout"]),[!v&&C,w&&(0,o.createVNode)(1,"div","Window__dimmer")],0),y&&(0,o.createFragment)([(0,o.createVNode)(1,"div","Window__resizeHandle__e",null,1,{onMousedown:(0,u.resizeStartHandler)(1,0)}),(0,o.createVNode)(1,"div","Window__resizeHandle__s",null,1,{onMousedown:(0,u.resizeStartHandler)(0,1)}),(0,o.createVNode)(1,"div","Window__resizeHandle__se",null,1,{onMousedown:(0,u.resizeStartHandler)(1,1)})],4)]})},l}(o.Component);t.Window=g;g.Content=function(e){var t=e.className,n=e.fitted,a=e.children,c=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,h);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,p.Layout.Content,Object.assign({className:(0,r.classes)(["Window__content",t])},c,{children:n&&a||(0,o.createVNode)(1,"div","Window__contentPadding",a,0)})))};var V=function(e){switch(e){case d.UI_INTERACTIVE:return"good";case d.UI_UPDATE:return"average";case d.UI_DISABLED:default:return"bad"}},b=function(e,t){var n=e.className,i=e.title,d=e.status,s=e.canClose,u=e.fancy,m=e.onDragStart,p=e.onClose,h=e.children;(0,a.useDispatch)(t);return(0,o.createVNode)(1,"div",(0,r.classes)(["TitleBar",n]),[d===undefined&&(0,o.createComponentVNode)(2,l.Icon,{className:"TitleBar__statusIcon",name:"tools",opacity:.5})||(0,o.createComponentVNode)(2,l.Icon,{className:"TitleBar__statusIcon",color:V(d),name:"eye"}),(0,o.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(e){return u&&m(e)}}),(0,o.createVNode)(1,"div","TitleBar__title",["string"==typeof i&&i===i.toLowerCase()&&(0,c.toTitleCase)(i)||i,!!h&&(0,o.createVNode)(1,"div","TitleBar__buttons",h,0)],0),!1,Boolean(u&&s)&&(0,o.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xd7",0,{onclick:p})],0)}},2381:function(e,t,n){"use strict";t.__esModule=!0,t.Window=t.Pane=t.NtosWindow=t.Layout=void 0;var o=n(30041);t.Layout=o.Layout;var r=n(76738);t.NtosWindow=r.NtosWindow;var a=n(52243);t.Pane=a.Pane;var c=n(34881);t.Window=c.Window},13952:function(e,t){"use strict";t.__esModule=!0,t.captureExternalLinks=void 0;t.captureExternalLinks=function(){document.addEventListener("click",(function(e){for(var t=e.target;;){if(!t||t===document.body)return;if("a"===String(t.tagName).toLowerCase())break;t=t.parentElement}var n=t.getAttribute("href")||"";if(!("?"===n.charAt(0)||n.startsWith("byond://"))){e.preventDefault();var o=n;o.toLowerCase().startsWith("www")&&(o="https://"+o),Byond.sendMessage({type:"openLink",url:o})}}))}},79926:function(e,t,n){"use strict";t.__esModule=!0,t.logger=t.createLogger=void 0;n(82252);var o=0,r=1,a=2,c=3,i=4,l=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];if(e>=a){var c=[t].concat(o).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",ns:t,message:c})}},d=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return l.apply(void 0,[o,e].concat(n))},log:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(void 0,[r,e].concat(n))},info:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(void 0,[a,e].concat(n))},warn:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(void 0,[c,e].concat(n))},error:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l.apply(void 0,[i,e].concat(n))}}};t.createLogger=d;var s=d();t.logger=s},78238:function(e,t,n){"use strict";t.__esModule=!0,t.createRenderer=t.suspendRenderer=t.resumeRenderer=void 0;var o,r=n(28440),a=n(96323),c=((0,n(79926).createLogger)("renderer"),!0),i=!1;t.resumeRenderer=function(){c=c||"resumed",i=!1};t.suspendRenderer=function(){i=!0};t.createRenderer=function(e){return function(){r.perf.mark("render/start"),o||(o=document.getElementById("react-root")),e?(0,a.render)(e.apply(void 0,arguments),o):(0,a.render)(arguments.length<=0?undefined:arguments[0],o),r.perf.mark("render/finish"),i||c&&(c=!1)}}},91199:function(e,t,n){"use strict";t.__esModule=!0,t.getRoutedComponent=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(84200),i=(n(12184),n(2381)),l=n(8156),d=function(e,t){return function(){return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,t,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,t,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}},s=function(){return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0})})},u=function(){return(0,o.createComponentVNode)(2,i.Window,{title:"Loading",children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:"Please wait..."})]})})})})};t.getRoutedComponent=function(e){var t=e.getState(),n=(0,r.selectBackend)(t),o=n.suspended,a=n.config;if(o)return s;if(a.refreshing===c.UI_HARD_REFRESHING)return u;for(var i,m=null==a?void 0:a["interface"],p=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!i&&p.length>0;){var h=p.shift()(m);try{i=l(h)}catch(f){if("MODULE_NOT_FOUND"!==f.code)throw f}}if(!i)return d("notFound",m);var C=i[m];return C||d("missingExport",m)}},81890:function(e,t,n){"use strict";t.__esModule=!0,t.sanitizeText=void 0;var o,r=(o=n(42950))&&o.__esModule?o:{"default":o};var a=["b","br","center","code","dd","del","div","dl","dt","em","font","h1","h2","h3","h4","h5","h6","hr","i","ins","li","menu","ol","p","pre","span","strong","table","tbody","td","th","thead","tfoot","tr","u","ul"],c=["class","style"];t.sanitizeText=function(e,t,n){return void 0===t&&(t=a),void 0===n&&(n=c),r["default"].sanitize(e,{ALLOWED_TAGS:t,FORBID_ATTR:n})}},18749:function(e,t,n){"use strict";t.__esModule=!0,t.StoreProvider=t.configureStore=void 0;var o=n(32416),r=n(465),a=n(96323),c=n(39646),i=n(31246),l=n(27157);function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=(0,n(79926).createLogger)("store");t.configureStore=function(e){var t,n;void 0===e&&(e={});var a=e.sideEffects,d=void 0===a||a,s=(0,o.flow)([(0,r.combineReducers)({debug:l.debugReducer,backend:i.backendReducer}),e.reducer]),m=d?[].concat((null==(t=e.middleware)?void 0:t.pre)||[],[c.assetMiddleware,i.backendMiddleware],(null==(n=e.middleware)?void 0:n.post)||[]):[];var p=r.applyMiddleware.apply(void 0,m),h=(0,r.createStore)(s,p);return window.__store__=h,window.__augmentStack__=u(h),h};var u=function(e){return function(t,n){var o,r;n?"object"!=typeof n||n.stack||(n.stack=t):(n=new Error(t.split("\n")[0])).stack=t,s.log("FatalError:",n);var a=e.getState(),c=null==a||null==(o=a.backend)?void 0:o.config,i=t;return i+="\nUser Agent: "+navigator.userAgent,i+="\nState: "+JSON.stringify({ckey:null==c||null==(r=c.client)?void 0:r.ckey,"interface":null==c?void 0:c["interface"],window:null==c?void 0:c.window})}},m=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var r=o.prototype;return r.getChildContext=function(){return{store:this.props.store}},r.render=function(){return this.props.children},o}(a.Component);t.StoreProvider=m},88428:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Blink",render:function(){return(0,o.createComponentVNode)(2,c)}};t.meta=a;var c=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{children:(0,o.createComponentVNode)(2,r.Blink,{children:"Blink"})})}},9184:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a=n(87758),c={title:"BlockQuote",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{children:(0,o.createComponentVNode)(2,r.BlockQuote,{children:(0,o.createComponentVNode)(2,a.BoxWithSampleText)})})}},36801:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Box",render:function(){return(0,o.createComponentVNode)(2,c)}};t.meta=a;var c=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Box,{bold:!0,children:"bold"}),(0,o.createComponentVNode)(2,r.Box,{italic:!0,children:"italic"}),(0,o.createComponentVNode)(2,r.Box,{opacity:.5,children:"opacity 0.5"}),(0,o.createComponentVNode)(2,r.Box,{opacity:.25,children:"opacity 0.25"}),(0,o.createComponentVNode)(2,r.Box,{m:2,children:"m: 2"}),(0,o.createComponentVNode)(2,r.Box,{textAlign:"left",children:"left"}),(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:"center"}),(0,o.createComponentVNode)(2,r.Box,{textAlign:"right",children:"right"})]})}},3750:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Button",render:function(){return(0,o.createComponentVNode)(2,l)}};t.meta=a;var c=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],i=["good","average","bad","black","white"],l=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Box,{mb:1,children:[(0,o.createComponentVNode)(2,r.Button,{content:"Simple"}),(0,o.createComponentVNode)(2,r.Button,{selected:!0,content:"Selected"}),(0,o.createComponentVNode)(2,r.Button,{altSelected:!0,content:"Alt Selected"}),(0,o.createComponentVNode)(2,r.Button,{disabled:!0,content:"Disabled"}),(0,o.createComponentVNode)(2,r.Button,{color:"transparent",content:"Transparent"}),(0,o.createComponentVNode)(2,r.Button,{icon:"cog",content:"Icon"}),(0,o.createComponentVNode)(2,r.Button,{icon:"power-off"}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,content:"Fluid"}),(0,o.createComponentVNode)(2,r.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,o.createComponentVNode)(2,r.Box,{mb:1,children:[i.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{color:e,content:e},e)})),(0,o.createVNode)(1,"br"),c.map((function(e){return(0,o.createComponentVNode)(2,r.Button,{color:e,content:e},e)})),(0,o.createVNode)(1,"br"),c.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{inline:!0,mx:"7px",color:e,children:e},e)}))]})]})}},68696:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c=n(79926),i={title:"ByondUi",render:function(){return(0,o.createComponentVNode)(2,l)}};t.meta=i;var l=function(e,t){var n=(0,r.useLocalState)(t,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=n[0],l=n[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Button",children:(0,o.createComponentVNode)(2,a.ByondUi,{params:{type:"button",text:"Button"}})}),(0,o.createComponentVNode)(2,a.Section,{title:"Make BYOND calls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return setImmediate((function(){try{var e=new Function("return ("+i+")")();e&&e.then?(c.logger.log("Promise"),e.then(c.logger.log)):c.logger.log(e)}catch(t){c.logger.log(t)}}))},children:"Evaluate"}),children:(0,o.createComponentVNode)(2,a.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(e){return l(e.target.value)},children:i})})],4)}},88835:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a=n(87758),c={title:"Collapsible",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{children:(0,o.createComponentVNode)(2,r.Collapsible,{title:"Collapsible Demo",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:"cog"}),children:(0,o.createComponentVNode)(2,a.BoxWithSampleText)})})}},34458:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c={title:"Flex & Sections",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){var n=(0,r.useLocalState)(t,"fs_grow",1),c=n[0],i=n[1],l=(0,r.useLocalState)(t,"fs_direction","column"),d=l[0],s=l[1],u=(0,r.useLocalState)(t,"fs_fill",!0),m=u[0],p=u[1],h=(0,r.useLocalState)(t,"fs_title",!0),C=h[0],f=h[1];return(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return s("column"===d?"row":"column")},children:'Flex direction="'+d+'"'}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return i(Number(!c))},children:"Flex.Item grow={"+c+"}"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return p(!m)},children:"Section fill={"+String(m)+"}"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:C,onClick:function(){return f(!C)},children:"Section title"})]})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",direction:d,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{mr:"row"===d&&1,mb:"column"===d&&1,grow:c,children:(0,o.createComponentVNode)(2,a.Section,{title:C&&"Section 1",fill:m,children:"Content"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:c,children:(0,o.createComponentVNode)(2,a.Section,{title:C&&"Section 2",fill:m,children:"Content"})})]})})]})}},23148:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c={title:"Input",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){var n=(0,r.useLocalState)(t,"number",0),c=n[0],i=n[1],l=(0,r.useLocalState)(t,"text","Sample text"),d=l[0],s=l[1];return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input (onChange)",children:(0,o.createComponentVNode)(2,a.Input,{value:d,onChange:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Input (onInput)",children:(0,o.createComponentVNode)(2,a.Input,{value:d,onInput:function(e,t){return s(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:c,minValue:-100,maxValue:100,onChange:function(e,t){return i(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:c,minValue:-100,maxValue:100,onDrag:function(e,t){return i(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Slider (onDrag)",children:(0,o.createComponentVNode)(2,a.Slider,{step:1,stepPixelSize:5,value:c,minValue:-100,maxValue:100,onDrag:function(e,t){return i(t)}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,o.createComponentVNode)(2,a.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:c,minValue:-100,maxValue:100,onDrag:function(e,t){return i(t)}}),(0,o.createComponentVNode)(2,a.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:c,minValue:-100,maxValue:100,onDrag:function(e,t){return i(t)}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rotating Icon",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:(0,o.createComponentVNode)(2,a.DraggableControl,{value:c,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(e,t){return i(t)},children:function(e){return(0,o.createComponentVNode)(2,a.Box,{onMouseDown:e.handleDragStart,children:[(0,o.createComponentVNode)(2,a.Icon,{size:4,color:"yellow",name:"times",rotation:4*e.displayValue}),e.inputElement]})}})})})]})})}},23613:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Popper",render:function(){return(0,o.createComponentVNode)(2,c)}};t.meta=a;var c=function(){return(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Popper,{popperContent:(0,o.createComponentVNode)(2,r.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,o.createComponentVNode)(2,r.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,o.createComponentVNode)(2,r.Popper,{popperContent:(0,o.createComponentVNode)(2,r.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,o.createComponentVNode)(2,r.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},9093:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c={title:"ProgressBar",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){var n=(0,r.useLocalState)(t,"progress",.5),c=n[0],i=n[1],l=(0,r.useLocalState)(t,"color",""),d=l[0],s=l[1],u=d?{color:d}:{ranges:{good:[.5,Infinity],bad:[-Infinity,.1],average:[0,.5]}};return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.ProgressBar,Object.assign({},u,{minValue:-1,maxValue:1,value:c,children:["Value: ",Number(c).toFixed(1)]}))),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{mt:"2em",children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Adjust value",children:[(0,o.createComponentVNode)(2,a.Button,{content:"-0.1",onClick:function(){return i(c-.1)}}),(0,o.createComponentVNode)(2,a.Button,{content:"+0.1",onClick:function(){return i(c+.1)}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Override color",children:(0,o.createComponentVNode)(2,a.Input,{value:d,onChange:function(e,t){return s(t)}})})]})})]})}},86482:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Stack",render:function(){return(0,o.createComponentVNode)(2,l)}};t.meta=a;var c=function(){return(0,o.createComponentVNode)(2,r.Box,{inline:!0,width:1,height:1,children:"A"})},i=function(){return(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,c)}),(0,o.createComponentVNode)(2,r.Stack.Divider),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,c)})],4)},l=function(e,t){return(0,o.createComponentVNode)(2,r.Section,{fill:!0,children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,className:"debug-layout",children:[(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,r.Stack.Item,{children:(0,o.createComponentVNode)(2,r.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:1}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,i)]})}),(0,o.createComponentVNode)(2,r.Stack.Item,{grow:1}),(0,o.createComponentVNode)(2,i)]})})]})})}},63900:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(7151),a=n(26949),c=n(1033),i={title:"Storage",render:function(){return(0,o.createComponentVNode)(2,l)}};t.meta=i;var l=function(e,t){return window.localStorage?(0,o.createComponentVNode)(2,a.Section,{title:"Local Storage",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"recycle",onClick:function(){localStorage.clear(),r.storage.clear()},children:"Clear"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining space",children:(0,c.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"Local storage is not available."})}},88209:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c={title:"Tabs",render:function(){return(0,o.createComponentVNode)(2,l)}};t.meta=c;var i=["Tab #1","Tab #2","Tab #3","Tab #4"],l=function(e,t){var n=(0,r.useLocalState)(t,"tabProps",{}),c=n[0],i=n[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"vertical",checked:c.vertical,onClick:function(){return i(Object.assign({},c,{vertical:!c.vertical}))}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"leftSlot",checked:c.leftSlot,onClick:function(){return i(Object.assign({},c,{leftSlot:!c.leftSlot}))}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"rightSlot",checked:c.rightSlot,onClick:function(){return i(Object.assign({},c,{rightSlot:!c.rightSlot}))}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"icon",checked:c.icon,onClick:function(){return i(Object.assign({},c,{icon:!c.icon}))}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"fluid",checked:c.fluid,onClick:function(){return i(Object.assign({},c,{fluid:!c.fluid}))}}),(0,o.createComponentVNode)(2,a.Button.Checkbox,{inline:!0,content:"centered",checked:c.centered,onClick:function(){return i(Object.assign({},c,{centered:!c.centered}))}})]}),(0,o.createComponentVNode)(2,a.Section,{fitted:!0,children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,a.Section,{title:"Normal section",children:[(0,o.createComponentVNode)(2,d),"Some text"]}),(0,o.createComponentVNode)(2,a.Section,{children:"Section-less tabs appear the same as tabs in a fitted section:"}),(0,o.createComponentVNode)(2,d)],4)},d=function(e,t){var n=(0,r.useLocalState)(t,"tabIndex",0),c=n[0],l=n[1],d=(0,r.useLocalState)(t,"tabProps",{})[0];return(0,o.createComponentVNode)(2,a.Tabs,{vertical:d.vertical,fluid:d.fluid,textAlign:d.centered&&"center",children:i.map((function(e,t){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:t===c,icon:d.icon&&"info-circle",leftSlot:d.leftSlot&&(0,o.createComponentVNode)(2,a.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:d.rightSlot&&(0,o.createComponentVNode)(2,a.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){return l(t)},children:e},t)}))})}},38200:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(31246),a=n(26949),c={title:"Themes",render:function(){return(0,o.createComponentVNode)(2,i)}};t.meta=c;var i=function(e,t){var n=(0,r.useLocalState)(t,"kitchenSinkTheme"),c=n[0],i=n[1];return(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Use theme",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"theme_name",value:c,onInput:function(e,t){return i(t)}})})})})}},48181:function(e,t,n){"use strict";t.__esModule=!0,t.meta=void 0;var o=n(96323),r=n(26949),a={title:"Tooltip",render:function(){return(0,o.createComponentVNode)(2,c)}};t.meta=a;var c=function(){return(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Box,{children:[(0,o.createComponentVNode)(2,r.Tooltip,{content:"Tooltip text.",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,o.createComponentVNode)(2,r.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,o.createComponentVNode)(2,r.Box,{mt:1,children:["top","left","right","bottom","bottom-start","bottom-end"].map((function(e){return(0,o.createComponentVNode)(2,r.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:e,content:e},e)}))})]})}},87758:function(e,t,n){"use strict";t.__esModule=!0,t.BoxWithSampleText=void 0;var o=n(96323),r=n(26949);t.BoxWithSampleText=function(e){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,r.Box,Object.assign({},e,{children:[(0,o.createComponentVNode)(2,r.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,o.createComponentVNode)(2,r.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}},33603:function(){},57397:function(){},25311:function(){},62048:function(){},95281:function(){},39248:function(){},36030:function(){},32817:function(){},44576:function(){},21805:function(){},39292:function(){},34649:function(){},74199:function(){},65138:function(){},11855:function(e){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjAiIHZpZXdCb3g9IjAgMCA0MjUgMjAwIiBvcGFjaXR5PSIuMzMiPgogIDxwYXRoIGQ9Im0gMTc4LjAwMzk5LDAuMDM4NjkgLTcxLjIwMzkzLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM0LDYuMDI1NTUgbCAwLDE4Ny44NzE0NyBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgNi43NjEzNCw2LjAyNTU0IGwgNTMuMTA3MiwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTAxLjU0NDAxOCA3Mi4yMTYyOCwxMDQuNjk5Mzk4IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA1Ljc2MDE1LDIuODcwMTYgbCA3My41NTQ4NywwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM1LC02LjAyNTU0IGwgMCwtMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzNSwtNi4wMjU1NSBsIC01NC43MTY0NCwwIGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNi43NjEzMyw2LjAyNTU1IGwgMCwxMDIuNjE5MzUgTCAxODMuNzY0MTMsMi45MDg4NiBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTUuNzYwMTQsLTIuODcwMTcgeiIgLz4KICA8cGF0aCBkPSJNIDQuODQ0NjMzMywyMi4xMDg3NSBBIDEzLjQxMjAzOSwxMi41MDE4NDIgMCAwIDEgMTMuNDc3NTg4LDAuMDM5MjQgbCA2Ni4xMTgzMTUsMCBhIDUuMzY0ODE1OCw1LjAwMDczNyAwIDAgMSA1LjM2NDgyMyw1LjAwMDczIGwgMCw3OS44NzkzMSB6IiAvPgogIDxwYXRoIGQ9Im0gNDIwLjE1NTM1LDE3Ny44OTExOSBhIDEzLjQxMjAzOCwxMi41MDE4NDIgMCAwIDEgLTguNjMyOTUsMjIuMDY5NTEgbCAtNjYuMTE4MzIsMCBhIDUuMzY0ODE1Miw1LjAwMDczNyAwIDAgMSAtNS4zNjQ4MiwtNS4wMDA3NCBsIDAsLTc5Ljg3OTMxIHoiIC8+Cjwvc3ZnPgo8IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT4KPCEtLSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS80LjAvIC0tPgo="},90507:function(e,t,n){var o={"./abductor.ts":40949,"./blob.ts":21898,"./blobinfection.ts":61057,"./bloodbrother.ts":53751,"./changeling.ts":8637,"./clownoperative.ts":48491,"./cultist.ts":11065,"./familyheadaspirant.ts":59386,"./fugitive.ts":45746,"./gangster.ts":5592,"./headrevolutionary.ts":93444,"./heretic.ts":21453,"./hereticsmuggler.ts":13852,"./loneoperative.ts":90219,"./malfai.ts":20,"./malfaimidround.ts":12755,"./nightmare.ts":40200,"./obsessed.ts":4051,"./operative.ts":16765,"./operativemidround.ts":51494,"./opportunist.ts":61943,"./provocateur.ts":31801,"./revenant.ts":22069,"./sentientdisease.ts":65240,"./spacedragon.ts":48509,"./spaceninja.ts":75628,"./syndicateinfiltrator.ts":65319,"./syndicatesleeperagent.ts":19262,"./thief.ts":55244,"./traitor.ts":3054,"./wizard.ts":34700,"./wizardmidround.ts":77397,"./xenomorph.ts":34611};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=90507},61468:function(e,t,n){var o={"./base.tsx":17355,"./character_preferences/age.tsx":88439,"./character_preferences/ai_core_display.tsx":20329,"./character_preferences/body_type.tsx":97293,"./character_preferences/glasses.tsx":19221,"./character_preferences/pda.tsx":89310,"./character_preferences/persistent_scars.tsx":10878,"./character_preferences/phobia.tsx":9506,"./character_preferences/playtime_reward_cloak.tsx":33239,"./character_preferences/security_department.tsx":17394,"./character_preferences/skin_tone.tsx":38237,"./character_preferences/uplink_loc.tsx":62922,"./game_preferences/admin.tsx":93535,"./game_preferences/ambient_occlusion.tsx":15185,"./game_preferences/auto_fit_viewport.tsx":50851,"./game_preferences/broadcast_login_logout.tsx":22874,"./game_preferences/buttons_locked.tsx":49260,"./game_preferences/darkened_flash.tsx":19145,"./game_preferences/fov_darkness.tsx":18791,"./game_preferences/fps.tsx":64526,"./game_preferences/ghost.tsx":43946,"./game_preferences/ghost_lighting.tsx":38883,"./game_preferences/hotkeys.tsx":82719,"./game_preferences/item_outlines.tsx":50695,"./game_preferences/legacy_chat_toggles.tsx":91954,"./game_preferences/legacy_toggles.tsx":76029,"./game_preferences/mod_select.tsx":11728,"./game_preferences/ooc.tsx":4002,"./game_preferences/parallax.tsx":49737,"./game_preferences/pixel_size.tsx":48513,"./game_preferences/preferred_map.tsx":71288,"./game_preferences/runechat.tsx":87405,"./game_preferences/scaling_method.tsx":36614,"./game_preferences/screentips.tsx":71603,"./game_preferences/tgui.tsx":87346,"./game_preferences/tooltips.tsx":42563,"./game_preferences/ui_style.tsx":91938,"./game_preferences/widescreen.tsx":50123,"./game_preferences/window_flashing.tsx":40751,"./randomization.tsx":92167,"./species_features.tsx":44093};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=61468},75168:function(e,t,n){var o={"./pda_atmos_scan.js":31351,"./pda_janitor.js":59320,"./pda_main_menu.js":28505,"./pda_manifest.js":89176,"./pda_medical.js":79720,"./pda_messenger.js":39955,"./pda_news.js":97723,"./pda_notekeeper.js":60434,"./pda_power.js":59023,"./pda_security.js":67932,"./pda_signaller.js":11160,"./pda_status_display.js":59956,"./pda_supply.js":79888};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=75168},8156:function(e,t,n){var o={"./AICard":82820,"./AICard.js":82820,"./APC":51072,"./APC.js":51072,"./AbductorConsole":65235,"./AbductorConsole.js":65235,"./AccountingConsole":2730,"./AccountingConsole.js":2730,"./AccountsTerminal":61539,"./AccountsTerminal.js":61539,"./Achievements":56514,"./Achievements.js":56514,"./AdminShuttleController":37937,"./AdminShuttleController.js":37937,"./Adminhelp":81173,"./Adminhelp.tsx":81173,"./AdventureBrowser":42638,"./AdventureBrowser.tsx":42638,"./AgentCard":78835,"./AgentCard.js":78835,"./AiAirlock":25790,"./AiAirlock.js":25790,"./AiRestorer":33105,"./AiRestorer.js":33105,"./AiSupermatter":96789,"./AiSupermatter.js":96789,"./AiVoiceChanger":26488,"./AiVoiceChanger.js":26488,"./AirAlarm":24782,"./AirAlarm.js":24782,"./AirlockController":71627,"./AirlockController.tsx":71627,"./AirlockElectronics":33364,"./AirlockElectronics.js":33364,"./AlertModal":458,"./AlertModal.tsx":458,"./AlgaeFarm":79247,"./AlgaeFarm.js":79247,"./AnomalyRefinery":47185,"./AnomalyRefinery.js":47185,"./AntagInfoBrainwashed":13455,"./AntagInfoBrainwashed.tsx":13455,"./AntagInfoBrother":69573,"./AntagInfoBrother.tsx":69573,"./AntagInfoChangeling":56234,"./AntagInfoChangeling.tsx":56234,"./AntagInfoDemon":13322,"./AntagInfoDemon.tsx":13322,"./AntagInfoGangmember":59234,"./AntagInfoGangmember.tsx":59234,"./AntagInfoGeneric":87862,"./AntagInfoGeneric.tsx":87862,"./AntagInfoHeretic":56015,"./AntagInfoHeretic.tsx":56015,"./AntagInfoMalf":11291,"./AntagInfoMalf.tsx":11291,"./AntagInfoMorph":60972,"./AntagInfoMorph.tsx":60972,"./AntagInfoNightmare":77064,"./AntagInfoNightmare.tsx":77064,"./AntagInfoSeparatist":40469,"./AntagInfoSeparatist.tsx":40469,"./AntagInfoThief":81585,"./AntagInfoThief.tsx":81585,"./AntagInfoTraitor":96681,"./AntagInfoTraitor.tsx":96681,"./AntagInfoWizard":35856,"./AntagInfoWizard.tsx":35856,"./ApcControl":18768,"./ApcControl.js":18768,"./AppearanceChanger":48018,"./AppearanceChanger.js":48018,"./ApprenticeContract":61554,"./ApprenticeContract.tsx":61554,"./Aquarium":33806,"./Aquarium.js":33806,"./ArcadeBattle":99926,"./ArcadeBattle.js":99926,"./AreaScrubberControl":21064,"./AreaScrubberControl.js":21064,"./AssemblyInfrared":62095,"./AssemblyInfrared.js":62095,"./AssemblyProx":72333,"./AssemblyProx.js":72333,"./AssemblyTimer":15932,"./AssemblyTimer.js":15932,"./AtmosAlertConsole":64383,"./AtmosAlertConsole.js":64383,"./AtmosControl":44634,"./AtmosControl.js":44634,"./AtmosControlConsole":86610,"./AtmosControlConsole.tsx":86610,"./AtmosControlPanel":42327,"./AtmosControlPanel.js":42327,"./AtmosFilter":61496,"./AtmosFilter.js":61496,"./AtmosMixer":98892,"./AtmosMixer.js":98892,"./AtmosPump":67515,"./AtmosPump.js":67515,"./AtmosRelief":59994,"./AtmosRelief.js":59994,"./AtmosTempGate":23414,"./AtmosTempGate.js":23414,"./AtmosTempPump":8282,"./AtmosTempPump.js":8282,"./Autolathe":47533,"./Autolathe.js":47533,"./AutomatedAnnouncement":87710,"./AutomatedAnnouncement.js":87710,"./AuxBaseConsole":38783,"./AuxBaseConsole.js":38783,"./BankMachine":98829,"./BankMachine.js":98829,"./Batteryrack":45443,"./Batteryrack.js":45443,"./BeaconLocator":35541,"./BeaconLocator.js":35541,"./Bepis":29104,"./Bepis.js":29104,"./Biogenerator":39169,"./Biogenerator.js":39169,"./BlackMarketUplink":2711,"./BlackMarketUplink.js":2711,"./BloodFilter":78585,"./BloodFilter.js":78585,"./BluespaceArtillery":42981,"./BluespaceArtillery.js":42981,"./BluespaceLocator":16254,"./BluespaceLocator.js":16254,"./BluespaceSender":40997,"./BluespaceSender.js":40997,"./BluespaceVendor":41765,"./BluespaceVendor.js":41765,"./BodyDesigner":8721,"./BodyDesigner.js":8721,"./BodyScanner":33897,"./BodyScanner.js":33897,"./BombTester":2814,"./BombTester.js":2814,"./BorgPanel":30647,"./BorgPanel.js":30647,"./BotanyEditor":30063,"./BotanyEditor.js":30063,"./BotanyIsolator":70143,"./BotanyIsolator.js":70143,"./BountyBoard":86487,"./BountyBoard.js":86487,"./BrigTimer":77729,"./BrigTimer.js":77729,"./CTFPanel":50337,"./CTFPanel.js":50337,"./CameraConsole":83548,"./CameraConsole.js":83548,"./Canister":98566,"./Canister.js":98566,"./Canvas":49072,"./Canvas.tsx":49072,"./Cargo":97232,"./Cargo.js":97232,"./CargoBountyConsole":72602,"./CargoBountyConsole.js":72602,"./CargoExpress":86875,"./CargoExpress.js":86875,"./CargoHoldTerminal":25542,"./CargoHoldTerminal.js":25542,"./CasinoPrizeDispenser":32875,"./CasinoPrizeDispenser.js":32875,"./CellularEmporium":15889,"./CellularEmporium.tsx":15889,"./CentcomPodLauncher":18730,"./CentcomPodLauncher.js":18730,"./ChameleonCard":88994,"./ChameleonCard.js":88994,"./Changelog":2095,"./Changelog.js":2095,"./CharacterDirectory":24370,"./CharacterDirectory.js":24370,"./ChemAcclimator":37786,"./ChemAcclimator.js":37786,"./ChemDebugSynthesizer":53672,"./ChemDebugSynthesizer.js":53672,"./ChemDispenser":68078,"./ChemDispenser.js":68078,"./ChemFilter":2942,"./ChemFilter.js":2942,"./ChemHeater":95348,"./ChemHeater.js":95348,"./ChemMaster":45747,"./ChemMaster.js":45747,"./ChemPress":56984,"./ChemPress.js":56984,"./ChemReactionChamber":45567,"./ChemReactionChamber.js":45567,"./ChemRecipeDebug":61889,"./ChemRecipeDebug.js":61889,"./ChemSplitter":28368,"./ChemSplitter.js":28368,"./ChemSynthesizer":38654,"./ChemSynthesizer.js":38654,"./CircuitAccessChecker":90424,"./CircuitAccessChecker.js":90424,"./CircuitAdminPanel":65422,"./CircuitAdminPanel.tsx":65422,"./CircuitModule":82268,"./CircuitModule.js":82268,"./CircuitSignalHandler":71569,"./CircuitSignalHandler.tsx":71569,"./CivCargoHoldTerminal":24160,"./CivCargoHoldTerminal.js":24160,"./ClawMachine":80422,"./ClawMachine.js":80422,"./Cleanbot":11198,"./Cleanbot.js":11198,"./Clipboard":86500,"./Clipboard.js":86500,"./ClockworkSlab":4536,"./ClockworkSlab.js":4536,"./CloningConsole":6542,"./CloningConsole.js":6542,"./CodexGigas":20825,"./CodexGigas.js":20825,"./ColorBlindTester":32733,"./ColorBlindTester.js":32733,"./ColorMate":27707,"./ColorMate.js":27707,"./ColorMatrixEditor":47074,"./ColorMatrixEditor.js":47074,"./CommandReport":24848,"./CommandReport.js":24848,"./CommunicationsConsole":6125,"./CommunicationsConsole.js":6125,"./Communicator":36520,"./Communicator.js":36520,"./ComponentPrinter":49883,"./ComponentPrinter.tsx":49883,"./ComputerFabricator":98555,"./ComputerFabricator.js":98555,"./CookingAppliance":6884,"./CookingAppliance.js":6884,"./Crayon":67526,"./Crayon.js":67526,"./CrewConsole":75213,"./CrewConsole.js":75213,"./CrewManifest":83828,"./CrewManifest.js":83828,"./CrewMonitor":38544,"./CrewMonitor.js":38544,"./Cryo":10996,"./Cryo.js":10996,"./CryoStorage":41710,"./CryoStorage.js":41710,"./CryoStorageVr":57784,"./CryoStorageVr.js":57784,"./Crystallizer":4584,"./Crystallizer.js":4584,"./CyborgBootDebug":32016,"./CyborgBootDebug.js":32016,"./DNAForensics":34660,"./DNAForensics.js":34660,"./DNAModifier":49223,"./DNAModifier.js":49223,"./DecalPainter":27188,"./DecalPainter.tsx":27188,"./DepartmentOrders":44681,"./DepartmentOrders.tsx":44681,"./DestinationTagger":36376,"./DestinationTagger.js":36376,"./DiseaseSplicer":96812,"./DiseaseSplicer.js":96812,"./DishIncubator":71431,"./DishIncubator.js":71431,"./DisposalBin":79858,"./DisposalBin.js":79858,"./DisposalUnit":69974,"./DisposalUnit.js":69974,"./DnaConsole":94522,"./DnaConsole.js":94522,"./DnaConsole/":51329,"./DnaConsole/DnaConsoleEnzymes":67045,"./DnaConsole/DnaConsoleEnzymes.js":67045,"./DnaConsole/DnaConsoleSequencer":81933,"./DnaConsole/DnaConsoleSequencer.js":81933,"./DnaConsole/DnaConsoleStorage":25404,"./DnaConsole/DnaConsoleStorage.js":25404,"./DnaConsole/DnaScanner":59405,"./DnaConsole/DnaScanner.js":59405,"./DnaConsole/GeneticMakeupInfo":19253,"./DnaConsole/GeneticMakeupInfo.js":19253,"./DnaConsole/MutationInfo":50842,"./DnaConsole/MutationInfo.js":50842,"./DnaConsole/constants":56092,"./DnaConsole/constants.js":56092,"./DnaConsole/index":51329,"./DnaConsole/index.js":51329,"./DnaVault":55063,"./DnaVault.js":55063,"./DopplerArray":14847,"./DopplerArray.js":14847,"./DroneConsole":51630,"./DroneConsole.js":51630,"./EightBallVote":72914,"./EightBallVote.js":72914,"./Electrolyzer":58856,"./Electrolyzer.js":58856,"./Electropack":29034,"./Electropack.js":29034,"./EmbeddedController":29005,"./EmbeddedController.js":29005,"./EmergencyShuttleConsole":45606,"./EmergencyShuttleConsole.js":45606,"./EngravedMessage":63090,"./EngravedMessage.js":63090,"./ExodroneConsole":80320,"./ExodroneConsole.tsx":80320,"./ExonetNode":25275,"./ExonetNode.js":25275,"./ExoscannerConsole":46442,"./ExoscannerConsole.tsx":46442,"./ExosuitControlConsole":10841,"./ExosuitControlConsole.js":10841,"./ExosuitFabricator":49545,"./ExosuitFabricator.js":49545,"./ExperimentConfigure":14919,"./ExperimentConfigure.js":14919,"./Farmbot":74874,"./Farmbot.js":74874,"./Fax":83877,"./Fax.js":83877,"./FileCabinet":88141,"./FileCabinet.js":88141,"./FilingCabinet":25354,"./FilingCabinet.js":25354,"./Filteriffic":53600,"./Filteriffic.js":53600,"./FishCatalog":80665,"./FishCatalog.js":80665,"./Floorbot":30357,"./Floorbot.js":30357,"./Folder":51387,"./Folder.js":51387,"./ForbiddenLore":14284,"./ForbiddenLore.js":14284,"./GasAnalyzer":32254,"./GasAnalyzer.tsx":32254,"./GasPump":11972,"./GasPump.js":11972,"./GasTemperatureSystem":94405,"./GasTemperatureSystem.js":94405,"./Gateway":61269,"./Gateway.js":61269,"./GeneralAtmoControl":61590,"./GeneralAtmoControl.js":61590,"./GeneralRecords":91952,"./GeneralRecords.js":91952,"./GhostPoolProtection":40276,"./GhostPoolProtection.js":40276,"./GhostRoleMenu":67850,"./GhostRoleMenu.js":67850,"./GlandDispenser":40544,"./GlandDispenser.js":40544,"./Gps":39724,"./Gps.js":39724,"./GravityGenerator":92796,"./GravityGenerator.js":92796,"./GreyscaleModifyMenu":99073,"./GreyscaleModifyMenu.tsx":99073,"./GuestPass":19609,"./GuestPass.js":19609,"./GulagItemReclaimer":93958,"./GulagItemReclaimer.js":93958,"./GulagTeleporterConsole":91985,"./GulagTeleporterConsole.js":91985,"./GyrotronControl":76721,"./GyrotronControl.js":76721,"./HoloPay":59986,"./HoloPay.tsx":59986,"./Holodeck":30472,"./Holodeck.js":30472,"./Holopad":96565,"./Holopad.js":96565,"./HotkeysHelp":50962,"./HotkeysHelp.tsx":50962,"./Hypertorus":7085,"./Hypertorus/":7085,"./Hypertorus/Controls":64816,"./Hypertorus/Controls.js":64816,"./Hypertorus/Gases":36911,"./Hypertorus/Gases.js":36911,"./Hypertorus/Parameters":29823,"./Hypertorus/Parameters.js":29823,"./Hypertorus/Recipes":64635,"./Hypertorus/Recipes.js":64635,"./Hypertorus/Temperatures":8415,"./Hypertorus/Temperatures.js":8415,"./Hypertorus/helpers":69650,"./Hypertorus/helpers.js":69650,"./Hypertorus/index":7085,"./Hypertorus/index.js":7085,"./HypnoChair":56797,"./HypnoChair.js":56797,"./ICAssembly":86347,"./ICAssembly.js":86347,"./ICCircuit":12576,"./ICCircuit.js":12576,"./ICDetailer":38706,"./ICDetailer.js":38706,"./ICPrinter":76110,"./ICPrinter.js":76110,"./IDCard":74246,"./IDCard.js":74246,"./IVDrip":26331,"./IVDrip.js":26331,"./IdentificationComputer":60910,"./IdentificationComputer.js":60910,"./ImplantChair":64896,"./ImplantChair.js":64896,"./InfraredEmitter":31330,"./InfraredEmitter.js":31330,"./InputModal":49324,"./InputModal.js":49324,"./IntegratedCircuit":80509,"./IntegratedCircuit/":80509,"./IntegratedCircuit/BasicInput":88475,"./IntegratedCircuit/BasicInput.js":88475,"./IntegratedCircuit/CircuitInfo":71485,"./IntegratedCircuit/CircuitInfo.js":71485,"./IntegratedCircuit/ComponentMenu":44728,"./IntegratedCircuit/ComponentMenu.js":44728,"./IntegratedCircuit/Connections":29728,"./IntegratedCircuit/Connections.js":29728,"./IntegratedCircuit/DisplayName":30672,"./IntegratedCircuit/DisplayName.js":30672,"./IntegratedCircuit/FundamentalTypes":20321,"./IntegratedCircuit/FundamentalTypes.js":20321,"./IntegratedCircuit/ObjectComponent":90496,"./IntegratedCircuit/ObjectComponent.js":90496,"./IntegratedCircuit/Port":89937,"./IntegratedCircuit/Port.js":89937,"./IntegratedCircuit/VariableMenu":34906,"./IntegratedCircuit/VariableMenu.js":34906,"./IntegratedCircuit/constants":87279,"./IntegratedCircuit/constants.js":87279,"./IntegratedCircuit/index":80509,"./IntegratedCircuit/index.js":80509,"./Intellicard":13776,"./Intellicard.js":13776,"./Interview":87936,"./Interview.js":87936,"./InterviewManager":46608,"./InterviewManager.js":46608,"./InventoryPanel":10494,"./InventoryPanel.js":10494,"./InventoryPanelHuman":19772,"./InventoryPanelHuman.js":19772,"./IsolationCentrifuge":82408,"./IsolationCentrifuge.js":82408,"./JanitorCart":10815,"./JanitorCart.js":10815,"./Jukebox":87435,"./Jukebox.js":87435,"./KeycardAuth":38559,"./KeycardAuth.js":38559,"./LaborClaimConsole":88891,"./LaborClaimConsole.js":88891,"./LanguageMenu":94270,"./LanguageMenu.js":94270,"./LaunchpadConsole":67263,"./LaunchpadConsole.js":67263,"./LaunchpadRemote":28329,"./LaunchpadRemote.js":28329,"./LawManager":47015,"./LawManager.js":47015,"./LibraryConsole":46766,"./LibraryConsole.js":46766,"./LibraryScanner":39900,"./LibraryScanner.js":39900,"./LibraryVisitor":25303,"./LibraryVisitor.js":25303,"./Limbgrower":94179,"./Limbgrower.js":94179,"./ListInputModal":84696,"./ListInputModal.tsx":84696,"./LookingGlass":55565,"./LookingGlass.js":55565,"./MODpaint":98914,"./MODpaint.js":98914,"./MODsuit":39316,"./MODsuit.js":39316,"./MafiaPanel":18707,"./MafiaPanel.js":18707,"./MalfunctionModulePicker":70614,"./MalfunctionModulePicker.js":70614,"./MassDriverControl":31457,"./MassDriverControl.js":31457,"./MassSpec":39925,"./MassSpec.js":39925,"./MassiveGasPump":31836,"./MassiveGasPump.js":31836,"./MassiveHeatPump":85107,"./MassiveHeatPump.js":85107,"./MechBayPowerConsole":49203,"./MechBayPowerConsole.js":49203,"./Mecha":79355,"./Mecha/":79355,"./Mecha/AlertPane":90984,"./Mecha/AlertPane.tsx":90984,"./Mecha/ArmPane":75542,"./Mecha/ArmPane.tsx":75542,"./Mecha/ArmorPane":36841,"./Mecha/ArmorPane.tsx":36841,"./Mecha/MaintMode":50687,"./Mecha/MaintMode.tsx":50687,"./Mecha/MechStatPane":63355,"./Mecha/MechStatPane.tsx":63355,"./Mecha/OperatorMode":54716,"./Mecha/OperatorMode.tsx":54716,"./Mecha/PowerModulesPane":7623,"./Mecha/PowerModulesPane.tsx":7623,"./Mecha/RadioPane":83386,"./Mecha/RadioPane.tsx":83386,"./Mecha/UtilityModulesPane":30386,"./Mecha/UtilityModulesPane.tsx":30386,"./Mecha/data":17118,"./Mecha/data.ts":17118,"./Mecha/index":79355,"./Mecha/index.tsx":79355,"./MechaControlConsole":91204,"./MechaControlConsole.js":91204,"./MechpadConsole":78131,"./MechpadConsole.js":78131,"./Medibot":48026,"./Medibot.js":48026,"./MedicalKiosk":2303,"./MedicalKiosk.js":2303,"./MedicalRecords":93796,"./MedicalRecords.js":93796,"./MemoryPanel":9135,"./MemoryPanel.js":9135,"./MessageMonitor":8678,"./MessageMonitor.js":8678,"./Microscope":97032,"./Microscope.js":97032,"./Microwave":47270,"./Microwave.js":47270,"./MinigamesMenu":14343,"./MinigamesMenu.js":14343,"./MiningOreProcessingConsole":48078,"./MiningOreProcessingConsole.js":48078,"./MiningStackingConsole":98948,"./MiningStackingConsole.js":98948,"./MiningVendor":70496,"./MiningVendor.js":70496,"./Mint":17514,"./Mint.js":17514,"./Mule":16009,"./Mule.js":16009,"./MuleBot":32470,"./MuleBot.js":32470,"./NIF":63045,"./NIF.js":63045,"./NTNetRelay":13112,"./NTNetRelay.js":13112,"./NaniteChamberControl":73533,"./NaniteChamberControl.js":73533,"./NaniteCloudControl":59683,"./NaniteCloudControl.js":59683,"./NaniteProgramHub":43829,"./NaniteProgramHub.js":43829,"./NaniteProgrammer":86359,"./NaniteProgrammer.js":86359,"./NaniteRemote":42129,"./NaniteRemote.js":42129,"./Newscaster":76225,"./Newscaster.js":76225,"./NoticeBoard":72160,"./NoticeBoard.js":72160,"./NotificationPreferences":62377,"./NotificationPreferences.js":62377,"./NtosAccessDecrypter":21455,"./NtosAccessDecrypter.js":21455,"./NtosAiRestorer":51460,"./NtosAiRestorer.js":51460,"./NtosArcade":54870,"./NtosArcade.js":54870,"./NtosAtmos":15930,"./NtosAtmos.js":15930,"./NtosAtmosControl":98804,"./NtosAtmosControl.js":98804,"./NtosBountyBoard":14763,"./NtosBountyBoard.js":14763,"./NtosBountyConsole":70298,"./NtosBountyConsole.js":70298,"./NtosCameraConsole":47278,"./NtosCameraConsole.js":47278,"./NtosCard":16624,"./NtosCard.js":16624,"./NtosCargo":70865,"./NtosCargo.js":70865,"./NtosCommunicationsConsole":19913,"./NtosCommunicationsConsole.js":19913,"./NtosConfiguration":92919,"./NtosConfiguration.js":92919,"./NtosCrewManifest":28062,"./NtosCrewManifest.js":28062,"./NtosCrewMonitor":83911,"./NtosCrewMonitor.js":83911,"./NtosCyborgRemoteMonitor":82858,"./NtosCyborgRemoteMonitor.js":82858,"./NtosCyborgRemoteMonitorSyndicate":96833,"./NtosCyborgRemoteMonitorSyndicate.js":96833,"./NtosDigitalWarrant":6622,"./NtosDigitalWarrant.js":6622,"./NtosEmailAdministration":68239,"./NtosEmailAdministration.js":68239,"./NtosEmailClient":18543,"./NtosEmailClient.js":18543,"./NtosFileManager":95717,"./NtosFileManager.js":95717,"./NtosGasAnalyzer":22573,"./NtosGasAnalyzer.tsx":22573,"./NtosIdentificationComputer":49850,"./NtosIdentificationComputer.js":49850,"./NtosJobManager":44508,"./NtosJobManager.js":44508,"./NtosMain":83448,"./NtosMain.js":83448,"./NtosMessenger":28679,"./NtosMessenger.js":28679,"./NtosNetChat":27463,"./NtosNetChat.js":27463,"./NtosNetDos":47184,"./NtosNetDos.js":47184,"./NtosNetDownloader":97718,"./NtosNetDownloader.js":97718,"./NtosNetMonitor":49911,"./NtosNetMonitor.js":49911,"./NtosNetTransfer":12089,"./NtosNetTransfer.js":12089,"./NtosNewsBrowser":44391,"./NtosNewsBrowser.js":44391,"./NtosNewscaster":73547,"./NtosNewscaster.js":73547,"./NtosNotepad":70737,"./NtosNotepad.js":70737,"./NtosOvermapNavigation":77846,"./NtosOvermapNavigation.js":77846,"./NtosPhysScanner":70941,"./NtosPhysScanner.js":70941,"./NtosPortraitPrinter":43517,"./NtosPortraitPrinter.js":43517,"./NtosPowerMonitor":84314,"./NtosPowerMonitor.js":84314,"./NtosRCON":78515,"./NtosRCON.js":78515,"./NtosRadar":6611,"./NtosRadar.js":6611,"./NtosRadarSyndicate":67533,"./NtosRadarSyndicate.js":67533,"./NtosRecords":15004,"./NtosRecords.js":15004,"./NtosRequestKiosk":89918,"./NtosRequestKiosk.js":89918,"./NtosRevelation":84764,"./NtosRevelation.js":84764,"./NtosRoboControl":31477,"./NtosRoboControl.js":31477,"./NtosRobotact":86890,"./NtosRobotact.js":86890,"./NtosScipaper":79929,"./NtosScipaper.js":79929,"./NtosSecurEye":61397,"./NtosSecurEye.js":61397,"./NtosShipping":16852,"./NtosShipping.js":16852,"./NtosShutoffMonitor":17712,"./NtosShutoffMonitor.js":17712,"./NtosSignaler":64555,"./NtosSignaler.js":64555,"./NtosSkillTracker":81888,"./NtosSkillTracker.js":81888,"./NtosStationAlertConsole":26221,"./NtosStationAlertConsole.js":26221,"./NtosStatus":65476,"./NtosStatus.js":65476,"./NtosSupermatterMonitor":77754,"./NtosSupermatterMonitor.js":77754,"./NtosTechweb":37327,"./NtosTechweb.js":37327,"./NtosUAV":7206,"./NtosUAV.js":7206,"./NtosWordProcessor":13453,"./NtosWordProcessor.js":13453,"./NuclearBomb":83271,"./NuclearBomb.js":83271,"./NumberInputModal":12660,"./NumberInputModal.tsx":12660,"./OmniFilter":82685,"./OmniFilter.js":82685,"./OmniMixer":5170,"./OmniMixer.js":5170,"./OperatingComputer":86256,"./OperatingComputer.js":86256,"./Orbit":64427,"./Orbit.js":64427,"./OreBox":56920,"./OreBox.js":56920,"./OreRedemptionMachine":51162,"./OreRedemptionMachine.js":51162,"./OrionGame":7200,"./OrionGame.js":7200,"./OutfitEditor":73779,"./OutfitEditor.js":73779,"./OutfitManager":94170,"./OutfitManager.js":94170,"./OvermapDisperser":39527,"./OvermapDisperser.js":39527,"./OvermapEngines":93279,"./OvermapEngines.js":93279,"./OvermapFull":3294,"./OvermapFull.js":3294,"./OvermapHelm":43706,"./OvermapHelm.js":43706,"./OvermapNavigation":38419,"./OvermapNavigation.js":38419,"./OvermapShieldGenerator":48683,"./OvermapShieldGenerator.js":48683,"./OvermapShipSensors":22556,"./OvermapShipSensors.js":22556,"./PaiCard":19866,"./PaiCard.tsx":19866,"./PaiInterface":68577,"./PaiInterface.tsx":68577,"./PaiSubmit":28561,"./PaiSubmit.tsx":28561,"./PaintingAdminPanel":8989,"./PaintingAdminPanel.tsx":8989,"./PaintingMachine":92258,"./PaintingMachine.js":92258,"./Pandemic":94111,"./Pandemic.tsx":94111,"./PaperSheet":69412,"./PaperSheet.js":69412,"./ParticleAccelerator":6442,"./ParticleAccelerator.js":6442,"./PartsLathe":14242,"./PartsLathe.js":14242,"./PathogenicIsolator":94582,"./PathogenicIsolator.js":94582,"./Pda":31311,"./Pda.js":31311,"./PersonalCrafting":51918,"./PersonalCrafting.tsx":51918,"./Photocopier":28508,"./Photocopier.js":28508,"./PhysicalNewscaster":41663,"./PhysicalNewscaster.js":41663,"./PipeDispenser":41245,"./PipeDispenser.js":41245,"./PlantAnalyzer":32022,"./PlantAnalyzer.js":32022,"./PointDefenseControl":51808,"./PointDefenseControl.js":51808,"./PortableChemMixer":88694,"./PortableChemMixer.js":88694,"./PortableGenerator":1782,"./PortableGenerator.js":1782,"./PortablePump":13484,"./PortablePump.js":13484,"./PortableScrubber":54652,"./PortableScrubber.js":54652,"./PortableTurret":48626,"./PortableTurret.js":48626,"./PortraitPicker":91569,"./PortraitPicker.js":91569,"./PowerMonitor":52484,"./PowerMonitor.js":52484,"./PreferencesMenu":11118,"./PreferencesMenu/":11118,"./PreferencesMenu/AntagsPage":17989,"./PreferencesMenu/AntagsPage.tsx":17989,"./PreferencesMenu/CharacterPreferenceWindow":92707,"./PreferencesMenu/CharacterPreferenceWindow.tsx":92707,"./PreferencesMenu/CharacterPreview":63511,"./PreferencesMenu/CharacterPreview.tsx":63511,"./PreferencesMenu/GamePreferenceWindow":10492,"./PreferencesMenu/GamePreferenceWindow.tsx":10492,"./PreferencesMenu/GamePreferencesPage":54040,"./PreferencesMenu/GamePreferencesPage.tsx":54040,"./PreferencesMenu/JobsPage":93207,"./PreferencesMenu/JobsPage.tsx":93207,"./PreferencesMenu/KeybindingsPage":5337,"./PreferencesMenu/KeybindingsPage.tsx":5337,"./PreferencesMenu/MainPage":88705,"./PreferencesMenu/MainPage.tsx":88705,"./PreferencesMenu/PageButton":12279,"./PreferencesMenu/PageButton.tsx":12279,"./PreferencesMenu/QuirksPage":33784,"./PreferencesMenu/QuirksPage.tsx":33784,"./PreferencesMenu/RandomizationButton":26427,"./PreferencesMenu/RandomizationButton.tsx":26427,"./PreferencesMenu/ServerPreferencesFetcher":6168,"./PreferencesMenu/ServerPreferencesFetcher.tsx":6168,"./PreferencesMenu/SpeciesPage":81297,"./PreferencesMenu/SpeciesPage.tsx":81297,"./PreferencesMenu/TabbedMenu":90704,"./PreferencesMenu/TabbedMenu.tsx":90704,"./PreferencesMenu/antagonists/antagonists/abductor":40949,"./PreferencesMenu/antagonists/antagonists/abductor.ts":40949,"./PreferencesMenu/antagonists/antagonists/blob":21898,"./PreferencesMenu/antagonists/antagonists/blob.ts":21898,"./PreferencesMenu/antagonists/antagonists/blobinfection":61057,"./PreferencesMenu/antagonists/antagonists/blobinfection.ts":61057,"./PreferencesMenu/antagonists/antagonists/bloodbrother":53751,"./PreferencesMenu/antagonists/antagonists/bloodbrother.ts":53751,"./PreferencesMenu/antagonists/antagonists/changeling":8637,"./PreferencesMenu/antagonists/antagonists/changeling.ts":8637,"./PreferencesMenu/antagonists/antagonists/clownoperative":48491,"./PreferencesMenu/antagonists/antagonists/clownoperative.ts":48491,"./PreferencesMenu/antagonists/antagonists/cultist":11065,"./PreferencesMenu/antagonists/antagonists/cultist.ts":11065,"./PreferencesMenu/antagonists/antagonists/familyheadaspirant":59386,"./PreferencesMenu/antagonists/antagonists/familyheadaspirant.ts":59386,"./PreferencesMenu/antagonists/antagonists/fugitive":45746,"./PreferencesMenu/antagonists/antagonists/fugitive.ts":45746,"./PreferencesMenu/antagonists/antagonists/gangster":5592,"./PreferencesMenu/antagonists/antagonists/gangster.ts":5592,"./PreferencesMenu/antagonists/antagonists/headrevolutionary":93444,"./PreferencesMenu/antagonists/antagonists/headrevolutionary.ts":93444,"./PreferencesMenu/antagonists/antagonists/heretic":21453,"./PreferencesMenu/antagonists/antagonists/heretic.ts":21453,"./PreferencesMenu/antagonists/antagonists/hereticsmuggler":13852,"./PreferencesMenu/antagonists/antagonists/hereticsmuggler.ts":13852,"./PreferencesMenu/antagonists/antagonists/loneoperative":90219,"./PreferencesMenu/antagonists/antagonists/loneoperative.ts":90219,"./PreferencesMenu/antagonists/antagonists/malfai":20,"./PreferencesMenu/antagonists/antagonists/malfai.ts":20,"./PreferencesMenu/antagonists/antagonists/malfaimidround":12755,"./PreferencesMenu/antagonists/antagonists/malfaimidround.ts":12755,"./PreferencesMenu/antagonists/antagonists/nightmare":40200,"./PreferencesMenu/antagonists/antagonists/nightmare.ts":40200,"./PreferencesMenu/antagonists/antagonists/obsessed":4051,"./PreferencesMenu/antagonists/antagonists/obsessed.ts":4051,"./PreferencesMenu/antagonists/antagonists/operative":16765,"./PreferencesMenu/antagonists/antagonists/operative.ts":16765,"./PreferencesMenu/antagonists/antagonists/operativemidround":51494,"./PreferencesMenu/antagonists/antagonists/operativemidround.ts":51494,"./PreferencesMenu/antagonists/antagonists/opportunist":61943,"./PreferencesMenu/antagonists/antagonists/opportunist.ts":61943,"./PreferencesMenu/antagonists/antagonists/provocateur":31801,"./PreferencesMenu/antagonists/antagonists/provocateur.ts":31801,"./PreferencesMenu/antagonists/antagonists/revenant":22069,"./PreferencesMenu/antagonists/antagonists/revenant.ts":22069,"./PreferencesMenu/antagonists/antagonists/sentientdisease":65240,"./PreferencesMenu/antagonists/antagonists/sentientdisease.ts":65240,"./PreferencesMenu/antagonists/antagonists/spacedragon":48509,"./PreferencesMenu/antagonists/antagonists/spacedragon.ts":48509,"./PreferencesMenu/antagonists/antagonists/spaceninja":75628,"./PreferencesMenu/antagonists/antagonists/spaceninja.ts":75628,"./PreferencesMenu/antagonists/antagonists/syndicateinfiltrator":65319,"./PreferencesMenu/antagonists/antagonists/syndicateinfiltrator.ts":65319,"./PreferencesMenu/antagonists/antagonists/syndicatesleeperagent":19262,"./PreferencesMenu/antagonists/antagonists/syndicatesleeperagent.ts":19262,"./PreferencesMenu/antagonists/antagonists/thief":55244,"./PreferencesMenu/antagonists/antagonists/thief.ts":55244,"./PreferencesMenu/antagonists/antagonists/traitor":3054,"./PreferencesMenu/antagonists/antagonists/traitor.ts":3054,"./PreferencesMenu/antagonists/antagonists/wizard":34700,"./PreferencesMenu/antagonists/antagonists/wizard.ts":34700,"./PreferencesMenu/antagonists/antagonists/wizardmidround":77397,"./PreferencesMenu/antagonists/antagonists/wizardmidround.ts":77397,"./PreferencesMenu/antagonists/antagonists/xenomorph":34611,"./PreferencesMenu/antagonists/antagonists/xenomorph.ts":34611,"./PreferencesMenu/antagonists/base":78580,"./PreferencesMenu/antagonists/base.ts":78580,"./PreferencesMenu/data":6971,"./PreferencesMenu/data.ts":6971,"./PreferencesMenu/index":11118,"./PreferencesMenu/index.tsx":11118,"./PreferencesMenu/names":79699,"./PreferencesMenu/names.tsx":79699,"./PreferencesMenu/preferences/features":24312,"./PreferencesMenu/preferences/features/":24312,"./PreferencesMenu/preferences/features/base":17355,"./PreferencesMenu/preferences/features/base.tsx":17355,"./PreferencesMenu/preferences/features/character_preferences/age":88439,"./PreferencesMenu/preferences/features/character_preferences/age.tsx":88439,"./PreferencesMenu/preferences/features/character_preferences/ai_core_display":20329,"./PreferencesMenu/preferences/features/character_preferences/ai_core_display.tsx":20329,"./PreferencesMenu/preferences/features/character_preferences/body_type":97293,"./PreferencesMenu/preferences/features/character_preferences/body_type.tsx":97293,"./PreferencesMenu/preferences/features/character_preferences/glasses":19221,"./PreferencesMenu/preferences/features/character_preferences/glasses.tsx":19221,"./PreferencesMenu/preferences/features/character_preferences/pda":89310,"./PreferencesMenu/preferences/features/character_preferences/pda.tsx":89310,"./PreferencesMenu/preferences/features/character_preferences/persistent_scars":10878,"./PreferencesMenu/preferences/features/character_preferences/persistent_scars.tsx":10878,"./PreferencesMenu/preferences/features/character_preferences/phobia":9506,"./PreferencesMenu/preferences/features/character_preferences/phobia.tsx":9506,"./PreferencesMenu/preferences/features/character_preferences/playtime_reward_cloak":33239,"./PreferencesMenu/preferences/features/character_preferences/playtime_reward_cloak.tsx":33239,"./PreferencesMenu/preferences/features/character_preferences/security_department":17394,"./PreferencesMenu/preferences/features/character_preferences/security_department.tsx":17394,"./PreferencesMenu/preferences/features/character_preferences/skin_tone":38237,"./PreferencesMenu/preferences/features/character_preferences/skin_tone.tsx":38237,"./PreferencesMenu/preferences/features/character_preferences/uplink_loc":62922,"./PreferencesMenu/preferences/features/character_preferences/uplink_loc.tsx":62922,"./PreferencesMenu/preferences/features/game_preferences/admin":93535,"./PreferencesMenu/preferences/features/game_preferences/admin.tsx":93535,"./PreferencesMenu/preferences/features/game_preferences/ambient_occlusion":15185,"./PreferencesMenu/preferences/features/game_preferences/ambient_occlusion.tsx":15185,"./PreferencesMenu/preferences/features/game_preferences/auto_fit_viewport":50851,"./PreferencesMenu/preferences/features/game_preferences/auto_fit_viewport.tsx":50851,"./PreferencesMenu/preferences/features/game_preferences/broadcast_login_logout":22874,"./PreferencesMenu/preferences/features/game_preferences/broadcast_login_logout.tsx":22874,"./PreferencesMenu/preferences/features/game_preferences/buttons_locked":49260,"./PreferencesMenu/preferences/features/game_preferences/buttons_locked.tsx":49260,"./PreferencesMenu/preferences/features/game_preferences/darkened_flash":19145,"./PreferencesMenu/preferences/features/game_preferences/darkened_flash.tsx":19145,"./PreferencesMenu/preferences/features/game_preferences/fov_darkness":18791,"./PreferencesMenu/preferences/features/game_preferences/fov_darkness.tsx":18791,"./PreferencesMenu/preferences/features/game_preferences/fps":64526,"./PreferencesMenu/preferences/features/game_preferences/fps.tsx":64526,"./PreferencesMenu/preferences/features/game_preferences/ghost":43946,"./PreferencesMenu/preferences/features/game_preferences/ghost.tsx":43946,"./PreferencesMenu/preferences/features/game_preferences/ghost_lighting":38883,"./PreferencesMenu/preferences/features/game_preferences/ghost_lighting.tsx":38883,"./PreferencesMenu/preferences/features/game_preferences/hotkeys":82719,"./PreferencesMenu/preferences/features/game_preferences/hotkeys.tsx":82719,"./PreferencesMenu/preferences/features/game_preferences/item_outlines":50695,"./PreferencesMenu/preferences/features/game_preferences/item_outlines.tsx":50695,"./PreferencesMenu/preferences/features/game_preferences/legacy_chat_toggles":91954,"./PreferencesMenu/preferences/features/game_preferences/legacy_chat_toggles.tsx":91954,"./PreferencesMenu/preferences/features/game_preferences/legacy_toggles":76029,"./PreferencesMenu/preferences/features/game_preferences/legacy_toggles.tsx":76029,"./PreferencesMenu/preferences/features/game_preferences/mod_select":11728,"./PreferencesMenu/preferences/features/game_preferences/mod_select.tsx":11728,"./PreferencesMenu/preferences/features/game_preferences/ooc":4002,"./PreferencesMenu/preferences/features/game_preferences/ooc.tsx":4002,"./PreferencesMenu/preferences/features/game_preferences/parallax":49737,"./PreferencesMenu/preferences/features/game_preferences/parallax.tsx":49737,"./PreferencesMenu/preferences/features/game_preferences/pixel_size":48513,"./PreferencesMenu/preferences/features/game_preferences/pixel_size.tsx":48513,"./PreferencesMenu/preferences/features/game_preferences/preferred_map":71288,"./PreferencesMenu/preferences/features/game_preferences/preferred_map.tsx":71288,"./PreferencesMenu/preferences/features/game_preferences/runechat":87405,"./PreferencesMenu/preferences/features/game_preferences/runechat.tsx":87405,"./PreferencesMenu/preferences/features/game_preferences/scaling_method":36614,"./PreferencesMenu/preferences/features/game_preferences/scaling_method.tsx":36614,"./PreferencesMenu/preferences/features/game_preferences/screentips":71603,"./PreferencesMenu/preferences/features/game_preferences/screentips.tsx":71603,"./PreferencesMenu/preferences/features/game_preferences/tgui":87346,"./PreferencesMenu/preferences/features/game_preferences/tgui.tsx":87346,"./PreferencesMenu/preferences/features/game_preferences/tooltips":42563,"./PreferencesMenu/preferences/features/game_preferences/tooltips.tsx":42563,"./PreferencesMenu/preferences/features/game_preferences/ui_style":91938,"./PreferencesMenu/preferences/features/game_preferences/ui_style.tsx":91938,"./PreferencesMenu/preferences/features/game_preferences/widescreen":50123,"./PreferencesMenu/preferences/features/game_preferences/widescreen.tsx":50123,"./PreferencesMenu/preferences/features/game_preferences/window_flashing":40751,"./PreferencesMenu/preferences/features/game_preferences/window_flashing.tsx":40751,"./PreferencesMenu/preferences/features/index":24312,"./PreferencesMenu/preferences/features/index.ts":24312,"./PreferencesMenu/preferences/features/randomization":92167,"./PreferencesMenu/preferences/features/randomization.tsx":92167,"./PreferencesMenu/preferences/features/species_features":44093,"./PreferencesMenu/preferences/features/species_features.tsx":44093,"./PreferencesMenu/preferences/gender":57724,"./PreferencesMenu/preferences/gender.ts":57724,"./PreferencesMenu/useRandomToggleState":26385,"./PreferencesMenu/useRandomToggleState.ts":26385,"./PressureRegulator":66271,"./PressureRegulator.js":66271,"./PrisonerManagement":21519,"./PrisonerManagement.js":21519,"./ProbingConsole":95768,"./ProbingConsole.js":95768,"./ProcCallMenu":59208,"./ProcCallMenu.tsx":59208,"./ProduceConsole":17567,"./ProduceConsole.js":17567,"./ProximitySensor":30345,"./ProximitySensor.js":30345,"./Puzzgrid":99760,"./Puzzgrid.tsx":99760,"./RCON":39549,"./RCON.js":39549,"./RIGSuit":40395,"./RIGSuit.js":40395,"./Radio":88963,"./Radio.js":88963,"./RadioactiveMicrolaser":22933,"./RadioactiveMicrolaser.js":22933,"./RapidPipeDispenser":3711,"./RapidPipeDispenser.js":3711,"./Reagents":3359,"./Reagents.js":3359,"./ReligiousTool":79051,"./ReligiousTool.js":79051,"./RemoteRobotControl":24798,"./RemoteRobotControl.js":24798,"./RequestConsole":76463,"./RequestConsole.js":76463,"./RequestKiosk":43850,"./RequestKiosk.js":43850,"./RequestManager":45198,"./RequestManager.js":45198,"./ResearchConsole":37744,"./ResearchConsole.js":37744,"./ResearchServerController":90404,"./ResearchServerController.js":90404,"./ResleevingConsole":81708,"./ResleevingConsole.js":81708,"./ResleevingPod":11713,"./ResleevingPod.js":11713,"./RoboticsControlConsole":99514,"./RoboticsControlConsole.js":99514,"./RogueZones":48436,"./RogueZones.js":48436,"./Roulette":83183,"./Roulette.js":83183,"./RustCoreMonitor":7838,"./RustCoreMonitor.js":7838,"./RustFuelControl":98145,"./RustFuelControl.js":98145,"./SDQLSpellAdminPanel":11075,"./SDQLSpellAdminPanel.tsx":11075,"./SDQLSpellMenu":57736,"./SDQLSpellMenu.js":57736,"./Safe":1945,"./Safe.js":1945,"./SatelliteControl":43934,"./SatelliteControl.js":43934,"./ScannerGate":86945,"./ScannerGate.js":86945,"./Secbot":70525,"./Secbot.js":70525,"./Secrets":70474,"./Secrets.js":70474,"./SecureSafe":95285,"./SecureSafe.js":95285,"./SecurityRecords":97787,"./SecurityRecords.js":97787,"./SeedExtractor":55895,"./SeedExtractor.js":55895,"./SeedStorage":98459,"./SeedStorage.js":98459,"./SelectEquipment":43050,"./SelectEquipment.js":43050,"./SentienceFunBalloon":69437,"./SentienceFunBalloon.js":69437,"./ServerMonitor":20986,"./ServerMonitor.js":20986,"./ShieldCapacitor":28224,"./ShieldCapacitor.js":28224,"./ShieldGenerator":21520,"./ShieldGenerator.js":21520,"./ShutoffMonitor":99278,"./ShutoffMonitor.js":99278,"./ShuttleConsole":76005,"./ShuttleConsole.js":76005,"./ShuttleControl":87227,"./ShuttleControl.js":87227,"./ShuttleManipulator":379,"./ShuttleManipulator.js":379,"./Signaler":95360,"./Signaler.js":95360,"./SimpleBot":91598,"./SimpleBot.tsx":91598,"./SkillPanel":602,"./SkillPanel.js":602,"./SkillStation":2082,"./SkillStation.js":2082,"./Sleeper":24258,"./Sleeper.js":24258,"./SlimeBodySwapper":96715,"./SlimeBodySwapper.js":96715,"./SmartVend":92381,"./SmartVend.js":92381,"./Smes":68952,"./Smes.js":68952,"./SmokeMachine":33571,"./SmokeMachine.js":33571,"./SolarControl":64881,"./SolarControl.js":64881,"./SpaceHeater":60954,"./SpaceHeater.js":60954,"./SparringContract":27528,"./SparringContract.tsx":27528,"./SpawnersMenu":89974,"./SpawnersMenu.js":56747,"./SpawnersMenu.tsx":89974,"./Spellbook":74554,"./Spellbook.js":74554,"./Stack":47466,"./Stack.js":47466,"./StackingConsole":49029,"./StackingConsole.js":49029,"./StationAlertConsole":21967,"./StationAlertConsole.js":21967,"./StationBlueprints":78533,"./StationBlueprints.js":78533,"./StationTraitsPanel":50421,"./StationTraitsPanel.tsx":50421,"./StockExchange":37453,"./StockExchange.js":37453,"./StripMenu":95747,"./StripMenu.tsx":95747,"./SuitCycler":32925,"./SuitCycler.js":32925,"./SuitStorageUnit":14054,"./SuitStorageUnit.js":14054,"./SupermatterMonitor":9267,"./SupermatterMonitor.js":9267,"./SupplyConsole":7077,"./SupplyConsole.js":7077,"./SurgeryInitiator":43713,"./SurgeryInitiator.tsx":43713,"./SyndContractor":1535,"./SyndContractor.js":1535,"./TEGenerator":5485,"./TEGenerator.js":5485,"./TachyonArray":25675,"./TachyonArray.js":25675,"./Tank":53759,"./Tank.js":53759,"./TankCompressor":1257,"./TankCompressor.js":1257,"./TankDispenser":99714,"./TankDispenser.js":99714,"./Techweb":90075,"./Techweb.js":90075,"./Telecomms":58031,"./Telecomms.js":58031,"./TelecommsInteraction":21971,"./TelecommsInteraction.js":21971,"./TelecommsLogBrowser":23248,"./TelecommsLogBrowser.js":23248,"./TelecommsMachineBrowser":2610,"./TelecommsMachineBrowser.js":2610,"./TelecommsMonitor":19524,"./TelecommsMonitor.js":19524,"./TelecommsMultitoolMenu":18895,"./TelecommsMultitoolMenu.js":18895,"./TelecommsPDALog":17648,"./TelecommsPDALog.js":17648,"./Teleporter":94515,"./Teleporter.js":94515,"./TelesciConsole":52477,"./TelesciConsole.js":52477,"./Terminal":20951,"./Terminal.js":20951,"./TextInputModal":81235,"./TextInputModal.tsx":81235,"./ThermoMachine":42334,"./ThermoMachine.js":42334,"./Thermometer":9843,"./Thermometer.js":9843,"./TimeClock":91888,"./TimeClock.js":91888,"./Timer":80480,"./Timer.js":80480,"./TrackedPlaytime":22759,"./TrackedPlaytime.js":22759,"./TrainingMachine":21594,"./TrainingMachine.js":21594,"./TraitorObjectiveDebug":34893,"./TraitorObjectiveDebug.tsx":34893,"./TramControl":96284,"./TramControl.js":96284,"./TransferValve":711,"./TransferValve.js":711,"./TurbineComputer":4435,"./TurbineComputer.js":4435,"./TurbineControl":73248,"./TurbineControl.js":73248,"./Turbolift":74240,"./Turbolift.js":74240,"./TurretControl":40620,"./TurretControl.js":40620,"./Uplink":77565,"./Uplink.js":77565,"./Uplink/":10410,"./Uplink/GenericUplink":19457,"./Uplink/GenericUplink.tsx":19457,"./Uplink/ObjectiveMenu":72141,"./Uplink/ObjectiveMenu.tsx":72141,"./Uplink/calculateReputationLevel":75416,"./Uplink/calculateReputationLevel.tsx":75416,"./Uplink/constants":72635,"./Uplink/constants.ts":72635,"./Uplink/index":10410,"./Uplink/index.tsx":10410,"./VaultController":46321,"./VaultController.js":46321,"./Vendatray":6099,"./Vendatray.js":6099,"./Vending":42323,"./Vending.js":70914,"./Vending.tsx":42323,"./VolumePanel":80633,"./VolumePanel.js":80633,"./VorePanel":23664,"./VorePanel.js":23664,"./VotePanel":26042,"./VotePanel.tsx":26042,"./VrSleeper":62881,"./VrSleeper.js":62881,"./Wires":35045,"./Wires.js":35045,"./XenoarchArtifactAnalyzer":71688,"./XenoarchArtifactAnalyzer.js":71688,"./XenoarchArtifactHarvester":74393,"./XenoarchArtifactHarvester.js":74393,"./XenoarchDepthScanner":58173,"./XenoarchDepthScanner.js":58173,"./XenoarchHandheldPowerUtilizer":76468,"./XenoarchHandheldPowerUtilizer.js":76468,"./XenoarchReplicator":68675,"./XenoarchReplicator.js":68675,"./XenoarchSpectrometer":73146,"./XenoarchSpectrometer.js":73146,"./XenoarchSuspension":4285,"./XenoarchSuspension.js":4285,"./common/AccessConfig":29854,"./common/AccessConfig.js":29854,"./common/AccessList":52126,"./common/AccessList.js":52126,"./common/AtmosControls":75549,"./common/AtmosControls.js":75549,"./common/AtmosHandbook":44151,"./common/AtmosHandbook.tsx":44151,"./common/BeakerContents":57361,"./common/BeakerContents.js":57361,"./common/ComplexModal":84645,"./common/ComplexModal.js":84645,"./common/FullscreenNotice":75309,"./common/FullscreenNotice.js":75309,"./common/GasmixParser":42055,"./common/GasmixParser.tsx":42055,"./common/InputButtons":34277,"./common/InputButtons.tsx":34277,"./common/InterfaceLockNoticeBox":19447,"./common/InterfaceLockNoticeBox.js":19447,"./common/Loader":55631,"./common/Loader.tsx":55631,"./common/LoginInfo":62291,"./common/LoginInfo.js":62291,"./common/LoginScreen":20273,"./common/LoginScreen.js":20273,"./common/Materials":22586,"./common/Materials.tsx":22586,"./common/Mining":11409,"./common/Mining.js":11409,"./common/Overmap":40459,"./common/Overmap.js":40459,"./common/PortableAtmos":41161,"./common/PortableAtmos.js":41161,"./common/RankIcon":63826,"./common/RankIcon.js":63826,"./common/ReagentLookup":14958,"./common/ReagentLookup.js":14958,"./common/RecipeLookup":8782,"./common/RecipeLookup.js":8782,"./common/TemporaryNotice":98194,"./common/TemporaryNotice.js":98194,"./heat_pump":68341,"./heat_pump.js":68341,"./pAIAtmos":28697,"./pAIAtmos.js":28697,"./pAIDirectives":11307,"./pAIDirectives.js":11307,"./pAIDoorjack":96529,"./pAIDoorjack.js":96529,"./pAIMedrecords":72383,"./pAIMedrecords.js":72383,"./pAISecrecords":36486,"./pAISecrecords.js":36486,"./pda/pda_atmos_scan":31351,"./pda/pda_atmos_scan.js":31351,"./pda/pda_janitor":59320,"./pda/pda_janitor.js":59320,"./pda/pda_main_menu":28505,"./pda/pda_main_menu.js":28505,"./pda/pda_manifest":89176,"./pda/pda_manifest.js":89176,"./pda/pda_medical":79720,"./pda/pda_medical.js":79720,"./pda/pda_messenger":39955,"./pda/pda_messenger.js":39955,"./pda/pda_news":97723,"./pda/pda_news.js":97723,"./pda/pda_notekeeper":60434,"./pda/pda_notekeeper.js":60434,"./pda/pda_power":59023,"./pda/pda_power.js":59023,"./pda/pda_security":67932,"./pda/pda_security.js":67932,"./pda/pda_signaller":11160,"./pda/pda_signaller.js":11160,"./pda/pda_status_display":59956,"./pda/pda_status_display.js":59956,"./pda/pda_supply":79888,"./pda/pda_supply.js":79888};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=8156},69321:function(e,t,n){var o={"./Blink.stories.js":88428,"./BlockQuote.stories.js":9184,"./Box.stories.js":36801,"./Button.stories.js":3750,"./ByondUi.stories.js":68696,"./Collapsible.stories.js":88835,"./Flex.stories.js":34458,"./Input.stories.js":23148,"./Popper.stories.js":23613,"./ProgressBar.stories.js":9093,"./Stack.stories.js":86482,"./Storage.stories.js":63900,"./Tabs.stories.js":88209,"./Themes.stories.js":38200,"./Tooltip.stories.js":48181};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=69321},31400:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaults={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var c=/[&<>"']/,i=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,d=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return s[e]};function m(e,t){if(t){if(c.test(e))return e.replace(i,u)}else if(l.test(e))return e.replace(d,u);return e}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(p,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var C=/(^|[^\[])\^/g;function f(e,t){e=e.source||e,t=t||"";var n={replace:function(t,o){return o=(o=o.source||o).replace(C,"$1"),e=e.replace(t,o),n},getRegex:function(){return new RegExp(e,t)}};return n}var N=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(e,t,n){if(e){var o;try{o=decodeURIComponent(h(n)).replace(N,"").toLowerCase()}catch(r){return null}if(0===o.indexOf("javascript:")||0===o.indexOf("vbscript:")||0===o.indexOf("data:"))return null}t&&!g.test(n)&&(n=function(e,t){b[" "+e]||(v.test(e)?b[" "+e]=e+"/":b[" "+e]=S(e,"/",!0));var n=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(k,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(_,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var b={},v=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;var y={exec:function(){}};function w(e){for(var t,n,o=1;o<arguments.length;o++)for(n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function x(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var o=!1,r=t;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/),o=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function S(e,t,n){var o=e.length;if(0===o)return"";for(var r=0;r<o;){var a=e.charAt(o-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,o-r)}function B(e){e&&e.sanitize&&e.silent}function I(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function L(e,t,n,o){var r=t.href,a=t.title?m(t.title):null,c=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;var i={type:"link",raw:n,href:r,title:a,text:c,tokens:o.inlineTokens(c,[])};return o.state.inLink=!1,i}return{type:"image",raw:n,href:r,title:a,text:m(c)}}var T=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:S(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],o=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var o=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=o.length?e.slice(o.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:o}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var o=S(n,"#");this.options.pedantic?n=o.trim():o&&!/ $/.test(o)||(n=o.trim())}var r={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,o,a,c,i,l,d,s,u,m,p,h,C=t[1].trim(),f=C.length>1,N={type:"list",raw:"",ordered:f,start:f?+C.slice(0,-1):"",loose:!1,items:[]};C=f?"\\d{1,9}\\"+C.slice(-1):"\\"+C,this.options.pedantic&&(C=f?C:"[*+-]");for(var g=new RegExp("^( {0,3}"+C+")((?: [^\\n]*)?(?:\\n|$))");e&&(h=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),s=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(c=2,p=s.trimLeft()):(c=(c=t[2].search(/[^ ]/))>4?1:c,p=s.slice(c),c+=t[1].length),l=!1,!s&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h)for(var V=new RegExp("^ {0,"+Math.min(3,c-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(s=m=e.split("\n",1)[0],this.options.pedantic&&(s=s.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!V.test(s));){if(s.search(/[^ ]/)>=c||!s.trim())p+="\n"+s.slice(c);else{if(l)break;p+="\n"+s}l||s.trim()||(l=!0),n+=m+"\n",e=e.substring(m.length+1)}N.loose||(d?N.loose=!0:/\n *\n *$/.test(n)&&(d=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(p))&&(a="[ ] "!==o[0],p=p.replace(/^\[[ xX]\] +/,"")),N.items.push({type:"list_item",raw:n,task:!!o,checked:a,loose:!1,text:p}),N.raw+=n}N.items[N.items.length-1].raw=n.trimRight(),N.items[N.items.length-1].text=p.trimRight(),N.raw=N.raw.trimRight();var b=N.items.length;for(i=0;i<b;i++){this.lexer.state.top=!1,N.items[i].tokens=this.lexer.blockTokens(N.items[i].text,[]);var v=N.items[i].tokens.filter((function(e){return"space"===e.type})),k=v.every((function(e){for(var t,n=0,o=r(e.raw.split(""));!(t=o()).done;)if("\n"===t.value&&(n+=1),n>1)return!0;return!1}));!N.loose&&v.length&&k&&(N.loose=!0,N.items[i].loose=!0)}return N}},n.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):m(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},n.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:x(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var o,r,a,c,i=n.align.length;for(o=0;o<i;o++)/^ *-+: *$/.test(n.align[o])?n.align[o]="right":/^ *:-+: *$/.test(n.align[o])?n.align[o]="center":/^ *:-+ *$/.test(n.align[o])?n.align[o]="left":n.align[o]=null;for(i=n.rows.length,o=0;o<i;o++)n.rows[o]=x(n.rows[o],n.header.length).map((function(e){return{text:e}}));for(i=n.header.length,r=0;r<i;r++)n.header[r].tokens=[],this.lexer.inlineTokens(n.header[r].text,n.header[r].tokens);for(i=n.rows.length,r=0;r<i;r++)for(c=n.rows[r],a=0;a<c.length;a++)c[a].tokens=[],this.lexer.inlineTokens(c[a].text,c[a].tokens);return n}}},n.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var n={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.text=function(e){var t=this.rules.block.text.exec(e);if(t){var n={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},n.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:m(t[1])}},n.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):m(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var o=S(n.slice(0,-1),"\\");if((n.length-o.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,o=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&--o<0)return r;return-1}(t[2],"()");if(r>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var c=t[2],i="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(c);l&&(c=l[1],i=l[3])}else i=t[3]?t[3].slice(1,-1):"";return c=c.trim(),/^</.test(c)&&(c=this.options.pedantic&&!/>$/.test(n)?c.slice(1):c.slice(1,-1)),L(t,{href:c?c.replace(this.rules.inline._escapes,"$1"):c,title:i?i.replace(this.rules.inline._escapes,"$1"):i},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var o=(n[2]||n[1]).replace(/\s+/g," ");if(!(o=t[o.toLowerCase()])||!o.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return L(n,o,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var o=this.rules.inline.emStrong.lDelim.exec(e);if(o&&(!o[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var a,c,i=o[0].length-1,l=i,d=0,s="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!=(o=s.exec(t));)if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6])if(c=a.length,o[3]||o[4])l+=c;else if(!((o[5]||o[6])&&i%3)||(i+c)%3){if(!((l-=c)>0)){if(c=Math.min(c,c+l+d),Math.min(i,c)%2){var u=e.slice(1,i+o.index+c);return{type:"em",raw:e.slice(0,i+o.index+c+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}var m=e.slice(2,i+o.index+c-1);return{type:"strong",raw:e.slice(0,i+o.index+c+1),text:m,tokens:this.lexer.inlineTokens(m,[])}}}else d+=c}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),o=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return o&&r&&(n=n.substring(1,n.length-1)),n=m(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},n.autolink=function(e,t){var n,o,r=this.rules.inline.autolink.exec(e);if(r)return o="@"===r[2]?"mailto:"+(n=m(this.options.mangle?t(r[1]):r[1])):n=m(r[1]),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var o,r;if("@"===n[2])r="mailto:"+(o=m(this.options.mangle?t(n[0]):n[0]));else{var a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);o=m(n[0]),r="www."===n[1]?"http://"+o:o}return{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}},n.inlineText=function(e,t){var n,o=this.rules.inline.text.exec(e);if(o)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):m(o[0]):o[0]:m(this.options.smartypants?t(o[0]):o[0]),{type:"text",raw:o[0],text:n}},e}(),A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};A.def=f(A.def).replace("label",A._label).replace("title",A._title).getRegex(),A.bullet=/(?:[*+-]|\d{1,9}[.)])/,A.listItemStart=f(/^( *)(bull) */).replace("bull",A.bullet).getRegex(),A.list=f(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex(),A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,A.html=f(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.blockquote=f(A.blockquote).replace("paragraph",A.paragraph).getRegex(),A.normal=w({},A),A.gfm=w({},A.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),A.gfm.table=f(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.gfm.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",A.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.pedantic=w({},A.normal,{html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,paragraph:f(A.normal._paragraph).replace("hr",A.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var D={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function M(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function E(e){var t,n,o="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}D._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",D.punctuation=f(D.punctuation).replace(/punctuation/g,D._punctuation).getRegex(),D.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,D.escapedEmSt=/\\\*|\\_/g,D._comment=f(A._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),D.emStrong.lDelim=f(D.emStrong.lDelim).replace(/punct/g,D._punctuation).getRegex(),D.emStrong.rDelimAst=f(D.emStrong.rDelimAst,"g").replace(/punct/g,D._punctuation).getRegex(),D.emStrong.rDelimUnd=f(D.emStrong.rDelimUnd,"g").replace(/punct/g,D._punctuation).getRegex(),D._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,D._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,D._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,D.autolink=f(D.autolink).replace("scheme",D._scheme).replace("email",D._email).getRegex(),D._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,D.tag=f(D.tag).replace("comment",D._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=f(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=f(D.reflink).replace("label",D._label).replace("ref",A._label).getRegex(),D.nolink=f(D.nolink).replace("ref",A._label).getRegex(),D.reflinkSearch=f(D.reflinkSearch,"g").replace("reflink",D.reflink).replace("nolink",D.nolink).getRegex(),D.normal=w({},D),D.pedantic=w({},D.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=w({},D.normal,{escape:f(D.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),D.gfm.url=f(D.gfm.url,"i").replace("email",D.gfm._extended_email).getRegex(),D.breaks=w({},D.gfm,{br:f(D.br).replace("{2,}","*").getRegex(),text:f(D.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var P=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:A.normal,inline:D.normal};this.options.pedantic?(n.block=A.pedantic,n.inline=D.pedantic):this.options.gfm&&(n.block=A.gfm,this.options.breaks?n.inline=D.breaks:n.inline=D.gfm),this.tokenizer.rules=n}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var o,r,a,c=e.prototype;return c.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},c.blockTokens=function(e,t){var n,o,r,a,c=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(o){return!!(n=o.call({lexer:c},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(o=t[t.length-1])||"paragraph"!==o.type&&"text"!==o.type?t.push(n):(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(o=t[t.length-1])||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(o.raw+="\n"+n.raw,o.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(r=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=Infinity,n=e.slice(1),o=void 0;c.options.extensions.startBlock.forEach((function(e){"number"==typeof(o=e.call({lexer:this},n))&&o>=0&&(t=Math.min(t,o))})),t<Infinity&&t>=0&&(r=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))o=t[t.length-1],a&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n),a=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n);else if(e){var i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(i)}return this.state.top=!0,t},c.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},c.inlineTokens=function(e,t){var n,o,r,a=this;void 0===t&&(t=[]);var c,i,l,d=e;if(this.tokens.links){var s=Object.keys(this.tokens.links);if(s.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(d));)s.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,c.index)+"["+I("a",c[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,c.index)+"["+I("a",c[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,c.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(l=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(o){return!!(n=o.call({lexer:a},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(o=t[t.length-1])&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(o=t[t.length-1])&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,d,l))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,E))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,E))){if(r=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=Infinity,n=e.slice(1),o=void 0;a.options.extensions.startInline.forEach((function(e){"number"==typeof(o=e.call({lexer:this},n))&&o>=0&&(t=Math.min(t,o))})),t<Infinity&&t>=0&&(r=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(r,M))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),i=!0,(o=t[t.length-1])&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(u)}}else e=e.substring(n.raw.length),t.push(n);return t},o=e,a=[{key:"rules",get:function(){return{block:A,inline:D}}}],(r=null)&&n(o.prototype,r),a&&n(o,a),Object.defineProperty(o,"prototype",{writable:!1}),e}(),F=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.code=function(e,t,n){var o=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,o);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+m(o,!0)+'">'+(n?e:m(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:m(e,!0))+"</code></pre>\n"},n.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.html=function(e){return e},n.heading=function(e,t,n,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(e,t,n){var o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"},n.listitem=function(e){return"<li>"+e+"</li>\n"},n.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(e){return"<p>"+e+"</p>\n"},n.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},n.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},n.strong=function(e){return"<strong>"+e+"</strong>"},n.em=function(e){return"<em>"+e+"</em>"},n.codespan=function(e){return"<code>"+e+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(e){return"<del>"+e+"</del>"},n.link=function(e,t,n){if(null===(e=V(this.options.sanitize,this.options.baseUrl,e)))return n;var o='<a href="'+m(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>"},n.image=function(e,t,n){if(null===(e=V(this.options.sanitize,this.options.baseUrl,e)))return n;var o='<img src="'+e+'" alt="'+n+'"';return t&&(o+=' title="'+t+'"'),o+=this.options.xhtml?"/>":">"},n.text=function(e){return e},e}(),O=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),R=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{n=e+"-"+ ++o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),j=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new O,this.slugger=new R}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var n=e.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,o,r,a,c,i,l,d,s,u,m,p,C,f,N,g,V,b,v,k="",_=e.length;for(n=0;n<_;n++)if(u=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type])||!1===(v=this.options.extensions.renderers[u.type].call({parser:this},u))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,h(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(d="",l="",a=u.header.length,o=0;o<a;o++)l+=this.renderer.tablecell(this.parseInline(u.header[o].tokens),{header:!0,align:u.align[o]});for(d+=this.renderer.tablerow(l),s="",a=u.rows.length,o=0;o<a;o++){for(l="",c=(i=u.rows[o]).length,r=0;r<c;r++)l+=this.renderer.tablecell(this.parseInline(i[r].tokens),{header:!1,align:u.align[r]});s+=this.renderer.tablerow(l)}k+=this.renderer.table(d,s);continue;case"blockquote":s=this.parse(u.tokens),k+=this.renderer.blockquote(s);continue;case"list":for(m=u.ordered,p=u.start,C=u.loose,a=u.items.length,s="",o=0;o<a;o++)g=(N=u.items[o]).checked,V=N.task,f="",N.task&&(b=this.renderer.checkbox(g),C?N.tokens.length>0&&"paragraph"===N.tokens[0].type?(N.tokens[0].text=b+" "+N.tokens[0].text,N.tokens[0].tokens&&N.tokens[0].tokens.length>0&&"text"===N.tokens[0].tokens[0].type&&(N.tokens[0].tokens[0].text=b+" "+N.tokens[0].tokens[0].text)):N.tokens.unshift({type:"text",text:b}):f+=b),f+=this.parse(N.tokens,C),s+=this.renderer.listitem(f,V,g);k+=this.renderer.list(s,m,p);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(s=u.tokens?this.parseInline(u.tokens):u.text;n+1<_&&"text"===e[n+1].type;)s+="\n"+((u=e[++n]).tokens?this.parseInline(u.tokens):u.text);k+=t?this.renderer.paragraph(s):s;continue;default:var y='Token with "'+u.type+'" type was not found.';if(this.options.silent)return;throw new Error(y)}else k+=v||"";return k},n.parseInline=function(e,t){t=t||this.renderer;var n,o,r,a="",c=e.length;for(n=0;n<c;n++)if(o=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type])||!1===(r=this.options.extensions.renderers[o.type].call({parser:this},o))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type))switch(o.type){case"escape":a+=t.text(o.text);break;case"html":a+=t.html(o.text);break;case"link":a+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":a+=t.image(o.href,o.title,o.text);break;case"strong":a+=t.strong(this.parseInline(o.tokens,t));break;case"em":a+=t.em(this.parseInline(o.tokens,t));break;case"codespan":a+=t.codespan(o.text);break;case"br":a+=t.br();break;case"del":a+=t.del(this.parseInline(o.tokens,t));break;case"text":a+=t.text(o.text);break;default:var i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return;throw new Error(i)}else a+=r||"";return a},e}();function W(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),B(t=w({},W.defaults,t||{})),n){var o,r=t.highlight;try{o=P.lex(e,t)}catch(l){return n(l)}var a=function(e){var a;if(!e)try{t.walkTokens&&W.walkTokens(o,t.walkTokens),a=j.parse(o,t)}catch(l){e=l}return t.highlight=r,e?n(e):n(null,a)};if(!r||r.length<3)return a();if(delete t.highlight,!o.length)return a();var c=0;return W.walkTokens(o,(function(e){"code"===e.type&&(c++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--c&&a()}))}),0))})),void(0===c&&a())}try{var i=P.lex(e,t);return t.walkTokens&&W.walkTokens(i,t.walkTokens),j.parse(i,t)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+m(l.message+"",!0)+"</pre>";throw l}}W.options=W.setOptions=function(e){var n;return w(W.defaults,e),n=W.defaults,t.defaults=n,W},W.getDefaults=a,W.defaults=t.defaults,W.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=w.apply(void 0,[{}].concat(t)),a=W.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(o=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=a.renderers?a.renderers[e.name]:null;a.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];var a=e.renderer.apply(this,o);return!1===a&&(a=t.apply(this,o)),a}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");a[e.level]?a[e.level].unshift(e.tokenizer):a[e.level]=[e.tokenizer],e.start&&("block"===e.level?a.startBlock?a.startBlock.push(e.start):a.startBlock=[e.start]:"inline"===e.level&&(a.startInline?a.startInline.push(e.start):a.startInline=[e.start]))}e.childTokens&&(a.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=W.defaults.renderer||new F,n=function(n){var o=t[n];t[n]=function(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];var i=e.renderer[n].apply(t,a);return!1===i&&(i=o.apply(t,a)),i}};for(var o in e.renderer)n(o);r.renderer=t}(),e.tokenizer&&function(){var t=W.defaults.tokenizer||new T,n=function(n){var o=t[n];t[n]=function(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];var i=e.tokenizer[n].apply(t,a);return!1===i&&(i=o.apply(t,a)),i}};for(var o in e.tokenizer)n(o);r.tokenizer=t}(),e.walkTokens){var t=W.defaults.walkTokens;r.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}o&&(r.extensions=a),W.setOptions(r)}))},W.walkTokens=function(e,t){for(var n,o=function(){var e=n.value;switch(t.call(W,e),e.type){case"table":for(var o,a=r(e.header);!(o=a()).done;){var c=o.value;W.walkTokens(c.tokens,t)}for(var i,l=r(e.rows);!(i=l()).done;)for(var d,s=r(i.value);!(d=s()).done;){var u=d.value;W.walkTokens(u.tokens,t)}break;case"list":W.walkTokens(e.items,t);break;default:W.defaults.extensions&&W.defaults.extensions.childTokens&&W.defaults.extensions.childTokens[e.type]?W.defaults.extensions.childTokens[e.type].forEach((function(n){W.walkTokens(e[n],t)})):e.tokens&&W.walkTokens(e.tokens,t)}},a=r(e);!(n=a()).done;)o()},W.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");B(t=w({},W.defaults,t||{}));try{var n=P.lexInline(e,t);return t.walkTokens&&W.walkTokens(n,t.walkTokens),j.parseInline(n,t)}catch(o){if(o.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+m(o.message+"",!0)+"</pre>";throw o}},W.Parser=j,W.parser=j.parse,W.Renderer=F,W.TextRenderer=O,W.Lexer=P,W.lexer=P.lex,W.Tokenizer=T,W.Slugger=R,W.parse=W;var z=W.options,H=W.setOptions,U=W.use,G=W.walkTokens,q=W.parseInline,Y=W,K=j.parse,$=P.lex;t.Lexer=P,t.Parser=j,t.Renderer=F,t.Slugger=R,t.TextRenderer=O,t.Tokenizer=T,t.getDefaults=a,t.lexer=$,t.marked=W,t.options=z,t.parse=Y,t.parseInline=q,t.parser=K,t.setOptions=H,t.use=U,t.walkTokens=G},82252:function(e){"use strict";var t=[];e.exports={subscribe:function(e){return t.push(e)},sendMessage:function(e){},sendLogEntry:function(e,t){},setupHotReloading:function(){0}}}},t={};function n(o){var r=t[o];if(r!==undefined)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(65379),n(43674),n(69656),n(72411),n(24467),n(37493),n(87420),n(9480),n(66171),n(53276),n(71852),n(59045),n(70887),n(72906),n(24835),n(14653),n(58139),n(34049),n(38356),n(72494),n(31699),n(3263),n(81520),n(80036),n(60515),n(94330),n(96553),n(99139),n(98215),n(32617),n(80186),n(31149),n(71827),n(79770),n(32099),n(72667),n(94920),n(64683),n(26189),n(41185),n(51008),n(47112),n(86e3),n(15196),n(95993),n(25079),n(87143),n(72499),n(73676),n(76746),n(19),n(17038),n(46360),n(16835),n(96683),n(7756),n(21842),n(1613),n(65115),n(27115),n(13280),n(21019),n(66619),n(75469),n(90967),n(35022),n(22604),n(41843),n(86810),n(54670),n(16580),n(31304),n(13078),n(45128),n(31938),n(90958),n(88885),n(45017),n(59743),n(47560),n(31569),n(6134),n(12622),n(60852),n(99085),n(75180),n(79437),n(75370),n(61022),n(50580),n(5301),n(76438),n(97307),n(34016),n(86944),n(60687),n(86957),n(59163),n(34128),n(24267),n(39816),n(4239),n(8381),n(63669),n(25779),n(84580),n(33198),n(71895),n(44910),n(95962),n(73769),n(14962),n(80345),n(18438),n(70552),n(46356),n(57128),n(83588),n(47057),n(67092),n(59478),n(69203),n(27879),n(71507),n(39021),n(8641),n(83064),n(93115),n(33362),n(45090),n(12654),n(58870),n(76581),n(4567),n(28638),n(60314),n(71595),n(98954),n(91332),n(79445),n(36493),n(24476),n(78192),n(58660),n(56592),n(69957),n(9747),n(13578),n(3684),n(19209),n(56737),n(67586),n(7743),n(15890),n(34651),n(18037),n(48415),n(54950),n(76102),n(47816),n(30037),n(54705),n(75831),n(96958),n(75344),n(87853),n(25865),n(1150),n(50444),n(11220),n(6636),n(37650),n(12424),n(64346),n(27553),n(49007),n(17621),n(71078),n(20500),n(85923),n(38956),n(49264),n(70448),n(5775),n(45164),n(83762),n(67265),n(56058),n(87001),n(23535),n(18617),n(70595),n(76820),n(33357),n(38215),n(37281),n(99584),n(43582),n(15378),n(31213),n(19275),n(59),n(43849),n(69838),n(96250)}(),function(){"use strict";var e=n(96323);n(33603),n(57397),n(62048),n(95281),n(34649),n(39248),n(36030),n(32817),n(44576),n(21805),n(39292),n(74199),n(65138),n(25311);var t,o,r=n(28440),a=(n(82252),n(6965)),c=n(13952),i=n(78238),l=n(18749),d=n(99397);r.perf.mark("inception",null==(t=window.performance)||null==(o=t.timing)?void 0:o.navigationStart),r.perf.mark("init");var s=(0,l.configureStore)(),u=(0,i.createRenderer)((function(){var t=(0,n(91199).getRoutedComponent)(s);return(0,e.createComponentVNode)(2,l.StoreProvider,{store:s,children:(0,e.createComponentVNode)(2,t)})}));!function m(){"loading"!==document.readyState?((0,d.setupGlobalEvents)(),(0,a.setupHotKeys)(),(0,c.captureExternalLinks)(),s.subscribe(u),Byond.subscribe((function(e,t){return s.dispatch({type:e,payload:t})}))):document.addEventListener("DOMContentLoaded",m)}()}()}(); |